3 ms·
If web sites were allowed to execute native code on your computer, this would be a huge security risk. Instead we have more restricted web languages, but at th
by tux3 12y ago
If web sites were allowed to execute native code on your computer, this would be a huge security risk.
Instead we have more restricted web languages, but at the cost of performance.
Basically.
- 4ad 12y agoWell, first, even assuming JITing JavaScript is expensive and produces expensive code, shouldn't WebGL demos mostly stress the GPU and not the CPU? Second, web sites are not allowed to execute native code, but all the modern JavaScript engines compile down to native code. My intuition tells me to expect the performance of compiled JavaScript to be low, however I have seen endless benchmarks that say that's not the case and JITed JavaScript should be plenty fast. However I feel this disconnect between those benchmarks and reality. The benchmarks say it's fast, while in fact I perceive it to be pretty slow and a resource hog.