Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Enter The Temp Allocator

  alloca 
https://man7.org/linux/man-pages/man3/alloca.3.html :)


Not possible to nest and possible to run down out of stack memory quickly. That said, C3 has a `@stack_mem(1024; Allocator mem) { ... }` which allows to allocate a part of the stack and use that as an allocator with fallback.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: