<Regenaxer>
So (? @R "mod3" @R2 "ini" ... (same @R2 @Pers roles)) does not work? Strange
<Regenaxer>
anyway, (same (@R @R2) is better
<m_mans>
I suppose we must check whole +Bag?
<Regenaxer>
I think not, it checks for membership
<Regenaxer>
as data are expected atomic
<Regenaxer>
So in general a pair in a filter clause means (from . till), just 'same' is perhaps different, as a range makes no sense
<Regenaxer>
This is a bordeline situation ;)
<m_mans>
ah, I've forgotten that in general the same 'range lists' go to filters too
<m_mans>
not only to generators
<Regenaxer>
T
<Regenaxer>
Still it works here, as 'same' first tries the whole pair, then recurses into the lists
<m_mans>
ok, I'll check it later
<m_mans>
thanks again, Regenaxer! :)
<Regenaxer>
np :)
orivej has joined #picolisp
<beneroth>
interesting read :)
orivej has quit [Ping timeout: 250 seconds]
orivej has joined #picolisp
<m_mans>
Hi beneroth
alexshendi has joined #picolisp
<beneroth>
hi m_mans :)
<m_mans>
beneroth: have you used lists in indexes?
<beneroth>
not really. you aware of the differences between (+List +Ref +Link), that I use a lot, vs. (+Ref +List +Link) ?
<m_mans>
yeah
<beneroth>
good! so I understand you are asking about (+Ref +List ...) or (+Key +List ..), aye?
<m_mans>
and it seems that (+List +Ref +Bag ...) doesn't work
<Regenaxer>
Hmm, you want to index the whole bag?
<beneroth>
I have (+List +Bag) ((+Ref +Link)) ((+Ref +Link))) in use?
<Regenaxer>
Usually I index the elements of the individual bag
<m_mans>
no, I just talk how I started
<beneroth>
yeah, it is probably more meaningful to index the stuff within the bag, not the whole bag
<beneroth>
ok
<Regenaxer>
beneroth, same here
<beneroth>
details matter a lot with this powerful class prefixing ^^
<Regenaxer>
If the whole bag is indexed, we run in the pair-ambuigities again
<Regenaxer>
Grr, wifi here in the train is awfully slow, can't type well
<beneroth>
Deutsche Bahn? hehe
<Regenaxer>
yeah, horror
<beneroth>
well at least you have wifi. but its slow and makes you even more insecure (leaks your browsing history to websites you visit)
<m_mans>
you *have* wifi in the train! We don't here in our trains :))
<Regenaxer>
I'm logged into the server at my basement via ssh
<beneroth>
we neither, but our GSM network is good enough to use it in train. in germany it is not usable really in train.. or maybe this is only true for the fast-moving long-travelling trains
<beneroth>
at least that was my experience :)
<m_mans>
well, I need to return to work
<Regenaxer>
I don't have a GSM card in this tablet
<Regenaxer>
Good luck m_mans!
<m_mans>
same to you!
<m_mans>
"away from that app ;)"
<beneroth>
good luck m_mans :)
<Regenaxer>
:)
<beneroth>
Regenaxer, you could tether with the smartphone. I travelled a lot in Germany by train some 3-4 years ago, from Basel up to Köln and further... GSM was not usable. wifi on train was slow but usable.
<Regenaxer>
Haha, I also have no smartphone :D
<Regenaxer>
I used an USB stick a few years ago with a notebook
<Regenaxer>
also not satisfying
<Regenaxer>
Main problem here is typing into a remote console (irc)
<beneroth>
I thought you had once, haha. You purist. Good habit.
<Regenaxer>
this is annoying, as it hangs several seconds often
<beneroth>
T
<Regenaxer>
I used my wife's if necessary
<Regenaxer>
nach Alkmaar
<beneroth>
you're leaking ^^
<Regenaxer>
yep, sorry
alexshendi has quit [Quit: Leaving]
orivej has quit [Ping timeout: 240 seconds]
<cess11>
Lists of cons pairs are nice but it might be a better idea to invent a class if they need close indexing.
<cess11>
Sometimes I use such cons pair lists to hold more or less temporary data, like search results or value-value pairs (e.g. '(word count . word)).
<cess11>
If I understood it correctly the use case is configuration of user roles or something like that, which usually doesn't require high performance in retrieval or transactions so a little overhead might be acceptable.
orivej has joined #picolisp
<beneroth>
my role mechanic looks like this:
<beneroth>
(rel bag (+List +Bag)
<beneroth>
((+Ref +Link) NIL (+Role)) # a role
<beneroth>
((+Ref +Link) NIL (+control)) ) # a control per role
<beneroth>
the indexes are rarely ever used. usual retrieval (which should be fast) fetches this object and than iterates over the list. so in this use case it is good that this list is directly within one object and not more distributed.
<beneroth>
for more querying power, the more different indices the better, right (increases the cost of writes though).
<beneroth>
optimal model heavily depends on the use case.
orivej has quit [Ping timeout: 255 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
orivej has quit [Remote host closed the connection]
orivej has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
anjaa has joined #picolisp
alexshendi has joined #picolisp
_whitelogger_ has joined #picolisp
_whitelogger has quit [Remote host closed the connection]
raydeejay has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
miskatonic has joined #picolisp
orivej has joined #picolisp
miskatonic has quit [Remote host closed the connection]