Image
  • Writing
    • Andy Gavin: Author
    • About my Novels & Writing
    • All Writing Posts
    • The Darkening Dream
      • Buy the Book Online
      • Sample Chapters
      • Reviews
      • Info for Reviewers
      • Press Coverage
      • Awards
      • Cast of Characters
    • Untimed
      • Buy Untimed Online
      • Book Trailer
      • Sample Chapters
      • Reviews
      • Info for Reviewers
      • Press Coverage
      • Awards
      • Cast of Characters
    • Scrivener – Writer’s Word Processor
    • iPad for Writers
    • Naughty Dark Contest
  • Books
    • Book Review Index
    • Favorite Fantasy Novels
    • Andy Gavin: Author
    • The Darkening Dream
      • Buy the Book Online
      • Sample Chapters
      • Short Story: Harvard Divinity
      • Reviews
      • Info for Reviewers
      • Press Coverage
      • Awards
      • Cast of Characters
    • Untimed
      • About the Book
      • Buy Untimed Online
      • Book Trailer
      • Sample Chapters
      • Reviews
      • Info for Reviewers
      • Press Coverage
      • Awards
      • Cast of Characters
    • Naughty Dark Contest
  • Games
    • My Video Game Career
    • Post Archive by Series
    • All Games Posts Inline
    • Making Crash Bandicoot
    • Crash 15th Anniversary Memories
    • World of Warcraft Endgames
    • Getting a Job Designing Video Games
    • Getting a Job Programming Video Games
    • Naughty Dark Contest
  • Movies
    • Movie Review Index
  • Television
    • TV Review Index
    • Buffy the Vampire Slayer
    • A Game of Thrones
  • Food
    • Food Review Index
    • Foodie Club
    • Hedonists
    • LA Sushi Index
    • Chinese Food Index
    • LA Peking Duck Guide
    • Eating Italy
    • Eating France
    • Eating Spain
    • Eating Türkiye
    • Eating Dutch
    • Eating Croatia
    • Eating Vietnam
    • Eating Australia
    • Eating Israel
    • Ultimate Pizza
    • ThanksGavin
    • Margarita Mix
    • Foodie Photography
    • Burgundy Vintage Chart
  • Other
    • All Posts, Magazine Style
    • Archive of all Posts
    • Fiction
    • Technology
    • History
    • Anything Else
  • Gallery
  • Bio
  • About
    • About me
    • About my Writing
    • About my Video Games
    • Ask Me Anything
  • Contact

Goal Test

G.O.A.L.

GAME OBJECT ASSEMBLY LISP

Environment and High Level Documentation

Proprietary Information

Copyright 1998-2000 Naughty Dog, Inc.

All rights reserved

Documentation Version 1.15

Sunday, March 20, 2011

Manifesto:

Traditional programming languages provide inadequate expression and power for the needs of modern game programming. G.O.A.L. (Game Object Assembly Lisp) is a heavily modified dialect of R5 scheme which attempts to address these problems. Specifically, it is a compiled language, with no interpreter, yet it has a fully interactive listener in which any language fragment may be dynamically compiled, linked and executed into a running program. Inspection and modification of any data structure, as well as dynamic replacement of functions in running code are trivial. Goal includes support for coprocessors and inline assembly with an unprecedented degree of integration. There is a single unified syntax for scheme and multiple coprocessor assemblies. Assembly instructions may be mixed freely with high level code without the use of special inline syntaxes. Variables, registers, and data structures can be accessed identically by both. Goal also has a uniform scheme-like syntax, true macros, and a sophisticated type/object system which gives it similar object power to C++, but with a uniform syntax and better control over low level features. Finally, Goal has a multithreaded runtime kernel which supports separated concepts of &qout process &quot as stack and &qout thread &qout as execution. When tied in with the object system this allows the easy creation of individual state based execution contexts that have control over their own local memory usage. This is perfect for games which have a multitude of different on screen objects each with their own local contexts. Programmers of the world unite! C is the opiate of the masses, the era of real programming languages is on hand!

Requirements:

  1. PC with NT
  2. ACL for NT installed (see Andy or Justin)
  3. Xemacs 21.2 for NT installed (see Andy or Justin)
  4. src/next checked out with CVS

Starting ACL:

Goal lives in ACL, which lives in Xemacs. Run your NT Xemacs, and it should load the "fi" package which connects emacs to ACL. This is controlled by .emacs in your home directory. Compare yours to ~agavin/.emacs if there is a problem.

The source code has a master copy in the CVS repository. In order to update your source from this "update with CVS" by pressing F5 in emacs.

Start ACL by pressing F8 (sometimes this requires more than one press). The first time you run it, "fi" will ask several questions for ACL, press return to all but "PROCESS DIRECTORY" which should ALWAYS be "z:$USER/src/next" or "~/src/next" (insert your user name for $USER). If your .emacs is correct, than the "PROCESS DIRECTORY" default should be correct, and you can press return here as well.

When ACL starts it loads the ".clinit.cl" file in its current directory. If it does this correctly, you will see the propt "user:", if incorrectly,"USER". To exit ACL type (exit) or (EXIT) to match the case of the prompt. Press F8 to try again. If you are getting the "USER" prompt then you either have an incorrect .emacs, typed the wrong "PROCESS DIRECTORY" the first time you started lisp, and are starting lisp from within a file not in the ~src/next directory. Try opening a file in ~/src/next (such as "start") and then running F8 if you have trouble getting the lowercase "user:" prompt. If further problems, check your .clinit.cl links:

[on a SGI or LINUX machine]
cd ~
rm .clinit.cl
ln —s src/next/.clinit.cl .clinit.cl
cd ~/src/next/goal
rm .clinit.cl
ln —s ../.clinit.cl .clinit.cl

the ~src/next/.clinit.cl is the master, and it is from the CVS repository.

Running GOAL:

Once you have a "user:" prompt in ACL, you can run Goal. The goal compiler is written in common lisp. Its files are .cl files in the ~/src/next/goal directory. CVS will often update these files as Andy adds features to the compiler. If this happens, the compiler must be recompiled. The compiler will recompile any out of date files whenever it loads. However if it is already loaded, you will need to force the compile with the (lg) macro.

Use the (goal) macro to load the compiler. If it has been some time since you updated lots of stuff may have changed in the compiler and it is a good idea to compile it from scratch with:

(goal :compile t)

otherwise to launch into goal and compile only what is needed

(goal)

or to compile everything in the main runtime package

(goal :mg t)

The compile flag forces the Goal compiler to completely recompile itself. This takes 10 minutes. You should get the goal info message and the prompt if the compiler loaded correctly:

Goal III v. 0.9 alpha (Game Oriented Assembly Lisp)
Copyright (c) 1993-99 Naughty Dog, Inc.
Currently localized for (usa ntsc)

g(3):

You are fully up and running. However, you may need to build the kernel, or to build additional packages. To build the "l1" package for example (and also so the default compiling to game and l1):

(mg game l1)

to force the l1 package to compile everything:

(mgf l1)

Common Goal ACL commands:

(mg [packages···]) — compile 1 or more packages, remembers the last package group compiled
(mgf [packages···]) — force compile 1 or more packages
(lg) – reload and recompile the goal compiler
(cga) – force the recompile of the goal compiler

Watch the Trailer or

Buy it Online!

Buy it Online!

96 of 100 tickets!

Find Andy at:

Follow Me on Pinterest

Subscribe by email:

More posts on:



Complete Archives

Categories

  • Contests (7)
  • Fiction (404)
    • Books (113)
    • Movies (77)
    • Television (123)
    • Writing (115)
      • Darkening Dream (62)
      • Untimed (37)
  • Food (1,764)
  • Games (101)
  • History (13)
  • Technology (21)
  • Uncategorized (16)

Recent Posts

  • Eating Naples – Palazzo Petrucci
  • Eating San Foca – Aura
  • Eating Otranto – ArborVitae
  • Eating Lecce – Gimmi
  • Eating Lecce – Varius
  • Eating Lecce – Duo
  • Eating Lecce – Doppiozero
  • Eating Torre Canne – Autentico
  • Eating Torre Canne – Beach
  • Eating Monopoli – Orto

Favorite Posts

  • I, Author
  • My Novels
  • The Darkening Dream
  • Sample Chapters
  • Untimed
  • Making Crash Bandicoot
  • My Gaming Career
  • Getting a job designing video games
  • Getting a job programming video games
  • Buffy the Vampire Slayer
  • A Game of Thrones
  • 27 Courses of Truffles
  • Ultimate Pizza
  • Eating Italy
  • LA Sushi
  • Foodie Club

Archives

  • May 2025 (3)
  • April 2025 (4)
  • February 2025 (5)
  • January 2025 (3)
  • December 2024 (13)
  • November 2024 (14)
  • October 2024 (14)
  • September 2024 (15)
  • August 2024 (13)
  • July 2024 (15)
  • June 2024 (14)
  • May 2024 (15)
  • April 2024 (13)
  • March 2024 (9)
  • February 2024 (7)
  • January 2024 (9)
  • December 2023 (8)
  • November 2023 (14)
  • October 2023 (13)
  • September 2023 (9)
  • August 2023 (15)
  • July 2023 (13)
  • June 2023 (14)
  • May 2023 (15)
  • April 2023 (14)
  • March 2023 (12)
  • February 2023 (11)
  • January 2023 (14)
  • December 2022 (11)
  • November 2022 (13)
  • October 2022 (14)
  • September 2022 (14)
  • August 2022 (12)
  • July 2022 (9)
  • June 2022 (6)
  • May 2022 (8)
  • April 2022 (5)
  • March 2022 (4)
  • February 2022 (2)
  • January 2022 (8)
  • December 2021 (6)
  • November 2021 (6)
  • October 2021 (8)
  • September 2021 (4)
  • August 2021 (5)
  • July 2021 (2)
  • June 2021 (3)
  • January 2021 (1)
  • December 2020 (1)
  • September 2020 (1)
  • August 2020 (1)
  • April 2020 (11)
  • March 2020 (15)
  • February 2020 (13)
  • January 2020 (14)
  • December 2019 (13)
  • November 2019 (12)
  • October 2019 (14)
  • September 2019 (14)
  • August 2019 (13)
  • July 2019 (13)
  • June 2019 (14)
  • May 2019 (13)
  • April 2019 (10)
  • March 2019 (10)
  • February 2019 (11)
  • January 2019 (13)
  • December 2018 (14)
  • November 2018 (11)
  • October 2018 (15)
  • September 2018 (15)
  • August 2018 (15)
  • July 2018 (11)
  • June 2018 (14)
  • May 2018 (13)
  • April 2018 (13)
  • March 2018 (17)
  • February 2018 (12)
  • January 2018 (15)
  • December 2017 (15)
  • November 2017 (13)
  • October 2017 (16)
  • September 2017 (16)
  • August 2017 (16)
  • July 2017 (11)
  • June 2017 (13)
  • May 2017 (6)
  • March 2017 (3)
  • February 2017 (4)
  • January 2017 (7)
  • December 2016 (14)
  • November 2016 (11)
  • October 2016 (11)
  • September 2016 (12)
  • August 2016 (15)
  • July 2016 (13)
  • June 2016 (13)
  • May 2016 (13)
  • April 2016 (12)
  • March 2016 (13)
  • February 2016 (12)
  • January 2016 (13)
  • December 2015 (14)
  • November 2015 (14)
  • October 2015 (13)
  • September 2015 (13)
  • August 2015 (18)
  • July 2015 (16)
  • June 2015 (13)
  • May 2015 (13)
  • April 2015 (14)
  • March 2015 (15)
  • February 2015 (13)
  • January 2015 (13)
  • December 2014 (14)
  • November 2014 (13)
  • October 2014 (13)
  • September 2014 (12)
  • August 2014 (15)
  • July 2014 (13)
  • June 2014 (13)
  • May 2014 (14)
  • April 2014 (14)
  • March 2014 (10)
  • February 2014 (11)
  • January 2014 (13)
  • December 2013 (14)
  • November 2013 (13)
  • October 2013 (14)
  • September 2013 (12)
  • August 2013 (14)
  • July 2013 (10)
  • June 2013 (14)
  • May 2013 (14)
  • April 2013 (14)
  • March 2013 (15)
  • February 2013 (14)
  • January 2013 (13)
  • December 2012 (14)
  • November 2012 (16)
  • October 2012 (13)
  • September 2012 (14)
  • August 2012 (16)
  • July 2012 (12)
  • June 2012 (16)
  • May 2012 (21)
  • April 2012 (18)
  • March 2012 (20)
  • February 2012 (23)
  • January 2012 (31)
  • December 2011 (35)
  • November 2011 (33)
  • October 2011 (32)
  • September 2011 (29)
  • August 2011 (35)
  • July 2011 (33)
  • June 2011 (25)
  • May 2011 (31)
  • April 2011 (30)
  • March 2011 (34)
  • February 2011 (31)
  • January 2011 (33)
  • December 2010 (33)
  • November 2010 (39)
  • October 2010 (26)
All Things Andy Gavin
Copyright © 2025 All Rights Reserved
Programmed by Andy Gavin