this post was submitted on 07 Feb 2026
48 points (98.0% liked)

Technology

80795 readers
5143 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] theherk@lemmy.world 0 points 1 day ago (1 children)

Great article. I think wasm is one of the more interesting things to happen in the last few decades in computer science, though there are many. I think it’s here to stay for sure, but am always curious where the adoption curve will go.

[–] jungle@lemmy.world 4 points 23 hours ago* (last edited 23 hours ago) (3 children)

I don't know much about wasm, but isn't it the equivalent of bytecode? That's just a compiler and an interpreter. How is that a significant development in the last few decades in CS?

[–] orclev@lemmy.world 2 points 9 hours ago

It's a workaround for the historical trash fire of JavaScript in the browser. Since nobody could agree on a way to do something other than JS in the browsers they came up with this gradual replacement where initially WebAssembly was just a special version of JS, then they turned that into a bytecode interpreter. The end goal was to let you use any language as your browser scripting language but the implementation isn't there yet. It's pretty painful to do anything with the browser APIs via WebAssembly because you're still using the terrible JS APIs rather than something more ergonomic for the language you're using and you need to write JS shims around all your non-JS code.

Basically it's a start, but it falls short of what's needed. Since you end up needing to write a bunch of JS anyway you're mostly just creating more work for yourself rather than being able to avoid JS in the first place.

That said, by accident it's also created something close to a universal bytecode since a very wide variety of languages support compiling to WebAssembly.

[–] theherk@lemmy.world 3 points 23 hours ago* (last edited 23 hours ago) (2 children)

It isn’t interesting for being bytecode. Rather for being the first universal sandboxed runtime for the browser and elsewhere. Being able to write in many languages and compile to wasm targets is awesome. Safety guarantees and performance are both great too. And it can run in tiny environments.

[–] frongt@lemmy.zip 2 points 18 hours ago

Maybe we should get away from "browser than can run apps" and move towards "app sandbox that also happens to render html".

[–] nyan@lemmy.cafe 2 points 21 hours ago (2 children)

Except that it isn't really the first iteration of any of those things. Java did most of 'em more than a quarter century ago: browser-embedable, multiple languages could target the JVM, and, yes, sandboxed—the only issue was startup (not runtime) performance. That wasm doesn't share those startup performance woes makes it useful, but not revolutionary.

As for tiny environments, a typical desktop system from around 1999 is somewhat similar to a Pi Zero W in terms of ability.

[–] Rekall_Incorporated@piefed.social 1 points 37 minutes ago

I would imagine a Pi Zero is significantly more powerful than a 1999 desktop system.

Pi zero has a 1Ghz single core and 512 MB RAM. 1999 would be a P3, which started out from 500 MHz and I believe RAM was less 512 MB at that points.

And that's just high level figures, that ignore faster RAM speed, massive improvements in IPC / CPU microarchitecture.

I would even speculate the hypothetical 3D capabilities of 1999 desktop could probably be simulated in software.

[–] theherk@lemmy.world 2 points 20 hours ago

The sandboxes are different. The embeddable Java plugin sandbox was a bit different and susceptible to confused deputy and other attacks. So yeah, I guess you can say it is iterative but they’re kind of worlds apart. You can run thousands of wasm modules in a single process and have them all be completely isolated. Its performance and security gains, portability, and usability are all superb.

I guess I can’t really defend it well, but I think it is interesting and important.

[–] Fiery@lemmy.dbzer0.com 2 points 23 hours ago (1 children)

It's kinda cool as in you can compile a bunch of languages to wasm, so instead of being locked to JavaScript (/typescript) you can instead code in e.g. rust, have all the advantages of the compiler and still run in the browser.