[Bf-committers] Opteron/Blender

Gregor Mückl GregorMueckl at gmx.de
Wed Feb 9 15:47:47 CET 2005


On Wednesday 09 February 2005 00:13, Alexander Ewering wrote:
> On Tue, 8 Feb 2005, Gregor [iso-8859-1] Mückl wrote:
> > There is another Python interpreter written in Java, which I'm using for
> > Moonlight, my own modelling/animation project. This one should be able to
> > run multiple threads concurrently, but hasn't quite kept pace with
> > implementing new language features, as I was to find out today.
>
> That sounds totally insane. So you basically have TWO CHAINED INTERPRETERS
> which interpret your code (Python and THEN Java)?
>
> Isn't that getting a bit slow? ;)
>

Depends. Actually I could have the Python code compiled into Java bytecode, 
but I'm not doing this yet. And speaking of insanity: The 3D user 
interactions are scripted in Python (even responses to mouse movements, 
etc..), but they run smoothly. So it's more than even just fast enough at the 
moment.

And when you compare Java to C/C++ you shouldn't forget that a good just in 
time compiler for the former can bring more performance than a static machine 
language program. And that's not theory at all. Just look at some of the more 
recent Java benchmarks out there.

But it's getting way offtopic for this list right now and I'm already feeling 
guilty for having replied in the first place.

Regards,
Gregor

PS: No, I'm not saying that Java is a solution to every problem.


More information about the Bf-committers mailing list