Cool Java Stuff
Cool Java Stuff

As I become more and more involved with Java programming, I feel that I should post some my efforts here. These are just some of the projects that I have worked on, as if I posted them all, I would run out of space on Magic! Large and small, cute and insignificant, these applets cover a broad range of stuff. Check them out.

The applets are arranged in reverse cronological order, the newest ones are at the top. Click on the left link to see a web page with the applet embedded in it, and the right one to see the source.

Tiger to i386 Compiler and Optimizer
This is an advanced compiler (advanced relative to undergraduate compiler classes) that compiles the Tiger language to i386. It utilizes an intermediate representation and does a variety of optimizations to the code. There is full source available plus several documents describing the compiler.

Network Othello
This is a from-scratch implementation of Othello (aka Reversi). It features multiple pluggable players (ie you can play human vs human, human vs computers of several varients, or computer vs computer), and most importantly network support. Source code is included.

Cannibals & Missionaries
This is a program for my AI class... It solves the cannibals and missionaries problem. It has a nice GUI, and source is available. :)

GRAS - 3D Solid Modeling Robotics Applet
GRAS, the Graphical Robotics Animator and Simulator, is an applet that animates and renders a 3 dimensional model of a robot, in real time. It performs direct and inverse kinematics as well as motion trajectory calculation.

I have been working on this project for a long time, but now it needs a new maintainer. If you are interested in this work, please contact me and I will send you a copy of the source code for GRAS.

SpiffyButton
This is the entire users guide for the SpiffyButton applet. Check it out.

Sharks and Fish on the Planet Wa-tor
This is a large project that I did for my Computer Science II class. Basically, it is an ecological simulation that pits sharks against fish. The basic parameters are that the Sharks eat fish. Sharks and Fish reproduce after a certain amount of time. If the sharks don't eat enough fish, they starve. Check it out. It is a cool program. (You should have a relatively fast computer to run it though, it is quite complex).

Spiffy Lines - Source
Woo Hoo! This Java Applet shows a bunch of lines mooving in perty patterns. You can vary the design with some buttons that I put on there. Woo Hoo! :)

Butterfly
This is the little butterfly that floats around on the Sprite page of the Graphics Programming Series. This critter originally created by a friend of mine, Ryan Sayre. He has a web page at the University of Portland, which I also attend. I started with it and changed minor things, eventually, it evolved to the point where it is completely different from his code. All that is the same now is the graphics, which he drew.

Timer Class - Source - Class files
The Timer class is a class that I designed that allows you to keep track of time (duhh...). I stores time as hours, minutes, and seconds. You can subtract two time objects to find elapsed time ect... The time class can be run as a standalone application if it has the Vista class, which is not included. If you don't have it, just remove the constructor without any parameters and the main() method to use it as a class in another Java program.

Grove of Trees! - Source
Wow! Trees! This Java program was an early one that I did. It displays a grove of trees on the display. A private method is used to draw each tree. This eliminates a bunch of repititious code and stuff.


  • Created by Chris Lattner, 1996-1998
  • Last modified on Sunday, 24-Dec-2000 14:06:40 PST