datascript

hoppy 2024-04-19T14:00:06.807399Z

Wondering, perusing Storage protocol, as to why this is "JVM only (at least for now)". Is there a fundamental cljs issue hiding there? Something I could possibly help with?

Niki 2024-04-20T10:28:45.113509Z

It has to be integrated into persistent set, it can’t “just” exist on the top layer

hoppy 2024-04-20T12:05:02.564969Z

I see. I hadn't dug deep enough to understand that - just saw that protocol and thought that looks interesting/useful.

Niki 2024-04-19T14:26:07.432809Z

Yes, cljs storages are async

Niki 2024-04-19T14:26:48.008599Z

There’s a PR though https://github.com/tonsky/persistent-sorted-set/pull/14

hoppy 2024-04-19T16:46:15.805739Z

That one seems to have a lot of attendant baggage with it in terms of Modifications to interior things. I was just thinking along the lines of letting the IStorage protocol exist in cljs and then be on your own as far as implementing it - it seems simple enough on the surface. I'm working in node, not the browser, so if it needs to be synchronous it can be.