Stream: bugs

Topic: Test evaluation failed: error.StackOverflow


view this post on Zulip Tobias Steckenborn (Jul 02 2026 at 13:30):

https://roc-lang.github.io/roc-playground/#content=bWFpbiEgPSB8X2FyZ3N8IE9rKHt9KQoKY291bnRfZG93biA6IFU2NCAtPiBVNjQKY291bnRfZG93biA9IHxyZW1haW5pbmd8IHsKICAgIGlmIHJlbWFpbmluZyA9PSAwIHsKICAgICAgICAwCiAgICB9IGVsc2UgewogICAgICAgIDEgKyBjb3VudF9kb3duKHJlbWFpbmluZyAtIDEpCiAgICB9Cn0KCmV4cGVjdAogICAgY291bnRfZG93bigyNDk4KSA9PSAyNDk4CiAgICAKZXhwZWN0CiAgICBjb3VudF9kb3duKDI0OTkpID09IDI0OTkK

leads to "Test evaluation failed: error.StackOverflow".

Is that something to report in GitHub issues, or expected?

view this post on Zulip Jared Ramirez (Jul 02 2026 at 13:38):

I don't think we have tail call optimization yet, so the recursion is prob blowing the stack!

view this post on Zulip Jared Ramirez (Jul 02 2026 at 13:40):

if there's not already a GH issue related to tail call optimization, would be good to add! or if there is one already you can add your example as comment 1that's a good & simple example of what should work when we have it

view this post on Zulip Richard Feldman (Jul 02 2026 at 13:47):

we should have it - I think @Luke Boswell ported Jelle's TRMC implementation from the original compiler

view this post on Zulip Tobias Steckenborn (Jul 02 2026 at 14:03):

https://github.com/roc-lang/roc/issues/9916


Last updated: Jul 23 2026 at 13:15 UTC