Smalltalk and Java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Smalltalk and Java

Torsten Bergmann
Hi Alexandre,

>You scored

My first impression from the website was to keep the image
and interpreter (and therefore the JAR) as small as possible.
That's why I wondered about the .svn stuff. But after digging
deeper it looks this is done in a later release ;)

However, I'm currently playing with the Rhino JavaScript engine
and are curious about similar dynamic functionality with Athena.

Do you have a sample how to implement/satisfy a java interface
on the smalltalk side? Can you tell us a little bit more about
"cross" exception handling. I know performance is currently not
high priority but did you run some benchmarks?

Bye
Torsten

BTW: The link to http://bergel.eu/athena/?Documentation:First_contact
     on the "Documentation" page leads to a 404 error.

--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk and Java

Bergel, Alexandre
> Do you have a sample how to implement/satisfy a java interface
> on the smalltalk side? Can you tell us a little bit more about
> "cross" exception handling. I know performance is currently not
> high priority but did you run some benchmarks?

Exception are currently not supported in Athena.
I haven't done any benchmarks, but I do not expect them to be very  
appealing frankly speaking :-)
I plan to work on translating Smalltalk bytecode into Java's. This  
should speed all the things up.

What do you mean with "how to implement/satisfy a java interface on  
the smalltalk side" ?
You can interact with any classes in Athena. No need to implement  
something on the Java side. It uses the plain Java reflection API.
An example: "System getJavaClass: 'java.lang.System') invokeStatic:  
'currentTimeMillis'"

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.