cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 489 forks source link

Update to jxcore's engine? #1470

Open Ben007 opened 9 years ago

Ben007 commented 9 years ago

I'm wondering the possibilities of using latest SpiderMonkey / V8 from jxcore ? The JavaScript engine wrapper looks nice and they already have compilation script (gyp) ready for iOS, and Android.

IgorMats commented 9 years ago

I was wonder too when I saw SpiderMonkey here.

Ben007 commented 9 years ago

It could help the maintainability of cocos2d-js though. jxcore has it's own wrapper around the JavaScript engines and it provides a multithreaded JS interface. Cocos2d might use the wrapper instead dealing with JavaScript engine optimizations, version updates etc..

pandamicro commented 9 years ago

jxcore seems very interesting ! It support both v8 and spidermonkey, Node.JS features could also be very useful. But I have some doubt:

obastemur commented 9 years ago

@Ben007 I had a very good experience with cocos2d and I think I'm familiar with the code. First of all, it wouldn't be an easy implementation but cocos2d core team is crazy good on implementing the things.

@pandamicro you have the right points, let me try to answer.

My personal questions are (as a Cocos2D developer, lover) ;

pandamicro commented 9 years ago

@obastemur Thank you very much for your answers, I'm surprised and very happy to know that you use Cocos2d too.

What I think very interesting of jxcore is essentially two points:

  1. We can stop tracking SpiderMonkey by ourselves, which requires some work. Especially when the APIs change, then we need to modify all binding codes (manual and auto generator), this happened when we upgrade SpiderMonkey from v28 to v33 and it took us a lot of work.
  2. We can have features of Node.JS and make use of its rich third party modules. For example, the file manipulation isn't very convenient in Cocos2d-JS, Node.JS can provide a very simple approach.
obastemur commented 9 years ago

But for Windows Phone we do hacked into SpiderMonkey and now we are close to have a stable version for windows phone. It will be released in Cocos2d-JS v3.4

I'm very happy to hear this. We can happily collaborate / contribute on this (even more, push it to upstream). Sounds like win-win for both projects & communities. Personally, it would be amazing to use node together with cocos2d-js.

let's see how can we make it possible (obastemur - gmail - com)

pandamicro commented 9 years ago

@obastemur

Can you post a brief introduction of JXCore to our forum ? I think Riq and other developers will be interested in discussing the possibility between JXCore and Cocos2d-JS.

http://discuss.cocos2d-x.org/c/cocos2d-x-dev-discussion

ricardoquesada commented 9 years ago

interesting project.