Implement stack-safe AST traversals
felixSchl opened this issue · 2 comments
felixSchl commented
Current traversals are a straight adaption from the PureScript codebase. This implemention will suffice while building out the actual optimization passes, but should be re-implemented in a stack-safe manner for real world usage.
felixSchl commented
There are everythingM
and everywhereM
now, so i guess we could trampoline those as a first measure.
felixSchl commented
Well it's stack safe for now using runTrampoline
. We can explore a more efficient alternative at a later point in time.