logoalt Hacker News

flohofwoeyesterday at 7:35 AM1 replyview on HN

No, but also skip malloc/free until late in the year, and when it comes to heap allocation then don't use example code which allocates and frees single structs, instead introduce concepts like arena allocators to bundle many items with the same max lifetime, pool allocators with generation-counted slots and other memory managements strategies.


Replies

brabelyesterday at 11:38 AM

Is there any C tutorials you know that do that so I can try to learn how to do it?

show 1 reply