4 ms·
Please. JavaScript is a far cry from the ideal byte code / intermediate representation for all future applications to be built in. It's bad enough that people t
by n00b101 13y ago
Please. JavaScript is a far cry from the ideal byte code / intermediate representation for all future applications to be built in. It's bad enough that people think every new app should run inside a web browser ... but saying that it MUST be written in JavaScript (or something that can generate JavaScript) is manifestly irrational and ridiculous.
- sneak 13y ago> Please. JavaScript is a far cry from the ideal byte code / intermediate representation for all future applications to be built in. Indeed. But it's what we actually have today, not what we wish to have tomorrow.
- wmf 13y agoJust calling JS "irrational and ridiculous" doesn't advance the conversation; we need details.
- lucian1900 13y ago"saying that it MUST be written in JavaScript ... is manifestly irrational and ridiculous" You misread.
- Lerc 13y agoWhat do you think is needed beyond something like asm.js? For me the limitation that stands out is Javascript cannot pre-empt. while(true){}; locks things until some magical supervisor (which _can_ pre-empt) notices and Tells you something went wrong. You can use workers for long operations but you can't communicate with them while they do it. look at the example for Web Workers http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#a-background-number-crunching-worker http://www.whatwg.org/specs/web-apps/current-work/multipage/... It pumps out a series of primes, but you can't tell it to stop or switch to Fibonacci without killing it and making a brand new one.