node-forward / discussions

Soliciting ideas and feedback for community driven collaborative projects that help Node.
149 stars 1 forks source link

Why not a real alternative to Node? #9

Open mvalente opened 9 years ago

mvalente commented 9 years ago

Node is great and V8 is great.

But why not take Mozilla's Spider/Eon/Odin/Monkey and create a real alternative to Node? Namely something that would be async/callback Node-compatible but have the alternative of sync-only API to better welcome people that are coming from PHP/Python/etc ?

Fishrock123 commented 9 years ago

I hear io.js is a good alternative to node.js

erikcorry commented 9 years ago

@medikoo If you can boil down your large-heap performance issues to a reasonable repro, then the V8 team are very interested in bug reports. The GC of V8 is not as scalable as the JVM's, which is said to scale to dozens of threads and 100s of Gbytes, but 1.5Gbyte should be no problem.

Note that you may need to up the sizes of various limits. Primarily --max-old-space-size and --max-executable-size . You may want to experiment with --nouse-idle-notification too.

medikoo commented 9 years ago

@erikcorry great thanks for that valuable information. I'll try to investigate that further and eventually I'll come up with some solid test case

bnoordhuis commented 9 years ago

@medikoo Just a heads up, --nouse-idle-notification is a no-op in v0.10 and newer; I removed idle notifications in iojs/io.js@d607d856.

kaizhu256 commented 9 years ago

synchrounous io is legitimate in one-time calls like initializing server configuration and models. after spending 2 years as an async zealot, I've come to realize its very inefficient and brittle for writing nontrivial init code.

mvalente commented 9 years ago

Oh, looky here! Building a real alternative to Node using Spidermonkey is actually possible, contrary to the naysayers...

https://github.com/jxcore/jxcore

http://jxcore.com/home/

erikcorry commented 9 years ago

Nice try, but I know what the date is today!

mvalente commented 9 years ago

:-)

On Wed, Apr 1, 2015 at 9:23 PM, Erik Corry notifications@github.com wrote:

Nice try, but I know what the date is today!

— Reply to this email directly or view it on GitHub https://github.com/node-forward/discussions/issues/9#issuecomment-88620612 .

Fishrock123 commented 9 years ago

https://github.com/jxcore/jxcore

Cool. That's good, there should be options.

Our business is node/io.js. If we have the resources to one day make the js engine swappable, that'd be great. For now though, that simply isn't the case.

@mikeal Can you lock this?