beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
seninha has quit [Quit: Leaving]
pablo_escoberg has joined #picolisp
avocadoist has quit [Ping timeout: 260 seconds]
<pablo_escoberg> Hi all.  I'm looking at ('mis> '+Key) because I'm having issues with it, and the signature looks wrong.  It's `(mis> Obj Val Hook) everywhere else I've looked, but '(mis> Val Obj Hook) there.  Is there a reason for this?
isaneran has joined #picolisp
<abu[7]> Hi pablo_escoberg! 'mis>' for +Key takes (Val Obj Hook), everywhere else Hook is omitted because not used
<pablo_escoberg> The question is actually about the order of `Obj` and `Val` .  They appear to be reversed in 'mis> '+Key
<abu[7]> I never had such a version ;)
<pablo_escoberg> hmmmm.... ok, let me d/l the latest version and see if it's still like that.
<abu[7]> (dm mis> (Val Obj Hook)
<abu[7]> This was not changed since decades
<pablo_escoberg> That's what I have.  But everywhere else it's (dm mis> Obj Val Hook).
<pablo_escoberg> At least everywhere else I've looked.
<abu[7]> in @lib/db.l ?
<pablo_escoberg> Not sure...  using vip.  But, for example, (vi 'mis> '+Entity) shows a signature of (dm mis> (Var Val)
<pablo_escoberg> Which is to say, the value is the second argument, where for key, it appears to be the first.  Just making sure I have this right.
<abu[7]> Yes, Entity is different
<abu[7]> But all relation classes are the same
<pablo_escoberg> Ah, so for relations, the value comes first?
<abu[7]> Yes, (Val Obj) and (Val Obj Hook) for index relations
<pablo_escoberg> OK, got it, thanks.
<abu[7]> Welcome. So in summary, Entity takes a Var, and it uses it to get the value and relays 'mis>' to the relation for that Var
bjorkintosh has quit [Server closed connection]
bjorkintosh has joined #picolisp
bjorkintosh has quit [Changing host]
bjorkintosh has joined #picolisp
<pablo_escoberg> Right, turns out my problem is something completely different.
rob_w has joined #picolisp
isaneran has quit [Ping timeout: 268 seconds]
<abu[7]> What goes wrong?
<pablo_escoberg> Actually, I figured it out.  I had been expecting a "not unique" error and wasn't getting one, but it turns out it's because I wasn't checking the right value.  I thought it was because I had the argument order wrong, but that wasn't it.
<abu[7]> ok
beneroth has quit [Quit: Leaving]
razzy has joined #picolisp
razzy has quit [Client Quit]
<pablo_escoberg> Is `rel>` the correct method to add an existing entity to a `(+List +Ref)` Relation?
<abu[7]> 'rel>' is normally not called in applications. Best is 'put>' and 'put!>'
<pablo_escoberg> hmmm....  I want to add to an existing list.  Wouldn't put> overwrite it?
<abu[7]> You can add either a single object or a list of objects. +List should take care
<pablo_escoberg> Or is that taken care of internally?
<abu[7]> yes
<abu[7]> (put> Obj1 'x Obj2)
<pablo_escoberg> ah, perfect.  That explains why it didn't work :).
<abu[7]> or
<abu[7]> (put> Obj1 'x (cons Obj2 (get Obj1 '\]
<abu[7]> oops
<abu[7]> You get the idea :)
<pablo_escoberg> yup, thanks again.
<abu[7]> ☺
<pablo_escoberg> Last question for the day:  Is there any rhyme or reason to the order in which getl returns its results?
<abu[7]> Yes, it is a "last recently used" scheme
<abu[7]> Every 'get' access propagates the found element to the front of the property list
<abu[7]> The property list has no order
<pablo_escoberg> ok, thanks.
pablo_escoberg has quit [Quit: Client closed]
seninha has joined #picolisp
avocadoist has joined #picolisp
msavoritias has joined #picolisp
rob_w has quit [Remote host closed the connection]
lagash has quit [Ping timeout: 245 seconds]
lagash has joined #picolisp
pablo_escoberg has joined #picolisp
<abu[7]> !]
seninha has quit [Remote host closed the connection]
seninha has joined #picolisp
msavoritias has quit [Ping timeout: 246 seconds]
razzy has joined #picolisp
<razzy> what do you think about fairphone?
<razzy> can you recommend android phone for penti?
<abu[7]> I decided to buy Fairphone 5 soon
<abu[7]> Not sure yet *when* exactly
razzy has quit [Ping timeout: 260 seconds]
razzy has joined #picolisp
<pablo_escoberg> I'm curious:  Is everyone here a solo dev or is anyone here part of team or dev shop?  I guess what I'm really interested in is whether or not there exists a picolisp dev shop anywhere.
razzy has quit [Ping timeout: 246 seconds]
pablo_escoberg has quit [Quit: Client closed]
aw- has left #picolisp [#picolisp]
aw- has joined #picolisp
<aw-> pablo: probably mostly are solo dev but I've hired for external PicoLisp work on a few occasions.
ello has quit [Server closed connection]
ello has joined #picolisp
user3456 has quit [Server closed connection]
user3456 has joined #picolisp