Re:Hy – A dialect of Lisp that’s embedded in Python
by Foxboron on Thursday December 04, 2014 @10:36AM
(#8699717)
The entry is misleading. We don't really do TCO. It's just a trampoline calling the loop/recur form until there is nothing left to produce.
Same solution clojure has, as the JVM dosn't allow for TCO.
I thought this is not possible in python. Can someone explain ? Python doesn't have tail call optimization and hy produces python AST. Am I missing something ?
I tried reading through the source, but I am still a lisp noob. https://github.com/hylang/hy/blob/master/hy/contrib/loop.hy