chris613
2019-2-26 11:38:32

@chris613 has joined the channel


chris613
2019-2-26 15:55:20

is there a way to do maths in datalog ?


chris613
2019-2-26 15:55:55

e.g salary(fred, 100) salary(angie, 100) salary(luch, 500)

high-earners :- ….. ?


chris613
2019-2-26 15:56:52

so i can name a set of people who have salaries over a certain threshold ?


chris613
2019-2-26 15:58:37

i cant seem to fond much on the internet (only done an hour of searching tho) on datalog and how to use it beyond the docs that are on racket-lang


chris613
2019-2-26 15:58:51

maybe i should be using racklog instead ??


a.nastaev
2019-2-26 16:00:58

@a.nastaev has joined the channel


alexharsanyi
2019-2-26 22:10:38

@alexharsanyi has joined the channel


alexharsanyi
2019-2-26 22:11:16

@alexharsanyi has left the channel


philip.mcgrath
2019-2-27 06:24:47

@chris613 I only know how to do this in the s-expression syntax: #lang datalog/sexp (! (salary fred 100)) (! (salary angie 100)) (! (salary luch 500)) (! (salary zoe 300)) (! (:- (high-earner Name) (salary Name X) (> X 250 :- #t))) (? (high-earner N))


philip.mcgrath
2019-2-27 06:28:18

@jeapostrophe would know if you can do something similar in the traditional syntax.