|
|
|
|
|
by Someone
465 days ago
|
|
> I'm interested in examining the idea of a programming language that eschews the notion of a callstack Technically, I don’t know any language whose spec mentions the notion of a call stack. For example, it’s perfectly OK for a conforming C compiler to use a linked list of dynamically allocated activation records (from a standards view point; users of such an implementation may have different opinions) A conforming C compiler also could choose to only use a call stack for functions that take part in recursive calls or that may get called by multiple threads. > plus weirdo stuff like the ability to hand out references to local data in functions that have already returned (which remains valid as long as you don't call the function again, which I think should be possible to enforce via a borrow checker). If you add multi-threading (something that is almost a must have for languages on powerful CPUs nowadays), I don’t think that’s easy to do. |
|