Re:PyTorch: Where we are headed and why it looks a lot like ...
by adgjlsfhk1 on Friday November 26, 2021 @06:40PM
(#29355469)
if you want tail calls in Julia, there is a 3 line macro that gives it to you.
[ Parent
| on HN ]
Re:PyTorch: Where we are headed and why it looks a lot like ...
by tbenst on Friday November 26, 2021 @06:53PM
(#29355579)
Could you point to it? Thanks
Re:PyTorch: Where we are headed and why it looks a lot like ...
by ted_dunning on Friday November 26, 2021 @07:20PM
(#29355789)
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.
Re:PyTorch: Where we are headed and why it looks a lot like ...
by adenozine on Friday November 26, 2021 @09:15PM
(#29356613)
This is eye opening. I might take a look at this in depth and try Julia again.
Re:PyTorch: Where we are headed and why it looks a lot like ...
by nick__m on Friday November 26, 2021 @07:25PM
(#29355819)
This repo should interest you https://github.com/TakekazuKATO/TailRec.jl