4 ms·
You can compile anything into anything, but for the vast majority of languages, the easiest thing to target with sane semantics is a virtual machine, not a craz
by carsongross 14y ago
You can compile anything into anything, but for the vast majority of languages, the easiest thing to target with sane semantics is a virtual machine, not a crazy half-baked language (that I end up coding in for about 40% of my day.) A bytecode standard would free us from the crazy design decisions of javascript, give us source-level debugging, etc. And it wouldn't be that hard, given all the fine examples of VMs sitting around.
My sense is that the people that suggest javascript as a compilation target really don't want competition for javascript in the browser.
- rwallace 14y ago> A bytecode standard would free us from the crazy design decisions of javascript Not really, because most of the complication and mess is in the document object model, not the language syntax. How do you propose to solve that problem? > My sense is that the people that suggest javascript as a compilation target really don't want competition for javascript in the browser. You sense incorrectly. I'm not working in that area, I don't have a dog in that fight. I just think it's a good idea to point out problems with a proposed solution before somebody goes off and puts a lot of work into trying to implement it.