Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
huhtenberg
6 months 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
6 months 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: