The advantages of Java are:
- The Javadoc for DTSL is directly available, which helps greatly when writing
DTSL Java programs in environments such as Eclipse.
- Java programs seem to have faster start-up times than Jython programs.
- The Eclipse Java development environment might be considered more mature than
the Python PyDev Eclipse development environment.
The advantages of Jython are:
- There are probably more people familiar with Python than with Java.
- Python is not a statically-typed language. So it is easier to write Python
code without always having to create variables of specific types.
The disadvantages of Jython are:
- There is no DTSL Javadoc support, because the PyDev editor does not
understand how to extract the Javadoc information from the Java .jar files.
- Python is not a statically-typed language, so it is hard for the PyDev editor
to know the type of a variable. Using '
isinstance(<variable>,<type>)' works around this to an
extent, and this code appears many times in the example. After the PyDev editor sees
it, it knows the type of the variable and so can provide code completion facilities.
However, you still do not get access to the Javadoc within the editor. If you want
to access the Javadoc, you must do it by some other method, such as through a web
- Jython can be slower than Java. For example, if Jython is used as part of a trace
decoding pipeline, it can significantly slow down trace processing.