3 ms·
> the Rust version is similarly high level In typical TypeScript/Python, you don't need to worry about memory allocation. At all. If you're writing any non-tr
by shepherdjerred 4y ago
> the Rust version is similarly high level
In typical TypeScript/Python, you don't need to worry about memory allocation. At all.
If you're writing any non-trivial Rust application, you're quickly going to have to learn a lot of concepts regarding memory, and your code will reflect that.
Now, if your application must be high-performance then Rust is a no-brainer. Rust is much better than the alternative (probably C++). But, most web applications don't need to be high-performance, and it would be better to use a language that is easier to learn and write.
- satvikpendem 4y agoI've been going through this book, not once did I have to think about memory management (beyond adding a few &), it's simply not needed at this high level and crates manage most of the low level details for you. I especially haven't had to think about Arc, Rc, etc either.
- shepherdjerred 4y agoUnfortunately I haven't had the same experience as you. Even for a simple program I've had to think about passing by value/reference, lifetime annotations, static lifetimes, etc. That's not to say I don't like Rust; I hope it takes over the world that C/C++ have a grip on.