From: Wim O. <wou...@xs...> - 2006-12-06 11:36:58
|
Thank you for the explanation. But as detailed below, it still does not solve my problems. I am sure it is a small thing, but everything being new I feel like a fish out of the water (stuck). Sam Steingold <sd...@gn...> writes: >> * Wim Oudshoorn <jbhqfubb@kf4nyy.ay> [2006-12-05 23:08:36 +0100]: >> >> My little program starts with: >> >> (require 'asdf) >> >> (asdf:operate 'asdf:load-op 'clsql-sqlite3) >> (asdf:operate 'asdf:load-op 'clsql) >> >> >> Everything works, but: >> >> 1 - If I run it from the command line as: >> >> clisp -i my-program.lisp >> >> it will take 9.6 seconds before clsql is loaded. > > try > clisp -c my-program > clisp -i my-program I tried that first, but when I do the clisp -c I get the error: ;; Loading file /Users/woudshoo/.clisprc ... ;; Loading file /Users/woudshoo/lisp/asdf.lisp ... ;; Loaded file /Users/woudshoo/lisp/asdf.lisp ;; Loaded file /Users/woudshoo/.clisprc ;; Compiling file /Users/woudshoo/lisp/monotone-experiment.lisp ... *** - READ from #<INPUT BUFFERED FILE-STREAM CHARACTER #P"/Users/woudshoo/lisp/monotone-experiment.lisp" @6>: there is no package with name "CLSQL" 0 errors, 0 warnings And for this I don't know where to start. It seems that my .clisprc is loaded and this sets the asdf repository path (or whatever that is called.) When I do clisp -i it works, interactively it works and with -c it does not work. >> How do I get the load performance which I have with compilation >> and not the annoying errors. > > clisp -x '(require (quote asdf)) (saveinitmem "clisp-asdf" :executable t)' Hm, this works. But it is not the loading of the asdf.lisp file that takes time. It is the loading of clsql package that takes time. > clisp-asdf -c my-program Same error as above Oh just in case it is relevant: nelly:~/lisp woudshoo$ clisp --version GNU CLISP 2.41 (2006-10-13) (built on nelly.oudshoorn.nl [10.0.0.11]) Software: GNU C 4.0.0 20041026 (Apple Computer, Inc. build 4061) gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -DUNIX_BINARY_DISTRIB -DUNICODE -DDYNAMIC_FFI -DNO_GETTEXT -I. -L/usr/local/lib -x none libcharset.a libavcall.a libcallback.a -lreadline -lncurses -liconv -L/usr/local/lib -lsigsegv -lc -L/usr/X11R6/lib SAFETY=0 HEAPCODES STANDARD_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY libsigsegv 2.4 libiconv 1.9 libreadline 5.1 Features: (READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI UNICODE BASE-CHAR=CHARACTER UNIX MACOS) C Modules: (clisp i18n syscalls regexp readline) Installation directory: /usr/local/lib/clisp/ User language: ENGLISH Machine: POWER MACINTOSH (POWER MACINTOSH) rtr-mpls0-rij-nl.agilisys.net [10.48.12.3] |