pro-grammer-SD/autonumba
โก Auto-JIT your Python code with Numba @njit + optional AOT compilation ๐ Numeric-heavy code, boosted fast ๐๏ธ
What's novel
โก Auto-JIT your Python code with Numba @njit + optional AOT compilation ๐ Numeric-heavy code, boosted fast ๐๏ธ
Code Analysis
8 files read ยท 3 roundsA CLI tool that uses Python's ast module to parse source files and inject @njit decorators onto all function definitions, then optionally compiles the result with Cython or Nuitka.
Strengths
The AST-based injection approach is clean and correct in principle, and the project is small enough to be fully understood in minutes. The CLI interface with progress bars and the #nonumba escape hatch are practical touches.
Weaknesses
ast.unparse() destroys all comments, docstrings-as-comments, and formatting, making the output unsuitable for real codebases. The flag logic is broken (args.cache or True always evaluates True), Cython is imported but not declared as a dependency, the example code would crash under Numba due to random.random(), and there are zero tests.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
6
Contributors
1
Files
16
Active weeks
2
Repository
Language
Python
Stars
5
Forks
0
License
MIT