Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2021 (3)
20082026
  1. it's fairly easy to just write a macro to do tailrec in julia at least; https://github.com/TakekazuKATO/TailRec.jl
  2. This repo should interest you https://github.com/TakekazuKATO/TailRec.jl
  3. 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.