ethica

Spinozas ethics and various translations, edited for easy post processing.
git clone https://git.repetitions.de/ethica
commit 0db44d2418fb278efc229e700f1e90caae059356
parent fcec6975a0b1ba2a29e0d70a7508f00324854e27
Author: lou woell <lou@repetitions.de>
Date:   Sun,  1 Nov 2026 23:16:06 +0100

add system for local testing

Diffstat:
Mlisp/lou.spinoza.ethica.asd | 5+++++
Alisp/server.lisp | 26++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/lisp/lou.spinoza.ethica.asd b/lisp/lou.spinoza.ethica.asd @@ -8,3 +8,8 @@ #:markdown.cl #:com.inuoe.jzon) :components ((:file "ethics"))) + +(asdf:defsystem :lou.spinoza.ethica/local + :depends-on (#:lou.spinoza.ethica + #:hunchentoot) + :components ((:file "server"))) diff --git a/lisp/server.lisp b/lisp/server.lisp @@ -0,0 +1,26 @@ +(defpackage :ethica.server + (:use #:cl) + (:export #:run + #:stop)) + +(in-package :ethica.server) + +(defvar *server* nil) + +(defun run () + (unless *server* + (let ((port 1313) + (root (merge-pathnames #p"../build/" + (asdf:system-source-directory + (asdf:find-system :lou.spinoza.ethica))))) + (setf *server* + (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor + :document-root root + :port port))) + (uiop:run-program (format nil "firefox http://localhost:~s" port))) + t)) + +(defun stop () + (progn (hunchentoot:stop *server* :soft nil) + (setf *server* nil) + t))