| ||||||||||
Sure – you could write it out to a file and process it there. But really, Perl has few advantages over Java for text manipulation (or Python! Python is REALLY nice for text manipulation). Don't get hung up on the hype over the languages. Python and Jython are MUCH easier to build GUIs in than Java. People get hung up over specific languages. There is no "One True Language." Most languages can do most things; some things are better in some languages than others, but it's often relative to the programmer; and no language has the stranglehold on "Best for Doing X" Mark Guzdial |
Nope – during or the Monday after. Mark Guzdial |
No, you can't really do that – compile python with Java. What you can do is use Jython (which we used in CS1315) with Java. In fact, JES is written in Jython – all the Swing GUI elements work just fine from Jython. There are parts of JES written in Java, e.g., the media libraries, the code for reading and writing the files, and the code for colorizing the syntax correctly. It all meshes together quite nicely. You can also embed Jython within Java – have a Java main() that calls the Jython interpreter on some code. See http://www.jython.org for more on issues like these. Mark Guzdial |