News for hackers. Stuff that matters.
Re:How recursion got into programming: a comedy of errors by asveikau on Thursday July 24, 2014 @03:58AM (#8078595)
I don't think it's that absurd. For example, IIRC the allocation size for stacks inside the Linux kernel is usually 8192 bytes (on x86). Consequently, people avoid stuff like recursion in kernel mode. Today.
Re:How recursion got into programming: a comedy of errors by makomk on Thursday July 24, 2014 @04:30AM (#8078671)
Yet activation records are still dynamically-allocated from those 8192 byte stacks - they have to be, because Linux runs on SMP machines and the same kernel function could be executing on multiple cores at once. (Also, for big pieces of kide lke the Linux kernel, it'd probably be more expensive not to dynamically allocate them.)