Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
unlinked_dll
on Jan 6, 2020
|
parent
|
context
|
favorite
| on:
Clojure for the Erlang VM
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.
wues
on Jan 6, 2020
|
next
[–]
Erlang guarantees tail call optimisation.
weavie
on Jan 6, 2020
|
prev
|
next
[–]
Pretty sure .Net has a TCO opcode that F# uses.
sb8244
on Jan 6, 2020
|
prev
[–]
What does "guarantee" mean here? If you end a function in BEAM with another function call, it's TCO.
bad_login
on Jan 6, 2020
|
parent
[–]
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
on Jan 6, 2020
|
root
|
parent
[–]
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
).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: