News for hackers. Stuff that matters.
Re:Coroutines for Go by Cthulhu_ on Monday July 17, 2023 @04:48PM (#36763859)
I think in theory you can write code (or do some tricks) to avoid all heap allocation.
Re:Coroutines for Go by dgb23 on Monday July 17, 2023 @06:07PM (#36764726)
You mean not growing the heap or literally no allocation?
Re:Coroutines for Go by t8sr on Monday July 17, 2023 @06:13PM (#36764785)
"In theory" being the operative words there. Turn on heap escape analysis sometime, you'll be surprised how hard it is to avoid.