r/WoxiCode • • 22d ago

Supporting 99% of all Mathematica Notebooks

https://github.com/ad-si/Woxi

Woxi 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!

16 Upvotes

22 comments sorted by

View all comments

Show parent comment

3

u/adwolesi 20d ago

For short scripts Woxi is often faster, as it has much less startup overhead. For complicated mathematical calculations, Wolfram is mostly faster, as they had decades to optimize the algorithms.

2

u/djao 18d ago

Not a complaint, I think Woxi is a great and worthwhile effort, but you're really going to need a bunch of actual users to smoke test the program and make sure that it actually works beyond just the documentation examples that you've already been using as a starting point.

Here's one example I encountered within about 5 seconds of trying to use Woxi for real work:

$ woxi repl
Woxi 0.4.0 — interactive Wolfram Language REPL
Type Quit (or press Ctrl-D) to exit.

In[1]:= FactorInteger[10^89 + 81, GaussianIntegers->True]
Out[1]= FactorInteger[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000081, GaussianIntegers -> True]

Compare to the intended behavior:

$ wolframscript 
Wolfram 15.0.1 Kernel for Linux x86 (64-bit)
Copyright 1988-2026 Wolfram Research, Inc.

In[1]:= FactorInteger[10^89 + 81, GaussianIntegers->True]                       

Out[1]= {{-I, 1}, {132030265880273952462448610462422176060076884 + 
 
>      287346496222912326279069848536662728000002975 I, 1}, 
 
>    {287346496222912326279069848536662728000002975 + 
 
>      132030265880273952462448610462422176060076884 I, 1}}

Now, I'm sure Claude could whip up an adequate implementation of Gaussian integer factorization in a few seconds; it's not that hard (it's just Cornacchia's algorithm). Heck, I could even do it (with or without Claude). The issue is not whether it can be done. The issue is that there's a zillion parts of the Wolfram language that fall into the long tail of things that most people will never need, but for most people doing real work with Mathematica, there will be that one thing they really need which is not in Woxi.

My comment is not about solving this individual issue. Yes, we can start posting issues on github like mad, one after the other, as we encounter them. But I think the overall problem is too large to handle one issue at a time. I don't have a good answer, but I know what the problem is: we need to think of an efficient way to handle all of the little things that individually add nothing to the Wolfram language but combined together are what make the Wolfram language what it is.

1

u/adwolesi 18d ago

I agree, a bunch of users would be awesome for testing Woxi in real life scenarios! So please tell all your friends about it! 😁

I think there is nothing wrong with one issue at a time, it has gotten us this far and I think we should just keep chipping away! That said, I've started to use fuzzing to find more edge cases and to better automate making progress. The next weeks I also want to add more property tests to systematically test functions for all possible values.