News for hackers. Stuff that matters.
Re:JavaScript Modules by efnx on Wednesday July 02, 2014 @01:25AM (#7975370)
Would it be impossible for browsers to include support for more than one scripting language? I've never looked at the architecture of browsers but it would be fun to run pychrome or haskafari.

Just because we all got on the js train doesn't mean we have to ride it till the end.

I guess this is why there are so many cross compilers from x -> js. Thanks be to those guys. Cheers.

Re:JavaScript Modules by kyrra on Wednesday July 02, 2014 @01:38AM (#7975410)
It is a lot of work. WebKit didn't want it in their code base, but blink is experimenting with it with oilpan[0]. It would also take a lot of work in Firefox to do. The big issue is having both runtimes executing in the same DOM. handling garbage collection becomes a lot more complicated.

[0] http://www.chromium.org/blink/blink-gc

Re:JavaScript Modules by cypher543 on Wednesday July 02, 2014 @01:37AM (#7975406)
Dartium (https://www.dartlang.org/tools/dartium/) is a version of Chromium with both JavaScript and Dart VMs running side-by-side, so it's certainly possible. Of course, getting every major browser developer to adopt a new scripting language is a completely different story.
Re:JavaScript Modules by ksherlock on Wednesday July 02, 2014 @12:26PM (#7977895)
IE used to support JScript and VBScript out of the box. I think you could also install ActiveState PerlScript to run perl in the browser, too.

Chrome supports JavaScript and Dart.