ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Picolisp latest found at http://www.software-lab.de/down.html | check also http://www.picolisp.com for more information
freeemint_ has quit [Ping timeout: 260 seconds]
<m_mans> Hi all! Maybe anyone can suggest: which predicate could be used for checking if relation is NIL (in filter part of 'select')
<m_mans> (nil @@ myRel) seems doesn't work
<Regenaxer> Hi m_mans!
<Regenaxer> It is (not ...)
<Regenaxer> (or ((not (val @ @@ mes))) ((isa @C @@ mes)))
<m_mans> thanks! I'll try. Another issue:
<m_mans> I have a class (class +State +Entity)
<m_mans> (rel par (+Hook +Joint) chld (+State)) # Parent state
<m_mans> (rel id (+Key +String) par)
<m_mans> I'm trying to get unique ID within parent State
<m_mans> but it seems that PicoLisp doesn't check uniqueness in case of Hook
<m_mans> oh! Maybe I should just add something to TextField
<Regenaxer> Hmm, I do not completely understand. The key is unique for this hook
<Regenaxer> That's the purpose
<Regenaxer> You want it globally unique? Then it is simply outside the hook
<m_mans> no, not globally, just locally unique. But it lets me have two objects with the same id within the same parent
<m_mans> no error message
<m_mans> then in the +Key index I see only one entry
<m_mans> when it was global (without Hook), I saw such message (not unique)
<Regenaxer> You need to check for error explicitly, with 'mis>'
<Regenaxer> The GUI calls it for example
<Regenaxer> If you know it is a +Key, you can also just call 'fetch' to check
<m_mans> +Key shouldn't check it by itself?
<Regenaxer> No, because it is not illegal
<m_mans> I
<Regenaxer> Also it is not necessary normally
<m_mans> oops. I'm confused
<Regenaxer> Takes another tree search just to check
<m_mans> maybe I explained it wrong way. I meant all checks within the same (local) index tree
<Regenaxer> With (fetch (tree 'id '+State Parent) 123) ?
<Regenaxer> How is the 'id' generated? With 'genKey' 4
<Regenaxer> ?
<m_mans> no, id is String
<Regenaxer> ok
<Regenaxer> Sometimes I used 'genStrKey', but it is rather special
<m_mans> I supposed behaviour of +Key should be the same for local or global index?
<m_mans> I mean checking for duplicate
<Regenaxer> yes
<Regenaxer> just 'fetch'
<Regenaxer> with hook in this case
<Regenaxer> What exactly is the problem?
<m_mans> I considered it bug that for hook'ed case the +Key index doesn't raise error. Maybe I'm wrong
<m_mans> While in case of global index it raise error when I try to put duplicate value (that's ok)
<Regenaxer> As I said, it never gives an error by itself
<Regenaxer> Global is just a special case with Hook = *DB
<m_mans> ah, then it's +E/R +TextField, who calls mis> of +Key?
<m_mans> "it never gives an error by itself" - ah, got it finally! :)
<Regenaxer> yep :)
<Regenaxer> The GUI calls 'mis>'
<m_mans> I see. In my chart there is no +E/R, so that's why I don't get such error. Thank you very much! Sorry for the noise :)
<Regenaxer> Ah, I see
<Regenaxer> No problem! :)
<m_mans> where is right place to put such check in case of Chart items?
<m_mans> jsut some +Chk prefix?
<Regenaxer> yes
<m_mans> just
<Regenaxer> in the chart, or perhaps better in that field
<m_mans> T
<m_mans> oh, I'm still very newbie user :))
<Regenaxer> Not at all!
<Regenaxer> I think not many people are programming with the E/R-GUI
<Regenaxer> It *is* involved
<m_mans> ok. Advanced newbie ;)
<Regenaxer> exactly
<m_mans> 4G internet is nice. Up to 100 Mbit/s
<m_mans> I had to buy 4G-modem, because no ready connection here in my office
rob_w has joined #picolisp
rob_w has joined #picolisp
rob_w has quit [Changing host]
<m_mans> So, the line looks like: (gui 2 '(+Chk +TextField) '(or (extra) (and (curr) (mis> @ 'id (val> This)))) 20)
<m_mans> works fine for me
<Regenaxer> Yes, very good
<tankfeeder> hi all
<tankfeeder> i gonna commit this
<tankfeeder> done.
<Regenaxer> hi tankfeeder
<Regenaxer> good
<beneroth> Good morning all :)
<Regenaxer> Hi beneroth!
<beneroth> m_mans, yeah +Key in itself does not ensure uniqueness. it just ever only stores 1 entry per value in index, so if you have create two entries with same id, the second one will be in the index, and the first one will drop out
<beneroth> hi Regenaxer!
<beneroth> Regenaxer, is there a way to check if stderr is present in lisp code?
<Regenaxer> You mean open?
<beneroth> well I would assume stderr on fd 2, but what if there is no fd 2... how to check for existence of 2 ?
<Regenaxer> hmm, perhaps (info (pack "/proc/" *Pid "/fd/2"))
<beneroth> like (info) but for a file descriptor instead..haha exactly
<beneroth> nice idea
<Regenaxer> But 2 myy be re-opened
<Regenaxer> may
<beneroth> process itself has read rights on its proc dir, right?
<Regenaxer> yes
<beneroth> yeah 2 could have been closed and reused, T.
<beneroth> hm.. good code. but I think I leave the check away.
<Regenaxer> Normally stderr will be there
<beneroth> T
<Regenaxer> error logs
<Regenaxer> I always start with >>log/xxx 2>&1 &
<beneroth> T
<beneroth> any way to find out the name/filepath of a current executing picolisp script?
<Regenaxer> Perhaps 'cmd'
<beneroth> exactly!
<beneroth> thx
<Regenaxer> depends on how it was invoked
<beneroth> hm.. it is a .l script with hashbang at the start. but (cmd) only returns the interpreter, as the file is executed directly
<beneroth> doesn't matter.
<Regenaxer> yes, 'cmd' is not clear sometimes
<beneroth> (cmd) is like argv[0] in C, right?
<Regenaxer> yes, it is the same
<beneroth> thx
<Regenaxer> (in ("dd" ... ?
<Regenaxer> (in (list "dd" ... ?
nihirash has joined #picolisp
<tankfeeder> i would do it manually
mtsd has joined #picolisp
nihirash has quit [Quit: Ex-Chat]
nihirash has joined #picolisp
rgrau has joined #picolisp
mtsd has quit [Ping timeout: 264 seconds]
mtsd has joined #picolisp
<tankfeeder> task done.
<Regenaxer> Nice!
<tankfeeder> yea
<Regenaxer> :)
<beneroth> T :)
rob_w has quit [Quit: Leaving]
<rick42> hi everyone. i hope you all are well.
<beneroth> hey rick42
<beneroth> how are you?
<rick42> beneroth: hi! i am well. you?
<rick42> i'm bewildered by roles and permissions. jk :)
<beneroth> ^^
<rick42> heh
<beneroth> still sickly, besides that I'm pretty ok
<rick42> i hope you have a good winter with no colds or ailments, my friend
<rick42> it is hard to avoid though :)
<rick42> on another note, i'm trying to use org-mode more for organizing things. it's soooo huge. i could spend all my time just configing it. lol
<beneroth> I still haven't understood what org-mode is about
<beneroth> it sounds like a too-general-tool :D
<beneroth> Thank you ;)
<rick42> "too-general vs general" is all about one's outlook. lol!
<rick42> seriously. it has grown a lot from its humble beginnings as an outliner of notes
<rick42> org-mode == "Gimme 'all the things'" :)
<beneroth> well I organise my work and personal stuff still with my crappy first picolisp project: simple todo webapp (a todo = titel + optional text + optional time estimate + optionally N time measurements) :)
<beneroth> links I organise with firefox bookmarks, but this has to move into a pil app soonish too
<rick42> on second thought, org is getting pretty bad. i just remebered that my websote is writen in org-mode too. lol
<rick42> that's great! not bad for a "crappy, first" project
<rick42> :)
<beneroth> aye ^^
<beneroth> keep it simple, then you get automatically an upper limit for crapiness :D
<rick42> hahaha
<rick42> i will quote you on that (with cite)
<beneroth> alright ;)
<beneroth> just a re-wording of Regenaxers paradigm
<Regenaxer> ret
<beneroth> wb Regenaxer
<Regenaxer> :)
<Regenaxer> tankfeeder: Looks good I think!
<rick42> hello, Regenaxer! :)
mtsd has quit [Ping timeout: 240 seconds]
<Regenaxer> Hello rick42! :)
<rick42> beneroth: check your email :)
<beneroth> &away
nihirash has quit [Remote host closed the connection]
rudha has joined #picolisp
rob_w has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
alexshendi has quit [Ping timeout: 248 seconds]
alexshendi has joined #picolisp
rudha has quit [Quit: Leaving]
rgrau has quit [Ping timeout: 255 seconds]
Regenaxer has quit [Ping timeout: 255 seconds]
Regenaxer has joined #picolisp
rob_w has quit [Quit: Leaving]
tonton has quit [Ping timeout: 268 seconds]
tonton has joined #picolisp
miskatonic has joined #picolisp