Hacker ApprovedDepartments

Tacopy

Ranked 6 of 14 Python libraries by recommenders

Short Python library adding tail call optimization to recursive functions, praised for its simple approach. Critics note it only handles tail recursion and adds overhead.

Short Python library adding tail call optimization to recursive functions, praised for its simple approach. Critics note it only handles tail recursion and adds overhead.

15 people gave an opinion

recommend it
8
criticize it
7
approval share
53%
Each figure is one person. RecommendsCriticizes

Recommended in 1 of 13 months

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: not recommended
  6. April 2026: not recommended
  7. May 2026: not recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 8 people recommend itNeeds 10 or more, not met.
  • 1.1 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 1 of 13 monthsNeeds 4 or more, not met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Short, simple, straightforward implementation

    “OP's approach is surprisingly straight forward, only a few hundred lines.”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

    “fairly succinct and to the point”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”
  • Elegant way to keep recursion

    “this was a net good since one can preserve the "clean syntax" from recursion”

    Comment from 7 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

    “seeing an elegant solution to this is really cool”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

What people warn about

Each mark is one comment

  • Only optimizes tail recursion, breaks some cases

    “The current implementation breaks semantics of functions with tail recursion from within loops”

    Comment from 13 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

    “it doesn't really seem to be full Tail Call Optimization, but only optimizes tail recursion”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”
  • Runtime rewriting adds overhead

    “I'm also not convinced that this actually is worth the effort, considering it’s doing runtime rewriting of Python using Python.”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

    “There's quite a bit of overhead.”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”
  • Overkill for a few lines

    “Why do i need a fully fledged library for something that is basically a few lines of code?”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

    “I'm also not convinced that this actually is worth the effort, considering it’s doing runtime rewriting of Python using Python.”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”
  • Looks LLM-generated, obfuscated code

    “It's very llm-y. But, kudos to them for preserving the commit history / being honest about it.”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

    “you're calling a built in function, why make obfuscate this in an "llm way"”

    Comment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

Other Python libraries people recommend

The four most recommended other Python libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Tacopy compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Polars1525075%121 yr3 ownersApproved
pandas939849%1110 yrs7 owners—
NumPy863273%12—Approved
SciPy12286%7—Approved
TacopyThis page8753%1——
See all 14 Python libraries, ranked

What people said

13 of the 15 comments that mention it, newest first. Each links to the original comment.

“The current implementation breaks semantics of functions with tail recursion from within loops”

CriticizesComment from 13 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“this was a net good since one can preserve the "clean syntax" from recursion”

RecommendsComment from 7 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“It's a suboptimal implementation but it's interesting for the purpose of transpiling something like Scheme or ML”

MixedComment from 7 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“it doesn't really seem to be full Tail Call Optimization, but only optimizes tail recursion”

CriticizesComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“this whole thing is equivalent to a goto at the beginning of a function”

CriticizesComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“It's very llm-y. But, kudos to them for preserving the commit history / being honest about it.”

MixedComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“I'm also not convinced that this actually is worth the effort, considering it’s doing runtime rewriting of Python using Python.”

CriticizesComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“you're calling a built in function, why make obfuscate this in an "llm way"”

CriticizesComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“seeing an elegant solution to this is really cool”

RecommendsComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“OP's approach is surprisingly straight forward, only a few hundred lines.”

RecommendsComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“fairly succinct and to the point”

RecommendsComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“There's quite a bit of overhead.”

CriticizesComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

“Why do i need a fully fledged library for something that is basically a few lines of code?”

CriticizesComment from 5 Dec 2025 in “Show HN: Tacopy – Tail Call Optimization for Python”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.