Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
unlinked_dll
6y ago
0 comments
Save
Share
And none of them guarantee tail call optimization leading to trade offs in the design of particular languages that may or may not be acceptable.
0 comments
5 comments · 3 top-level
top
newest
oldest
sb8244
6y ago
· 2 in thread
What does "guarantee" mean here? If you end a function in BEAM with another function call, it's TCO.
bad_login
6y ago
Tail Call Optimization is an optimization done by the compile/vm that replace (in assembly terms) a CALL by a JMP. Therefore removing a call stack.
sb8244
6y ago
Correct. BEAM does real TCO as far as I'm aware. LYSE has a blurb about it and seems to agree (
https://learnyousomeerlang.com/recursion
).
wues
6y ago
Erlang guarantees tail call optimisation.
weavie
6y ago
Pretty sure .Net has a TCO opcode that F# uses.
j
/
k
navigate · click thread line to collapse