3 ms·
>Stack-allocated data lets you often avoid dynamic allocation overhead and garbage collection (even closures can sometimes be entirely on the stack). There's a
by philhippus 14y ago
>Stack-allocated data lets you often avoid dynamic allocation overhead and garbage collection (even closures can sometimes be entirely on the stack).
There's an entire website named after the results of over-using the stack. Smart pointers and move semantics in C++11 completely smoke GC and memory management everywhere else.
While I'm sure Rust is a nice language and I applaud its innovation,there's already a perfectly good wheel.
- argv_empty 14y agoSmart pointers and move semantics in C++11 completely smoke GC and memory management everywhere else. Aside from having to enforce proper pointer usage at runtime, whereas Rust does it at compile time.
- deleted 14y ago[deleted]
- pcwalton 14y agoRust enforces that you use its smart pointers safely, eliminating a huge class of errors and exploitable security vulnerabilities. C++ doesn't.