Re:Comparing Rust and JavaScript
by user249 on Friday July 15, 2022 @12:11PM
(#32109613)
Rust is a great solution to the memory safety problem, but is more difficult to use and slower to compile than some other languages. I'm wondering why I would use Rust for WebAssembly, which doesn't have memory safety issues?
[ Parent
| on HN ]
My impression here is that (1) you don't want a language that you'd have to ship a runtime with (any interpreted language, Go, Swift), (2) Rust WASM tooling/documentation is (much?) better than tooling for other languages, and (3) most people would prefer memory safety when it comes to a purely memory-safety-to-compile-time trade-off.
Re:Comparing Rust and JavaScript
by marcosdumay on Friday July 15, 2022 @02:24PM
(#32111270)
> which doesn't have memory safety issues
What exactly do you mean by that? WASM is assembly, the memory management is entirely manual, and it's currently a very bad target for garbage collection.
Anyway, Rust has more advantages than memory safety.