Re: [elephant-devel] Learning about Elephant

2009-02-10 Thread Ian Eslick
There are actually four query systems in various state of disrepair. query.lisp is the first and simplest hack to play with query syntax. query2.lisp is missing, but implements a basic query planner/interpreter the query folder contains an incomplete sketch of a much more sophisticated query com

Re: [elephant-devel] Learning about Elephant

2009-02-10 Thread John
I'll take a look and see if I can do anything with it, whether using it or helping with it. However, do let me (us) know when you track down that missing file just in case it's important to the use of it. Regards, John On Tue, Feb 10, 2009 at 1:03 PM, Ian Eslick wrote: > src/elephant/query.lisp

Re: [elephant-devel] Learning about Elephant

2009-02-10 Thread Ian Eslick
src/elephant/query.lisp contains a simple query model. It is loaded by default now. I have a query-interpreter, but the current elephant-1.0 seems to be missing a key file which I will have to track down. Neither of these is feature complete or well-tested, so explore at your own risk. If

Re: [elephant-devel] Learning about Elephant

2009-02-10 Thread John
Hi Ian, I've been playing with Elephant and so far so good. I noticed that there is some code in the query folder. However, I'm not sure if this is at all functional in any way. Is it? How could I begin to use some of whatever is done there? Thanks, John On Tue, Jan 27, 2009 at 1:32 PM, Ian Esli

Re: [elephant-devel] Learning about Elephant

2009-02-10 Thread John
Hi Ian, I've been playing with Elephant and so far so good. I noticed that there is some code in the query folder. However, I'm not sure if this is at all functional in any way. Is it? How could I begin to use some of whatever is done there? Thanks, John- Hide quoted text - On Tue, Jan 27, 2009

Re: [elephant-devel] Learning about Elephant

2009-02-03 Thread Ian Eslick
> > Now, I think the last few questions I have on this subject before > delving further are > > 1) What data structure do associations use to store the list of > associated objects? My little understanding of update-association- > end implies that the association slot creates some sort of inde

Re: [elephant-devel] Learning about Elephant

2009-01-28 Thread John
Hi Ian, I guess there is nothing better than trying it out :) ELE-TESTS> (defpclass person () ((friends :accessor friends-of :associate (person friends) :many-to-many t))) # ELE-TESTS> (defparameter person1 (make-instance 'person)) PERSON1 ELE-TESTS> (defparameter person2 (make-insta

Re: [elephant-devel] Learning about Elephant

2009-01-28 Thread John
On Wed, Jan 28, 2009 at 12:26 AM, Ian Eslick wrote: > > > Hi John, > > Your mileage may vary, but I'm really not concerned about users > causing significant performance degradation by doing lots of null > edits. If that is happening, it's probably a user interface design > problem. The trivial

Re: [elephant-devel] Learning about Elephant

2009-01-27 Thread Ian Eslick
That would be correct if you added (setf (friends-of person3) person2) On Jan 27, 2009, at 5:06 PM, John wrote: > Thanks for the clear example. However, maybe the idioms are > confusing me, but many-to-many tells me that I should be able to do > something like: > > (setf (friends-of person1)

Re: [elephant-devel] Learning about Elephant

2009-01-27 Thread Ian Eslick
> Hi John, Your mileage may vary, but I'm really not concerned about users causing significant performance degradation by doing lots of null edits. If that is happening, it's probably a user interface design problem. The trivial solution is to write a jscript function that sets a hidden

Re: [elephant-devel] Learning about Elephant

2009-01-27 Thread John
Thanks for the clear example. However, maybe the idioms are confusing me, but many-to-many tells me that I should be able to do something like: (setf (friends-of person1) person2) (setf (friends-of person1) person3) (setf (friends-of person1) person4) (setf (friends-of person1) person5) (setf (fr

Re: [elephant-devel] Learning about Elephant

2009-01-27 Thread John
Hi Ian, Thank you for your prompt response. Some comments below On Tue, Jan 27, 2009 at 1:32 PM, Ian Eslick wrote: > > Such a thing would be possible, but you would need to have a local > copy of the value in memory and this could create more problems than > it solves. It's also unclear to me

Re: [elephant-devel] Learning about Elephant

2009-01-27 Thread Ian Eslick
Slot associations appear to work reflexively, by the way. (defpclass self-assoc () ((friends-of :accessor friends-of :associate (self-assoc friended-me) :many-to-many t) (friended-me :accessor friended-me

Re: [elephant-devel] Learning about Elephant

2009-01-27 Thread Ian Eslick
On Jan 27, 2009, at 11:00 AM, John wrote: > > 1) Every read/write of pclass slots is done directly from/to the > database, so no in-memory "copy" exists (unless some sort of > transient cache slot model is used). This is good. However, is > Elephant "intelligent" enough so that if you attemp

[elephant-devel] Learning about Elephant

2009-01-27 Thread John
Hi all, I've recently come across Elephant and have been reading the manual (even though it claims to be a bit stale). My approach is to read the manual and then dig into the code to learn more details or discrepancies not documented/updated on manual. In so far, I have a few questions I wonder if