- Game Oriented Assembly Lisp
Game Oriented Assembly Lisp (or GOAL) is a computer game programming language developed by
Andy Gavin and theJak and Daxter team atNaughty Dog . It was written usingAllegro Common Lisp and used in the development of the entireJak and Daxter series of games.Syntactically GOAL resembles Scheme, though with many idiosyncratic features such as classes, inheritance, and virtual functions. An example of what GOAL code looks like can be found at [http://web.archive.org/web/20070412155710/http://lists.midnightryder.com/pipermail/sweng-gamedev-midnightryder.com/2005-August/003804.html] . GOAL encourages an
imperative programming style: programs tend to be comprised of sequence of events to be executed rather than thefunctional programming style of functions to be evaluated recursively. This is a diversion from Scheme, which allows such side-effects but does not encourage imperative style.Like many modern implementations of Common Lisp, GOAL does not run in an interpreter, but instead is compiled directly into
PlayStation 2 machine code for execution. It offers limited facilities for garbage collection, relying extensively on runtime support. It offers dynamic memory allocation primitives designed to make it well-suited to running in constant memory on a video game console. GOAL has extensive support for inlined assembly code using a specialrlet
form [http://lists.midnightryder.com/pipermail/sweng-gamedev-midnightryder.com/2005-August/003804.html] , allowing programmers to freely mix assembly and higher-level constructs within the same function.The GOAL compiler is implemented in
Allegro Common Lisp . It supports a long term compiling listener session which gives the compiler knowledge about the state of the compiled and therefore running program, including the symbol table. This, in addition to dynamic linking, allows a function to be edited, recompiled, uploaded, and inserted into a running game without having to restart. The process is similar to the "edit and continue" feature offered by someC++ compilers, but allows the programmer to replace arbitrary amounts of code (even up to entire object files), and does not interrupt the running game with the debugger. This feature was used to implement code as well as level streaming in theJak and Daxter games.GOAL's first use was for the original
Jak and Daxter PS2 game; the predecessor language, GOOL, was also developed by Andy Gavin for Crash Bandicoot.GOAL's primary development and maintenance engineer is no longer available to Naughty Dog, and so they are transitioning to a C++ based pipeline for future projects.
External links
* http://www.franz.com/success/customer_apps/animation_graphics/naughtydog.lhtml — Franz Inc. success story
* http://bc.tech.coop/blog/060118.html — Page about Lisp developments byPaul Graham andNaughty Dog
* http://www.gamasutra.com/features/gdcarchive/2003/White_Stephen.ppt — (Powerpoint) "Jak & Daxter: The Precursor Legacy", development overview, lessons learned, very interesting
* http://www.gamasutra.com/features/gdcarchive/2003/Denman_Stu.ppt — (Powerpoint) "Highly detailed continuous worlds", about the streaming world loader
Wikimedia Foundation. 2010.