News for hackers. Stuff that matters.
Re:Node.js v4 Release Timeline by rakk on Thursday September 03, 2015 @07:51PM (#10168143)
Most excited about v8 4.5. Native support for arrow functions and stuff like Array.from really makes the dev experience feel so much smoother.
Re:Node.js v4 Release Timeline by seiji on Thursday September 03, 2015 @08:23PM (#10168224)
I may be out of the loop here, but wasn't the big benefit of JavaScript everywhere that it's the same JavaScript everywhere?

Does it matter if server-side is JavaScript Next Gen and browsers lag by a few years of features?

Too many more iterations of this and you'll be back to two programming languages again and web developers heads will explode from having to learn two things instead of one things.

Re:Node.js v4 Release Timeline by sciolistse on Thursday September 03, 2015 @08:44PM (#10168283)
It's been "the same javascript everywhere" mostly due to the ECMAScript group kinda stalling for the past 15 years. The stabilisation created through that has been useful, but the plan is to transition the spec onto a one-year update cycle.

That means that going forward we'll likely have more feature mismatch between engines, making backward compatibility compilers pretty important.

I'm not entirely sure if that's good or not.

Re:Node.js v4 Release Timeline by rakk on Thursday September 03, 2015 @09:15PM (#10168364)
Chrome (logically) already supports features of the new JS spec that 'only now' get put into node. With automatic updates for browser being the trend currently I also think that it is now easier to keep the server and browser support for JS in sync.
Re:Node.js v4 Release Timeline by mattkrea on Thursday September 03, 2015 @09:56PM (#10168474)
Not necessarily. I don't think the v8 team really consider the Node project so breaking changes in v8 take some time to get merged into Node/io.js. This is the reason that arrow functions are only shipping now when v8 marked them complete a while back. AFAIK Node is somewhere around 3+ months behind Chrome.
Re:Node.js v4 Release Timeline by ofrobots on Thursday September 03, 2015 @10:44PM (#10168592)
This is not really accurate. Arrow functions shipped in Chrome on Tuesday (Sep 1) with Chrome 45 (V8 4.5).
Re:Node.js v4 Release Timeline by mattkrea on Thursday September 03, 2015 @11:31PM (#10168695)
Gotcha. I guess marking them "shipped" just puts them into canary? That was done a while back.

https://code.google.com/p/v8/issues/detail?id=2700

Re:Node.js v4 Release Timeline by Arnavion on Friday September 04, 2015 @04:12AM (#10169278)
V8 has had arrow functions for a long time, but until recently they were not fully spec compliant. That is also why iojs put them behind a flag (separate from the flag that enabled stable harmony features).
Re:Node.js v4 Release Timeline by ofrobots on Friday September 04, 2015 @11:28AM (#10171059)
Yeah, 'ship' means different things in different contexts. In the context of your original comment, node stable is getting arrow functions within a week of Chrome stable getting them.

In general, io.js has been very good at picking up stable V8 soon after it ships in Chrome. The exception was V8 4.3, which was not picked up because of API compatibility issues.

This is not a problem for Chrome because chrome doesn't expose the V8 C++ API to large body of third party module writers like Node does. It takes time to deal with some API changes.

Re:Node.js v4 Release Timeline by untog on Thursday September 03, 2015 @11:36PM (#10168707)
Sadly, it's inevitable. But at least with things like Babel we can still write the same code for browsers, just with an extra transpile step.
Re:Node.js v4 Release Timeline by findjashua on Thursday September 03, 2015 @10:37PM (#10168572)
with babel you can use the latest js everywhere.
Re:Node.js v4 Release Timeline by Killswitch on Friday September 04, 2015 @12:49AM (#10168852)
Latest JavaScript that can be transpiled to ES5 anyway.
Re:Node.js v4 Release Timeline by pluma on Friday September 04, 2015 @04:17AM (#10169292)
Except for symbols and Object.observe.

Well, you can emulate those in ES5 but it's just not the same.

Re:Node.js v4 Release Timeline by mattkrea on Thursday September 03, 2015 @07:53PM (#10168151)
This is huge. I've been using RxJS lately and arrow functions will make this 100x better.
Re:Node.js v4 Release Timeline by paperwork on Friday September 04, 2015 @12:11AM (#10168772)
Doesn't this include the new class syntax? If so, will the standard libraries change as well to use the new classes?
Re:Node.js v4 Release Timeline by Killswitch on Friday September 04, 2015 @12:47AM (#10168849)
Yes, classes are stable in V8 4.5 so Node.js 4.0 will have classes without runtime flags.
Re:Node.js v4 Release Timeline by k__ on Friday September 04, 2015 @03:56AM (#10169243)
Is there a list with all the supported ES2015 features?
Re:Node.js v4 Release Timeline by egeozcan on Friday September 04, 2015 @05:33AM (#10169441)
Probably the same as io.js[0].

[0]: https://iojs.org/en/es6.html

Re:Node.js v4 Release Timeline by k__ on Friday September 04, 2015 @09:19AM (#10170183)
Why are these lists always missing import/export/modules?
Re:Node.js v4 Release Timeline by mkozlows on Friday September 04, 2015 @10:04AM (#10170465)
Because Node uses CommonJS modules.