Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
huhtenberg
20 days ago
|
parent
|
context
|
favorite
| on:
C3 solved memory lifetimes with scopes
>
Enter The Temp Allocator
alloca
https://man7.org/linux/man-pages/man3/alloca.3.html
:)
lerno
20 days ago
[–]
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: