Y
Hacker News
new
|
ask
|
show
|
jobs
by
xfer
2823 days ago
Well, you can just write a naive allocator that just bumps pointer and never deallocates things :). To appreciate stack vs heap, you have to learn a bit about memory management and some basic algorithms like dlmalloc, imho.
1 comments
arcticbull
2823 days ago
Definitely, as I've replied elsewhere, the stack is in fact a hardware concept whereas the heap is left as an exercise to the reader.
link