Author Topic: Jython  (Read 5280 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Jython
« on: July 07, 2011, 02:17:21 AM »


Jython programs can seamlessly import and use any Java class. Except for some standard modules, Jython programs use Java classes instead of Python modules. Jython includes almost all of the modules in the standard Python programming language distribution, lacking only some of the modules implemented originally in C. For example, a user interface in Jython could be written with Swing, AWT or SWT. Jython compiles to Java bytecode (intermediate language) either on demand or statically.


Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: Jython
« Reply #1 on: July 24, 2011, 06:22:53 PM »
I'm trying to understand why one would use this, but I don't quite get it.

I guess if you're coming from Java, and are looking for a clearer syntax it makes sense.

From a Python user's perspective, I don't really see the advantages.  That, and the fact that you have to install it to use it (unlike Python on Linux and MacOS) makes me want to just back away.

Another thing:  So now I would have to be concerned with the interaction between this implementation and the CPython implementation when using CPython modules in JPython?  Nah, I'll pass.

Cheap Plug Alert:  If anyone reading this is interested in some of the things you can do with Python on MacOS, check out my blog @ Recursive Media

A.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: Jython
« Reply #2 on: July 24, 2011, 08:03:04 PM »
I was thinking this was a way to write Java applications for Android.

Glad to see you using an interpreter for projects. You're missed over at the SB camp.

« Last Edit: July 24, 2011, 08:07:33 PM by JRS »