ReactiveKernels prepares reusable Julia computations from the values you have to the values you want.
Install from a source checkout:
git clone https://github.com/nsiccha/ReactiveKernels.jl.git
cd ReactiveKernels.jl && julia --project=. deps/source_dependencies.jlThis example runs on the documentation landing page during every docs build:
using ReactiveKernels
@kernel affine(x, scale, offset) = begin
value = scale * x + offset
end
f = prepare(affine)
f(2.0, 3.0, 1.0)The prepared function returns the affine transformation's value. See the executed example and its output.
The documentation has four entry points:
- Start: installation and a complete evaluation.
- Guides: graph boundaries, binding, batching and differentiation.
- Examples: evaluated graphs with visible results and diagnostics.
- Reference: exported interfaces and their contracts.
The nested ReactiveKernelsPPL package adds probabilistic declarations, coordinate transformations and log-density queries. Core ReactiveKernels does not select an inference algorithm.
Contributors must read the core constraints before changing a lowering, extension or example. See docs/README.md for the documentation build and benchmark/README.md for research and performance experiments.