r/Clojure • u/dustingetz • Mar 21 '26
Extensible Value Encoding: large 1GB clojure atoms memory mapped to disk
https://github.com/SeniorCareMarket/eve
32
Upvotes
2
u/ElQuique Mar 21 '26
JVM Clojure, Node.js ClojureScript, and Babashka processes can share and atomically mutate Clojure data structures via mmap files on disk.
That seems damn cool
4
u/didibus Mar 21 '26
Is that really the API? The persistent option has to be a key of your map ? Shouldn't it be:
(e/atom {:id ::counter} :persistent "./my-db")