All discussions about Java and Smalltalk integration deal with running Smalltalk programs on Java VM, or translating ST programs into Java. What about idea putting Java into Smalltalk. Either Java VM running in Smalltalk, or encapsulation Java object into Smalltalk (they could live in one space - image, integrating their object models), or some other kinds of emulation/integration Java in ST environment. Doesn't someone know about projects concerning this?
Giovanni Giorgi wrote:
Excuse me, I'd like to talk about a small idea: creating a Squeak VM for Java
Using the CCodeGenerator engine, I think would be not so difficult to generate a JavaCodeGenerator class for building java source code for
the
VM. We will have Squeak running in a JavaVM, perhaps a bit slowly. After a bit of working, we can try to integrate the java GC, JavaBeans
and the Security concepts of Java into Squeak, generating a hybrid VM and the Smalltalk of the future.
A lot of java-students will look with interest to a Java-based implementation of Smalltalk, and start to download the SqueakVM....
This is only an idea. I know the efficency problem 'd be not so tiny
and
so I am only talking about it.... ...someone interested?
-- // Giovanni Giorgi e-mail:
giovanni.giorgi@mlab.disco.unimi.it
On Fri, Oct 01, 1999 at 09:28:03AM +0200, Martin Luptak wrote:
All discussions about Java and Smalltalk integration deal with running Smalltalk programs on Java VM, or translating ST programs into Java. What about idea putting Java into Smalltalk. Either Java VM running in Smalltalk, or encapsulation Java object into Smalltalk (they could live in one space - image, integrating their object models), or some other kinds of emulation/integration Java in ST environment. Doesn't someone know about projects concerning this?
There is Smalltalk/X: http://www.exept.de/en/smalltalkx.html
It's a very interesting commercial Smalltalk System. The Smalltalk/X VM interprets both ST/X Bytecode and Java Bytecode. Very cool.
There is some information about the Smalltalk/X Java integration at http://www.exept.de/en/stja97.html
Marcus
-- Marcus Denker marcus@ira.uka.de fon@home:(0721)614235 @work:(0721)608-2749
Putting Java support inside Squeak makes a lot more sense to me too. Heck, the Scamper browser does not support Java and limits its usability now.
- Steve
Martin Luptak wrote:
All discussions about Java and Smalltalk integration deal with running Smalltalk programs on Java VM, or translating ST programs into Java. What about idea putting Java into Smalltalk. Either Java VM running in Smalltalk, or encapsulation Java object into Smalltalk (they could live in one space - image, integrating their object models), or some other kinds of emulation/integration Java in ST environment. Doesn't someone know about projects concerning this?
Giovanni Giorgi wrote:
Excuse me, I'd like to talk about a small idea: creating a Squeak VM for Java
Using the CCodeGenerator engine, I think would be not so difficult to generate a JavaCodeGenerator class for building java source code for
the
VM. We will have Squeak running in a JavaVM, perhaps a bit slowly. After a bit of working, we can try to integrate the java GC, JavaBeans
and the Security concepts of Java into Squeak, generating a hybrid VM and the Smalltalk of the future.
A lot of java-students will look with interest to a Java-based implementation of Smalltalk, and start to download the SqueakVM....
This is only an idea. I know the efficency problem 'd be not so tiny
and
so I am only talking about it.... ...someone interested?
-- // Giovanni Giorgi e-mail:
giovanni.giorgi@mlab.disco.unimi.it
-- Talk Small and Carry a Big Class Library
At 09:28 AM 10/1/99 +0200, Martin Luptak wrote:
... What about idea putting Java into Smalltalk. Either Java VM running in Smalltalk, or encapsulation Java object into Smalltalk (they could live in one space - image, integrating their object models), or some other kinds of emulation/integration Java in ST environment. Doesn't someone know about projects concerning this?
In addition to Smalltalk/X, which others have mentioned, there have been at least two other major efforts to host Java within a Smalltalk environment.
The most successful such system is surly IBM's VisualAge for Java. While IBM does not actively publicize these fact, it is not a secret that VisualAge for Java is build upon a Smalltalk base. A common virtual machine is used to execute both Smalltalk and Java code and control flow can transfer between Java and Smalltalk methods. I believe that if you could look under the covers you would find that many Java "native methods" are in fact implemented in Smalltalk. The majority of the development environment is implemented in Smalltalk code.
Objectshare Inc developed to a working prototype of a system called Frost that also combined Java and Smalltalk within a single image using a single virtual machine. It worked by translating Java methods into Smalltalk bytecode. A short description of Frost can still be found on the Objectshare web site at: http://www.objectshare.com/products/frost/frost897.htm
Allen_Wirfs-Brock@Instantiations.com
squeak-dev@lists.squeakfoundation.org