kirby,
@kirby@lab.nyanide.com avatar

Some people just avoid the heap all together in programming. I mean for embedded systems I guess it's understandable, limited resources and all. But in a normal environment? Eh.

icedquinn,
@icedquinn@blob.cat avatar

@kirby in embedded its done because managing the heap is itself a nondeterministic process. since firmware tends to have a defined scope, we can just preallocate all the memory for that job, and say fuck it.

for big pc platforms.. idk. i like to avoid reference types (heap) unless i just can't get around it. linear arena allocation that wipes the arena between jobs basically can't leak memory and memory checkin/out is extremely fast.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Hentai
  • doujinshi
  • announcements
  • general
  • All magazines