That’s really a hugh story I’ve talked quite a lot with different people (in China in Chinese, sadly). Basicly there’s no performance lost with the usage in Wind.js since 1) the eval is called only once for each method 2) the benchmark shows that 3) we can do precompilation if you really care about “eval”s.
Thanks. Jeffrey Zhao From: Andy Sent: Friday, August 24, 2012 4:14 AM To: [email protected] Subject: Re: [nodejs] Wind.js : An elegant approach to asynchronies JavaScript yeah, google groups can get a bit annoying at times Regarding eval, I'm pretty wary of running your entire async code through it as a string. During this talk on v8 internals at JSConf US, this Russian v8 developer with a long name talks about how v8 runs and optimizes your code. Unfortunately it's not in the video, but during the Q&A section I asked him if v8 could perform the same optimizations for code instantiated with new Function(). He said yes, but it could not optimize eval. I think it had something to do with the ambiguity of the scope eval executes in. I know this is a vague answer, and I hope I'm not misquoting him. I'd like to see some benchmarks of your compiled code vs the original. And it probably wouldn't be that big of a change to compile it to a capital F Function instead, for which a benchmark would also be useful. -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
