The WebAssembly Community Group voted to advance tail calls to Phase 4! That means it will now be merged into the standard! Woohoo! A great day for FP.
The WebAssembly Community Group voted to advance tail calls to Phase 4! That means it will now be merged into the standard! Woohoo! A great day for FP.
The WebAssembly Community Group voted to advance tail calls to Phase 4! That means it will now be merged into the standard! Woohoo! A great day for FP.
Functional programming tail calls ensures that you can have function calls calling functions without blowing the stack as it no longer treats it and recursive
A tail call is a function call that's return value gets instantly returned from the calling function, of course you could do this in WASM, here it refers to tail call elimination, where the caller function stack frame is reused for the callee, so even deeply recursive tail calls don't run out of stack space. FP is functional programming, they really like to use recursive tail calls instead of loops, so it's a big help for them (but the lack of GC will still largely hinder FP adoption).
10
u/bigbughunter Jan 23 '23
(Last week)
13
u/[deleted] Jan 24 '23
this means...
we can lisp the fuck out of wasm
5
u/coolreader18 Jan 23 '23
yoo nice!
4
u/[deleted] Jan 23 '23
This is huge! Best thing I read today. Loving WebAssembly and FP this is so sweet!
4
u/Ordomo Jan 24 '23
What is tail calls and FP?
1
u/fullouterjoin Jan 24 '23
Great News Everyone!
0
u/pjmlp Jan 23 '23
FP languages also like to a GC....