News for hackers. Stuff that matters.
Re:Making WebAssembly a first-class language on the Web by nineteen999 on Wednesday March 11, 2026 @11:02PM (#47345874)
Technology with "web" in the name, invented by Web fanboys, not really much good for working with key web API's like the DOM.

Cool parts of the webassembly technology aside - this should be no surprise to anybody. News at 11.

The non-sequitur in the title of this post should be enough to give everybody pause.

Waiting for someone to chime in and tell me that the "web" in "webassembly" wasn't meant to refer to the "world wide web". Go on. I dare you!

Re:Making WebAssembly a first-class language on the Web by bfivyvysj on Thursday March 12, 2026 @12:50AM (#47346589)
Web assembly has never had anything to do with the web.

At least that's been my experience whenever I find it in production.

Re:Making WebAssembly a first-class language on the Web by pjmlp on Thursday March 12, 2026 @04:17AM (#47347888)
It definitly had to do everything with Web, it was the agreement between Mozila going with asm.js, Chrome pushing for PNaCL, Adobe with CrossBridge, Sun with Java, Microsoft with ActiveX,....

Then some folks rediscovered UNCOL from 1958, all the systems influenced by it, and started to sell the dream of the bytecode that was going to save the world.

Re:Making WebAssembly a first-class language on the Web by flohofwoe on Thursday March 12, 2026 @04:40AM (#47348021)
This is retconning the history of WASM. While WASM was designed to be also be usable outside browsers, nobody could really predict at the time what this usage would look like exactly.
Re:Making WebAssembly a first-class language on the Web by tegmentum on Sunday March 15, 2026 @07:06PM (#47392978)
That's were it came from but it's perfectly able to run in environments that don't have anything to do with the web.
Re:Making WebAssembly a first-class language on the Web by afiori on Thursday March 12, 2026 @02:22AM (#47347152)
The web part is the security model and the tradeoffs between security and performance. PNaCL was in browsers but not "web" for this reason.

Like the assembly part means low-level and meant as a compilation target, not CPU instructions.

So websssembly is an assembly language for the web, like webgl is opengl for the web and webgpu are gpu APIs for the web. And behold none of those can access DOM APIs

Re:Making WebAssembly a first-class language on the Web by flohofwoe on Thursday March 12, 2026 @04:38AM (#47348010)
> So webassembly is an assembly language for the web.

But is isn't, at most WAT is (the WASM text format). WASM itself is a bytecode format. Nobody calls CPU machine code 'assembly' (nitpicking, I know, but the 'web' part of the name makes a lot more sense than the 'assembly' part).

Re:Making WebAssembly a first-class language on the Web by flohofwoe on Thursday March 12, 2026 @04:36AM (#47347997)
At least the 'web' part makes more sense than the 'assembly' part ;)

WASM was designed as a successor to asm.js, and asm.js was purely a web thing. While non-web-platforms were considered as a potential use case (in the sense of "using WASM outside the web should be possible", it wasn't clear at the time what the successful usages outside browsers would even look like).