October Brings Node.js 10.x to LTS and Node.js 11 to Current
medium.com
medium.com
Wow, it looks like Microsoft is really truly supporting this!
I have to be honest, when I first saw they were trying to run their engine in node, I thought it would be like all the attempts before. Half-assed, or done once then not kept up to date.
But not only are they still maintaining it, but they are still improving it!
I really hope that node-chakracore gains more adoption, even if only as an alternative from the v8 monoculture that we have. And that being said, I'm going off now to put my money where my mouth is and install it locally and see how much I can run with it.
* nashorn - started off as a reimplementation of node APIs in java's JS engine, died around 2015 for this purpose
* rhinodo - same as the above, never really got anywhere. no change since 2015
* spidernode - mozilla's take on it, looks like most development started and ended 2 years ago, with only superficial changes since then.
* node-jsc - still being developed, but it's only a few months old, and still isn't even fully caught up to node's version 8 APIs.
The ground is littered with failed attempts at this, and I think that is because it's always a LOT more work than people think, and the work doesn't just stop when you get it running, it keeps going. And you either need a crazy amount of dedication, a wide audience, or a lot of funding to keep it up. And it's hard to stay dedicated without users, it's hard to get an audience when stuff doesn't work, and it's hard to keep funding when the work isn't providing any immediate benefit for your company.
Don't get me wrong, I don't want to dissuade or put down developers working on those projects, I think it's an extremely awesome thing that's well above my ability and I hope that they continue so one day we can see competition in the server-side-javascript space similar to how we see competition in the browser space to really drive innovation. But this stuff isn't easy, and it is really nice to see a company say they are going to build this, then actually put their money down and fund it. And on top of that they are adding new features, new developer niceties, and actually working to make it a viable option, not just a checkbox and a pat on the back for giving it a good try.
Edit: I probably wasn't clear enough that I was joking.
Edit 2: I also found out that the LTS release should receive 30 months of maintenance. They say that end of life for node 10 will be April 2021.
Even with Nodejs I have code running that is more than 6 years old happily doing useful stuff.
So I'm not sure I understand your comment.
There is just a lot of churn in the library/framework space for JS. There are constantly people trying to invent "like X but better", where X can be absolutely anything in your JS workflow.
If you don't use npm and only rely on the builtin node APIs this would not apply to you as much, though.
On top of that there are always new language features being introduced to EcmaScript and implemented in V8. This means that if you're not using those latest features, some might say your code is outdated.
Complaints like this always mystify me. Would things be better if what you describe wasn't the case?
I usually use Express(2010), Socket.io(2014) and React(2013) for new projects.
The libraries that break with new versions are the ones that rely on exotic features.
I've been working on react-native recently, and this is by far the most difficult "framework" (or system, or library, or whatever else you want to call it) i've ever had to work with regarding dependencies.
Every. single. change. breaks. And it seems to have deep dependencies on exact versions of many other tools, and changing them causes all kinds of hell. It's awful, and it's what I see as "dependency hell". We are like 5 patch versions behind latest right now, but every other patch version between ours and current either won't build on one platform, won't start due to mismatched dependencies, requires an alpha version of react proper, or breaks all of our tests.
But before that i've worked on at least a dozen mid-sized+ node and browser based projects, and i've never had major issues with upgrades. For the most part they work if you stay within patch or minor versions, and even major upgrades only really hurt if you are impacted by the breakage, which in my experience is pretty rare (just looking at one monorepo-style project that has about 150 direct dependencies, i would probably spend about 2 hours a month on keeping them up to date, and just for fun, i went back to a commit from 3 years ago just now, and it still installs and runs fine.
If you stick to documented features, don't try to abuse or be clever with interfaces that aren't well defined, wrap any "iffy" libraries in your own interfaces to make switching or re-implementing them easier, and overall vet your deps a bit before installing them, it's pretty smooth sailing.
2008 BrowserJS still works in today's browsers.
2012 NodeJS code still works today (look at this v0.10.48 NodeJS docs for example: https://nodejs.org/docs/latest-v0.10.x/api/http.html )
The nature of JS is that there are very few breaking changes allowed from an end-user perspective even between major versions.
(6 months regular release support, 18 months active LTS, 12 months maintenance LTS)
For details, see https://nodesource.com/blog/understanding-how-node-js-releas....
Edit: The original title spoke about huge latency and performance improvements. It had been changed since I wrote this, hence this comment is now obsolete.
https://nodejs.org/api/globals.html#globals_webassembly
A list of WebAssembly features implemented by Node.js can be found here (the right most column):
https://developer.mozilla.org/en-US/docs/WebAssembly#Browser...
I couldn't get a basic example working because `SharedArrayBuffer` isn't available in node. I wouldn't be surprised if the other bits aren't either.
Is there a better link for the title or a better title for the link?