by bluejekyll · 10y ago · 0 comments
I used to think this way, then I tried Rust. After C and C++, I never thought I'd want to give up the GC, but to avoid the issues that this article talks about, I wanted to go back to a systems language.
Now I want to use Rust for everything.
If you're not using new/delete in C++, you're probably not doing something very complicated. (And hey, that's not necessarily a bad thing!)
Slight caveat.
> Step 3: Pooling large byte arrays used in serialisation/deserialisation
If you are using a explicit memory language, buffer pooling is still quite important - especially if you are doing any IO. You can avoid this to a certain degree by using fast malloc implementations.
https://internals.rust-lang.org/t/on-native-allocations-poin...
https://github.com/rust-lang/rfcs/blob/bdbe73d1be948dd925c6b...