laurent.orseau
2020-8-16 10:20:38

Datalog has an <https://github.com/racket/datalog/tree/master/tests|impressive test suite> however! :open_mouth:


spdegabrielle
2020-8-16 10:22:56

If you implement one of the term indexing techniques would it improve the performance of datalog?


laurent.orseau
2020-8-16 10:28:32

Probably not. Datalog has a number of constraints that I don’t have in my case: https://en.wikipedia.org/wiki/Datalog#Features,_limitations_and_extensions


laurent.orseau
2020-8-16 10:29:44

I implemented an imperfect discrimination tree, and it turned out to be much simpler than I thought once the idea is understood


laurent.orseau
2020-8-16 10:30:27

Next I need to improve it to a matching/perfect discrimination tree. (it’s a little more complicated as I need to track the substitution along the branches. Should be easy, but there’s room for mistakes :grin:)


laurent.orseau
2020-8-16 10:32:55

For datalog, a hash is probably enough since literals are ‘flat’ and simple


spdegabrielle
2020-8-16 10:33:00

> implemented an imperfect discrimination tree, > May I see ?


laurent.orseau
2020-8-16 11:13:33

pm


chris.o.cowan
2020-8-17 01:54:56

@chris.o.cowan has joined the channel