Things I wish Datomic had: Map values 0 ▲ Daniel Janus 32 minutes ago · 7 min read1443 words · Tech · hide · 0 comments Whence this postJEP 401 – a proposal to add value classes to Java – has been crystallizing for almost six years now, but I only learned about it this morning. I skimmed it, nodding along to myself as I thought “gee, I can’t imagine going back to Java” and “wonder how this might make Clojure more performant?”. But then I thought about some Datomic (actually, Datahike) data remodelling that I’d been working on recently, and I realized that the two areas are connected.So here’s a braindump, in an effort to clear up my mental image of all this.A simple exampleConsider this Clojure value:(def prog {:program/name "Apache Maven" :program/url "https://maven.apache.org" :program/version {:version/major 3 :version/minor 9 :version/patch 16}}) If you’re like me, you’ll have a warm, comfortable feeling in your heart looking at this. Plain data at rest. Accessible, transformable. What’s not to love?Well, now try storing it in Datomic. Easy! Let’s first define a schema:(def schema [{:db/ident… No comments yet. Log in to reply on the Fediverse. Comments will appear here.