GOMscript
GOMscript is an object-oriented C++-like interpreter. It allows users
to extend it with new functions and classes. An extension is
available for 'roaming agents': it allows code and state to be sent
around to different machines. The source code is included.
Sample code for argument-based method dispatching
Method lookup in languages like C++ or Java are receiver-based, that is,
the method to be invoked is chosen according to the actual type of the receiver object.
However, in certain cases it is better to have a more flexible method lookup. The code below
is used in JavaGroups and shows how argument-based method
lookup can be mimicked in receiver-based languages (in this case in Java). Argument-based
method lookup is used for example in CLOS and chooses the method to invoke according to
type of receiver and all types of the arguments.
Class MethodCall.java implements this approach and
MethodCallTest.java is a test program.
JavaGroups over Ibus
Includes 2 sample applications (a grid demo and a simple whiteboard) written on top of
JavaGroups and using the iBus abstraction.
iBus is required and can be retrieved at the above URL. Download, unzip and untar.
There are 2 scripts which start the respective demos.
Run each script twice (or multiple times).
Download demo.tar.gz
JBiff
A Java application similar to xbiff which displays mail available on a POP server.
When mail is available, a user-defined bitmap will be displayed in addition to the number
of emails available on the server. By clicking on the main window, the subjects of the mail
are displayed. JBiff does not delete mail on the POP server, nor does it download mail to
a local mailbox; for this a regular mail program has to be used.
Download jbiff.tar.gz
Buttonbar
A Java applet that displays a number of items to be selected in a button bar. The bar is
configurable. If you have Java enabled, you see a small demo of Buttonbar below:
This is a Buttonbar with 3 elements:
Here is the code for Buttonbar.java. Buttonbar is used on
my home page:
http://www.cs.cornell.edu/home/bba.