GETTING STARTED IN *LISP Version 6.1, June 1991 Copyright (c) 1991 by Thinking Machines Corporation. Appendix D: Sample *Lisp Startup Sessions ***************************************** The following are annotated examples of *Lisp hardware and simu- lator sessions on a Sun-4 front end, showing you the output that you're likely to see in starting up either version of *Lisp. All annotations are included as comments, of the form #|...|#. (Note: These comments are not displayed by *Lisp itself.) Commands that you type are preceded either by the UNIX "%" prompt or the Sun Common Lisp ">" prompt. D.1 *Lisp Hardware Startup Session ---------------------------------------------------------------------- #| To start up *Lisp, you must type the UNIX-level command that loads the *Lisp software. In this sample session, it is: |# % /usr/local/starlisp #| The first messages that you see are printed by Sun Common Lisp, showing the version of Common Lisp you are using, along with various copyright notices. |# ;;; Sun Common Lisp, Development Environment 3.0.5 (Rev 01), 30-Aug-90 ;;; Sun-4 Version for SunOS 4.0 ;;; ;;; Copyright (c) 1985, 1986, 1987, 1988 by Sun Microsystems, Inc., All Rights Reserved ;;; Copyright (c) 1985, 1986, 1987, 1988 by Lucid, Inc., All Rights Reserved ;;; ;;; This software product contains confidential and trade secret ;;; information belonging to Sun Microsystems. It may not be copied ;;; for any reason other than for archival and backup purposes. #| Following this are messages printed by Thinking Machines' Corporation software. |# #| The first thing the *Lisp software does is look for the CM initializations file. This file contains commands to perform any required initialization steps, such as loading software patches. |# ;;; Loading source file "/cm/patch/initializations.lisp" #| Depending on the version of *Lisp you are using, you may or may not see the next message, which informs you of the current state of the Lucid Common Lisp compiler: |# ;;; You are using the compiler in production mode (compilation-speed = 0) ;;; Generation of argument count checking code is enabled (safety = 1) ;;; Optimization of tail calls is enabled (speed = 3) #| One of the last things the CM initializations file does is print a message telling you the current patch level of *Lisp (that is, the total number of patch files that have been loaded). If you need to report a problem to Thinking Machines Corporation Customer Support, you should include the current patch level of your software, so that Customer Support personnel will know which patches you have loaded. In this case, 26 patches have been loaded, so *Lisp is at Patch Level 26. |# ;;; *Lisp Patch Level 26 #| Next, a header is printed showing the current version of the Thinking Machines Corporation software that you are running. |# ;;; Connection Machine Software, Release 6-0 with *Lisp 6.0 and ;;; CM Graphics 2.0 ;;; ;;; Copyright (C) 1990 by Thinking Machines Corporation. ;;; All rights reserved. #| Finally, Lucid Common Lisp loads the file lisp-init.lisp from your home directory, if you have already created such a file. |# ;;; Loading source file "/users/admin1/massar/lisp-init.lisp" #| Massar's lisp-init.lisp file includes commands to display information about current the state of the Lucid and *Lisp compilers. |# The Lucid Compiler is in DEVELOPMENT mode The *Lisp Compiler is ON The *Lisp Compiler Code Walker is ENABLED The *Lisp Compiler safety level is set to FULL SAFETY The *Lisp Compiler warning level is HIGH The *Lisp Compiler *use-always-instructions* mode is OFF #| At this point, the *Lisp software is loaded, and you will see the Lisp prompt ">", indicating that *Lisp is ready to accept commands. The first thing to do is type the command (*lisp), to select the *Lisp package: |# > (*lisp) Default package is now *LISP. #| Now type the command cm:finger to see if any Connection Machine hardware is available. In this case, the output of cm:finger is: |# > (cm:finger) CM Seqs Size Front end I/F User Idle Command ------------------------------------------------------------------------ LANA --- --- cyclops 2 (nobody) LANA --- --- cyclops 0 (nobody) 256K memory, 32-bit floating point framebuffers on sequencers 0 1 (seqs 0 1 are free) CMIOC on sequencer 0 (seq 0 is free) 2 free seqs on LANA -- 0 1 -- totalling 8K procs #| This message shows that the CM named 'LANA' has two free sequencers. To attach to LANA and initialize *Lisp, we type: |# > (*cold-boot) Not attached. Attaching... ;;; Loading source file "/cm/configuration/configuration.lisp" 4096 (64 64) > #| At this point, *Lisp is loaded, CM hardware is attached, and both *Lisp and the CM have been initialized. *Lisp is now ready for you to begin loading and running your own *Lisp programs. |# ---------------------------------------------------------------------- D.2 *Lisp Simulator Startup Session ---------------------------------------------------------------------- #| As with the hardware version of *Lisp, type the UNIX-level command that loads the *Lisp software. In this case, it is: |# % /usr/local/starlisp-simulator #| Sun Common Lisp displays its version and copyright information: |# ;;; Sun Common Lisp, Development Environment 3.0.5 (Rev 01), 30-Aug-90 ;;; Sun-4 Version for SunOS 4.0 ;;; ;;; Copyright (c) 1985, 1986, 1987, 1988 by Sun Microsystems, Inc., All Rights Reserved ;;; Copyright (c) 1985, 1986, 1987, 1988 by Lucid, Inc., All Rights Reserved ;;; ;;; This software product contains confidential and trade secret ;;; information belonging to Sun Microsystems. It may not be copied ;;; for any reason other than for archival and backup purposes. #| The the CM Initializations file is loaded, displaying the current *Lisp patch level: |# ;;; Loading source file "/cm/patch/initializations.lisp" ;;; *Lisp Patch Level 0 #| Your lisp-init.lisp file is loaded, if you have created one: |# ;;; Loading source file "/users/admin1/massar/lisp-init.lisp" The Lucid Compiler is in DEVELOPMENT mode #| Now the simulator is loaded and ready for use. To initialize it, type the *Lisp command to select the *Lisp software package: |# > (*lisp) Default package is now *SIM. #| And type *cold-boot to initialize *Lisp. |# > (*cold-boot) Thinking Machines Starlisp Simulator. Version 18.0 1 (8 4) > #| The *Lisp simulator is now loaded and ready for you to begin loading and running your own *Lisp programs. |# ----------------------------------------------------------------------