News for hackers. Stuff that matters.
Re:Can You Afford It? Real-World Web Performance Budgets by krapp on Saturday October 28, 2017 @10:51AM (#15575300)
>Why the hell cant we build web UIs like we do desktop apps, wire it with whatever lanaguage our company uses, and compile it down to WebAssembly and ship it to clients browsers? Instead we have to write these monstrosities in shitty JavaScript with virtual doms, and hacks everywhere. Madness!

We can, but probably not now, because WebAssembly isn't quite ready yet. It still lacks garbage collection and efficient DOM access, and the specs aren't even finalized. There are already experimental targets for a few languages like Rust[0] and Lua[1], and WASM targets C/C++ out of the box.

Eventually, you'll probably be able to import arbitrary languages and environments with a few HTML tags, similar to Javascript today, or whatever the Webassembly version of a package/dependency/VM manager turns out to be, then compile and run any application ever made in the browser.

[0]https://news.ycombinator.com/item?id=12619017

[1]https://news.ycombinator.com/item?id=13899829

There are no comments on this comment yet.