TakekazuKATO/TailRec.jl
View on GitHub ↗ ★ 15 Julia
A tail recursion optimization macro for julia.
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2021-11-27 · latest 2021-11-27
20082026
-
it's fairly easy to just write a macro to do tailrec in julia at least; https://github.com/TakekazuKATO/TailRec.jl
comment by fault1 · 2021-11-27 · in PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly) -
This repo should interest you https://github.com/TakekazuKATO/TailRec.jl
comment by nick__m · 2021-11-27 · in PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly) -
Here is one: https://github.com/TakekazuKATO/TailRec.jl It works by inspecting the code and rewriting a function to turn tail calls into loops. The interesting bit is that it was very easy to write because of the strong macros in Julia.
comment by ted_dunning · 2021-11-27 · in PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly)