Earlier quoted context omitted.
I think the long-term solution is to drop V8. The V8 developers pretty much do not care about Node at all. Perhaps Chakra can come to some agreement to keep their APIs stable and if so they can become the new default engine.
Dont be silly. There may at some point be an effort to build an 'abstract node api interface' and main maintain bindings to various engines... ...but there's no way v8 will be dropped at any point in the foreseeable future. What would you replace it with? This? no way. We're years away from that even being plausible.
Enable Node.js to Run with Microsoft's ChakraCore Engine
91–100 of 130 posts
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#92Earlier quoted context omitted.
Dont be silly. There may at some point be an effort to build an 'abstract node api interface' and main maintain bindings to various engines... ...but there's no way v8 will be dropped at any point in the foreseeable future. What would you replace it with? This? no way. We're years away from that even being plausible.
I said long-term. V8 makes changes all the time that breaks Node, degrades performance in certain ways and essentially says "tough shit". Why wouldn't you look for an alternative?
Is there any real point in trying to write a roadmap for something more than 2 years (at least) in the future?
No one has any idea what will be going on at that point; there isn't even a roadmap for an engine independent node api; and even when one is made (never mind implemented...), it will certainly not include 'drop v8' as part of it.
So we're talking about some nebulous future in which something may or may not happen after another thing which may or may not happen at some point in the future.
It's pointless to speculate about such obscure possibilities.
V8 isn't going away any time soon.
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#93This is awesome, but before anyone uses this for something real keep in mind that the way this works is that Microsoft has created a shim on top of Chakra that exposes a V8 API. If V8 changes its API drastically (which it frequently does) this little experiment is basically over. There is only so much work people can do to keep up with a moving target. Barring NodeJS creating an abstract JS engine API that developers…
The thing is, Node needs to keep up with those same APIs.
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#94Earlier quoted context omitted.
Does it matter? If V8 deoptimizes code with try/catch, then I as a developer need to account for that.
It does! V8 has expressed interest in fixing the try/catch deopt, but it keeps falling behind on their list because not many people are using it. Most people aren't using it because V8 (and in some minds, mine included until 5 days ago, all of Javascript) doesn't optimize it. It's a bit of a catch 22, and having alternate engines where that deopt doesn't happen can be the way out. Basically having an alternate engine…
How can that be true? try/catch is as common a JS idiom as a for loop.
This causes significant trouble all over React and many other libraries, as many hot areas of code are covered in try/catches to ensure developer error doesn't blow the whole render. Optimizing it could lead to pretty serious performance gains.
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#95Earlier quoted context omitted.
And that was just the first thing off the top of my head, there are tons of other little performance things that many people consider a "JavaScript thing" instead of a "V8 thing"
Does it matter? If V8 deoptimizes code with try/catch, then I as a developer need to account for that.
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#96Why should a developer care about this? What does ChkraCore bring to the table that V8 doesn't ?
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#97It's important to remember that ChakraCore only currently builds on Windows, so this is only for Windows Node.js builds. The ChakraCore roadmap [1] shows that they plan on porting the interpreter to Ubuntu, but not to Mac OS, and they don't plan on porting the JIT. So even it does go Windows + Linux, it will still be a low-performing toy on Linux. This is vaguely interesting from a technical point of view, but doesn'…
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#98Earlier quoted context omitted.
I really don't want HN to turn into reddit, with half the thread devoted to jokes/memes, so I appreciate self moderation that discourages that.
On the other hand, the subthreads complaining about them inevitably take up more space than the offending comments themselves, and are arguably of less value. Hacker News is already host to memes, trite boilerplate and pseudo-intellectual posing - drawing a line in the sand at humor seems like a futile gesture.
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#99Earlier quoted context omitted.
Dont be silly. There may at some point be an effort to build an 'abstract node api interface' and main maintain bindings to various engines... ...but there's no way v8 will be dropped at any point in the foreseeable future. What would you replace it with? This? no way. We're years away from that even being plausible.
The obvious choice would be mozilla's spider monkey.
Re: Enable Node.js to Run with Microsoft's ChakraCore Engine
#100They should also have the option to use FireFox's engine as well. Who has the fastest JS core these days?