this post was submitted on 16 Feb 2025
305 points (93.9% liked)

Technology

63133 readers
3352 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 content.
  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, to ask if your bot can be added please contact us.
  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
[–] Venator@lemmy.nz 11 points 6 days ago* (last edited 6 days ago) (1 children)

Can browsers run rust in the front end instead of javascript, or is it limited to build time and backend stuff?

[–] sushibowl@feddit.nl 17 points 6 days ago (1 children)

Sort of, browsers can run rust code through webassembly. But i dont think this is a full replacement for JavaScript as of yet.

[–] sugar_in_your_tea@sh.itjust.works 5 points 6 days ago (1 children)

Yeah, you need to have some JS to manipulate graphics, so the Rust web frameworks have a JS shim to do that and communicate with the WebAssembly Rust code as necessary. It works surprisingly well tho.

[–] sabin@lemmy.world 2 points 6 days ago

Wasm bindgen is an absolute nightmare of auto-generated function names. From a purely performance/functionality perspective it works but it's hella ugly. I hope some alternative arrives at some point.