I talked briefly with William at Scipy2008 about being able to call sage from mathematica. He said it would be useful. I don't have much experience with python and none with sage and cython beside the nice tutorials at the conference. I wanted to get your input on how I should proceed. Most of my work is numerical so I wanted to take advantage of the new cython numpy interface in Cython-0.9.8.1.1 to call scipy functions.
To check how hard it would be to start, I implemented the mathlink toy example addtwo with the slow socket interface: EXAMPLES: sage: args = ['','-linkcreate','-linkprotocol','TCPIP'] sage: import addtwo sage: addtwo.ml_main(args) Link created on: [EMAIL PROTECTED],[EMAIL PROTECTED] (sage session hangs) In Mathematica, In[1]:= link = LinkConnect["[EMAIL PROTECTED],[EMAIL PROTECTED]", LinkProtocol -> "TCPIP"]; In[2]:= Install[link] In[3]:= AddTwo[1, 1] Out[3]:= 2 In[4]:= Uninstall[link] (sage session returns) Here's some code: http://connes.berkeley.edu/~amir/sage/mlink.tar.gz It requires makefile and setup.py to be changed depending on your mathematica install, then make should work. 'For any of this to work you must buy and install the optional mathematica program'. Thanks, Amir --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---