Funny how all programming languages offer recursion, but you really can't ever use it. Almost all data you might want to recurse over is unbounded (comes from outside your program), and no language has built-in features to measure stack frame sizes, remaining stack space etc.
-
Show this thread
Replying to @wvo
In my personal coding projects I set the stack size reserve to physical memory size. OS then commits it on demand and any program that runs without swapping also runs without stack overflow. This is fine even with 100’s of threads.
0 replies
1 retweet
24 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.