1 # -*- org-export-babel-evaluate: nil -*- 2 {{{header(docs/core,Richard Westhaver,ellis@rwest.io)}}} 3 #+property: header-args :dir /home/ellis/dev/comp/core/
4 #+begin_src shell :results pp :exports results 10 ===============================================================================
11 Language Files Lines Code Comments Blanks
12 ===============================================================================
13 Lisp 259 29567 22520 3163 3884
14 -------------------------------------------------------------------------------
15 Rust 142 12407 10732 443 1232
16 |- Markdown 101 804 0 709 95
17 (Total) 13211 10732 1152 1327
18 ===============================================================================
19 Total 401 41974 33252 3606 5116
20 ===============================================================================
23 #+name: tally-package-symbols
24 #+begin_src lisp :exports both 25 (quickload-core-systems)
26 (defparameter *core-packages* '("STD" "SXP" "PARSE" "CLI" "XKB" "ALPM" "BTRFS" "BQN" "K"
27 "TREE-SITTER" "URING" "ZSTD" "BLAKE3" "ROCKSDB" "RDB" "SKEL"
28 "ORGAN" "NLP" "DAT" "OBJ" "LOG" "NET" "PACKY" "GUI" "SYN" "DOC"))
29 (defvar *core-symbols* nil)
32 for pkg in *core-packages*
33 do (loop for s being the external-symbols of (find-package pkg)
36 (pushnew s *core-symbols*))
37 finally (return (cons (length *core-packages*) n)))
40 #+RESULTS: tally-package-symbols
43 #+name: tally-functions-and-symbols
44 #+begin_src lisp :exports both 45 (defvar *core-functions* nil)
46 (defvar *core-variables* nil)
47 (loop for s in *core-symbols*
48 do (let ((f (fboundp s))
50 (when f (pushnew s *core-functions*))
51 (when v (pushnew s *core-variables*)))
52 finally (return (cons (length *core-functions*) (length *core-variables*))))
55 #+RESULTS: tally-functions-and-symbols