robert-strandh / Clobber

A simpler alternative to object prevalence for Common Lisp.
Other
46 stars 5 forks source link

with-atomic-logging; serialization for generic-functions and hash-tables #11

Closed rainthree closed 5 months ago

rainthree commented 5 months ago

Implemented serialization for generic-functions and hash-tables, added tests that can be run with (asdf:test-system :clobber). Implemented commit and clear-uncommitted internal functions, useful to recover from unsuccessful transactions (due to typos or other bugs). Rewrote the demos in a more modular way so that they can be read and understood more easily. Added comments because the logic is a little intricated and clear explanations in the demos help to make the whole thing accessible (understandable). Added demo3 to demonstrate with-atomic-logging that ensures the (execute ...) forms in its body are committed to the actual file only after all of the (execute ...) forms went through.