Re:Mono 4.0.0 Release Notes
by glutamate on Saturday April 04, 2015 @11:49AM
(#9321136)
Tail call optimisation in F# ?
[ Parent
| on HN ]
Re:Mono 4.0.0 Release Notes
by saosebastiao on Saturday April 04, 2015 @01:15PM
(#9321405)
Wait...mono doesn't do tail call optimization with f#???
It is (or was) complicated, you could stack overflow on two mutually recursive functions or tail calling inside continuations.
Re:Mono 4.0.0 Release Notes
by saosebastiao on Saturday April 04, 2015 @04:07PM
(#9322014)
I'm getting constant memory on this (mono v3.12.1)
let rec beep x =
if x = 0 then x else boop (x - 1)
and boop y =
if y = 0 then y else beep (y - 1)
let main argv =
printfn "%A" (beep 999999999)
0