Fork me on GitHub
#datomic
<
2016-05-11
>
vinnyataide17:05:20

I'm learning datomic right now and seeing that it works with arbitrary data could it be an replacement to filter func in clojure?

bvulpes17:05:17

am i intuiting correctly that the pull api doesn't return tx data?

val_waeselynck18:05:43

@vinnyataide: you don't like filter ? simple_smile yes Datalog can be useful for declarative data manipulation and expressing rules, doesn't mean it's always better than clojure.core functions though

val_waeselynck18:05:48

@vinnyataide: but given that querying is practically non-remote, nothing stops you from mixing both styles, that's one of the wonderful things with Datomic

vinnyataide18:05:57

@val_waeselynck: well I didn't say but I was asking if it blends in like the core

vinnyataide18:05:30

that's exactly my point, it's very nice indeed

val_waeselynck18:05:01

@vinnyataide: my everyday Datomic code mixes Datalog queries for selecting entities and clojure.core function that manipulate entities (i.e instances of the Entity class)

vinnyataide18:05:43

my next question is a little more scientific. the "bound" variables follow the same principles from the monads?

val_waeselynck18:05:58

@vinnyataide: not sure what you mean by that

vinnyataide19:05:09

@val_waeselynck: no need to answer just found out, now... Is there any resource to learn datomic inserts anywhere? I'm not finding it

val_waeselynck19:05:41

@vinnyataide: have you watched the Day of Datomic videos?

val_waeselynck19:05:18

those + some REPL experimentation worked well for me

vinnyataide19:05:10

@val_waeselynck: all right gonna check it out and play with the api a little bit

vinnyataide19:05:10

btw stu's hair is epic 😄

curtosis20:05:23

stu's hair being epic is a system invariant. simple_smile

vinnyataide21:05:53

an interesting aspect is that I came upon this database already thinking about a more generalized way to build immutable databases that sees the facts as timeless atoms. I commented this idea with my research teacher but was like daydreaming for him, sadly there's not much research in my area about functional programming. but I'm very happy to see this idea work so perfectly

vinnyataide21:05:34

the state machine as we know today takes pictures of the whole universe in a fraction of a clock, now this db builds atoms that represent all the dimensions that it is in, that what I got