----- Original Message -----
From: "jeff" <[EMAIL PROTECTED]>
To: "Turbine" <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 10:42 PM
Subject: Re: JPython goodies
> Sounds like a great idea. You might also take a look at Rhino. It's an
> implementation of javascript in java. I use the standalone shell for
> interactively prototyping code fragments -- especially stuff involving
> regular expressions. There is some fairly good documentation for
> embedding it in java applications.
>
> http://mozilla.org/rhino/
>
> I have no connection to the rhino project, I just find it to be a handy
> tool. Its main advantage over python is that the java-like syntax of
> javascript is more familiar to me. Once I get a code fragment to work
> in javascript, translating it to java is trivial.
>
> You might also take a look at entry 7 in the FAQ
> (http://jpython.org/docs/faq.html):
>
> "7. Why do weird things sometimes happen in JPython?
>
> "More likely than not, the problem is with the JIT (Just-in-time)
> compiler your JVM is using. JPython acts like a bizarre Java compiler,
> taking Python source code and emitting Java bytecode. It's bizarre
> because the emitted bytecode doesn't look quite like the way bytecode
> would come out of a Java compiler. JITs can sometimes get confused by
> this and will often do incorrect and inexplicable things."
We'll definitely have a look at Rhino as well (I LOVE Python though :-).
Regarding the *possible* JIT problems - you could always let JPython
"compile" to Java source first (it can actually do this) when you're about
to deploy, and then compile that "normally".
Anyway, we're still just starting with all this stuff, so the input is
great. We'll try and design it in such a way that other scripting systems
can be used in a pluggable fashion, e.g. Rhino. As soon as we have a
reference implementation that works, we'll let it loose so that you guys can
have look :-)
Frank
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]