5 ms·
It's not the only option in the browser.
by MatthewPhillips 13y ago
It's not the only option in the browser.
- solomatov 13y agoWhat are other runtime options? - Flash? That's almost the same as JavaScript and it's getting obsolete. - Java? No one enables it on the client, thanks to security problems. - Asm.js/LLVM? These are immature and can't be used for production.
- bengillies 13y ago- GWT - Dart - ClojureScript
- dsl 13y agoEvery single one of these compile to the JavaScript runtime. (Dart has a native VM in Chromium, but AFAIK it is a long way off from the real world)
- bengillies 13y agoRight and ClojureScript, for example, has full goroutines in it (i.e. core.async) if doing standard callback based async in JS isn't your thing. Functionally, it makes little to no difference whether you're writing something that compiles down to JS or writing something that compiles down to its own runtime (assuming you turn source maps on your browser).
- dsl 13y agoThat doesn't change the fact they use the JavaScript runtime, which was the question the parent was trying to address.
- solomatov 13y ago>Functionally, it makes little to no difference whether you're writing something that compiles down to JS or writing something that compiles down to its own runtime (assuming you turn source maps on your browser). It actually makes a big difference. You can't use profiles, debugger, libraries, and other stuff which is platform specific but have to use JavaScript ones. Often, they don't play well with with languages which generate to JS.
- lmacsen 13y agoWhich compiles into JavaScript...