Re: Processing now supports python thanks to Jython
Jonathan Feinberg <[email protected]>
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <CANpD_3SL10BRap+Gikd5qAC3CXmBET2WouAkYuNz9WZViP3HLg@mail.gmail.com> |
Python mode, including its command-line equivalent, "processing.py", is built using a patched Jython 2.7. The patch monkeys around with the semantics of longs, silently downcasting them as needed, in order to support the use of integer constants as colors (as in 0xAARRGGBB) and other processing-isms. https://github.com/jdf/processing.py/blob/master/buildtime/lib/jython/jython-patch.diff Of course, processing.py adds a bunch of Processing stuff to the global namespace, too. https://github.com/jdf/processing.py/blob/master/runtime/src/jycessing/core.py And it goes through all kinds of crap to allow certain Processing keywords that intersect with Python builtins to work in either context, mostly found in https://github.com/jdf/processing.py/blob/master/runtime/src/jycessing/PAppletJythonDriver.java . I hope this helps. On Tue, Jul 7, 2015 at 2:16 PM, Fernando Cassia <[email protected]> wrote: > > On Sat, Jun 13, 2015 at 9:23 PM, Darjus Loktevic <[email protected]> wrote: > >> http://py.processing.org/ >> Great stuff! > > > But that page doesn´t say anything specific about Jython 2.7. > I tried googling around "jython" restricting results to the Processing > site, but only got old pages, nothing new or specific about Processing 2.0 > and Jython 2.7 support. :-( > > The closes I got was this wiki page > https://github.com/processing/processing/wiki/Changes > > Which reads: "At the right-hand side of the editor window is a drop-down > menu that allows you to choose between "Java", "Android", and "JavaScript" > mode. Those are the current modes that are being included, though we may > add/remove modes as we head to 2.0 (a Jython mode is lurking about, for > instance. Mmmm! Tempting.) Like Tools and Libraries, it will be possible > for other parties to write their own modes that work inside the PDE." > > Not too encouraging to read Jython is "lurking about" but not included. > > So, can you clarify if latest builds include such Jython mode, and if so, > can you get in touch with the Processing team and make them -or any other > contributor to the project for that matter- update the Github wiki to > include such info and a specific mention of Jython 2.7?. > > I think that if Jython 2.7 support is included it´s excellent news, as you > say, and that the news needs to be spread around loudly!. > > Best regards, > FC > > > -- > During times of Universal Deceit, telling the truth becomes a > revolutionary act > Durante épocas de Engaño Universal, decir la verdad se convierte en un > Acto Revolucionario > - George Orwell > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Jython-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jython-users > > -- Jonathan Feinberg [email protected] http://MrFeinberg.com/ ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Jython-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jython-users