4 ms·
> But here comes Rust, it takes away the unsafety There are no memory leaks at the language level in Rust but lots of other unsafety exists in web apps at a hi
by speleding 11y ago
> But here comes Rust, it takes away the unsafety
There are no memory leaks at the language level in Rust but lots of other unsafety exists in web apps at a higher level: SQL injections, XSS, etc.
A battle hardened framework like Rails probably gives a safer end result until a Rust based framework is more mature.
- steveklabnik 11y ago> There are no memory leaks at the language level in Rust Rust absolutely can leak memory, trivially. There's even a function that does it, http://doc.rust-lang.org/stable/std/mem/fn.forget.html http://doc.rust-lang.org/stable/std/mem/fn.forget.html
- dbaupp 11y ago(To be clear: "memory safety" doesn't mean "freedom from memory leaks", it covers things like buffer overflows and use-after-free violations, https://en.wikipedia.org/wiki/Memory_safety https://en.wikipedia.org/wiki/Memory_safety .)