122 days ago · 7 min read1443 words · Tech · hide · Fediverse post

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…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town