Live data from Hacker News

Microsoft Edge's JavaScript engine to go open-source

blogs.windows.com

121–130 of 283 posts

Re: Microsoft Edge's JavaScript engine to go open-source

#121
post #109
post #19

Wait, Edge does better on ES6 coverage than both Chrome and Firefox? Microsoft have seriously stepped up their game, especially seeing as it's now neck and neck for performance with Chrome: http://venturebeat.com/2015/09/10/browser-benchmark-battle-s...

The next Firefox Nightly build should get 84% on that page, much closer to Edge than Firefox 44 (74%). I work on SpiderMonkey and I'm super excited about this news. All JS engines have added more-or-less similar performance optimizations but often implemented differently and I'm really interested to see what the Chakra team did. I'd be happy to write a blog post on it next month, if people are interested.

Super interested! I often find technical blog posts like this years later and I'm really grateful to the people who donate their time to the difficult task of writing them.

Re: Microsoft Edge's JavaScript engine to go open-source

#122
post #114
post #105

Earlier quoted context omitted.

Well, from what I've read on the internet, their culture is changing, at least at the grass roots level. A ton of people promoting Open Source & other similar stuff. It's hard to say what this means for the higher levels, but many people think that Nadella's appointment says that Microsoft does want to change. And luckily for US, Microsoft is and will be the underdog for a while at least, in most markets they are in:…

>And luckily for US I am having hard time understanding why luckily for US ? Disclaimer : I am not US citizen nor inside us.

I think the parent comment meant "us" like "you and me," not the USA.

The capital letters were just for emphasis.

Re: Microsoft Edge's JavaScript engine to go open-source

#123
post #118
post #103

Earlier quoted context omitted.

I think this is perfectly valid point.We can think of it like this, they are pretty competitive and have shitload of resource. but they are not innovative , the moment , they become leader they lose their interest toward growing and growing, although they have huge amount of resource which help them the moment they become underdog. I think this is cultural problem with Microsoft.

but they are not innovative They've had a seperate research department for over 20 years or so, and if memory serves me well quite some innovative things came (and still come) out of there. So I think they is too general in your phrase - there is innovation (also look at recent Surface line etc) but you're right in saying that it doesn't always come out and doesn't make it to the market, probably because the they you…

Exactly , You correctly rephrased that. I want to note last time I checked people who works at R&D in Microsoft , I literally blown away by their name. Maybe more big name than every other company in whole IT industry.

But the fact as you mention remain correct. They are not trying to bring new and innovative stuff to people's life. At least not when they are leader .

Re: Microsoft Edge's JavaScript engine to go open-source

#124
post #10

I have a somewhat off topic question: is there anything in the design of Javascript that mandates single-threadedness? Could any Javascript engine implement threads? I'm asking because I'm wondering if Node.js's evented approach is the only way to do things.

The JVM implementations of Javascript (e.g. Nashorn) support multithreading. Imho it's not a good thing, because all existing Javascript code is written with singlethreading in mind and lots of stuff will break if you use it from multiple threads. Multithreaded code for Nashorn requires the use of JVM synchronization primitives, which are then not supported by other Javascript engines.

Re: Microsoft Edge's JavaScript engine to go open-source

#125

Earlier quoted context omitted.

Not Node.js per se but a separate project that ran on the Chkara core and worked hard for cross-compatibility would be more than welcome.

A node.js fork where you can optionally swap out v8 for chakra: already baked by none other than microsoft. They hope to merge it back into upstream, that seems possible given the recent history of the Node.js project. Of course, it is very very unlikely that npm modules with native code work in Node.js/Chakra just yet.

Yeah I just seen it on Reddit. Nice job MS.

https://github.com/Microsoft/node

Re: Microsoft Edge's JavaScript engine to go open-source

#126
post #88
post #85

Earlier quoted context omitted.

Well, historically, when Microsoft was still in competition-mode, Internet Explorer was kicking Netscape's ass with the later versions. With the first few versions they were playing catch-up, but if I recall correctly, IE 4 and IE 5 actually had more features and better standards compliance than the current Netscape versions, as did IE 6 at its launch. "IE hell" started once Microsoft won the race.

This is very true. Microsoft are at their best when they're the underdog

Everyone is at their best when they are the underdog from my experience.

Re: Microsoft Edge's JavaScript engine to go open-source

#127

Earlier quoted context omitted.

Developers of large JavaScript codebases have come to realize that class-based OO is exactly what they need. Prototype OO sounds interesting in theory, but in practice it tends to not be what's needed. Projects that use it end up trying to poorly imitate class OO. This wouldn't necessarily be a problem, except it isn't done consistently. There are multiple approaches, some of them which don't mesh well with others. C…

Not just that - there are performance implications as well due to browsers being able to use a fixed allocation of memory with classes' properties instead of a dynamically resized amount for objects, which results in less efficient algorithms able to be applied internally for the browser for doing similar operations.

In principle, in many cases it's possible to allocate the right amount of space for an object's properties, under the assumption that most objects from a single constructor gain properties in the same order.

Re: Microsoft Edge's JavaScript engine to go open-source

#128
post #106
post #66

Out of curiosity, why rebuilding a whole new engine rather than using/improving V8?

They've already built it, I think before V8 existed or around the same timeframe.

It was years later. V8 shipped in 2008, having been in development for (IIRC) three years. Chakra got its first public preview release in 2010, and shipped in 2011—I strongly suspect it started after V8 first shipped.

Re: Microsoft Edge's JavaScript engine to go open-source

#129
post #88
post #85

Earlier quoted context omitted.

Well, historically, when Microsoft was still in competition-mode, Internet Explorer was kicking Netscape's ass with the later versions. With the first few versions they were playing catch-up, but if I recall correctly, IE 4 and IE 5 actually had more features and better standards compliance than the current Netscape versions, as did IE 6 at its launch. "IE hell" started once Microsoft won the race.

This is very true. Microsoft are at their best when they're the underdog

And by that logic we should make sure they remain an underdog.

Re: Microsoft Edge's JavaScript engine to go open-source

#130
post #88

Earlier quoted context omitted.

This is very true. Microsoft are at their best when they're the underdog

The path is always easier when there's someone there to show you the way, and a clear example of where not to go. Mozilla had a clear path forward with Firefox against IE, and had Navigator as an example of what not to do. Microsoft is now in that position with Edge.

[deleted]
Post reply on HN