4 ms·
> Managed-memory languages don't require you to even think about lifetimes, let alone write them down. Memory is only one of many types of resources applicatio
by pkolaczk 3y ago
> Managed-memory languages don't require you to even think about lifetimes, let alone write them down.
Memory is only one of many types of resources applications use. Memory-managed languages do nothing to help you with those resources, and effectively managing those resources is way harder in those languages than in Rust or C++.
- throw10920 3y agoWhat? Rust doesn't do anything to "help you with those resources", either - you can still create cycles in ARC objects or allocate huge amounts of memory and then forget about it. In both languages you have to rely on careful design, and then profile memory use and manage it. However, Rust requires you to additionally reason about lifetimes explicitly. Again - great for performance, terrible for design, prototyping, and tools in non-resource-constrained environments*.