Re:Should you learn C to “learn how the computer works”?
by xfer on Tuesday October 02, 2018 @02:47PM
(#18124503)
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.
[ Parent
| on HN ]
Re:Should you learn C to “learn how the computer works”?
by arcticbull on Tuesday October 02, 2018 @04:31PM
(#18125450)
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.