-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
babylon.lisp
38 lines (27 loc) · 874 Bytes
/
babylon.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(in-package :babylon)
;;------------------------------------------------------------------------
(defun babylon-hello ()
(format *terminal-io*
"Welcome to Babylon Release ~A~%" *babylon-version*))
;;; later on you may dumplisp an image here
(defun after-image-load ()
(progn
(load-user-babylon-init-file)
(babylon-hello)))
(defun make-babylon-image ()
#+:EXCL (progn (excl:gc)
(excl:dumplisp :name "babylon"
:checkpoint nil
:restart-function #'after-image-load))
#+:CLISP(progn t ; (gc)
(LISP:SAVEINITMEM "babylon.mem"
:quiet t
:init-function #'after-image-load))
#+:CMU(extensions:save-lisp "babylon.core"
:print-herald t
:init-function #'after-image-load)
#+:AKCL(SI:SAVE-SYSTEM "babylon.kcl")
)
;; Restore the standard readtable for SBCL
#+sbcl
(named-readtables:in-readtable :standard)