On Jan 26, 2009, at 21:33 , Robert Bradshaw wrote: >> Basically, it would be to use code that's already written in Java. >> The >> Jython part wouldn't be expected to be fast :-) > > I think you can already do this with Jython, though it's not compiled > ahead of time.
Not sure what you mean here. Jython isn't compiled ahead of time, true. If you want to use Java code in Jython, the Java code has to be pre-compiled. But that works well. What I was thinking was basically to avoid writing the "high-speed"- stuff in Java (and thereby avoiding lock-in to the JVM), and that perhas it could be generated from Cython files (so that the same source code could be used with C-based systems as well). [snip] > You wouldn't lose all the cdef stuff, it could still be useful to > type things like floats and ints, and perhaps specialized java types. > However, you wouldn't have pointers, Indeed. > and a huge benefit from Cython is being able to link to existing C/C+ > + libraries. Absolutely. [snip] > In short, I think it could be done, but may be a lot easier to adapt > Jython to do what you want (if it doesn't already) than Cython. OK :) -- Magnus Lie Hetland http://hetland.org _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
