donalonzo@lemmy.worldtoLemmy.World Announcements@lemmy.world•Lemmy.world status update 2023-07-04English
33·
1 year agoRust protects you from segfaulting and trying to access deallocated memory, but doesn’t protect you from just deciding to keep everything in memory. That’s a design choice. The original developers probably didn’t expect such a deluge of users.
let mut memory_leak = Vec::<u8>::new(); loop { memory_leak.push(0); }