What is malloc doing, anyway?

(benmandrew.com)

31 points | by benmandrew 2 hours ago

2 comments

  • assumed_throwaw 34 minutes ago
    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.
    • nialv7 18 minutes ago
      the stack is just a bump allocator. the unique thing about stack-only languages is lifetime management, not really how they allocate.
  • amelius 37 minutes ago
    If the DRAM scarcity continues, not much.