CocOCaml - The OS X OCaml Toplevel Environment
click here for a full size screen-shot
CocOCaml is a Cocoa based
wrapper for the OCaml toplevel environment. It was
written to solve a number of the problems one usually runs into while running the
toplevel under OS X's Terminal, chief among them:
To solve these problems, CocOCaml offers up a Command Entry Area where commands can be
fully edited before sending them to the OCaml interpreter. It also uses a Command History
area to track all commands sent to the interpereter. The commands in the history can be
sorted in either chronological or lexicographic order, easily stepped through, and easily
copied from the history into the Command Entry Area for further editing before being sent
back to the interpreter.
- One dosen't have easy access to previously typed commands. Once in
the toplevel, hitting the up and down arrows don't step you through the
history of the interpreter, as they do when in a shell environment.
- One can't easily edit the commands he is typing into the interpreter.
- If one has already typed a lot of commands into the interpreter, finding
and reviewing (or replaying) one of those commands can be a huge pain
in the, um, buttocks.
- One cannot easily save the current OCaml session when running it in the
If any of this sounds like it might be used to useful to you,
download your own copy of CocOCaml (source code
and use the heck out of it. If you would like a bit more information, feel free to look
through the manual before downloading the full package.
Please be aware that this is a very early release, and I have no doubt that there are
features missing from the program that should be there, and "features" present in the
program that shouldn't be there. So if you find any bugs, or have any suggestions for
improvement, please send them to me at firstname.lastname@example.org.
The requirements for running CocOCaml are:
- An Apple Macintosh running OS X 10.2 or higher
(It might work on earlier versions of OS X,
but it has not been tested on any of them.
Also, CocOCaml v0.7 doesn't look quite right when built in 10.2, but it should work.)
- A previously installed
- Knowledge of the path to your OCaml Toplevel executable
- About 250 KB each free hard drive space for the CocOCaml application and it's manual