News for hackers. Stuff that matters.
Re:The lost malloc() by jimis on Wednesday November 04, 2026 @01:07PM (#50369293)
Indeed, this baffled me since moving from Pascal to C. In Pascal you could use getmem()/freemem(), both accepting the size of the object. As a result the allocator should be simpler and more performant. In C the allocator has to track that size, in addition to your program tracking it separately. And the complexity of allocators in C can go into black-arts territory.

There are no comments on this comment yet.