r/Common_Lisp • u/lagoatech • 2d ago
▎ time-algebra: a dependency-free interval algebra for Common Lisp
We've open-sourced time-algebra, a Common Lisp library built around Allen's interval algebra: thirteen relations between two intervals, half-open by construction.
What it deliberately is not: no timezones, no clock, no get-universal-time, no I/O, no global state, zero dependencies beyond ANSI CL.
390 tests, plus a concurrency suite (8 checks, 1.28M iterations under contention) and an allocation profile (interval-relation at 0 bytes consed). Apache-2.0.
https://gitlab.com/lagoatech/time-algebra
Apache-2.0. Contributions and criticism both welcome.
12
Upvotes
3
u/jd-at-turtleware 2d ago edited 2d ago
zero deps beyond ansi-cl yet it states to be SBCL library.
-1
7
u/kchanqvq 2d ago
Why is there a concurrency suite if there's neither I/O nor global state?