Nathan,
It's if you call it using "gnode" instead of "node". You'll have to tell users to install it globally, and here they are all the issues with that.
I'd prefer to require something inside of the script, so users won't even notice it's there if they won't look closely. Which means using programmatic api. But if I understood that correctly, gnode will run regenerator in this case, even if node supports, but wasn't called with harmony.
Or does it still fork in that case? Anyway, setting a flag in runtime sounds simpler. :)
13.12.2013, 21:42, "Nathan Rajlich" <nat...@tootallnate.net>:
--Alex, if --harmony-generators is supported, then gnode will spawn a node instance with that flag passed, rather than the regenerator transpiling. Regenerator is only used on <= v0.11.2, before that flag was implemented in V8.(That implementation detail should be essentially transparent though).On Fri, Dec 13, 2013 at 6:25 AM, Alex Kocharin <a...@kocharin.ru> wrote:I think that setting flags at runtime is still better than using regenerator like gnode does (if you don't care about v0.10 of course).12.12.2013, 23:07, "Alessandro Artoni" <arto...@gmail.com>:Ok, that's definitely too evil :-)
On Dec 12, 2013 8:04 PM, "Timothy J Fontaine" <tjfonta...@gmail.com> wrote:though quite evil, it's also possible to turn features on at runtime https://npmjs.org/package/setflags
On Thu, Dec 12, 2013 at 10:29 AM, Nathan Rajlich <nat...@tootallnate.net> wrote:If you're only interested in the Generators aspect of ES6, then you can use them today even with node v0.10 using gnode: https://github.com/TooTallNate/gnodeCheers!
On Thursday, December 12, 2013 9:00:25 AM UTC-8, Alessandro Artoni wrote:Many thanks!2013/12/12 Gary Katsevman <m...@gkatsev.com>Harmony features won't be on by default on node until they are on by default in v8. You'll still be able to run node with `--harmony` to get these features enabled.Gary Katsevman
gkatsev.comOn Thu, Dec 12, 2013 at 11:52 AM, Alessandro Artoni <art...@gmail.com> wrote:To post to this group, send email to nod...@googlegroups.comHi everybody!I am, like a lot of you, by the new harmony features implemented in v8.I'm starting a new project that would greatly benefits from them, generators and yield in particular and it would be ok for me to support only node >= .12Currently they are available through cli switch in node unstable (0.11)...is there any chance they're going to be on by default when the next stable is released?CheersAlessandro(node rocks!)--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.nodejs+un...@googlegroups.com
To unsubscribe from this group, send email toYou 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.
For more options, visit https://groups.google.com/groups/opt_out.To post to this group, send email to nod...@googlegroups.com--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.nodejs+un...@googlegroups.com
To unsubscribe from this group, send email toTo unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/aXNCkBxGDYE/unsubscribe.
For more options, visit https://groups.google.com/groups/opt_out.----
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 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 post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 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 post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/aXNCkBxGDYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 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 post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 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 post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 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 post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 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 post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.