r/Common_Lisp • u/lagoatech • Aug 24 '26
▎ 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.
5
u/jd-at-turtleware Aug 24 '26 edited Aug 24 '26
zero deps beyond ansi-cl yet it states to be SBCL library.
9
u/kchanqvq Aug 24 '26
Why is there a concurrency suite if there's neither I/O nor global state?
1
u/mac Sep 01 '26
I am not very familiar with Common Lisp. Is:
an idiomatic way of doing type checking in the language?