Live data from Hacker News

Woxi: Wolfram Mathematica Reimplementation in Rust

github.com

51–60 of 141 posts

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#51

Earlier quoted context omitted.

Do you see why this perspective is a red flag on its own?

No I don’t, review your code

If I go by the contributor numbers on Github, I see Claude has committed something on the order of 300,000 lines of code. I don't think it's reasonable to review that much code, even in weeks worth of time.

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#52
post #35
post #29

Earlier quoted context omitted.

There's a mystique around Mathematica's math engine. Is this groundless, or will you eventually run into problems getting correct, identical answers -- especially for answers that Mathematic derives symbolically? The capabilities and results of the computer algebra systems that I've used varied widely.

Hard to tell honestly. So far there was always some surprisingly straight forward solution If had any problems with the math engine. There is actually a lot of public research how equations can be solved/simplified with computer algorithms. So I'm optimistic. I also stumbled upon a few cases where Mathematica itself didn't quite do things correctly itself (rounding errors, missing simplifications, etc.). So maybe it'…

I also found problems with integrating some obscure functions a few years black, though IIRC the issue was remedies by using the amazing Rubi package:

https://rulebasedintegration.org/

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#53

Earlier quoted context omitted.

are all the tests hand written or are some agent-contributed? curious

What’s the difference if you review the code getting merged?

Reviewing the correctness of code is a lot harder than writing correct code, in my experience. Especially when the code given looks correct on an initial glance, and leads you into faulty assumptions you would not have made otherwise.

I'm not claiming AI-written and human-reviewed code is necessarily bad, just that the claim that reviewing code is equivalent to writing it yourself does not match my experience at all.

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#54
post #39
post #9

Earlier quoted context omitted.

Interesting, thanks for sharing. Naive question as I'm not familiar with Mathematica much (but aware of it and Wolfram Alpha and related tools), how does it compare to e.g. Jupyter or Julia or maybe another language (with its framework) that might be even closer?

I think Wolfram Language is just so much more ergonomic. No need to import dependencies - everything's included and consistent, very readable - yet compact - syntax, less gotchas than Python, R, etc., sensible default, …

Ymmv, but I've found that you sure do need to import things eventually, and it's not so ergonomic because most projects just end up as mega-notebooks.

Just like Python or any other language that looks easy for the learning examples, there are still hairy bits, they're just better hidden. The difference is that the debuggers for Python are far better.

Mathematica is great for quick stuff, but once you hit a particular level complexity it goes crazy. In this regard I find it similar to Bash.

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#55

Great! Math tools for everyone. what's stopping some Mathematica employee from taking the source code and having an agent port it. Or even reconstruction from the manual. Who owns an algorithm? Will everything get copied eventually?

> what's stopping some employee from something like Mathematica from taking the source code and having an agent port it to open source Laws against theft. Also the same reason employees don't release the code on pastebin or something. > Who owns an algorithm? The org or person who was granted the software patent. https://en.wikipedia.org/wiki/Software_patent > Will everything get copied eventually? If we're lucky. Mo…

Which patent are you referring to?

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#56

Earlier quoted context omitted.

Similarly I'm not sure Octave ever really got that polish to compete with MATLAB. SPSS is hilariously painful to use. Still it's only losing ground ever so slowly. PSPP remains almost unheard of among SPSS core users.

I am not sure Octave ever had to put on that much polish. It just had to be decent enough to save $$$$ vs a Matlab license. If it can drop-in run the code that has been keeping the lab going for decades, good enough.

MathWorks offers a huge list of "toolboxes", domain specific extensions that cover a lot of features in each domain. Replacing Matlab isn't about the core language alone.

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#57

Earlier quoted context omitted.

What’s the difference if you review the code getting merged?

Reviewing the correctness of code is a lot harder than writing correct code, in my experience. Especially when the code given looks correct on an initial glance, and leads you into faulty assumptions you would not have made otherwise. I'm not claiming AI-written and human-reviewed code is necessarily bad, just that the claim that reviewing code is equivalent to writing it yourself does not match my experience at all.

Plus if you look at the commit cadence there is a lot of commits like 5-10 minutes a part in places that add new functionality (which I realize doesn't mean they were "written" in that time)

I find people do argue a lot about "if it is reviewed it is the same" which might be easy when you start but I think the allure of just glancing going "it makes sense" and hammering on is super high and hard to resist.

We are still early into the use of these tools so perhaps best practices will need to be adjusted with these tools in mind. At the moment it seems to be a bit of a crap shoot to me.

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#58

Earlier quoted context omitted.

are all the tests hand written or are some agent-contributed? curious

What’s the difference if you review the code getting merged?

i mean idk that's sorta like asking what's the difference of having tests if you review the code getting merged

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#59
post #50

Earlier quoted context omitted.

Have you considered using quickcheck/random/property-based testing with LLM code generation to automate function implementation?

Yeah, I've already looked into it, but decided to keep developing it "example driven" for now. Aka I'm playing around with it, and whenever I find something that's broken I keep a note of it and then I pick those notes one by one and implement them. Once the most common things are implemented I will start writing property tests to catch all the edge cases of each feature.

I'm saying you can go even further and automate the entire thing using LLMs/agents, it is pretty much the ideal use case: you have a black-box reference implementation to test against; descriptive documentation for what the functions should do; some explicitly supplied examples in the documentation; and the ability to automatically create an arbitrary number of tests.

So not only do you have a closed loop system that has objective/automatic pass-fail criteria you also don't even have to supply the instructions about what the function is supposed to do or the test cases!

Obviously this isn't going to be 100% reliable (especially for edge cases) but you should be able to get an enormous speed up. And in many cases you should be able to supply the edge case tests and have the LLM fix it.

(Codex is still free for the next few days if you want to try their "High"/"Extra high" thinking models)

Re: Woxi: Wolfram Mathematica Reimplementation in Rust

#60
post #56

Earlier quoted context omitted.

I am not sure Octave ever had to put on that much polish. It just had to be decent enough to save $$$$ vs a Matlab license. If it can drop-in run the code that has been keeping the lab going for decades, good enough.

MathWorks offers a huge list of "toolboxes", domain specific extensions that cover a lot of features in each domain. Replacing Matlab isn't about the core language alone.

Which often means that e.g. loading an image for displaying it increases cost by a few thousands
Post reply on HN