On Fri, Dec 28, 2012 at 8:41 AM, Volker Braun <vbraun.n...@gmail.com> wrote:
> On Friday, December 28, 2012 4:19:11 PM UTC, William wrote: > >> I disagree. The only reason Sage doesn't have an interface to >> Mathematica written using the MathLink protocol is that nobody has got >> around to writting such an interface. I would like to strongly encourage >> people to write one. > > > Is there actually a MathLink wire protocol that is documented (and stable > across Mathematica versions)? > This page has a suggestion: http://mathematica.stackexchange.com/questions/610/is-the-communication-protocol-underlying-mathlink-user-customizable It's basically this: 1. Write a standalone Python program that listens for incoming connections on some TCP port. It will also link in the wolfram mathlink library, e.g., using ctypes. Put it on pypy under say the BSD license. It's a completely separate program (and process) from Sage. What it does is sit there and accept connections, then forward all traffic to Mathematica. 2. Use (1) from Sage. Probably the user has to "easy_install" 1 (or we can also make it an optional sage package). The other alternative is reverse engineering the protocol for the Mathematica REPL. I can't imagine it is very complicated, since there are a few canonical choices for such things. William > All MathLink docs I ever saw just show you how to use shared library that > Mathematica comes with. > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To post to this group, send email to sage-support@googlegroups.com. > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support?hl=en. > > > -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.