Christmas is coming and 2026 is coming to an end. We’re finally releasing RSSN v0.3.0 and Aevia v0.1.0, which we promised back in February to release before May… The architecture shift turned out to be harder than we expected, and coordinating with upstream projects and other communities also took time. But anyway, here we are in December.
For those who haven’t come across them before: RSSN is a symbolic and numerical computing engine, and Aevia is a functional language for scientific computing built on top of it. RSSN is written in Rust, but this release also has Julia bindings, which is why we’re here. We would especially appreciate feedback on the Julia API, since we’re not primarily Julia developers and may have brought some Rust habits along with us.
We know Julia and SciML already have Symbolics, among other symbolic tools. Our understanding is that Symbolics has a strong focus on symbolic work connected to numerical computing, while RSSN is also aimed at more general computer algebra. We may be missing some things here, though, and we’d be interested to hear how people in the Julia community see the relationship.
This is more of a starting point for discussion than a deep dive, but deeper discussions are welcome too. As for benchmarks: some of the discussions around our previous results got pretty unpleasant, so we’re not including our own comparisons this time. We’d rather leave those to independent third parties in the future.
We’ve applied to add RSSN to the Julia General registry, but it hasn’t been approved yet. For now, download the archives from the GitHub release. From a directory where bindings/julia points to the unpacked Julia bindings, you can instantiate their environment and set the library path:
julia --project=bindings/julia -e 'using Pkg; Pkg.instantiate()'
export RSSN_LIB=/path/to/library-directory # a full shared-library path also works
To use the bindings from another Julia environment, you can develop the local package into it instead:
using Pkg
Pkg.develop(path = "bindings/julia")
using RSSN
What’s new in RSSN
RSSN v0.1 and v0.2 used a central enum for symbolic expressions, with the numerics kept separate. That’s a fairly standard approach, and a solid one. But after several months of discussion, we decided to take a somewhat more academic approach in v0.3.0.
Symbolic operations are rewritten into equivalent terms, and a computation can target either a symbolic or a numeric result. For numeric results, the engine can also use approximations provided by kernels when needed. These may come with an error estimate or an interval ball, although the guarantees depend on the algorithm.
The JIT in v0.2.0 was one of the parts we were least happy with… So we changed the execution backend to make it portable, while still using Cranelift for JIT compilation. There are separate layers for compiling expressions and for managing buffers and launching kernels.
We also spent some time on the boundaries between the engine and its bindings. RSSN has Python, C++, Julia, and R bindings (some requested by other communities), and is also used by Aevia. Keeping wrappers and their documentation consistent across all of them is not exactly the most glamorous problem, but it does need some careful design. The bindings share a C ABI, and a kernel manifest describes operators, signatures, and capabilities. Persistent OpKeys identify overloads across builds as long as their rule set, name, and signature stay the same.
OK, this is a post rather than a full architecture doc. For more details, see Aevia’s architecture documentation and the RSSN docs. (The links are hidden due to forum limitations; PS: I think the architecture doc is a bit too dense, so maybe I’ll write a personal blog post about it later.)
RSSN Julia examples
This is the first release of the Julia bindings, and we’re not sure how comfortable the API will feel to Julia users. Here are a few examples; we’d be happy to hear what feels awkward or what you’d expect to work differently.
For symbolic computations, assuming session is an RSSN session:
x = sym(session, "x")
t = diff(sin(x) * cos(x), x) # a request, not a result
text(t) # "diff(cos(x)*sin(x), x)"
compute(t).text # "cos(2*x)"
compute(integral(x^2, x)).text # "1/3*x^3"
compute(parse_term(session, "defint(x^2, x, 0, 1)")).text
compute(parse_term(session, "taylor(sin(x), x, 0, 5)")).text
compute(parse_term(session, "limit(sin(x)/x, x, 0)")).text
simplify(session, "(x^2 - 1)/(x - 1)").text # "x + 1"
And for a numeric result:
cfg = bind!(numeric!(Config(), 1e-12), "x", 0.5)
answer = compute(diff(sin(x), x), cfg)
answer.value # 0.877582561890373
answer.error # the estimated absolute error
eval_term(parse_term(session, "sin(x) + 1"), Dict("x" => 0.0)) # 1.0
compute_all runs several requests in parallel inside the library:
answers = compute_all(session, ["diff(x^3, x)", "integral(x^2, x)", "gcd(4, 6)"])
compute_all(session, ["1 + 1", "diff(x^2, x)"], config = cfg, errors = :collect)
In particular, we’d love to hear your thoughts on the request/compute distinction, the result objects, and the mix of Julia expressions and string input. Are the naming and mutating functions (numeric!, bind!) in line with what you’d expect from a Julia package? And if the installation process or parallel API feels awkward, we’d like to hear about that too.
Aevia
Aevia is a different kind of project: it’s a functional language for scientific computing. It’s written in Rust, with RSSN providing the symbolic and numerical engine, but its design is more of a programming language task. We won’t go into the architecture here, to keep this post from getting too long.
But here’s an example anyway:
fn energy(x: Real[Length]): Real[Energy] = (2 N/m) * x^2 / 2
test "restoring force at three metres" =
let gradient = diff(energy)
approx(-gradient(3 m)) == Ok(-6.0 N)
One of the core ideas here is that physical dimensions are part of the type system, which we think is particularly useful in engineering and physics.
You can install Aevia with:
curl -fsSL 'https://aevia.apich.org/install.sh' | sh
or on Windows:
& ([scriptblock]::Create((irm 'https://aevia.apich.org/install.ps1')))
Quality and Engineering
It’s been 15 months since RSSN started… We have to admit that at the beginning, we didn’t have the engineering expertise to build the project, and the code was a mess. Communication with the community was also a mess. But we’ve grown since then.
RSSN and Aevia are still in their early stages, though, and there are certainly more bugs to find despite our testing matrix. Bug reports and contributions are very welcome.
We use Bazel as our build system, and the CI is fairly heavy because it covers 10 platforms. We’re also working on the contributor experience, so feedback on that is welcome too.
Finally, thanks to all the contributors (including @jolars, @cn-starlabs, RheaCherry, and many others) and community members who have contributed code or ideas, and to all the sponsors who have backed us throughout development. Detailed lists can be found on our official website.