Search
1000 results for “tail_call”
-
Tail Call Optimiztion in BEAM vs Rust loops for HFT systems:
BEAM/Elixir:
+ Guaranteed tail call optimization
+ Million+ concurrent processes trivially
- GC pauses
- Less predictable latency profileRust:
+ Explicit loop = zero-cost, predictable
+ No GC, deterministic performance
+ Sub-100μs consistently achievable
- Manual concurrency managementFor market data aggregation? BEAM wins.
For order execution? Rust every time. -
A tail-call interpreter in (nightly) Rust
https://www.mattkeeter.com/blog/2026-04-05-tailcall/
#HackerNews #A #tail-call #interpreter #in #(nightly) #Rust #Rust #Programming #Tail #Call #Optimization #Interpreter #Development #Hacker #News
-
Matt just discovered that writing a #tail-call #interpreter in #Rust is surprisingly fun! 🎉 Apparently, outperforming his own #ARM64 #assembly is no big deal. Let's all pretend seven months counts as "recent" in Rust-land! 🕰️
https://www.mattkeeter.com/blog/2026-04-05-tailcall/ #Programming #Fun #Hacker #News #HackerNews #ngated -
Python 3.14 的 tail-call interpreter 的效能提升來自於繞過 LLVM 的 regression bug
前幾天 Python 圈子蠻熱鬧的一個主題:「Performance of the Python 3.14 tail-call interpreter」。 Python 3.14 實作了 tail-call interpreter (是個 opt-in 參數),結果官方測試發現效能在 benchmark 時有巨大的提升 (9%~15%),但文章作者覺得不合理,交叉測試了許多 case 後發現這是因為 LLVM 的 regression bug 導致 computed gotos 比較慢,…
#bug #call #compiler #computed #gotos #interpreter #llvm #performance #python #python3 #regression #speed #tail #TailCall
-
Python 3.14 的 tail-call interpreter 的效能提升來自於繞過 LLVM 的 regression bug
前幾天 Python 圈子蠻熱鬧的一個主題:「Performance of the Python 3.14 tail-call interpreter」。 Python 3.14 實作了 tail-call interpreter (是個 opt-in 參數),結果官方測試發現效能在 benchmark 時有巨大的提升 (9%~15%),但文章作者覺得不合理,交叉測試了許多 case 後發現這是因為 LLVM 的 regression bug 導致 computed gotos 比較慢,…
#bug #call #compiler #computed #gotos #interpreter #llvm #performance #python #python3 #regression #speed #tail #TailCall
-
Python 3.14 的 tail-call interpreter 的效能提升來自於繞過 LLVM 的 regression bug
前幾天 Python 圈子蠻熱鬧的一個主題:「Performance of the Python 3.14 tail-call interpreter」。 Python 3.14 實作了 tail-call interpreter (是個 opt-in 參數),結果官方測試發現效能在 benchmark 時有巨大的提升 (9%~15%),但文章作者覺得不合理,交叉測試了許多 case 後發現這是因為 LLVM 的 regression bug 導致 computed gotos 比較慢,…
#bug #call #compiler #computed #gotos #interpreter #llvm #performance #python #python3 #regression #speed #tail #TailCall
-
Python 3.14 的 tail-call interpreter 的效能提升來自於繞過 LLVM 的 regression bug
前幾天 Python 圈子蠻熱鬧的一個主題:「Performance of the Python 3.14 tail-call interpreter」。 Python 3.14 實作了 tail-call interpreter (是個 opt-in 參數),結果官方測試發現效能在 benchmark 時有巨大的提升 (9%~15%),但文章作者覺得不合理,交叉測試了許多 case 後發現這是因為 LLVM 的 regression bug 導致 computed gotos 比較慢,…
#bug #call #compiler #computed #gotos #interpreter #llvm #performance #python #python3 #regression #speed #tail #TailCall
-
Python 3.14 的 tail-call interpreter 的效能提升來自於繞過 LLVM 的 regression bug
前幾天 Python 圈子蠻熱鬧的一個主題:「Performance of the Python 3.14 tail-call interpreter」。 Python 3.14 實作了 tail-call interpreter (是個 opt-in 參數),結果官方測試發現效能在 benchmark 時有巨大的提升 (9%~15%),但文章作者覺得不合理,交叉測試了許多 case 後發現這是因為 LLVM 的 regression bug 導致 computed gotos 比較慢,…
#bug #call #compiler #computed #gotos #interpreter #llvm #performance #python #python3 #regression #speed #tail #TailCall
-
TIL that you can enable Tail Call optimization in #Ruby as well 🤯
#ruby #rails #friendlyrb #bucharest #fibonacci #recursion #FriendlyRB2024
-
TIL that you can enable Tail Call optimization in #Ruby as well 🤯
#ruby #rails #friendlyrb #bucharest #fibonacci #recursion #FriendlyRB2024
-
TIL that you can enable Tail Call optimization in #Ruby as well 🤯
#ruby #rails #friendlyrb #bucharest #fibonacci #recursion #FriendlyRB2024
-
TIL that you can enable Tail Call optimization in #Ruby as well 🤯
#ruby #rails #friendlyrb #bucharest #fibonacci #recursion #FriendlyRB2024
-
TIL that you can enable Tail Call optimization in #Ruby as well 🤯
#ruby #rails #friendlyrb #bucharest #fibonacci #recursion #FriendlyRB2024
-
@pid_eins @fosdem haha! I'm reading this from the Declarative and Minimalistic Computing devroom, so that is a nice reminder that I should do more of my hobby projects in languages that have tail call optimization ;)
#Tail_Recursion rocks
-
@simon Here's a real-life application of the new tail-calling interpreter in 3.14.0a5, a full build of the CPython docs is 1.26 times faster, saving 7.5 seconds!
-
Глобально оптимальный, восьмой и наиболее быстрый вид интерпретаторов байткода
Совершать невозможное и раздавать пинки здравому смыслу — в этом и состоит жизнь членов Гуррен-Дана! (C) Камина Эта статья вступает в техническую полемику со статьей 2015 года за авторством Atakua , подходы из которой я и атакую. Atakua исследует 7 видов интерпретаторов байткода, но делает это без уважения - быстрейшей оказывается двоичная трансляция, которая, по сути, уже не интерпретатор байткода, а форма Ahead-Of-Time компилятора. Эта двоичная трансляция транслирует байткод в машинный код, представляющий собой цепочку вызовов скомпилированных сервисных процедур. Тех самых, что в интерпретаторе байткода отвечают за выполнение каждого опкода. Но Atakua не выжал из интерпретаторов байткода всю скорость которая возможна. Так что эта статья - туториал: как написать интерпретатор байткода, который может обгонять JIT/AOT-компиляцию по скорости. Интересно? Читайте дальше! Бенчмарк прилагается. Будет немного хардкора и ни одной сгенерированной нейросетью картинки!
https://habr.com/ru/articles/856480/
#interpreter #simulation #branch_prediction #threaded #binary_translation #jit #aot #tail_recursion #tail_call_optimization #байткод
-
"Compiler and runtime support for continuation marks" (PLDI 2020) https://dl.acm.org/doi/10.1145/3385412.3385981
"Continuation marks enable dynamic binding and context inspection in a language with proper handling of tail calls and first-class, multi-prompt, delimited continuations."GHC proposal: "scoped thread-locals" https://github.com/ghc-proposals/ghc-proposals/pull/751
"efficient storage and lookup for immutable context
attached to the current Haskell thread, which is inherited by child threads." -
Day 19 of Advent of Compiler Optimisations!
Recursive functions need to call themselves over and over — that must mean unbounded stack growth, right? Wrong! When a function ends by calling another function (even itself), the compiler can replace the call with a simple jump. Recursion becomes iteration, no stack overhead at all. How does this transformation work?
Read more: https://xania.org/202512/19-tail-call-optimisation
Watch: https://youtu.be/J1vtP0QDLLU -
🐍🙃 Oh joy, another attempt to make #Python do something it was never meant to do! Tacopy claims to optimize tail calls, but really just optimizes your ability to waste time on #GitHub repo rabbit holes. 🚀😂
https://github.com/raaidrt/tacopy #PythonProgramming #TailCallOptimization #Humor #HackerNews #ngated -
Глобально оптимальный, восьмой и наиболее быстрый вид интерпретаторов байткода
Совершать невозможное и раздавать пинки здравому смыслу — в этом и состоит жизнь членов Гуррен-Дана! (C) Камина Эта статья вступает в техническую полемику со статьей 2015 года за авторством Atakua , подходы из которой я и атакую. Atakua исследует 7 видов интерпретаторов байткода, но делает это без уважения - быстрейшей оказывается двоичная трансляция, которая, по сути, уже не интерпретатор байткода, а форма Ahead-Of-Time компилятора. Эта двоичная трансляция транслирует байткод в машинный код, представляющий собой цепочку вызовов скомпилированных сервисных процедур. Тех самых, что в интерпретаторе байткода отвечают за выполнение каждого опкода. Но Atakua не выжал из интерпретаторов байткода всю скорость которая возможна. Так что эта статья - туториал: как написать интерпретатор байткода, который может обгонять JIT/AOT-компиляцию по скорости. Интересно? Читайте дальше! Бенчмарк прилагается. Будет немного хардкора и ни одной сгенерированной нейросетью картинки!
https://habr.com/ru/articles/856480/
#interpreter #simulation #branch_prediction #threaded #binary_translation #jit #aot #tail_recursion #tail_call_optimization #байткод
-
Глобально оптимальный, восьмой и наиболее быстрый вид интерпретаторов байткода
Совершать невозможное и раздавать пинки здравому смыслу — в этом и состоит жизнь членов Гуррен-Дана! (C) Камина Эта статья вступает в техническую полемику со статьей 2015 года за авторством Atakua , подходы из которой я и атакую. Atakua исследует 7 видов интерпретаторов байткода, но делает это без уважения - быстрейшей оказывается двоичная трансляция, которая, по сути, уже не интерпретатор байткода, а форма Ahead-Of-Time компилятора. Эта двоичная трансляция транслирует байткод в машинный код, представляющий собой цепочку вызовов скомпилированных сервисных процедур. Тех самых, что в интерпретаторе байткода отвечают за выполнение каждого опкода. Но Atakua не выжал из интерпретаторов байткода всю скорость которая возможна. Так что эта статья - туториал: как написать интерпретатор байткода, который может обгонять JIT/AOT-компиляцию по скорости. Интересно? Читайте дальше! Бенчмарк прилагается. Будет немного хардкора и ни одной сгенерированной нейросетью картинки!
https://habr.com/ru/articles/856480/
#interpreter #simulation #branch_prediction #threaded #binary_translation #jit #aot #tail_recursion #tail_call_optimization #байткод
-
Глобально оптимальный, восьмой и наиболее быстрый вид интерпретаторов байткода
Совершать невозможное и раздавать пинки здравому смыслу — в этом и состоит жизнь членов Гуррен-Дана! (C) Камина Эта статья вступает в техническую полемику со статьей 2015 года за авторством Atakua , подходы из которой я и атакую. Atakua исследует 7 видов интерпретаторов байткода, но делает это без уважения - быстрейшей оказывается двоичная трансляция, которая, по сути, уже не интерпретатор байткода, а форма Ahead-Of-Time компилятора. Эта двоичная трансляция транслирует байткод в машинный код, представляющий собой цепочку вызовов скомпилированных сервисных процедур. Тех самых, что в интерпретаторе байткода отвечают за выполнение каждого опкода. Но Atakua не выжал из интерпретаторов байткода всю скорость которая возможна. Так что эта статья - туториал: как написать интерпретатор байткода, который может обгонять JIT/AOT-компиляцию по скорости. Интересно? Читайте дальше! Бенчмарк прилагается. Будет немного хардкора и ни одной сгенерированной нейросетью картинки!
https://habr.com/ru/articles/856480/
#interpreter #simulation #branch_prediction #threaded #binary_translation #jit #aot #tail_recursion #tail_call_optimization #байткод
-
New releases!
🐍 #Python 3.15.0a8!
🐍 Python 3.14.4!
🐍 Python 3.13.13!
🖼️ Pillow 12.2.0!https://blog.python.org/2026/04/python-3150a8-3144-31313/
https://pillow.readthedocs.io/en/latest/releasenotes/12.2.0.html⚠️ Final 3.15 alpha: only 4 weeks until the feature freeze! 🧊
New in this alpha:
🧵 PEP 803: “abi3t”: Stable ABI for free-threaded builds
🪟 Windows 64-bit binaries use the tail-calling interpreter for up to 40% speedup!
https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-windows-tail-calling-interpreter
🦋 REPL: colour tab completion with fancycompleter -
New releases!
🐍 #Python 3.15.0a8!
🐍 Python 3.14.4!
🐍 Python 3.13.13!
🖼️ Pillow 12.2.0!https://blog.python.org/2026/04/python-3150a8-3144-31313/
https://pillow.readthedocs.io/en/latest/releasenotes/12.2.0.html⚠️ Final 3.15 alpha: only 4 weeks until the feature freeze! 🧊
New in this alpha:
🧵 PEP 803: “abi3t”: Stable ABI for free-threaded builds
🪟 Windows 64-bit binaries use the tail-calling interpreter for up to 40% speedup!
https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-windows-tail-calling-interpreter
🦋 REPL: colour tab completion with fancycompleter -
New releases!
🐍 #Python 3.15.0a8!
🐍 Python 3.14.4!
🐍 Python 3.13.13!
🖼️ Pillow 12.2.0!https://blog.python.org/2026/04/python-3150a8-3144-31313/
https://pillow.readthedocs.io/en/latest/releasenotes/12.2.0.html⚠️ Final 3.15 alpha: only 4 weeks until the feature freeze! 🧊
New in this alpha:
🧵 PEP 803: “abi3t”: Stable ABI for free-threaded builds
🪟 Windows 64-bit binaries use the tail-calling interpreter for up to 40% speedup!
https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-windows-tail-calling-interpreter
🦋 REPL: colour tab completion with fancycompleter -
New releases!
🐍 #Python 3.15.0a8!
🐍 Python 3.14.4!
🐍 Python 3.13.13!
🖼️ Pillow 12.2.0!https://blog.python.org/2026/04/python-3150a8-3144-31313/
https://pillow.readthedocs.io/en/latest/releasenotes/12.2.0.html⚠️ Final 3.15 alpha: only 4 weeks until the feature freeze! 🧊
New in this alpha:
🧵 PEP 803: “abi3t”: Stable ABI for free-threaded builds
🪟 Windows 64-bit binaries use the tail-calling interpreter for up to 40% speedup!
https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-windows-tail-calling-interpreter
🦋 REPL: colour tab completion with fancycompleter -
New releases!
🐍 #Python 3.15.0a8!
🐍 Python 3.14.4!
🐍 Python 3.13.13!
🖼️ Pillow 12.2.0!https://blog.python.org/2026/04/python-3150a8-3144-31313/
https://pillow.readthedocs.io/en/latest/releasenotes/12.2.0.html⚠️ Final 3.15 alpha: only 4 weeks until the feature freeze! 🧊
New in this alpha:
🧵 PEP 803: “abi3t”: Stable ABI for free-threaded builds
🪟 Windows 64-bit binaries use the tail-calling interpreter for up to 40% speedup!
https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-windows-tail-calling-interpreter
🦋 REPL: colour tab completion with fancycompleter -
TCO in both Python and Rust? What a time to be alive. As a FP advocate, I am in awe.
And if you don't know what TCO is, let me share with you the best conference ever https://www.youtube.com/watch?v=-PX0BV9hGZY&t=1s
Python: https://blog.reverberate.org/2025/02/10/tail-call-updates.html
Rust: https://www.mattkeeter.com/blog/2026-04-05-tailcall/
#python #rust #programming #tco #functionalProgramming #recursion
-
TCO in both Python and Rust? What a time to be alive. As a FP advocate, I am in awe.
And if you don't know what TCO is, let me share with you the best conference ever https://www.youtube.com/watch?v=-PX0BV9hGZY&t=1s
Python: https://blog.reverberate.org/2025/02/10/tail-call-updates.html
Rust: https://www.mattkeeter.com/blog/2026-04-05-tailcall/
#python #rust #programming #tco #functionalProgramming #recursion
-
TCO in both Python and Rust? What a time to be alive. As a FP advocate, I am in awe.
And if you don't know what TCO is, let me share with you the best conference ever https://www.youtube.com/watch?v=-PX0BV9hGZY&t=1s
Python: https://blog.reverberate.org/2025/02/10/tail-call-updates.html
Rust: https://www.mattkeeter.com/blog/2026-04-05-tailcall/
#python #rust #programming #tco #functionalProgramming #recursion