How to choose between Node.js and JXcore?

老子叫甜甜 提交于 2019-11-29 17:47:37

问题


JXcore seems to be improved Node.js. Check this carefully designed quote:

JXcore comes with a built-in multithreading support that can be enabled on your existing Node.js applications without additional changes... JXcore multithreading may bring aproximately 30 to 50 percent solid performance advantage over Node.JS cluster module. From http://jxcore.com/

I already tried to install it and it does really work. That's all I can say for now, measuring performance and up-time is tricky and elaborative.

So are there real advantages to switch to JXcore and how to make a decision?


回答1:


IMHO, JXcore is beneficial for below use cases;

1 - JXcore works on mobile phones (iOS, Android..)

2 - It can be embedded by a Java, Objective-C, C, C++ app.

3 - MT(multithreading) is a winner for an application spends more time on JavaScript land comparing to IO. Otherwise, there is no significant difference. MT works very smooth since I was able to use a node-js proxy-server solution multi-threaded without making any change (jx mt proxy-server)

4 - Packaging and compiling. (https://github.com/jxcore/jxcore/blob/master/doc/HOW_TO_COMPILE.md)

5 - Some of the most popular native modules come built-in with mt support, so you don't bother installing them on a target machine.

6 - Built-in external memory store and sqlite database server. (This one is a life saver on Windows)

I had a problem also. For example, I needed to disable HTTP header byte size check in order make my application running. For some reason they've added extra security checks by default so you may need to update your application a bit.

Update:

JXcore is now an open source project with MIT license.




回答2:


Active development on JxCore has stopped - see the announcement on the GitHub page

Important Notice: Nubisa halting active development on JXcore platform

Though advantages stated above are there, but they get nullified with the disadvantages of not getting the latest NodeJS support as part of it.




回答3:


I use JXCore to run Javascript from native Java on Android. It can also be called from a background service such as a SyncAdapter. So you can download JS code remotely and run it in the background. that's very non-trivial to do in native land and can be achieved using JXCore. take a look at this sample: https://github.com/capriza/jxcore-android-sample



来源:https://stackoverflow.com/questions/26155435/how-to-choose-between-node-js-and-jxcore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!