Simon Willison’s Weblog

Subscribe

5th December 2025

Tool Tacopy Playground - Tail-Call Optimization for Python — Explore how tail-recursive Python functions are transformed into optimized iterative code using the Tacopy library. Enter your recursive function in the input panel to see the automatically generated transformed version, which eliminates stack overflow risks and improves performance by converting tail calls into loops. Try the built-in examples to understand how different recursive patterns are optimized.

Recent articles

This is a beat by Simon Willison, posted on 5th December 2025.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe