News for hackers. Stuff that matters.
Re:Memory management in C programs by adamnemecek on Monday March 17, 2014 @02:28AM (#7413477)
What's your point exactly?
Re:Memory management in C programs by jmspring on Monday March 17, 2014 @02:45AM (#7413512)
I welcome the down votes.

My point - I read the article and agree as described are typical ways of dealing with memory in C (and in particular within Nethack). At the end of the day, dynamic memory allocation comes down to tracking mallocs and frees and whatever extra book keeping you put on top of them.

Reference counting came up. There are libraries that help with such, but you better understand what that actually means.

Wrapping primitives in higher level abstractions can lead many developers to wondering why there is a memory leak. Before you embrace the abstractions, you better darn well understand what is going on under the hood.

I've seen many inexperienced devs get lost in simple valgrind dumps.

Re:Memory management in C programs by ANTSANTS on Monday March 17, 2014 @02:54AM (#7413532)
You're being downvoted because these comments have little to do with the content of the article, which is about "dirty" low-level memory management techniques designed to avoid naive heap allocation, not trying to abstract the problem away.
Re:Memory management in C programs by eru on Monday March 17, 2014 @03:11AM (#7413587)
Malloc and free are not as low level as you portrait them. They actually do quite a bit of work, that could be done differently.

The article talked about different issues, though.