fiber
github.com · Open source · Archived
Python decorator for deep tail and non-tail recursion
- Developer tools
- Open source
- Python
- Day-7 check
- Day-30 check
- python
- recursion
- decorator
- python recursion limit
- deep recursion python
- python tail recursion
- python trampoline
- recursion decorator
- Stars
- 220
- Forks
- 5
- Open issues
- 0
- Last commit
- Found
- 4 years ago
GitHub figures as of . They are context, not a ranking.
fiber is a Python decorator that lets recursive functions go arbitrarily deep, covering both tail and non-tail calls. It is a GitHub repository written in Python. It suits Python developers who hit recursion limits in their code.
What it does
- Python decorator that lets recursive functions go arbitrarily deep
- Supports both tail and non-tail recursive calls
- Uses a trampoline to run the call stack on the heap
- Example computes fib(1010) past Python's default recursion limit of 1000
Good for
- Run deeply recursive Python functions without hitting the recursion limit
- Convert a recursive function so it runs on a heap-based call stack
Suits: Python developers who hit recursion limits in their code.
Worth knowing: Proof of concept, and the README says not to use it in production.
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw fiber on , when tylerhou posted it to Show HN. GitHub listed no published releases for tylerhou/fiber when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 archived
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- The repository was archived (read-only) when checked.
- Show HN discussion at check time: 119 points, 21 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 archived
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- The repository was archived (read-only) when checked.
- Show HN discussion at check time: 119 points, 21 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: tylerhou/fiber
- Found: tylerhou posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was fiber released?
- No dated release record is available. Kip found it on Show HN on 20 Dec 2021.
- Is fiber open source?
- Its source is public on GitHub at tylerhou/fiber under the Apache-2.0 licence.
- What does fiber run on?
- Library.
- Is fiber free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is fiber still maintained?
- No. The repository is archived (read-only).
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | tylerhou/fiber REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-29628772. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.