Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

I'm really confused by what Rust has to offer to frontend. A systems language, sure. Memory safety when no garbage collection, fine. But we do have a garbage collector in the browser. And are expecting to get it for webassembly too. And when I compare Rust code to typescript, I want to howl in agony and ask, why would we inflict on ourselves this punishment. At least I can see the elegance and the beauty of Purescript, although I can't write anything useful in it. But Rust is just so horrendous for frontend, where the existing languages are so much nicer!


view as:

I think Rust's type-system is much nicer than TypeScript's, but you're right, Rust is probably too different.

Rust can be great for environments with resource constraints, and we should think of browsers as being resource constrained.

I don't think Rust has the right trade-offs to make it a good choice today, but I expect that to change.


Legal | privacy