changeset 17: |
2601788ab805 |
parent 16: |
46fb6a10d2e1 |
child 18: |
b6889b8a2f83 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Wed, 10 Jan 2024 19:02:43 -0500 |
files: |
core/ffi.org core/stats.org core/tests.org demo/stats.org infra/quickstart.org infra/stats.org |
description: |
sub up |
1.1--- a/core/ffi.org Fri Dec 29 00:43:43 2023 -0500
1.2+++ b/core/ffi.org Wed Jan 10 19:02:43 2024 -0500
1.3@@ -28,9 +28,6 @@
1.4 https://github.com/kdave/btrfs-progs
1.5 ** uring
1.6 https://man.archlinux.org/man/io_uring.7.en
1.7-** alpm
1.8-https://man.archlinux.org/man/core/pacman/libalpm.3.en
1.9-https://github.com/archlinux/alpm.rs/tree/382af70cdbff8e1f65c0bf8df79693786f44429c/alpm/examples
1.10 ** zstd
1.11 zstd compression bindings: https://github.com/facebook/zstd
1.12 ** tree-sitter
1.13@@ -38,9 +35,13 @@
1.14 ** blake3
1.15 temporary package for CL implementation of Blake3 SHA. Wraps C
1.16 implementation (libblake3).
1.17-** bqn
1.18+** COMMENT alpm
1.19+https://man.archlinux.org/man/core/pacman/libalpm.3.en
1.20+https://github.com/archlinux/alpm.rs/tree/382af70cdbff8e1f65c0bf8df79693786f44429c/alpm/examples
1.21+
1.22+** COMMENT bqn
1.23 These bindings are for libcbqn which can be build from CBQN:
1.24 https://github.com/dzaima/CBQN
1.25-** k
1.26+** COMMENT k
1.27 https://codeberg.org/ngn/k
1.28 bindings for ngn/k (libk).
2.1--- a/core/stats.org Fri Dec 29 00:43:43 2023 -0500
2.2+++ b/core/stats.org Wed Jan 10 19:02:43 2024 -0500
2.3@@ -1,7 +1,9 @@
2.4 # -*- org-export-babel-evaluate: nil -*-
2.5 {{{header(docs/core,Richard Westhaver,ellis@rwest.io)}}}
2.6+* files
2.7 #+property: header-args :dir /home/ellis/dev/comp/core/
2.8 #+begin_src shell :results pp :exports results
2.9+ cd rust && cargo clean && cd ..
2.10 tokei -t=rust,lisp
2.11 #+end_src
2.12
2.13@@ -10,20 +12,24 @@
2.14 ===============================================================================
2.15 Language Files Lines Code Comments Blanks
2.16 ===============================================================================
2.17- Lisp 259 29567 22520 3163 3884
2.18+ Lisp 264 30965 23547 3360 4058
2.19 -------------------------------------------------------------------------------
2.20- Rust 142 12407 10732 443 1232
2.21- |- Markdown 101 804 0 709 95
2.22- (Total) 13211 10732 1152 1327
2.23+ Rust 145 12513 10807 462 1244
2.24+ |- Markdown 102 813 0 718 95
2.25+ (Total) 13326 10807 1180 1339
2.26 ===============================================================================
2.27- Total 401 41974 33252 3606 5116
2.28+ Total 409 43478 34354 3822 5302
2.29 ===============================================================================
2.30 #+end_example
2.31
2.32+* lisp
2.33+** systems
2.34+** packages
2.35+** symbols
2.36 #+name: tally-package-symbols
2.37 #+begin_src lisp :exports both
2.38 (quickload-core-systems)
2.39- (defparameter *core-packages* '("STD" "SXP" "PARSE" "CLI" "XKB" "ALPM" "BTRFS" "BQN" "K"
2.40+ (defparameter *core-packages* '("STD" "PARSE" "CLI" "XKB" "ALPM" "BTRFS" "BQN" "K"
2.41 "TREE-SITTER" "URING" "ZSTD" "BLAKE3" "ROCKSDB" "RDB" "SKEL"
2.42 "ORGAN" "NLP" "DAT" "OBJ" "LOG" "NET" "PACKY" "GUI" "SYN" "DOC"))
2.43 (defvar *core-symbols* nil)
2.44@@ -54,3 +60,19 @@
2.45
2.46 #+RESULTS: tally-functions-and-symbols
2.47 : (1098 . 75)
2.48+
2.49+** fasls
2.50+#+begin_src shell :dir /home/ellis/dev/comp/infra/
2.51+ for f in dist/fasl/*; do
2.52+ du -s $f
2.53+ done
2.54+#+end_src
2.55+
2.56+#+RESULTS:
2.57+| 240728 | dist/fasl/cli.core |
2.58+| 240920 | dist/fasl/organ.core |
2.59+| 244152 | dist/fasl/pod.core |
2.60+| 274504 | dist/fasl/prelude.core |
2.61+| 240760 | dist/fasl/rdb.core |
2.62+| 241400 | dist/fasl/skel.core |
2.63+| 240664 | dist/fasl/std.core |
3.1--- a/core/tests.org Fri Dec 29 00:43:43 2023 -0500
3.2+++ b/core/tests.org Wed Jan 10 19:02:43 2024 -0500
3.3@@ -232,7 +232,6 @@
3.4 (defun quickload-core-systems ()
3.5 (ql:quickload :std)
3.6 (ql:quickload :rt)
3.7- (ql:quickload :sxp)
3.8 (ql:quickload :parse)
3.9 (ql:quickload :cli)
3.10 (ql:quickload :xkb)
3.11@@ -240,6 +239,10 @@
3.12 (ql:quickload :btrfs)
3.13 ;; (ql:quickload :bqn)
3.14 (ql:quickload :k)
3.15+ (ql:quickload :syn)
3.16+ (ql:quickload :pod)
3.17+ (ql:quickload :vc)
3.18+ (ql:quickload :dat)
3.19 (ql:quickload :tree-sitter)
3.20 (ql:quickload :uring)
3.21 (ql:quickload :zstd)
3.22@@ -273,8 +276,10 @@
3.23 (time
3.24 (progn
3.25 (gen-report :std)
3.26- (setq *sxp-test-file* "lisp/lib/sxp/tests.sxp")
3.27- (gen-report :sxp)
3.28+ (gen-report :dat)
3.29+ (gen-report :pod)
3.30+ (gen-report :vc)
3.31+ (gen-report :syn)
3.32 (gen-report :parse)
3.33 (gen-report :cli)
3.34 (gen-report :xkb)
3.35@@ -303,8 +308,8 @@
3.36 #+name: gen-trace-report
3.37 #+begin_src lisp :results output :exports code
3.38 (quickload-core-systems)
3.39- (trace "STD" "SXP" "PARSE" "CLI" "XKB" "SKEL" "ORGAN"
3.40- "OBJ" "XDB" "LOG" "NET" "PACKY" "NLP"
3.41+ (trace "STD" "PARSE" "CLI" "XKB" "SKEL" "ORGAN"
3.42+ "OBJ" "XDB" "LOG" "NET" "PACKY" "NLP" "DAT"
3.43 "ROCKSDB" "K" "BTRFS" "TREE-SITTER" "ZSTD" "BLAKE3" "URING")
3.44 (rt/trace:start-tracing)
3.45 (gen-core-coverage-report)
3.46@@ -959,20 +964,6 @@
3.47 No tests failed.
3.48 #+end_example
3.49
3.50-*** sxp
3.51-#+begin_src lisp :results output replace :exports both
3.52- (load "lisp/lib/sxp/tests.lisp")
3.53- (rt:do-tests :sxp)
3.54-#+end_src
3.55-
3.56-#+RESULTS:
3.57-: in suite sxp with 4/4 tests:
3.58-: #<PASS SXP-STREAM-TEST248089>
3.59-: #<PASS SXP-STRING-TEST248088>
3.60-: #<PASS SXP-FILE-TEST248087>
3.61-: #<PASS FORMS-TEST248086>
3.62-: No tests failed.
3.63-
3.64 *** organ
3.65 #+begin_src lisp :results output replace :exports results
3.66 (load "lisp/lib/organ/tests.lisp")
3.67@@ -1214,6 +1205,48 @@
3.68 No tests failed.
3.69 #+end_example
3.70
3.71+*** vc
3.72+#+begin_src lisp :results output replace :exports results
3.73+ (ql:quickload :vc)
3.74+ (load "lisp/lib/vc/tests.lisp")
3.75+ (asdf:test-system :vc)
3.76+#+end_src
3.77+
3.78+#+RESULTS:
3.79+: To load "vc":
3.80+: Load 1 ASDF system:
3.81+: vc
3.82+: ; Loading "vc"
3.83+:
3.84+: in suite vc with 2/2 tests:
3.85+: #<PASS HG-TEST2877>
3.86+: #<PASS GIT-TEST2876>
3.87+: No tests failed.
3.88+
3.89+*** pod
3.90+#+begin_src emacs-lisp
3.91+ (async-shell-command "podman system service --time=10 unix:///run/user/$UID/podman.sock")
3.92+#+end_src
3.93+
3.94+#+RESULTS:
3.95+: #<window 167 on *Async Shell Command*>
3.96+
3.97+#+begin_src lisp :results output replace :exports results
3.98+ (ql:quickload :pod)
3.99+ (load "lisp/lib/pod/tests.lisp")
3.100+ (asdf:test-system :pod)
3.101+#+end_src
3.102+
3.103+#+RESULTS:
3.104+: To load "pod":
3.105+: Load 1 ASDF system:
3.106+: pod
3.107+: ; Loading "pod"
3.108+:
3.109+: in suite pod with 1/1 tests:
3.110+: #<PASS POKE-AND-PROD-TEST2882>
3.111+: No tests failed.
3.112+
3.113 ** ffi
3.114 *** btrfs
3.115 #+begin_src lisp :results output replace :exports results
4.1--- a/demo/stats.org Fri Dec 29 00:43:43 2023 -0500
4.2+++ b/demo/stats.org Wed Jan 10 19:02:43 2024 -0500
4.3@@ -9,10 +9,11 @@
4.4 ===============================================================================
4.5 Language Files Lines Code Comments Blanks
4.6 ===============================================================================
4.7- Lisp 22 685 505 61 119
4.8+ Lisp 22 688 505 63 120
4.9 Makefile 1 23 20 3 0
4.10 Org 2 131 127 0 4
4.11 Shell 1 592 459 63 70
4.12+ Plain Text 2 2 0 2 0
4.13 TOML 6 85 81 0 4
4.14 -------------------------------------------------------------------------------
4.15 HTML 1 7 7 0 0
4.16@@ -23,6 +24,6 @@
4.17 |- Markdown 9 36 0 32 4
4.18 (Total) 779 635 35 109
4.19 ===============================================================================
4.20- Total 51 2266 1834 130 302
4.21+ Total 52 2271 1834 134 303
4.22 ===============================================================================
4.23 #+end_example
5.1--- a/infra/quickstart.org Fri Dec 29 00:43:43 2023 -0500
5.2+++ b/infra/quickstart.org Wed Jan 10 19:02:43 2024 -0500
5.3@@ -12,10 +12,5 @@
5.4 #+begin_src shell
5.5 sudo pacman -Sy make mercurial podman wayland
5.6 # emacs build dependencies
5.7-sudo pacman -Sy libvoikko librsvg imagemagick sysprof
5.8+sudo pacman -Sy libvoikko librsvg imagemagick sysprof lldb
5.9 #+end_src
5.10-
5.11-#+name: check-infra-host
5.12-#+begin_src
5.13-./scripts/eval.sh ./scripts/check.lisp
5.14-#+end_src
6.1--- a/infra/stats.org Fri Dec 29 00:43:43 2023 -0500
6.2+++ b/infra/stats.org Wed Jan 10 19:02:43 2024 -0500
6.3@@ -10,13 +10,11 @@
6.4 ===============================================================================
6.5 Language Files Lines Code Comments Blanks
6.6 ===============================================================================
6.7- Lisp 3 226 172 16 38
6.8- Makefile 1 152 108 20 24
6.9+ Lisp 2 152 109 11 32
6.10+ Makefile 1 213 157 28 28
6.11 Org 1 39 35 0 4
6.12- Shell 31 1182 862 199 121
6.13- TOML 1 6 5 0 1
6.14+ Shell 43 1280 927 228 125
6.15 ===============================================================================
6.16- Total 37 1605 1182 235 188
6.17+ Total 47 1684 1228 267 189
6.18 ===============================================================================
6.19 #+end_example
6.20-