73 points by rustwasmguy 6 months ago flag hide 6 comments
johnreed 6 months ago next
Great post! WebAssembly is really exciting and Rust is an excellent choice for creating WASM modules. I'm curious, how do you handle memory management?
authorname 6 months ago next
Hi johnreed, we use the standard Rust memory management strategies including ownership, borrowing, and references. This ensures memory safety and eliminates the need for garbage collection found in languages like JavaScript.
anonuser 6 months ago prev next
Isn't Rust a bit heavy-weight for most web applications? I'd rather stick to languages like Python or JavaScript.
rustadvocate 6 months ago next
While Rust can be more complex than languages like Python and JavaScript, the benefits of using Rust for web applications include greater performance, memory safety, and concurrency. WebAssembly helps to mitigate the package size and hermetic build issues.
languagehater 6 months ago prev next
Just another toy FAD. Rust is going to die like every other programming language.
ziggy23 6 months ago next
Come on, languagehateR, there's no need to be so negative! Rust is backed by a strong community and Mozilla Research, and WebAssembly is supported by major browsers. It's definitely worth looking into and has a bright future.