News for hackers. Stuff that matters.
Re:Moving from TypeScript to Rust / WebAssembly by Karrot_Kream on Thursday July 09, 2020 @03:15AM (#23777746)
That doesn't change the reality of allocation though. Programmers in languages like C++ and Rust choose when and where to allocate memory, and if there's one thing we know about performant code, it's that we shouldn't be allocating and deallocating repeatedly. Nothing about lifetimes helps or hurts about this programming model. Lifetimes (Rust) and RAII (C++) are just semantic models to help reign in the cognitive load of memory allocation.

There are no comments on this comment yet.