On Thu, May 7, 2015 at 2:17 PM, Joachim Durchholz <[email protected]> wrote: > Am 07.05.2015 um 20:10 schrieb Raymond Gong: >> >> Hey, this is the first time for me to be here, tried to search any >> examples >> or comments or whatever information on usage of sympy in java project. > > > The standard Python interpreter is a standalone program, interacting with > that from Java is always tricky because you have to convert all data > structures to and from string.
Actually, you just call SymPy using Python C/API, i.e. from C. Then you call this C wrapper from Java, so no string conversions. Ondrej > > Running SymPy inside Jython might be an easier path. > Jython is a Java reimplementation of Python. > It is quite possible that SymPy cannot run under Jython - last time we tried > using it, it would fail because Jython didn't implement all the Python > features that SymPy uses. However, Jython might have implemented enough of > Python to run SymPy today, so it may be worth a shot. Be sure to run the > test suite to see how much breaks, and whether any of the breakage is going > to affect your project. > I think it's worth a shot; if it works, you should have SymPy running inside > a JVM that can be fed with Java data structures directly. > >> Wonderying, anybody ever worked on the similar project? > > > I think we did some Jython testing a while ago. > Maybe a search for "Jython" in the GitHub search on the sympy project will > turn up what happened. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/554BC873.4050203%40durchholz.org. > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CADDwiVDS9Kj3YZ%2BhrGtpaRUvUU2a5k3OB7C%2BBxm7w6s8SsHR1Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
