ArxJIT
ArxJIT is the planned Numba-style route from a restricted subset of pure Python to ASTx, IRx, LLVM, and native callable code.
Important: native JIT compilation is not implemented yet. A decorated function currently executes the original Python function.
Current API
from arxjit import i64, jit
@jit(signature=i64(i64, i64), cache=True)
def add(left, right):
return left + right
assert add(20, 22) == 42 # Python fallback today
Implemented foundations:
@jitand theJitFunctionwrapper- scalar signatures:
i32,i64,f32,f64, andbool_ - robust function-source extraction with real-file locations
- validation for the proposed scalar Python subset
- structured diagnostics and public error types
The validator accepts typed scalar arguments, arithmetic/comparison/Boolean
expressions, single-target assignments, if/else, while, for over the
builtin range, and return. It rejects unsupported constructs with one
diagnostic per violation.
Not implemented:
- Python AST to ASTx lowering
- IRx compilation or native function calls
- runtime argument/result marshalling
- signature inference and artifact caching
- array, Tensor, or Apache Arrow signatures
See the staged design for the Python-to-ASTx pipeline.
License: Apache-2.0.
Metadata
Release files for arxjit 1.24.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arxjit-1.24.1.tar.gz | 16.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arxjit-1.24.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.3 kB
Release files / arxjit-1.24.1.tar.gz
| Download URL | arxjit-1.24.1.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ae00cacb1f01c1c514043d7bfbe6df3241b9ad898503fdd2dd4f823cda1846e
|
|
BLAKE2b-256 checksum How to use checksums |
49840e0bee23f4002c78c9944ef8975a94babede757770beba14601597357876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1020-azure
|
Release files / arxjit-1.24.1-py3-none-any.whl
| Download URL | arxjit-1.24.1-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33207225664ec40b45b6cb293c6428c69577b9a6d0804b292ce0a48d24d0c1ad
|
|
BLAKE2b-256 checksum How to use checksums |
43f830e7ecd8b93f21ff96d5ae696eccc75c6a7a1d48fd716efdf71caca71dd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1020-azure
|