|
|
|
|
|
by utxaa
1884 days ago
|
|
it's not that apples to oranges. op is saying they use sqlite, i'm saying we use edn files. just offering another point of view. if by out-of-order you mean loading parts of a file, of course we don't do that. we don't load everything into memory (there's more than one file). just like you wouldn't load your whole sqlite db into memory. if the machine crashes we lose what we didn't save. same with a db. > So basically I can just say the same thing you said with
> C: "I just fopen/fgetc strings to disk. C is my query
> language."
as a clojure user you know this is not a good analogy. c has macros too.the main problem with our approach is that the server needs to have access to the edn files. that's not always doable ... but same problem with sqlite. and it is oh so nice to investigate stuff in the repl: (:prio (load-file (filter #(= "secret-id" (:id %)) index)))
btw, i loved to kill a mocking bird. |
|
With sqlite, creating an index is a one-liner. How do you cover that in clojure? With sqlite, a whole database fits in one file that can be read by almost any macos / linux machine. With clojure, you need your specific program created on top of clojure installed in the machine. Etc.
At the end of the day, you can reimplement sqlite on clojure, which basically proves that we are talking about different abstraction levels, thus apples to oranges.