Hacker News new | ask | show | jobs
by michaelmrose 3887 days ago
You are correct that code doesn't "expand on memory" but there is no fixed relationship between code size and memory usage. You could certainly write a tiny program that uses a ton of memory pretty easily.
1 comments

Yeah, I say that: "a trivial 5 line program that just mallocs can use TB of memory".