University of California at Berkeley Department of Electrical Engineering & Computer Sciences Instructional Support Group /share/b/pub/lisp-old.help ***************************************************************************** THIS DOCUMENT IS OUT OF DATE AND IS HERE FOR HISTORICAL REFERENCE ONLY There are currently no versions of Common LISP on the Instructional systems. Please see /share/b/pub/scheme.help instead. ***************************************************************************** March 3 2010 CONTENTS: Clisp Discontinued Licenses Allegro CL and CLIM Troubleshooting Digitool for MacOSX Clisp ----- 'clisp' is an ANSI Common Lisp implementation (http://www.clisp.org/). It will be installed on our Linux server soon: icom1.eecs.berkeley.edu Type 'man clisp' for help. Allegro CL and CLIM ------------------- Discontinued: ************************************************************************* EECS did not renew the licenses for Allegro CL and CLIM when they expired in August 2008. Please notify inst@eecs.berkeley.edu if you are teaching an EECS course and need these products. ************************************************************************* Licenses: Allegro Common Lisp (ACL) and CLIM are commercial products from Franz, Inc. EECS supports licenses for CL and CLIM. The licenses are renewed annually (Franz Control Number 3298d) in August. ACL licenses have been renewed by IDSG through August 2008. CLIM licenses were obtained in Feb 2004 by IDSG with funding from Prof Russell and have been renewed through August 2008 by EECS Instruction. Allegro Common Lisp (CL) and CLIM from Franz, Inc (http://www.franz.com/) is available on the Sun SPARC only and is typically used by EECS classes such as CS188, CS281, CS282 and CS288. CLIM is a portable, object-oriented set of facilities for developing graphical user interfaces to Lisp-based applications. It provides a set of high-level programming tools that communicate with the low level implementation language of the host system. Applications are portable because CLIM allows programmers to write applications that are independent of the underlying windowing systems and toolkits. ACL and CLIM run on our Solaris SPARC systems, including pulsar.eecs.berkeley.edu quasar.eecs.berkeley.edu c199.eecs.berkeley.edu ACL is installed in /usr/sww/pkg/acl CLIM is installed in /usr/sww/pkg/acl/src/clim/ To enable them you should add the location to their binaries to your PATH and add the location of the elisp files to your emacs load path. These are the commands to set your search path: for 32-bit binaries: set PATH = /usr/sww/pkg/acl:${PATH} The command to compile a program is 'composer '. Users of Common Lisp may need to modify their ~/.emacs to contain: for 32-bit binaries: (setq load-path (cons "/usr/sww/pkg/acl/eli" load-path)) (load "fi-site-init") When compiling a lisp program from within emacs using Esc-x compile, one should make sure that gnu make and NOT the regular make is used. If you get a line saying make -k at the bottom of the emacs screen, please change it to gmake -k. This is the location of some important files you might want to reference in your programs (they are in the acl directory): ./lisp ./hpux11/lisp ./lisp.dxl ./composer.dxl ./composer-orig.dxl ./lisp-orig.dxl NOTE: Very old versions of the Emacs-Allegro CL interface required a different initialization. "fi-site-init" is now loaded instead of "fi/site-init" and load-path must be modified to explicitly contain the fi/ directory as above. You can locate the Instructional computer of your choice using: http://inst.eecs.berkeley.edu/clients Documentation and help: ----------------------- Documentation for Allegro CL is on-line under http://www.cs.berkeley.edu/idsg/sww/software Additional documentation is available on any EECS Instructional system under the directories HTML files: /usr/sww/pkg/acl/doc ELISP files: /usr/sww/pkg/acl/eli and via the WWW URL: http://inst.eecs.berkeley.edu/cgi-bin/pub.cgi?file=html/acl/ Franz, Inc has an informative WWW home page at http://www.franz.com. Questions and bug reports can be submitted by email to support@franz.com. Users of the Instructional installation of these products should address their questions to "inst@eecs" first to coordinate our contacts with the vendor. Allegro CL on Solaris SPARC: ---------------------------- To execute ACL on a SPARC system, you should build, in your home directory, a file, say acl32sww.em, that contains the following: (setq load-path (cons "/usr/sww/pkg/acl/eli/" load-path)) (load "fi-site-init.el") (setq fi:common-lisp-image-name "/usr/sww/pkg/acl/alisp") The recommended way of executing ACL on sparc is: 1- start emacs: /usr/sww/bin/emacs ~ & 2- Inside emacs: M-x load-file acl32sww.em or any other name that you have chosen. 3- Inside emacs: M-x fi:common-lisp and answer the questions appropriately. If you have a dxl file, put its name after the prompt "Lisp image (dxl) file:". Otherwise, put nothing. You get: ============================================================== Starting image `/usr/sww/pkg/acl/alisp' with no arguments in directory `/home/aa/staff/gct/' on machine `localhost'. International Allegro CL Enterprise Edition 6.2 [Solaris] (Jun 26, 2002 11:19) Copyright (C) 1985-2002, Franz Inc., Berkeley, CA, USA. \ All Rights Reserved. This development copy of Allegro CL is licensed to: [TC8245] University of California, Berkeley ;; Optimization settings: safety 1, space 1, speed 1, debug 2. ;; For a complete description of all compiler switches given the current ;; optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS). CL-USER(1): (require :composer) ============================================================== 4- Inside emacs: At the CL-USER(1): prompt, type: (require :composer) Now, there should be a composer menu at the top of your emacs window. You get: ============================================================== CL-USER(1): (require :composer) ; Fast loading /usr/sww/pkg/acl/code/composer.fasl ; Autoloading for package "CLTL1": ; Fast loading from bundle code/cltl1.fasl. ; Fast loading /usr/sww/pkg/acl/code/grapher.fasl ; Fast loading /usr/sww/pkg/acl/code/clx.fasl ; Foreign loading clx:excldep.so. ; Foreign loading clx:socket.so. ; Fast loading from bundle code/gray-compat.fasl. ; Fast loading /usr/sww/pkg/acl/code/xcw.fasl ; Foreign loading xcw:gc-cursor.so. ; Fast loading /usr/sww/pkg/acl/code/ipc.fasl ; Fast loading from bundle code/defctype.fasl. ; Fast loading from bundle code/ffcompat.fasl. ; Fast loading /usr/sww/pkg/acl/code/xcw-motif.fasl ; Fast loading from bundle code/pmacros.fasl. ; Fast loading from bundle code/extended-io.fasl. ; Fast loading from bundle code/pres-types.fasl. ; Fast loading from bundle code/acldns.fasl. ; Fast loading /usr/sww/pkg/acl/code/euc.fasl ; Fast loading from bundle code/ef-euc.fasl. ; Fast loading from bundle code/efft-euc-base.fasl. ;; Note: Switching the following external-formats to runtime mode ;; since prebuilt filled templates for them were found and loaded: ;; ':EUC-BASE' T CL-USER(2): ============================================================== Allegro CL for PCs (Windows): ----------------------------- Allegro CL is not available on the Instructional PCs. CLISP ----- (Nov 1999) The Instructional SolarisX86 systems have /usr/sww/bin/clisp. You might have to run % setenv LD_LIBRARY_PATH /usr/sww/lib Troubleshooting --------------- We automatically kill processes that appear to be runaways, except that for CS188, we ignore "alisp" processes on these computers: quasar.eecs.berkeley.edu pulsar.eecs.berkeley.edu star.cs.berkeley.edu (and the SunRays in 273 Soda) CS188 students must be vigilant; they can overload those servers with runaway processes. We can't determine when a process is no longer useful, so the students should be sure to check for old processes that didn't die, and kill them manually. If they have too many processes, you reach a system limit that we can't raise. To check what processes you are running: ps -aef | grep $USER The second field in the output is the $PID (process id). To kill a process that you don't want anymore: kill -9 $PID Students can report problems to inst@eecs.berkeley.edu. If yo are still having problems on those computers, please send us the error message, the name of the computer and the output of 'ps -f' so we can see what processes you are running. Digitool for MacOSX ------------------- Macintosh Common LISP and CLIM are commercial versions of LISP for Macs, from Digitool, Inc (http://www.digitool.com/). We are not running these on any EECS Instructional computers. EECS Instructional Support Group 378,384,386 Cory, 333 Soda inst@eecs.berkeley.edu