r/programming • • Dec 05 '15

Microsoft Edge’s JavaScript engine to go open-source

https://blogs.windows.com/msedgedev/2015/12/05/open-source-chakra-core/
1.6k Upvotes

504 comments sorted by

625

u/khaki0 Dec 05 '15

This is not the Microsoft I grew up with. Stop open sourcing.

But in all seriousness, I like it.

102

u/Himrin Dec 05 '15

If only we got more traction on VS on multiple platforms.

109

u/adolfojp Dec 05 '15

I don't see that happening. Microsoft realized that they lost the fight on web and application servers so they made their server stuff cross platform. But they know that they're still dominant on the desktop so it makes sense for them to promote Windows as a platform for cross platform development. The day that Microsoft releases a cross platform version of Visual Studio is the day that Windows is no longer profitable. Besides, they want people on Windows because they need people to write Universal Apps for their mobile platforms which can't be done in Mac or Linux.

105

u/StrangeWill Dec 05 '15

I'd argue it's simply because of the stupidly large codebase, it's simply a huge undertaking even if Microsoft wanted to do it especially when portability is not a concern the first 7 times around ;)

I'd like to see them see about fleshing out VS Code into something more robust though.

46

u/badcookies Dec 05 '15

Til that windows 7 is less than half the size of osx 10.4

37

u/ironnomi Dec 06 '15

Having seen both code bases extensively, I can say there can be NO direct code comparisons between the two.

In general, Apple's ObjC code easily takes up 4x the space as the typical Windows C++ code.

→ More replies (27)
→ More replies (24)

39

u/keef_hernandez Dec 06 '15

stupidly

Visual Studio is basically a mini OS. You can subscribe to news feeds and web surf inside of it. You run setup, you wait until it finishes and bam you are ready to start coding. There are definitely benefits to that philosophy, especially for new developers.

On the other hand, I've recently switched to a job where I spend all of my time in Unix terminals and I can't image ever going back.

22

u/northrupthebandgeek Dec 06 '15

Visual Studio is basically a mini OS.

So it's basically a Windows-only Emacs?

7

u/quanticle Dec 06 '15

That's one way of putting it, yeah. And the same criticisms that were applied to emacs (so bloated, uses lots of RAM, etc) apply equally to Visual Studio (or pretty much any other IDE out there).

→ More replies (1)
→ More replies (1)

41

u/Vaughnatri Dec 06 '15

Curious. I spend much of my time nose deep in visual studio. It seems like an awesomely efficient ide. What is it about working in terminals that is superior?

108

u/[deleted] Dec 06 '15

The upvotes

17

u/BowserKoopa Dec 06 '15

All the tools being separate and designed independent of each other means dead-easy scripting and Interpol with other tools.

8

u/peterwilli Dec 06 '15

For me it's more than just dev environment. I spend even my childhood in Linux (from age 9). I dont know how to use windows anymore. If people need help with their computers (use windows) I dont know what to say until I see their desktop so I can figure out how it works :P

So I am so used to programming and working with linux and terminals that I can work faster on that than using Visual Studio or something.

Needless to say, I do run some sexy IDE's on the side like WebStorm and IntelliJ IDEA and Atom (all for different purposes)

→ More replies (22)

9

u/emilvikstrom Dec 06 '15

Ah, so the reason they won't bring VS to other platforms is that they do not want to compete with Emacs!

6

u/northrupthebandgeek Dec 06 '15

Too bad Emacs has a Windows version, so their efforts are in vain.

22

u/[deleted] Dec 06 '15

I prefer Emacs for editor-as-OS capabilities.

8

u/hardolaf Dec 06 '15

I prefer my vim with a dab of Linux.

→ More replies (4)

2

u/1337Gandalf Dec 06 '15

This is the problem with Microsoft, they've got all those fancy DLLs, yet NOTHING is actually encapsulated into it's own section, so they just keep reinventing the same shit.

17

u/theonlylawislove Dec 05 '15

VS Code 2 years from now will be awesome. They are putting a lot of effort into it to make it sublime on steroids.

3

u/1337Gandalf Dec 06 '15

I highly doubt that...

It took Microsoft like 8 years to slightly disentangle the Windows code base?

6

u/Bromlife Dec 06 '15

If it's still just basically Electron then I'm not interested.

They are putting a lot of effort into it to make it Sublime on really slow steroids.

4

u/theonlylawislove Dec 06 '15

It has a slower start up time, but beyond that, there is nothing wrong with the performance. Of course though, it will never beat sublime.

→ More replies (7)
→ More replies (2)
→ More replies (4)

6

u/SomeNetworkGuy Dec 05 '15

Am I reading that right? 50 million lines of code? How is that even possible?

23

u/agocke Dec 06 '15

Roslyn (C# & VB compilers + IDE) alone is 3 million lines. Could I believe that there are 16 Roslyns in VS (think C++, JS, TypeScript, F#, Intellitrace, etc)? Definitely.

16

u/[deleted] Dec 05 '15

I doubt those numbers are accurate. Obviously open source projects we can easily verify the number.

I heard the 50M included all dependencies, including things like the operating system and such.

But I wouldn't trust some random number for proprietary codebases, it's impossible to verify.

3

u/Danthekilla Dec 06 '15

Well a very small portion is open source "Roslyn" and that is 3 million lines of very nice code. It seems very plausible that there is 15 times that in the rest of the suite.

12

u/speedisavirus Dec 06 '15 edited Dec 06 '15

Its incredibly mature, complex, and has tons of backwards compatibility. Think about everything it does out of the box and has for like a decade now. It's monumentally complex. Now, if they make a clean cut I bet its size would drop down to around 25 million.

The real wtf in all this is that the healthcare.gov site has 500,000,000 lines of code. No wonder why it was such a piece of shit. Whoever was in charge of that...well...should never run a project again.

9

u/[deleted] Dec 06 '15 edited Dec 06 '15

*500 Million lines of code for healthcare.gov according to the graph.

How the hell is that possible ?

19

u/tornato7 Dec 06 '15

I saw the code for healthcare.gov, I'll paste some of the it here:

Healthcare.giveHealthcare(citizens[0]);
Healthcare.giveHealthcare(citizens[1]);
Healthcare.giveHealthcare(citizens[2]);
...
Healthcare.giveHealthcare(citizens[297000000]);

Apparently they were getting paid per line of code.

→ More replies (4)

7

u/speedisavirus Dec 06 '15 edited Dec 06 '15

I know. I can't possibly comprehend how that is possible. They had to have hired an enormous amount of the most incompetent people on the planet for that to happen. Definitely a fuck ton of people to write 500,000,000 lines in that time period regardless of how shitty they were.

→ More replies (4)
→ More replies (8)

3

u/dpgaspard Dec 06 '15

That whole project was stupid from the beginning. It's 50 state ran health-care systems, not 1 universal system. They should have made every state responsible for their site, not try to make a site that does everything, for groups it can't govern

→ More replies (6)
→ More replies (3)

4

u/OffbeatDrizzle Dec 06 '15

what the fuck are car manufacturers playing at? how many lines of code does it take to turn my windscreen wipers on?

3

u/Thought_Ninja Dec 06 '15

There are a number of certifications and redundancies required for code and computers run on vehicles.

→ More replies (1)
→ More replies (11)

18

u/darkstar3333 Dec 05 '15

Microsoft realized that they lost the fight on web and application servers

Not really, they just realized that blended environments are everywhere and it wasn't worth battling to convert an entire enterprise to Windows.

They would rather have you use a bit of Microsoft stuff vs none of it. Hyper-V has a large presence.

3

u/cosmo7 Dec 06 '15

Also it's pretty obvious that there's little growth potential for desktop Windows. If you have 95% of the market how are you going to get any meaningful growth?

2

u/Thought_Ninja Dec 06 '15

Bingo. They've expanded into data. Data is the new gold; just ask google, who recently released their AI Tensor Flow as open source(machine learning requires a shitton of data to do much of anything with).

→ More replies (2)
→ More replies (1)

6

u/Himrin Dec 05 '15

Yeah, I know... I can wish, though.

3

u/jermany755 Dec 06 '15

Couldn't you make the same argument about Office?

2

u/MoreOfAnOvalJerk Dec 06 '15 edited Dec 07 '15

Literally the ONLY reason I bought my Dell xps over a macbook pro was because of VS

1

u/Speedzor Dec 06 '15

Considering Visual Studio is written in WPF and has a lot of Windows-specific stuff built-in, you're extremely unlikely to ever see a full-fledged cross-platform VS. VSCode was basically the answer to that request and once it has gone through a few more major versions I could see it becoming an acceptable alternative. Right now it's more an editor than an IDE though.

1

u/H3g3m0n Dec 09 '15 edited Dec 09 '15

I suspect MS are loosing ground on VS. There has been the whole agile/devops movements, most of those tools are primarily on Linux and might work on Windows with some pain. Software aside the agile culture is very much Linux/OSX.

And with the whole 'desktop is dying' thing, most people are developing webapps, phone apps and so on. Which aren't VS's domain. Hence Visual Studio Code. And Linux and OSX both hold a fairly large share of those devs.

Business is often Java and Eclipse/InteliJ will run where ever.

Also developer desktops aren't likely a huge market anyway.

Besides, they want people on Windows because they need people to write Universal Apps for their mobile platforms which can't be done in Mac or Linux.

Any sane dev is going to be targeting Android/iOS first due to the market share, meaning MS are going to entice developers to port from those platforms.

1

u/[deleted] Dec 05 '15

Visual Studio has Android support now, as well as support for Clang. I think it makes huge sense for them to have it run on other platforms now.

The only thing that makes it unlikely anytime soon is how much work would be involved, and how many other closed platform code bases would have to be dealt with along the way.

→ More replies (15)

18

u/vivainio Dec 05 '15

VS Code is their cross platform IDE. The old VS is probably a lost cause as far as cross platform aspect goes

9

u/domy94 Dec 05 '15

Well seeing as the front-end of the fully-fledged IDE is a WPF application, yeah you probably won't see it ported unless they manage to somehow port WPF as well.

4

u/theonlylawislove Dec 05 '15

Also, VS Code is html/CSS/js. That makes cross platform UI extremely easy.

→ More replies (2)

22

u/Himrin Dec 05 '15

I definitely do not think that there is a comparison for everything that VS does for all of its supported languages vs VSCode.

No support, other than intellisense and completion for C#. No debugging nor compiling for C# either. Not to mention the lack of UI creation and rendering.

12

u/Eirenarch Dec 05 '15

Has it ever occurred to you that maybe VS Full is so good because they didn't have to bother porting to different platforms and could focus on building the best experience with the best technologies even if they were Windows specific?

14

u/[deleted] Dec 05 '15

Or that VS full is so good because they had years to work on it while VS Code has been released in April and only reached v0.10 recently?

→ More replies (4)

16

u/berkut Dec 05 '15

Yep. Doing cross-platform development well is hard - especially for large GUI applications.

Even if you end up using Qt or something, there's always issues with event loops working differently on different platforms, and you having to write custom filter code to deal with that (mostly OS X in that particular case).

Then for reading files you've got differences between Windows and OS X/ Linux for character encoding and the way files get flushed to disk / cached at OS level...

You've got different default stack sizes between platforms so bugs crop up in different ways on different platforms.

If you're doing 3D stuff (so OpenGL / D3D) you've got to deal with fairly crappy OS X drivers in general for graphics (it's got better recently, but it's still a mess), the open source drivers on Linux generally are weird, and only the proprietary NVidia stuff is actually any good for high end (we're talking VFX level here) stuff.

And then when you've got three different builds of an app for the three different platforms, you've got to QA/Test it three times, and automating tests of GUI stuff is really hard so it's mostly manual work.

The alternative is a core C++ library, which on each platform is wrapped in the platform's natively-written specifically-built GUI. And that involves at least two different languages (maybe 3 if you use C# for Windows), with completely different GUI toolkits.

→ More replies (1)

26

u/[deleted] Dec 05 '15

I doubt that's why. I think the reason is just that an impressive amount of engineering by skilled programmers and designers went into it. It's not like microsoft doesn't hypothetically have the resources to make a product just as good that's cross platform, they simply lack a reason to do so. Office didn't get any worse when they started coming out with that for mac

16

u/installation_warlock Dec 05 '15

"Office for Mac" is not a build of "Office for Windows". It's a separate product and it doesn't have feature parity with the Windows version.

→ More replies (1)

3

u/cc81 Dec 05 '15

It would be a huge amount of work and up to now most of the things you produce with it would not even compile on other platforms.

→ More replies (5)
→ More replies (9)
→ More replies (8)
→ More replies (3)

1

u/itslenny Dec 05 '15

The old VS is probably a lost cause**.** as far as cross platform aspect goes

FTFY - (It's so bloated and slow... VS Code is awesome)

→ More replies (3)

6

u/[deleted] Dec 06 '15

Stay strong. We can always roll back to IE.

3

u/i_spot_ads Dec 06 '15

Microsoft open sourcing, Apple open sourcing, what's wrong with them

2

u/barsoap Dec 06 '15

Microsoft seems rather intent on going the way of IBM, indeed.

Others will take its place.

-3

u/barcap Dec 05 '15

Well, M$ giveth one hand and taketh the other. All in all, MS is really the good guys these days. The real baddies ... Appgle.

0

u/[deleted] Dec 05 '15

[deleted]

15

u/[deleted] Dec 05 '15

But my main concern is when I see big corporate doing this, because I don't know if they are doing this because they really believe in this or if they are looking for folks to work for free.

I don't think this is the reason MS is doing it. They are doing it to gain some good will among developers (after losing so much of that good will in the aughts).

It's great, I think Nadella is great, and I think Microsoft has a bright future.

→ More replies (2)

12

u/salgat Dec 05 '15

You're forgetting that on the flip side, they are providing likely millions of dollars in professional man-hours freely available for anyone to see and learn from now. Open source is not one sided and it's not like Microsoft open sourced an empty repo and let others do all the work.

3

u/[deleted] Dec 05 '15

I think their motivation is probably getting on the good side of devs, rather than free labour.

3

u/[deleted] Dec 05 '15

Free as speech, not free as beer. Open source does not equal to working for free, in fact you are encouraged to ask as much money as you can.

0

u/[deleted] Dec 05 '15

[deleted]

23

u/bterlson_ Dec 05 '15

I work on the Chakra team and can confirm that this has been a HUGE effort for us and many others around the company, but we are way excited to finally be on the home stretch!

2

u/Neebat Dec 05 '15

Historically, your company has shown a great deal of reluctance to follow established standards. How important are open standards like Ecma to the Chakra project?

15

u/bterlson_ Dec 05 '15

It's HUGELY important to us. I'm currently serving as editor of the ECMAScript standard, driving a number of proposals (eg. async functions, regexp improvements, and others) and have been working on a number of OSS projects for improving the spec itself (eg. ecmarkup). We're also big believers in Test262 (ECMAScript's official test suite) with one of my esteemed colleagues serving as that project's editor as well.

At this point I think it's safe to say that standards are a core part of our DNA :)

4

u/dilijev Dec 06 '15

Disclaimer: I work for the Chakra team.

The open-source work doesn't end with making the sources available, either. We will still be working hard to add features we've already planned out as well as new features on the horizon. We definitely hope to get feedback from the community and react to it in the open as we work on those features and as we update our roadmap.

We're dedicated to incorporating quality contributions to our code. Our current plan involves doing our code reviews in the open, so that the community can get involved with our changes, just as much as we can get involved with theirs. We plan to treat external contributions very similarly to contributions that come from within our team. And to make sure that those contributions are compatible with our closed scenarios (like Edge), developers on our team will adopt and closely review and test new external code before accepting a contribution.

→ More replies (11)

63

u/[deleted] Dec 05 '15

Can this run standalone on raspberry pi, linux, osx? Or does it require some form of windows?

163

u/bterlson_ Dec 05 '15 edited Dec 05 '15

Hey, I work on the Chakra team.

Chakra Node can run some IOT devices. See here: https://blogs.windows.com/buildingapps/2015/05/12/bringing-node-js-to-windows-10-iot-core/.

Cross-plat, as mentioned, is coming later, but we're super eager to hear from you guys in the meantime what platforms you want to see supported!

Edit: seriously guys, what platforms do you want? If no one says anything I'm going to pick Solaris. ;)

58

u/lasermancer Dec 05 '15

Linux is the obvious choice here

16

u/dilijev Dec 06 '15

Hey, I work for the Chakra team as well.

Linux is an obvious choice, to be sure. We have definitely been considering that as a target for cross-platform, but we are still evaluating various platforms and scenarios to determine which cross-platform targets will result in the greatest value add.

Feel free to share any scenarios you have in mind to help us make the decision!

15

u/skomorokh Dec 06 '15

If it's faster than v8 with better es2015 support sounds like it'd be a straightforward replacement for all the nodejs/misc server-side js stuff that happens all over the place.

I don't know but I believe a majority of nodejs apps are Linux-hosted. We might not move to Windows 10 for it, but if we could just swap out v8 for chakra....

At any rate, thanks for staying in the game and keeping Google on its toes! It's in everyone's interest to have a few cutting edge teams on this.

15

u/DragoonAethis Dec 06 '15

BSDs, most likely. ReactOS if you want to piss off your boss with a full banana on your face :)

11

u/[deleted] Dec 06 '15

Do you really need an evaluation to tell you that Linux is the most successful server OS in history?

10

u/536445675 Dec 06 '15

They are evaluating if Linux is something they can work with. Just look at the comments in this thread,a lot of Linux users wouldn't touch something from ms if it cured cancer.

→ More replies (2)

5

u/cbmuser Dec 06 '15

Heck, they even run Linux servers at Microsoft as otherwise they couldn't contribute to the Linux kernel.

→ More replies (1)

3

u/1337Gandalf Dec 06 '15

OS X dude.

3

u/vivainio Dec 06 '15

You know the answer already. Linux and OSX

→ More replies (2)

59

u/Adys Dec 05 '15

Why can't I run this on my TI-86? It's an outrage.

46

u/bterlson_ Dec 05 '15

TI-86?? Out of the question! TI-89 though, maybe, since I'm a member of the TI-89 master race!

Edit: oh wait, these calculators haven't gotten hardware upgrades in decades. :-P

22

u/Sydonai Dec 05 '15

TI nSpire is a hardware upgrade. The reason they don't upgrade the calculators is because it scares the teachers, who knee-jerk ban them from tests because "cheating." It's frankly a miracle we don't teach using slide rules.

8

u/hoohoo4 Dec 06 '15

And the reason they don't make them cheaper is because they don't have to.

2

u/Cuddlefluff_Grim Dec 07 '15

If they're not going to upgrade them, they could've at least made them slightly cheaper than a solid platinum lamborghini with interiors decorated with endangered animals

4

u/fb39ca4 Dec 05 '15

With its ARM support, you might get it running on the TI-Nspire.

4

u/bterlson_ Dec 05 '15

Wow those look nice. Hmm.....

→ More replies (3)

3

u/cincodenada Dec 06 '15

I don't know, I have a strong attachment to both the TI-86 and the TI-89, as I spent a lot of time with the TI-86 before I got my TI-89. But can't we can all agree to fart in the general direction of those TI-83/84 losers?

→ More replies (1)

8

u/uzimonkey Dec 05 '15

Commodore 64 pls.

11

u/adolfojp Dec 05 '15

Go Haiku or go home!

4

u/[deleted] Dec 06 '15

KolibriOS

5

u/brown_and_indian Dec 06 '15

Finally a Solaris fan!

1

u/bterlson_ Dec 06 '15

Yeah, I have a bit of a soft spot for Solaris. Reminds me of the glory days of Sun Microsystems.

4

u/yourebetterthanme Dec 05 '15

Is it possible to bring it to android?

8

u/bterlson_ Dec 05 '15

I think so! Certainly technically, but maybe there are platform restrictions? Probably someone more familiar with android dev can comment further.

→ More replies (3)

3

u/[deleted] Dec 05 '15

What is the relation to Node? As someone new to the MEAN stack, is this a replacement or...?

10

u/bterlson_ Dec 05 '15

Node, like the browser, hosts a javascript engine to provide a programming model to developers. We are hoping to enable Chakra to power Node via a PR soon! (See WIP here: https://github.com/microsoft/node)

3

u/Patman128 Dec 05 '15

Node is built on top of the V8 JavaScript engine.

In theory the engine could be swapped out with Chakra, though in practice it would cause a lot of problems due to all the modules that contain C++ code which directly interacts with V8.

2

u/vivainio Dec 06 '15

The amount of widely used C++ modules is small, and the modules themselves are very small and easy to port. Seems Node community has exercised good restraint in this sense.

→ More replies (1)

2

u/1337Gandalf Dec 06 '15

Seriously? Support OS X and linux, those are really the only OSes around...

any posix compliant OS could run a linux program with few if any tweaks...

4

u/cbmuser Dec 06 '15

Honest question: Why can't teams at Microsoft write their code cross-platform right from scratch? Tieing your code to a specific platform is always a bad idea and is one of the main reason why Microsoft was falling behind in the mobile business.

While Google and Apple had little problems porting their web browsers and toolkits to their mobile platforms, Microsoft struggled very hard and for a long time, Internet Explorer on Windows Phone was years behind the desktop version even though there weren't any real technical reasons except that Internet Explorer is probably full of code that depends on the Win32 API and x86 specifics.

Heck, even software like MSN Messenger was affected with the MacOS X never being on par with the Windows version feature-wise while the open source instant messenger Pidgin always had the same features on any platform you compiled it on. And while MSN Messenger was written by a multi-billion Dollar company, Pidgin was written by a small group of volunteers.

Seriously, stop making your code dependent on the Windows platform and make it cross-platform. Otherwise, you are constantly shooting yourself into the foot. Because the day comes when you decide you need your code run on a different platform than x86 Windows.

2

u/bterlson_ Dec 06 '15

You're preaching to the choir, man ;)

5

u/our_best_friend Dec 05 '15 edited Dec 06 '15

OSX of course, the platform of choice for node devs

EDIT here we go, the usual apple bashers downvoting... it is a fact that the vast majority of node / js devs use OS X when given the choice. Sorry if that bothers you.

4

u/1337Gandalf Dec 06 '15

don't forget us lowly C/C++ devs. :/

1

u/nightwood Dec 06 '15

Or.. apple TV! excellent device for a low demand server, like a test server on a LAN

1

u/Corticotropin Dec 06 '15

Clearly Ubuntu.

1

u/[deleted] Dec 06 '15

Arm obviously.

1

u/benpye Dec 06 '15

Will Chakra be open sourced with the JIT for all supported platforms (I'm assuming ARM, ARM64, x86 and x86_64?). .NET Core is also open sourced with their own JIT, and whilst there is... a JIT for all platforms, the production JIT for x86 and ARM is unavailable. I can see their reasoning, but I wondered what the plan for Chakra is? As you can imagine, ARM and ARM64 are interesting platforms for Linux with hardware like the Raspberry Pi 2 (ARMv7) and the Jetson TX1 (ARMv8).

2

u/bterlson_ Dec 06 '15

The only non-OSS components our team will work on is the goo that hooks Chakra to the browser, Chakra to the Universal Windows Platform, and some other minor things. You'll get the full JIT!

1

u/Dropping_fruits Dec 06 '15

Could you port it to GLaDOS?

1

u/chmpgne Dec 05 '15

IBM :) /s

1

u/oridb Dec 06 '15

For a challenge: 9front. or Harvey.

0

u/[deleted] Dec 05 '15

[deleted]

8

u/bterlson_ Dec 05 '15

I'm pretty sure Chakra Node still uses libuv, so I think that work is already done. But note that this only runs on Windows, so to enable the Debian scenario we'd have to support that platform first (we'll be supporting more platforms in the future).

8

u/Recursive_Descent Dec 05 '15

No, cross plat support is coming later. Currently requires some flavor of windows.

15

u/drysart Dec 05 '15

And if Microsoft's other recent open sourcing of flagship products (such as the .NET CoreCLR) is any indication, the cross platform support will actually be delivered on and is not just an empty promise.

1

u/benpye Dec 06 '15

The fact that you can already pretty much apt-get install dotnet is pretty fantastic.

28

u/srayuws Dec 05 '15

node on chakra?

61

u/Cylons Dec 05 '15

This project enables Node.js to optionally use the Chakra JavaScript engine on Windows 10, allowing Node.js to run on Windows 10 IoT. Our goal is to merge back into master after stabilizing this code, fixing key gaps and responding to early community feedback.

https://github.com/Microsoft/node

4

u/Eirenarch Dec 05 '15

They already had node on chakra.

4

u/jonny_eh Dec 05 '15

But on non-Windows platforms?

6

u/Eirenarch Dec 05 '15

Nope. But is it really useful since the V8 node is already available on other platforms (wasn't on Windows 10 IoT)

5

u/Patman128 Dec 05 '15

Not to mention all the Node modules that have C++ code that interacts directly with V8.

1

u/uzimonkey Dec 05 '15

They actually had a fork of node replacing V8 for Chakra. I don't know if they maintain it though, it's on Github.

→ More replies (1)

136

u/zignd Dec 05 '15

Kudos to Microsoft, you guys owned the worst JavaScript engine for a long time and now you own the best one around.

66

u/ImmortalStyle Dec 05 '15

Well calling it one of the best is probably a bit too soon. Chrome still feels a lot faster than edge on windows 10.

So far it is not as good as microsoft wants us to believe it is.

76

u/vivainio Dec 05 '15

JS engine (Chakra) could still be faster, while the browser (Edge) is slower. I guess we'll see on benchmarking some real workloads with Node-v8 and Node-Chakra.

26

u/blargtastic Dec 05 '15

In terms of ES6 compliance, it is indeed the best. It even beats Babel.

5

u/atomic1fire Dec 05 '15

I wonder if we'll see a linux browser based on chakra in the future.

22

u/[deleted] Dec 06 '15

Servo + Chakra with an HTML UI, so fully moddable? That would be actually amazing.

6

u/atomic1fire Dec 06 '15

https://github.com/mozilla/browser.html

Not quite chakra, but part of that seems doable.

4

u/Raknarg Dec 06 '15

I had the opposite experience, I would use it if it supported extensions

2

u/darkpaladin Dec 06 '15

That's coming, in theory it will directly support chrome extensions. At least that's the sales pitch.

10

u/[deleted] Dec 05 '15

Agreed. The Edge experience doesn't really match the Chrome experience.

I'm also not a fan of the way Edge looks.

2

u/MegaMonkeyManExtreme Dec 06 '15

The Edge look makes more sense on a touch screen, on desktop it looks a little off somehow.

→ More replies (1)

1

u/luckybuilder Dec 06 '15

I feel like edge is much quicker. Pages load instantly.

→ More replies (1)

2

u/Zarathustra30 Dec 05 '15

IE6 was the best -- for a little while, at least.

-6

u/Eirenarch Dec 05 '15 edited Dec 05 '15

Too bad their browser still manages to crash every 5 minutes, doesn't support extensions, doesn't have tracking protection (available in IE), doesn't have previews for multiple tabs from the taskbar, is inferior in every way to IE on a touch device (tabs on top come on?!) and is extremely laggy on major websites such as Facebook. And I am saying that because I am using it right now.

40

u/kirbyfan64sos Dec 05 '15 edited Dec 05 '15

Really? It actually occasionally works better than Chrome for me.

EDIT: I was referring to Edge, not IE. IE sucks.

→ More replies (7)

19

u/[deleted] Dec 05 '15

Edge seems to perform better for me. Chrome on the other hand is getting slower by the day.

5

u/daniels0xff Dec 05 '15

And uglier (the profile button you can't hide no matter what you do)

4

u/Maddhatta Dec 05 '15

Newest Chrome Build: Edit your Chrome shortcut and add the parameter --disable-new-avatar-menu

For older versions: paste the following into the url bar: chrome://flags/#enable-new-avatar-menu Set the value to "Disabled"

Restart after either option

→ More replies (1)

1

u/intellectual_error Dec 05 '15

Chrome on Ubuntu becomes unusable when I open more than 7-8 tabs. I guess the development on that platform is a lot slower... Regardless, I'm not a fan of it anymore.

1

u/ChezMere Dec 05 '15

A browser with extensions installed will always be slower than one without.

→ More replies (2)
→ More replies (4)

6

u/ben_uk Dec 05 '15

doesn't have tracking protection

That's a placebo if anything.

→ More replies (3)

2

u/hmny Dec 05 '15

dude, do a fresh win 10 install! something is not right on your os!

→ More replies (3)

2

u/HeroesGrave Dec 06 '15

What use is tracking protection if you're using Windows in the first place?

1

u/Eirenarch Dec 06 '15

ad-block replacement. Also I believe MS hates Google enough to implement something that does at least something to block their tracking.

→ More replies (15)

61

u/grandfatha Dec 05 '15

Ballmer didnt die for this

6

u/LET-7 Dec 05 '15

Hahahaha

1

u/i_spot_ads Dec 06 '15

Make Microsoft great again, read my book "Crippled Microsoft"

13

u/romeozor Dec 05 '15

What's next? monode.js?

3

u/nightwood Dec 06 '15

Visual Studio JS !

6

u/oberhamsi Dec 06 '15

2

u/nightwood Dec 06 '15

Have you tried it? So far it's just a text editor. At least last time I checked I would prefer sublime as a code editor

5

u/KarbonKitty Dec 06 '15

It's a code editor, not text editor. It has everything that Sublime has (including extensions, starting from November's version), and more - IntelliSense, to be exact.

I've personally dropped the Sublime after installing Code, and never looked back.

2

u/nightwood Dec 06 '15

That sounds like a lot more then when I tried it when it first came out. Extensions will certainly speed up the progress I imagine. I'll check it out again!

3

u/KarbonKitty Dec 07 '15

They've been pushing a new version once a month so far, plus bug fixes - and every month there was actually something new. :) So depending on when you tried last time, it might be almost completely different. :)

→ More replies (1)

3

u/digital_cucumber Dec 06 '15

I am using it. It is actually pretty good.

→ More replies (1)

24

u/EarLil Dec 05 '15

I hope that after "open sourcing everything" period, comes the "merge of efforts..." period.

7

u/mindbleach Dec 06 '15

Specs need multiple implementations, or else the implementation becomes the spec.

0

u/[deleted] Dec 05 '15

[deleted]

63

u/Retsam19 Dec 05 '15

This. A lack of meaningful competitions is how IE got so bad in the first place.

25

u/fb39ca4 Dec 05 '15

And the same thing is happening right now with Chrome.

4

u/hansolo669 Dec 06 '15

Huh? Outside a few outliers Chrome is as standards compliant as Firefox and Edge. The only current browser even close to old IE is mobile Safari, for exactly the same reason old IE was shitty.

9

u/vinnl Dec 06 '15

It wasn't about standards compliant, it's about being (too) dominant, which is definitely happening with chrome.

7

u/hansolo669 Dec 06 '15

Correct me if I'm wrong, but wasn't the issue with IE was that it was the dominant browser and Microsoft then used that position to effectively force standards (before letting it rot for years)? Chrome may be the dominant browser right now, but Google is hardly in a position to force standards.

14

u/vinnl Dec 06 '15

Well, yeah, that was one of the issues, and IE was definitely worse than Chrome is.

However, you can force standards even if you're not trying to. By being so dominant, bugs in an implementation can quickly become the standard, and the prioritisation you choose as a browser vendor will become the de factor prioritisation of the entire internet.

On the desktop, it's not that much of a problem (yet, although I'm a bit afraid of Chrome's continuing growth and e.g. Firefox's decline). On mobile, however, the dominance of Blink/Webkit is already problematic, and choosing Firefox (which is a very standards-compliant browser) still often results in a sub-par experience due to websites catering specifically and only to Blink/Webkit.

→ More replies (2)
→ More replies (4)
→ More replies (2)

17

u/bilyl Dec 05 '15

Lack of competition and advertising Chrome everywhere on Google was how Chrome got so bloated as well. It's so frustrating that I'm tempted to go back to Firefox.

13

u/[deleted] Dec 05 '15

I already went back to Firefox earlier this year, and haven't looked back at Chrome since.

What advantages did Chrome have I ask myself now. Even if there is a performance difference, I can't tell.

20

u/[deleted] Dec 06 '15

There was a long stretch in which Chrome had serious stability and performance advantages - or at least it did for me. But Firefox is back neck and neck with Chrome for performance for me since mid 2015, and I think the Mozilla folks are more committed to an open web and especially to user privacy than the Google employees.

→ More replies (1)

3

u/LaFolie Dec 06 '15

I stay for Firefox because of noscript.

→ More replies (3)

1

u/Cuddlefluff_Grim Dec 07 '15

MS ignoring IE for the better part of a decade made it bad.. MS using IE as a marketing tool made it bad ("Get the newest browsing experience with Windows Blah!"). They did quite a bit of fuckery by trying to circumvent the EU lawsuits about shipping their OS with a default browser (like using it as a part of the file explorer, and therefore implementing a bunch of really obscure functionality into it to get it to work like that), but I hardly think the major cause for IE's level of suck was lack of competition, because IE has - and has always had - a myriad of competitors. When IE6 was released, it wasn't that bad. It became bad because it never stopped being IE6, while all the competition continued steadily forward. It was big a mistake (that developers paid for) by Microsoft to develop IE as a part of Windows.

2

u/sturmen Dec 05 '15

Competition is "the best" only because people outright dismiss full and complete collaboration as a possibility. If there were some way for everyone across the tech sector to work together to a common, widely understood and uncontested goal, that would be ideal. If people could work like that, humanity could reach new heights, not just in web servers but across the world!

What a nice fairy tale that would be.

15

u/Klathmon Dec 05 '15

Even then I disagree.

It's pretty much impossible for any solution to be the best for everyone.

What if someone wants a JS engine that has 100% es6 coverage but doesn't need to be fast?

What if someone wants an engine that can run with 10kb of memory total?

What if someone wants an engine that is crazy fast at working with unboxed vars in spite of memory or CPU usage?

There's room for more than one, and even if we all shared everything (which an open source project with a permissive license allows) there still should be competing implementations, if only to have different solutions to the same problems.

→ More replies (1)

4

u/randfur Dec 05 '15

This is great news for the web, any chance Edge itself will be open sourced one day?

4

u/edmundmk Dec 07 '15

This is incredibly exciting.

  • Chakra will be MIT (unlike JavaScriptCore which has parts which are LGPL).

  • Chakra has a bytecode interpreter (unlike v8), which is helpful where JIT is unavailable or impossible.

It'll be interesting to see the bytecode format. Perhaps Chakra bytecode will become a viable compilation target in its own right.

11

u/myringotomy Dec 05 '15

Why don't they open source the entire browser. At least the rendering engine FFS

27

u/badsingularity Dec 05 '15

Because Microsoft uses a bunch of secret APIs that nobody else is allowed to use.

→ More replies (12)

3

u/ythl Dec 06 '15

So are we going to get a Node.js competitor built on Edge? That might be nice.

7

u/JViz Dec 05 '15

Serious question: is anyone actually planning on doing anything with this other than maintenance?

35

u/bterlson_ Dec 05 '15

Yep! At the very least it will of course continue to be developed full time by the Chakra team. And I for one am super excited to see what the community comes up with!

(Disclaimer: I work on the Chakra team).

6

u/jarfil Dec 05 '15 edited Dec 02 '23

CENSORED

37

u/bterlson_ Dec 05 '15

License will be MIT. You can find benchmarks around. We're "winning" on the big ones, but YMMV depending on the scenario. We focus hard on optimizing common javascript code so I'd expect your experience to be on par at least with other runtimes.

(I work on the Chakra team)

8

u/northrupthebandgeek Dec 06 '15

License will be MIT.

That's probably the best news I've heard so far about this.

4

u/Danthekilla Dec 06 '15

I am looking at it for potential integration to our game engine.

7

u/heptara Dec 05 '15

Is this like "V8 from Redmond"?

2

u/[deleted] Dec 05 '15

This is some great news from M.

2

u/[deleted] Dec 06 '15

Imagine this engine running nodejs.. the dream.

3

u/[deleted] Dec 06 '15

If microsoft want to make all things open source then make windows too

6

u/benpye Dec 06 '15

I suspect Windows as a whole might be difficult, the fact we now have parts as big as Chakra and CoreCLR is impressive alone.

3

u/sagnessagiel Dec 06 '15

I would prefer that they start from scratch rather than reuse the horrific source code of good ol' Windows: http://www.kuro5hin.org/story/2004/2/15/71552/7795

→ More replies (2)

2

u/aliendude5300 Dec 06 '15

Why not just open source the whole browser? It's like the only modern non-OS browser.

1

u/iFart_69 Dec 07 '15

As a Selenium user, thank you !

-7

u/[deleted] Dec 05 '15

Keeping JavaScript alive is just inhumane. Please let it die.

12

u/dvidsilva Dec 05 '15

Lol and replace it with what? Sorry to crush your dreams but Js will be around for years to come.

7

u/hotoatmeal Dec 06 '15

WebAssembly!

4

u/[deleted] Dec 06 '15

Friend ECMAscript is just getting started. Reminds me a lot of flash in the early days. It's being built into the way the web works, and it'll be around for a while.

-1

u/bupereira Dec 06 '15

Which means Internet Explorer's JavaScript engine is going open-source, because nobody bought that shit was re-coded.