miniblog.
← Back to all posts
Mar 28, 2015 at 23:34
Considering how heavily node.js uses callbacks, it seems rather odd that it doesn't support TCO (I know it's hard in JS).
Wilfred Hughes
Related Posts
Dec 21, 2014 at 00:04
The async library is a huge boon, but I'm still finding it hard to avoid deeply indented callbacks in node.js code.
Wilfred Hughes
Shared words: callbacks, node, js, hard Score: 117.2
Dec 10, 2014 at 19:10
Considering porting my node.js REST API backend to Hapi. Seems polished & a good plugin ecosystem (I'm particularly interested in Swagger).
Wilfred Hughes
Shared words: Considering, node, js, seems Score: 71.9
Jan 26, 2024 at 16:38
I'm a big fan of segmented stacks (or 'split stacks'), where stack frames are heap allocated, You can write recursive functions with less worry, and you get better tracebacks than TCO. Go is the most popular language with this feature, to my knowledge:
https://dave.cheney.net/2013/06/02/why-is-a-goroutines-stack-infinite
I'd assumed that LLVM didn't support this, but gollvm handles it fine!
https://groups.google.com/g/golang-nuts/c/ivOZ-j6Zt2c/m/BUBX2Td9BgAJ
Why is a Goroutine’s stack infinite ? | Dave Cheney
dave.cheney.net/2013/06/02/why-is-a-goroutines-stack-infinite
Wilfred Hughes
Shared words: TCO, support Score: 69.1