API reference

python:arxjit:arxjit.core.jit

function jit

jit(fn: PyFunc | None = None, *, signature: Signature | None = None, cache: bool = False) -> JitFunction | functools.partial[JitFunction]

Source: packages/arxjit/src/arxjit/core.py:67

Compile a pure Python function through the Arx stack.

Use @jit directly or supply signature and cache options. Records the requested signature and returns a callable wrapper. When called with options it returns a partial that wraps the function next.

Parameters

Returns

Wrapped function, or a decorator awaiting a function when options are supplied.; Type: JitFunction | functools.partial[JitFunction]

Search documentation

Type to search.