logoalt Hacker News

What is malloc doing, anyway?

31 points • by benmandrew • today at 11:31 AM • 3 comments • view on HN

Comments

assumed_throwaw • today at 1:13 PM

Tangential, but the complexity and over-head of the malloc abstraction is precisely what made me very intrigued by "stack-only" languages, such a recently published Goose. There is something very elegant and exciting about the idea of (almost) completely getting rid of it. Just as modern programming languages have developed good ergonomics that replaces a garbage collector, the same could hopefully be done to replace heap-allocated memory.

➕ show 1 reply
amelius • today at 1:10 PM

If the DRAM scarcity continues, not much.