Mar. 27th, 2013

andrewducker: (Default)
A few days ago Mozilla announced that the Nightly version of Firefox now supports asm.js.

asm.js is a very small part of javascript that can be incredibly highly optimised (if your browser supports it), so that it runs much, much faster than normal Javascript.

How much faster? About half the speed of C.


Now, nobody in their right mind is going to _write_ in asm.js. It's not very human readable, or writeable. You write your code in other languages and then it compiles to asm.js. Which means that you can write in anything which has a compiler that produces it (so far, just emscripten, which converts LLVM output), and get something which runs inside a browser, with no plugins. So far, only Firefox supports this level of optimisation, but I'm hopeful that Chrome will join it. And even if it doesn't, the code will _still run_ in Chrome. It just won't be as blindingly fast.

What makes this particularly exciting is that today Mozilla announced that, over the last four days, Epic ported the Unreal Engine to asm.js. Four days, to port over an amazing 3d engine, and have this running in your web page:


And, one assumes, they're still optimising. I doubt they'll ever make it quite as fast as C. But I'm sure they can get faster.

And then we have a standard way of getting real applications running on any computer that can run a browser, no matter what operating system it's running on. This really does feel like a step change to me.

June 2025

S M T W T F S
1 2 3 4 5 6 7
8 9 1011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 11th, 2025 08:06 am
Powered by Dreamwidth Studios