datalog

2026-03-06T23:27:10.908639Z

are there any books on clojure/datomic flavored datalog? i learn best from paper

2026-03-08T08:53:18.763049Z

@nbtheduke strong +1 on the kanren paper, it captures the essence of the matter in clear prose and very little code. Thereโ€™s also the wonderfully succinct micro kanren http://webyrd.net/scheme-2013/papers/HemannMuKanren2013.pdf Print the papers out and pretend theyโ€™re books ๐Ÿ™‚

โž• 2
Ben Sless 2026-03-08T08:57:41.349489Z

uK paper is a gem, but reading mK first makes it that much more glorious Consider the uK a cogito hazard. Sure, you'll say, I can implement it myself, short adventure, I'm sure there will be no side effects

๐Ÿ˜‚ 2
Ben Sless 2026-03-08T09:54:47.180569Z

Case in point, I got here because of Kanren

Huahai 2026-03-07T00:20:45.649129Z

datalevin 1.0 will comes with a book at http://datalevin.org

Huahai 2026-03-07T00:22:55.676929Z

if you are inpatient, the unfinished book is already at https://github.com/datalevin/docs/tree/main/resources/docs

๐Ÿ‘ 2
๐Ÿ‘€ 1
2026-03-07T00:33:38.210699Z

oh wow that's quite far along. like i said, i learn best from physical books so maybe i can get that printed when it's finished

Huahai 2026-03-07T00:34:08.715029Z

yes, the plan is to have a print book.

๐Ÿ˜ 1
๐Ÿ’ช 2
Ben Sless 2026-03-07T08:37:58.862669Z

I bet @jackrusher can recommend a few

2026-03-07T16:39:51.549469Z

I was more involved in older flavors of datalog, which have a more PROLOG-y syntax. The semantics are very similar, but the notation is probably a barrier for someone who just wants to learn about using Datomic. @daveliepmann might have some ideas, though, as heโ€™s working with the Datomic team these daysโ€ฆ

๐Ÿ‘ 1
2026-03-07T17:17:39.260349Z

i'd take a prolog book too, because i expect conceptually they're similar

2026-03-07T17:18:09.571099Z

i'm mostly trying to reframe how i think about databases and storage after 20 years of sql

Ben Sless 2026-03-07T17:37:09.320979Z

You might want to go through the datalog engine from scratch blog posts

Ben Sless 2026-03-07T17:52:23.888749Z

Another prism to look at this through is minikanren, the thesis is very readable. By the time you reach cKanren and alphaKanren there are very few surprises left in datalog implementations

๐Ÿ‘ 1
๐Ÿ’ฏ 1
2026-03-07T17:54:44.265679Z

i love books which is why i was asking about books but i'll definitely read that blog series

Ben Sless 2026-03-07T18:01:12.058169Z

The blog series might be considered a non formal intro. I also prefer books. And papers. They often contain the lion's share of the original theory and work. This is the mk thesis https://www.proquest.com/docview/304903505

๐Ÿ‘ 1
2026-03-07T18:17:06.107929Z

thank you!

โค๏ธ 1
Ben Sless 2026-03-07T18:23:21.976449Z

Welcome ๐Ÿ˜Š I think the two major conceptual hurdles are: Indexing, etc is incidental. It is an optimization for more efficient queries. Storage is just a persistence layer. Depending on what you need in memory and your access patterns you'll choose the appropriate storage.

okwori 2026-03-07T19:55:04.786339Z

Same here, I read these 3, top 3, but it's a long time ago now so this list might be way better now โ€ข Professional Clojure Jeremy Anderson Michael Gaare Justin Holguรญn Nick Bailey Timothy Pratley โ€ข Clojure Cookbook by Luke VanderHart & Ryan Neufeld โ€ข Learning ClojureScript by W. Davis Jarvis, Rafik Naccache, Allen Rohner