logoalt Hacker News

benrutteryesterday at 8:07 AM10 repliesview on HN

I think one the big things with web assembly is it's shear potential is huge.

In theory, WASM could be a single cross platform compile target, which is kind of a CS holy grail. It's easy to let your mind spin up a world where everything is web assembly, a desktop enivornment, a server, day to day software applications.

After I've imagined all of that, being told web assembly helps some parts of Figma run faster feels like a big let down. Of course that isn't fair, almost nothing could live up to the expectations we have for WASM.

Its development is also by committee, which is maybe the best option for our current landscape, but isn't famous for getting things going quickly.


Replies

torginusyesterday at 8:45 AM

Like the gifted kid who lives with his mom at 30, at some point in time, we have to stop talking about potential and start talking about results.

Theory and practice doesn't match in this case, and many people have remarked that companies that sit on the WhatWG board have vested interest in making sure their lucrative app stores are not threatened by a platform that can run any app just as well.

I remember when Native Client came to the scene and allowed people to compile complex native apps to the web that run at like 95% of native speed. While it was in many ways an inelegant solution, it worked better than WebAssembly does today.

Another one of WebAssembly's killer features was supposed to be native web integration. How JS engines work is that you have an IDL that describes the interface of JS classes which is then used to generate code to bind to underlying C++ implementations. You could probably bind those to Webassembly just as well.

I don't think a cross-platform as in cross CPU arch matters that much, if you meant 'runs on everything' then I concur.

Also the dirty secret of WebAssembly is that it's not really faster than JS.

show 6 replies
shevy-javayesterday at 8:36 AM

Well - the problem is... the "in theory" means that nobody will bet on WASM if it is not really going to be useful. People use HTML, CSS, JavaScript - that has been shown to be very useful. WASM is not useless but how can people relate to it? It is like an alien stack for most people.

show 2 replies
x3haloedyesterday at 8:24 AM

There’s no reason we shouldn’t be replacing our containers with WASI. Containers are absolutely miserable things that should just be VMs (in the WASM sense, not in the “run Linux in a virtual X86” sense)

The tooling is just not there yet. Everyone is just stuck on supporting Docker still.

show 6 replies
daefyesterday at 8:44 AM

I recommend you watch [0] if you haven't seen it yet, it describes the history of javascript, iirc until 2035.

[0] https://www.destroyallsoftware.com/talks/the-birth-and-death...

show 1 reply
vbezhenaryesterday at 8:13 AM

You can use javascript as a single cross platform compile target. What's the difference?

show 4 replies
xnxyesterday at 11:08 AM

*sheer

shear potential = likely to break apart

show 1 reply
lionkoryesterday at 1:12 PM

Java and JVM all over again

jiggawattsyesterday at 9:36 AM

> WASM could be a single cross platform compile target, which is kind of a CS holy grail.

The JVM says "Hello!" from 1995.

show 1 reply
whywhywhywhyyesterday at 9:57 AM

> being told web assembly helps some parts of Figma run faster feels like a big let down.

Not really when tools like Figma were not really possible before it

show 2 replies