|
|
|
|
|
by cmrdporcupine
1388 days ago
|
|
Seriously, no, re: Rust. Yes, you have to think about ownership. Because of single owner. But in general, not alloc/free. I work in Rust (after doing C++ for the 10ish years prior) full time and a couple nights ago was honestly the first time I had to really think about this (I had to do a 'forget' because I was passing a ptr to a vector back through from WebAssembly to our Rust-based runtime, and then clean it up back there instead of having Rust let it fall out of scope and free when the stack frame exited). Think of Rust as a world where pretty much everything is inside a std::unique_ptr. Most developers used to a GC language will have little problem working in Rust once they understand the single ownership model. |
|