Extending core.logic (Datomic example)

141 views
Skip to first unread message

David Nolen

unread,
May 18, 2012, 9:24:31 PM5/18/12
to clojure, cloju...@googlegroups.com
core.logic has had the facilities to integrate with external data sources for a very long time. However this feature has been poorly documented. Hopefully the following improves the situation a little bit:

Thomas G. Kristensen

unread,
May 20, 2012, 2:52:25 AM5/20/12
to Clojure
That link is dead - sorry,

Thomas
> http://github.com/clojure/core.logic/wiki/Extending-core.logic-(Datom...)
>
> David

Baishampayan Ghose

unread,
May 20, 2012, 3:03:23 AM5/20/12
to clo...@googlegroups.com
Try this one -

https://github.com/clojure/core.logic/wiki/Extending-core.logic-%28Datomic-example%29

Regards,
BG
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



--
Baishampayan Ghose
b.ghose at gmail.com

john

unread,
May 20, 2012, 2:58:43 PM5/20/12
to clo...@googlegroups.com
please forgive me if I am wrong because I know so little about
clojure,logic and datomic....

But you are using  (d/datoms (db conn) :eavt)
which seems to give you a sequence over all datoms of a database.

In a large database this sequence would not fit in memory. So wouldn't it
be better if you somehow
could also provide the java.lang.Object... components parameter which would
let you
"walk" the index?


Am Sonntag, 20. Mai 2012 09:03:23 UTC+2 schrieb Baishampayan Ghose:
Try this one -

https://github.com/clojure/core.logic/wiki/Extending-core.logic-%28Datomic-example%29

Regards,
BG

On Sun, May 20, 2012 at 12:22 PM, Thomas G. Kristensen
<thomas.g....@gmail.com> wrote:
> That link is dead - sorry,
>
> Thomas
>
> On May 19, 3:24 am, David Nolen <dnolen.li...@gmail.com> wrote:
>> core.logic has had the facilities to integrate with external data sources
>> for a very long time. However this feature has been poorly documented.
>> Hopefully the following improves the situation a little bit:
>>
>> http://github.com/clojure/core.logic/wiki/Extending-core.logic-(Datom...)
>>
>> David
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscribe@googlegroups.com

David Nolen

unread,
May 20, 2012, 5:51:55 PM5/20/12
to clo...@googlegroups.com
The details of working efficiently with Datomic are outside the scope of the tutorial. And yes you can and should be more specific about how you access Datomic's indexes.

David

Reply all
Reply to author
Forward
0 new messages