My take: I would think this plan would be both more benefitial and might be easier to implement technically:
- Identify what features in Cython are needed in Javaland. This is likely mostly typing/early binding of interfaces. - Agree with Cython on a syntax for this. There are a couple of PEPs opening the road towards this. - Implement that spec in both Cython (easy) and Jython (don't know). The thing is, Java is much more dynamic than C (introspection, bytecode compiled scripting languages abound and a compiler is often integrated in the runtime etc.) and if Jython compiles to Java bytecode anyway (which I'm not sure of, but at least it could) then really the part missing is the early binding for full Java speed. A Cython for Jython would likely duplicate much of Jython, it might be better to start from Jython itself. Alternatively, if Jython already did this, look at porting the syntax they used to Cython. Dag Sverre Seljebotn -----Original Message----- From: Magnus Lie Hetland <[email protected]> Date: Monday, Jan 26, 2009 2:09 pm Subject: Re: [Cython] Pi in the sky: Alternate back-end? To: [email protected]: [email protected] On Jan 26, 2009, at 12:48, Michael Abshoff wrote: > >> I do not know if Jython is faster than CPython, but why would you > want to use it other than the embedding advantage? I am curious here > since I never had more than superficial contact with Jython. > >Basically, it would be to use code that's already written in Java. The >Jython part wouldn't be expected to be fast :-) > >As for what Stefan said aboud losing cdef-stuff -- I'll take his word >for the coupling between Cython and C, but the syntax would be just as >useful for type declarations for Java (but with a completely different >translator then, I guess :-) > >-- >Magnus Lie Hetland >http://hetland.org > > >_______________________________________________ >Cython-dev mailing list >[email protected] >http://codespeak.net/mailman/listinfo/cython-dev > _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
