-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathciel.asd
208 lines (172 loc) · 6.73 KB
/
ciel.asd
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
#|
This file is a part of ciel project.
|#
(require "asdf") ;; for CI
(asdf:defsystem "ciel"
:description "CIEL Is an Extended Lisp (Common Lisp, batteries included)."
:version "0.2.1"
:author "vindarel"
:license "MIT"
:homepage "https://github.com/ciel-lang/CIEL/"
:source-control (:git "https://github.com/ciel-lang/CIEL/")
:bug-tracker "https://github.com/ciel-lang/CIEL/issues/"
:depends-on (
:cl-reexport ;; for us
:cl-ansi-text
:access
:alexandria
:arrow-macros
;; Previously, we had dependencies that depended on Osicat (fof, moira),
;; hence complicating deployment of binaries.
;; Check with (ql:who-depends-on "osicat") and ditch Osicat.
;;
:file-finder ;; file-object finder
;; threads
:bordeaux-threads
:trivial-monitored-thread
:lparallel
:moira/light ;; monitor background threads
:cl-cron
:closer-mop
:cl-ansi-text
:cl-csv
:shasht ;; json
:cl-json-pointer/synonyms
:dissect
:fset
:file-notify ;; needs inotify (linux) or fsevent (macos)
:generic-cl
;; web
:dexador
:hunchentoot
:easy-routes ;; better route definition for Hunchentoot.
:quri
:lquery
:spinneret ;; lispy templates. Used in simpleHTTPserver.lisp
;; other networking:
:cl-ftp ;; depends on only: split-sequence and usocket.
;; GUI
;; We remove nodgui as of <2024-08-30>
;; because it was too heavy in dependencies, see
;; https://github.com/ciel-lang/CIEL/issues/56
;; We'll test again with its lightweight nodgui-lite system.
;; :nodgui ;; ltk fork with built-in themes and more widgets.
;; to test:
;; :nodgui-lite
;; CLI
:clingon ;; args parsing
:local-time
:modf
;; number parsing
:parse-float
:parse-number
;; database
:dbi ; connects and executes queries.
;; dbi users must reference the driver's dependency
;; when building a binary.
;; If not, dbi wants to install a system on the fly,
;; calls to ASDF, which fails with a useless message.
;;
;; Can we suppose sqlite3 is ubiquitous?
;; This would require libsqlite3 (libsqlite3-dev on Debian).
;; :dbd-sqlite3
;; With those:
;; :dbd-mysql ;; requires libmysqlclient
;; :dbd-postgres
:sxql ;; SQL generator from lispy syntax.
;; I recently removed Mito. Why? lol.
;; numerical
:vgplot
;; regexp
:cl-ppcre
;; string manipulation
:str
;; security
:secret-values
;; other utilities
:progressons ;; no deps. Simple progress bar. Not in Quicklisp as of <2024-08-30>.
:termp ;; no deps. Are we in a dumb terminal like Slime's REPL?
;;;
;;; Language extensions.
;;;
;; triple quotes
:pythonic-string-reader
;; pattern matching
:trivia
:trivial-arguments
:trivial-package-local-nicknames
:trivial-types
;; extended let
:metabang-bind
;; type declarations
:defstar
;; iteration
:for
:trivial-do
:cmd
:serapeum
:shlex
:function-cache ;; memoization
;; tests
:fiveam
:which
;;;
;;; Debugging, developer utilities.
;;;
:log4cl
:printv
:repl-utilities ;; see readme, summary, doc, package-apropos, trace-package etc
;;;
;;; User helpers.
;;; ;TODO: we don't want these dependencies when we build a binary.
;;;
:named-readtables
:clesh ;; shell pass-through
:quicksearch ;; search on GitHub, Cliki, Quickdocs.
)
:components ((:module "src"
:components
((:file "packages")
(:file "json-pointer-minus")
(:file "ciel")
(:file "gui")))
(:file "utils")
(:module "src/more-docstrings"
:components
((:file "docstrings"))))
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Sub-system for the terminal REPL.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(asdf:defsystem "ciel/repl"
:description "readline REPL for CIEL with quality of life improvements."
:depends-on (;; :ciel ;; let's avoid, it could run side effects twice (like a defparameter set then reset).
;; deps
:cl-readline
:lisp-critic ;; it would be nice to integrate it with Slime.
:magic-ed)
:components ((:file "repl")
(:file "utils")
(:file "scripting")
(:file "shell-utils")
(:file "repl-utils")
;; I define them here, for good practice (for me),
;; but I don't use them.
;; static-file is important, otherwise the scripts would be run.
(:module "src/scripts"
:components
((:static-file "quicksearch")
(:static-file "simpleHTTPserver")))
)
:build-operation "program-op"
:build-operation "program-op"
:build-pathname "ciel"
:entry-point "ciel::main")
;;; This defines ciel.asd. It is enough to quickload CIEL.
;;; But to build a binary,
;;; see build-config.lisp for extra config.
;; build a smaller executable with SBCL's core compression:
;; from 119MB to 28MB, however startup time increases from 0.02 to 0.35s (noticeable).
#+sb-core-compression
(defmethod asdf:perform ((o asdf:image-op) (c asdf:system))
(uiop:dump-image (asdf:output-file o c) :executable t :compression t))