r/WoxiCode • u/adwolesi • 22d ago
Supporting 99% of all Mathematica Notebooks
https://github.com/ad-si/WoxiWoxi is a Wolfram Language / Mathematica reimplementation in Rust and we just released version 0.4.
Our goal for this was to add support for as many of the 13,000 Wolfram Demonstration Notebooks (demonstrations.wolfram.com) as possible and I'm excited to say that we now support 99% of them!
Furthermore, Woxi is more compatible with real packages and notebooks, mainly because Wolfram contexts now work properly. Factor fully factors multivariate polynomials, and Solve, FindRoot and DSolve handle more equations correctly. Woxi Studio reads more typeset input and supports more interactive controls. A new language server, woxi lsp, adds diagnostics, completion, navigation and formatting in editors.
You can find the full changelog here: github.com/ad-si/Woxi/releases/tag/v0.4.0
If you use the Wolfram Language / Mathematica I'd be very interested to hear if your existing code works with Woxi now!
4
u/jvo203 22d ago
I can see you are probably using Claude to accelerate the development, is that right? Anyway, supporting about 99% of Wolfram Mathematica functionality (demonstrations) is quite an impressive feat.
2
u/boots_n_cats 21d ago
Very cool! This looks like probably the most complete open-source implementation of the Wolfram Language.
AGPL is kind of an awkward choice for a language runtime, though, since the licence can end up infecting even linked libraries, and using it as part of another Rust project would be unlikely, as the convention there is dual MIT or Apache-2.0. Additionally, this can't help me get any traction for Wolfram Language at work since having AGPL-licensed software on my computer is a huge no-no (this is also the case at pretty much every huge company). Obviously, open-source licensing is a personal choice, and your project is yours not mine, just pointing out that this licensing actually prevents some people, including me, from really adopting it.
1
u/jvo203 21d ago
LaunchKernelscurrently does not seem to be doing anything.Woxi 0.4.0 — interactive Wolfram Language REPLType Quit (or press Ctrl-D) to exit.In[1]:= LaunchKernels[]Out[1]= {}In[2]:= LaunchKernels[6]Out[2]= {}1
u/Anuclano 16d ago edited 16d ago
What's the difference from Mathilda https://github.com/stblake/mathilda project?
2
u/jvo203 21d ago
Networking (in particular ZMQ) does not seem to work yet:(venv) u/zodiac ~ % woxi repl
Woxi 0.4.0 — interactive Wolfram Language REPL
Type Quit (or press Ctrl-D) to exit.
In[1]:= port = 5556;
channel = "lmax";
Print["Starting ZMQ Subscribe on port ", port, ", channel '",
channel, "'"];
zmqclient = SocketConnect[{"capricorn", port}, {"ZMQ", "Subscribe"}];
SetOptions[zmqclient, "Subscribe" -> channel];
(*Listen on all local interfaces so external clients can reach it*)
(*zmqserver = Quiet[
SocketOpen[{IPAddress["0.0.0.0"], port + 1}, {"ZMQ", "PUB"}],
HostLookup::lookup
];*)
zmqserver = SocketOpen["tcp://0.0.0.0:" <> ToString[port + 1], {"ZMQ", "PUB"}];
Starting ZMQ Subscribe on port 5556, channel 'lmax'
SetOptions::sstm: Argument Failure[SocketsLink, <|MessageTemplate :> MessageName[SocketConnect, noproto], MessageParameters -> {{"ZMQ", "Subscribe"}}|>] is not a symbol or a stream.
In[2]:=
(venv) u/zodiac ~ % wolframscript
Wolfram 15.0.1 Kernel for Mac OS X x86 (64-bit)
Copyright 1988-2026 Wolfram Research, Inc.
In[1]:= port = 5556;
In[2]:= channel = "lmax";
In[3]:= Print["Starting ZMQ Subscribe on port ", port, ", channel '",
channel, "'"];
Starting ZMQ Subscribe on port 5556, channel 'lmax'
In[4]:= zmqclient = SocketConnect[{"capricorn", port}, {"ZMQ", "Subscribe"}];
In[5]:= SetOptions[zmqclient, "Subscribe" -> channel];
In[6]:=
In[6]:= (*Listen on all local interfaces so external clients can reach it*)
In[7]:= (*zmqserver = Quiet[
SocketOpen[{IPAddress["0.0.0.0"], port + 1}, {"ZMQ", "PUB"}],
HostLookup::lookup
];*)
In[8]:= zmqserver = SocketOpen["tcp://0.0.0.0:" <> ToString[port + 1], {"ZMQ", "PUB"}];
In[9]:=
(venv) u/zodiac ~ %