Once more into the fray

Computer Algebra, Mathematics — Alex @ 7:23 pm

I was recently invited to help rework BasicCAS into a full-fledged Mathematica parser for the SymPy project, a challenge which I have accepted. The idea is that a Mathematica parser (along with a working backend, a much harder goal to meet, I’d say) would allow SymPy to benefit from the large body of free Mathematica code floating around out there. Part of the reason I’m taking this on is because I’d not like to see SymPy turn into a melange like Sage– the idea of tying together disparate CASes and mathematical libraries with a glue language is aesthetically unappealing to me, and pragmatically, what’s the point of dividing development effort between two Python-based metaCASes? A well-defined global syntax is the biggest preventative measure I can think of.

So now I have some fun goals for the summer, to round out my list of not-so-fun goals: figure out a grammar for Mathematica’s syntax (this may be, literally, impossible: I have heard it said that the only grammar Mathematica follows is the ex post facto grammar imposed by its parser’s behavior); write a parser for that grammar, test it; track down the inevitable incompatibilities, attempt to improve the grammar; recurse. It’s going to be a bitch, but fun, hopefully!

Possibly relevant posts:

1 Comment »

  1. How are your efforts going? Pythonica and Richard Fatemen’s work are both noble efforts in this direction.

    What I can’t understand is that Mathematica has been out for 19 years now and we still don’t have a GNU equivalent? All that Mathematica source code is tied to Wolfram Research…

    Comment by Antonio — 9/10/2007 @ 7:29 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2008 ChapterZero | powered by WordPress with Barecity