Comment by moomin
4 months ago
It's a pity that Clojure is kind of a hermetic space these days, because the concept of bitemporality really deserves much more attention. It's amazing how often you want to know "What was the P&L for March using the data available on Apr 4?" and how uncommon it is to find a database design that supports that kind of query.
'Hermetic' is an interesting word-choice, considering Clojure has a habit/raison detre of attaching to other host languages/ecosystems i.e. Jank (C++), ClojureScript (JS), Basilisp (Python), Phel (PHP), Babashka (general scripting), and of course, Clojure itself on the JVM.
Sure. But the other way around?
Why is there no JS client for datomic (that is not abandoned)?
datomic =/= clojure
Clojure doesn't have much manpower, being a niche language and all, so maybe that's where your impression comes from. It's hardly on purpose, and there's many examples of software that ships with another language as public API.
Rama is written in clojure but the main api is java
Klipse is written in cljs but is marketed as a "javascript library"
Even Datomic maintains a java api
Rama[1] for example launched with Java API first. Probably for some reason Datomic just didn't get traction with JS users for some nontechnical reason.
[1] https://redplanetlabs.com/
It's not particularly rare in analytical databases/query engines, nearly all of which support AsOf joins these days, including
AsOf join in those systems solves a rather narrow problem of performance and SQL expressiveness for data with overlapping user-defined timestamps. The bitemporal model solves much broader issues of versioning and consistent reporting whilst also reducing the need for many user-defined timestamp columns.
In a bitemporal database, every regular looking join over the current state of the world is secretly an AsOf join (across two dimensions of time), without constantly having to think about it when writing queries or extending the schema.
This is the book I like for an overview of the problem. https://www.amazon.com/Temporal-Relational-Kaufmann-Manageme...
"It's a pity that Clojure is kind of a hermetic space these days"
If you don't mind sharing, I'm curious why you feel this way.
We hermits enjoy its use in our lairs, worlds of pure thought.
Spanner does that with ease (I worked there, so I’m clearly biased).
https://cloud.google.com/spanner/docs/timestamp-bounds#exact...
That only covers the 'transaction time' axis though? And the page says retention is limited to 1 week. No doubt useful for some things, but probably not end-user reporting requirements.