raaidrt/tacopy
View on GitHub ↗ ★ 80 Python
Tail Call Optimizations in Python
5 mentions on Hacker News by 5 people: 1 story, 4 comments · first 2025-11-30 · latest 2025-12-13
20082026
-
The current implementation breaks semantics of functions with tail recursion from within loops: https://github.com/raaidrt/tacopy/issues/1
comment by spyc · 2025-12-13 · in Show HN: Tacopy – Tail Call Optimization for Python -
what is this, why is 95% of the file useless comments: https://github.com/raaidrt/tacopy/blob/main/src/tacopy/unpar... you're calling a built in function, why make obfuscate this in an "llm way"
comment by lukasnxyz · 2025-12-05 · in Show HN: Tacopy – Tail Call Optimization for Python -
…and raises a clear error message instructing users to extract the function to module level. https://github.com/raaidrt/tacopy/blob/8f5db70da2b7bbfafc41b...
comment by ndr · 2025-12-05 · in Show HN: Tacopy – Tail Call Optimization for Python -
…out to be impractical. OP's approach is surprisingly straight forward, only a few hundred lines. https://github.com/raaidrt/tacopy/blob/main/src/tacopy/trans...
comment by lioeters · 2025-12-05 · in Show HN: Tacopy – Tail Call Optimization for Python -
▲ 95
Show HN: Tacopy – Tail Call Optimization for Pythonstory by raaid-rt · 2025-11-30 · 54 comments