A simple Squeak interpreter that is usably fast

Website: http://research.sun.com/projects/JSqueak/
 Download All Source Code 
If you have no idea how to make it do something, click here.
May not run in some browsers
Known to compile in NetBeans 6.0

Welcome to the JSqueak download page. JSqueak is a Squeak interpreter written in Java. Dan Ingalls wrote it to teach himself NetBeans and Java in the fall of 2006. Although he thought of it as a throw-away project, it has features that recommend it for further useful service:

These properties make it a reasonable base for teaching about VM design.

Because this VM uses Java objects for its Smalltalk objects, it is possible to send Smalltalk messages to those Java objects, and possible to send Java messages to the Smalltalk objects they represent. There is no added any support for this cross-language capability, but the architecture should support it fairly well. The significance is that it could facilitate a marriage of the dynamic benefits of Smalltalk to the vast world of serious Java libraries and applications.

As of this release, JSqueak is less than 5000 lines of code. It runs the Mini2.1 image, which is included for convenience. This image contains a complete Smalltalk development environment, including:

  • Rich text and Text editor
  • File browser (no file access in VM yet)
  • Code browser
  • Decompiler (plus temp-name hints)
  • Compiler
  • Source Code Debugger
  • In all, this image decompiles to over 850k of source code, and yet it is only 600k in size (360k gzipped). It's like source code compression with an integrated development environment thrown in for free. The entire .jar file with image and VM is less than 450k bytes.

    A number of things should be finished or improved if this VM is to see further use. If you wish to track or contribute to such projects, please add yourself to the JSqueak Interest mailing list.

    Have fun!

    - Dan Ingalls June 11, 2008