Live data from Hacker News

ChakraCore GitHub repository is now open

blogs.windows.com

321–324 of 324 posts

Re: ChakraCore GitHub repository is now open

#321
post #270

Earlier quoted context omitted.

Hey, maybe you're the right person to ask - why does `arguments` so easily deoptimize in every major engine (well, V8 and SpiderMonkey, at least)? It seems that engines could easily detect the most common munging of `arguments` (such as [].slice.call(arguments), Array.prototype.slice.call(arguments). Array.from(arguments) and the like) and allow those to be optimized. Doing so would speed up a very large amount of co…

> Do you have any insight on why that still has not been done after so many years? I can't really speak for either V8 or SpiderMonkey but I think there are few reasons - a) nobody got to doing it, even though it was discussed multiple times, e.g. for V8 it just was not the right time to implement it as its trying to completely revamp its optimization pipeline and certain Crankshaft idiosyncrasies make this sort of op…

Thanks for that.

I'll give you an example of where it hits hard - Event Emitters. Some of the largest EE libs in the NodeJS ecosystem still munge the arguments object to pass args to listeners. I've sent PRs to some of them, but the deopt caused by the arguments munging seems to slow down the whole function and everything it calls, which can be quite significant (like an entire render loop).

ES6 solves this problem nicely but it will be a long time before we can deploy it natively. Thankfully, Babel handles it correctly and uses a proper for loop. So the need to fix this is less urgent than ever.

Re: ChakraCore GitHub repository is now open

#322
post #300

Earlier quoted context omitted.

> In that one case I'm pretty sure the words we were using were all English, but I'm not sure we had the same meaning I do not get what you mean here, are you willing to elaborate a bit? :)

Sorry I was trying to be too clever. I mean that the things that they were saying were so complex that I was completely unable to understand a single word of it. That's a bit over stated too, but the short version is that they confused me to the point that I didn't think I'd be able to make a valuable contribution to the project. To break down my phrasing above, "I know you're speaking English, but I don't know what…

Haha, okay, now I see what you mean :)

Re: ChakraCore GitHub repository is now open

#323
post #134

Earlier quoted context omitted.

Even if microsoft told, that doesn't mean we should automatically trust it. The could be wrong or lying. I would prefer source code, but someone will eventually do packet captures to figure at least some of it out.

You have no way of trusting any other company that releases closed systems either. Like iOS, or manufacturers Androids. You have to trust some institution at some point.

This is true, but microsoft has a particular history of malice few other companies can match.

Re: ChakraCore GitHub repository is now open

#324
post #65
post #5

> Finally, you can also use ChakraCore as the JavaScript engine in Node. This is interesting. You can use it as an alternative to v8 for node.js

Microsoft is already working on lighting Node.js with ChakraCore. See https://github.com/Microsoft/node

https://github.com/nodejs/node/pull/4765
Post reply on HN