clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
Ivan Fedorov 2021-05-22T10:17:23.196500Z

For those interested in dead simple databases – I’ve made a https://youtu.be/t0gG1zzIT_c for https://github.com/ribelo/doxa by @huxley https://github.com/spacegangster/rf-doxa-etude Easiest diffing and syncing I’ve ever seen.

πŸ‘ 4
Aron 2021-05-22T10:41:48.197800Z

this looks exciting. also the first sentence reminds me of https://imgs.xkcd.com/comics/standards.png : D

Aron 2021-05-22T10:45:51.199200Z

when people say datascript is slow, I would like to see the instances it is slow, because when I used it, it was possible to optimize it quite well, and would be interesting where the different experience comes from, is it a different part of the API, is it the scale?

p-himik 2021-05-22T10:48:48.199900Z

I measured it about 2 years ago - compared a simple datascript setup with a simple custom solution similar to doxa. datascript ended up being ~10 times slower, which was definitely noticeable on large tables that I usually deal with.

Ivan Fedorov 2021-05-22T10:49:04.200300Z

Hehehe, but pluralism is our strength! Is it easy to diff and patch in Datascript? Doxa is about balance, as I got it.

2021-05-22T10:55:50.203100Z

❀️

Aron 2021-05-22T10:58:45.203500Z

I take 15 standards over a single standard any time πŸ™‚ Better to have something to choose from πŸ˜„

2021-05-22T10:59:25.203900Z

@ashnur Doxa was not intended to be faster than datascript, because that's not its main problem for me. The fact that it is faster is a coincidence. And how slow datascript is, let's see datalevin, which despite the fact that it stores data on disk is several times faster than datascript which keeps data in memory.

Ivan Fedorov 2021-05-22T10:59:32.204200Z

@p-himik doxa uses timbre, editscript and meander, so it may punch well above its perceived weight. We’re about to find out

Aron 2021-05-22T10:59:53.204400Z

@p-himik while I trust you fully, note that this is still the same, we talk about datascript being slow without me seeing the instance when it's slow : )

Aron 2021-05-22T11:01:20.204800Z

ok, can I see the code that generated the chart please? and yes, the talk about performance here is 100% independent of doxa and doxa's promises, I do realize and I do intend to try doxa out when I will have a bit more time

2021-05-22T11:03:07.205200Z

doxa is a hobby project, don't expect too much

Aron 2021-05-22T11:06:50.205400Z

: ) in terms of precision or accuracy?

2021-05-22T11:07:14.205600Z

you can meet dragons

2021-05-22T11:07:48.205800Z

I am not a senior developer with 20 years of experience who knows exactly what he is doing.

Aron 2021-05-22T11:08:59.206Z

only people who did the same thing for 20 years continuously know what they are doing πŸ˜„ people who do new things, experience only teaches how little we know.

2021-05-22T11:09:30.206200Z

πŸ™ƒ

Aron 2021-05-22T11:09:44.206400Z

although I didn't quite hit the 20 years mark, maybe it will change in a couple years : D

Ivan Fedorov 2021-05-22T11:14:50.206600Z

How fast do you need to be though? For Lightpad occasional ~250ms queries over 10k-100k elements would be completely fine. But I’ve spent weeks writing and testing my own diff accumulation / patching solution.

Ivan Fedorov 2021-05-22T11:16:36.206900Z

fyi @tangj1122