Skip to content

Cython backend

opulse.runtime.cython_backend

Compile operators with Cython and load them as extension modules.

Operators are written in dependency (topological) order into chunks of chunk_size operators. Each chunk is built once and cached by a hash of its source. Generated code refers to other operators, to base operations and to NAN as module globals; after loading, every module's globals are filled with one shared table (all compiled operators plus the base bindings from :class:~opulse.core.semantics.Semantics), so calls across chunks resolve and the arithmetic has a single implementation.

Same interface as :class:opulse.runtime.PythonRuntime.