Does `node --harmony` works stable on all platforms?

170 views
Skip to first unread message

Alexey Petrushin

unread,
Aug 14, 2014, 4:25:02 PM8/14/14
to nod...@googlegroups.com
Want to try generators `node --harmony` but worried a little about:

- if it works on all platforms?
- does the API stable and won't be changed in future?

Ben Noordhuis

unread,
Aug 15, 2014, 3:35:06 AM8/15/14
to nod...@googlegroups.com
No and no, in general. --harmony is for experimental features whose
spec hasn't finalized yet or whose implementations aren't fully baked.
Once a Harmony feature is considered stable, it's enabled by default
(c.f. Promises in node.js master.)

klr...@gmail.com

unread,
Aug 15, 2014, 12:08:20 PM8/15/14
to nod...@googlegroups.com
been playing with it on debian wheezy, coffee + koajs + node-mysql, try catch gets all the sql errors so you can do really nice transactions. looks ok at first glance I'll start converting my apps to dump callbacks. Not that I mind the callbacks but you get all the errors with the 'yield way' 

Mario Vejlupek

unread,
Aug 16, 2014, 4:13:46 AM8/16/14
to nod...@googlegroups.com
Hi,

- yes in general all nodejs functionaly works on all supported platforms
- no it might, but not in near future as upcomming nodejs 0.12 and current Firefox has it already implemented

Checkout http://koajs.com/ it aims to replace Express by using generator functions and avoiding callback hell

Mario

Dne čtvrtek, 14. srpna 2014 22:25:02 UTC+2 Alexey Petrushin napsal(a):

Rick Waldron

unread,
Aug 16, 2014, 11:19:56 PM8/16/14
to nod...@googlegroups.com
On Sat, Aug 16, 2014 at 4:13 AM, Mario Vejlupek <ma...@vejlupek.cz> wrote:
Hi,

- yes in general all nodejs functionaly works on all supported platforms
- no it might, but not in near future as upcomming nodejs 0.12 and current Firefox has it already implemented

Both are incomplete implementations. 

Rick
 

Checkout http://koajs.com/ it aims to replace Express by using generator functions and avoiding callback hell

Mario

Dne čtvrtek, 14. srpna 2014 22:25:02 UTC+2 Alexey Petrushin napsal(a):
Want to try generators `node --harmony` but worried a little about:

- if it works on all platforms?
- does the API stable and won't be changed in future?

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/96e3d152-bcd6-4e8b-948d-f4416af2470b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mario Vejlupek

unread,
Aug 17, 2014, 4:20:45 AM8/17/14
to nod...@googlegroups.com
Hi Rick,

to clarify you anwser a bit, yes you are right, generators in existing implementations are incomplete, as it is draft http://wiki.ecmascript.org/doku.php?id=harmony:generators it's even suprising that they are in any stable envirnonment(talking about Firefox).

But what in my opinion, is now importat that they are usable in node as coroutine solution to callback hell. If you have any notes on how current implementation would change in near future please let me know.

Mario


Dne neděle, 17. srpna 2014 5:19:56 UTC+2 Rick Waldron napsal(a):

Rick Waldron

unread,
Aug 18, 2014, 12:45:06 AM8/18/14
to nod...@googlegroups.com


On Sun, Aug 17, 2014 at 4:51 PM, Rick Waldron <waldro...@gmail.com> wrote:



On Sun, Aug 17, 2014 at 4:20 AM, Mario Vejlupek <ma...@vejlupek.cz> wrote:
Hi Rick,

to clarify you anwser a bit, yes you are right, generators in existing implementations are incomplete, as it is draft http://wiki.ecmascript.org/doku.php?id=harmony:generators

This is just a strawman, the latest specification draft is maintained online here: https://people.mozilla.org/~jorendorff/es6-draft.html

 
it's even suprising that they are in any stable envirnonment(talking about Firefox).

It's not very surprising, the spec is still in development, will be frozen Dec 2014, but won't be officially published until June 2015.


But what in my opinion, is now importat that they are usable in node as coroutine solution to callback hell.

As long as you're ok with a potentially moving target, then yes.

 
If you have any notes on how current implementation would change in near future please let me know.

Rick Waldron

unread,
Aug 18, 2014, 12:45:24 AM8/18/14
to nod...@googlegroups.com
On Sun, Aug 17, 2014 at 4:20 AM, Mario Vejlupek <ma...@vejlupek.cz> wrote:
Hi Rick,

to clarify you anwser a bit, yes you are right, generators in existing implementations are incomplete, as it is draft http://wiki.ecmascript.org/doku.php?id=harmony:generators

This is just a strawman, the latest specification draft is maintained online here: https://people.mozilla.org/~jorendorff/es6-draft.html

 
it's even suprising that they are in any stable envirnonment(talking about Firefox).

It's not very surprising, the spec is still in development, will be frozen Dec 2014, but won't be officially published until June 2015.

But what in my opinion, is now importat that they are usable in node as coroutine solution to callback hell.
As long as you're ok with a potentially moving target, then yes.

 
If you have any notes on how current implementation would change in near future please let me know.

klr...@gmail.com

unread,
Aug 18, 2014, 8:24:10 AM8/18/14
to nod...@googlegroups.com
issue is not to gallop into production now even if the experimental looks surprisingly solid. But one has a pretty realistic environment to scramble up the learning curve and rewrite stuff for when .12 comes out with all seals, my hat off to all contributors for that because it is a big time saver  


El jueves, 14 de agosto de 2014 22:25:02 UTC+2, Alexey Petrushin escribió:
Reply all
Reply to author
Forward
0 new messages