4 ms·
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 f
by efnx 12y ago
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.
- cypher543 12y agoDartium (https://www.dartlang.org/tools/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.
- kyrra 12y agoIt 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 http://www.chromium.org/blink/blink-gc
- ksherlock 12y agoIE 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.