aw- has quit [Read error: Connection reset by peer]
aw- has joined #picolisp
orivej has joined #picolisp
<beneroth>
Regenaxer, u there?
<beneroth>
I have a relation ((+Ref +Link) NIL (+Project)) on an existing database which I want to turn into a ((+Hook +Link) (+Project))
<beneroth>
hm noe
<beneroth>
I want global +Ref indexes on the same entity
<beneroth>
so I guess I should use +Aux, not +Hook
<Regenaxer>
Yeah, hard to decide sometimes
<Regenaxer>
+Hook is probably a bit more efficient
<Regenaxer>
But searching is more general in +Aux
<beneroth>
+Hook affects all indexes on the entity, no?
<Regenaxer>
No, only those passed instead of NIL
<beneroth>
ah right!
<Regenaxer>
((+Ref +Link) var (+Project))
<beneroth>
I see
<beneroth>
its about 'Packages' which have an unique number, previously unique globally, now unique per +Project, so multiple Packages might have the same number (and should be found by this number)
<beneroth>
the number is given, not generated
<beneroth>
so I guess +Aux fits better here?
<Regenaxer>
Depends
<Regenaxer>
If you always know the project when searching, +Hook is better
<Regenaxer>
But you cannot search for a range
<Regenaxer>
In +Aux also the first key can be non-exact
<Regenaxer>
On the other hand the index gets larger
<Regenaxer>
each key
<Regenaxer>
as it holds the number
<Regenaxer>
ah
<Regenaxer>
no, I see
<Regenaxer>
the first key is a project object
<Regenaxer>
so ranges make no sense anyway
<Regenaxer>
Probably +Hook is best then
<Regenaxer>
Either 'pipe' or 'in' is faulty. Not 'echo'
<Regenaxer>
(pipe (in "file" (msg (char))) (line))
<Regenaxer>
(char) aborts immediately
<Regenaxer>
In (in "file" (msg (char))) it works
<Regenaxer>
Only the combination of (pipe (in ...
<Regenaxer>
Strange!
<tankf33der>
hardest branch.
<Regenaxer>
Can't find where it goes wrong
orivej has quit [Ping timeout: 246 seconds]
<beneroth>
Regenaxer, I thought about taking Package Number as first key, Project +Link as second
<beneroth>
I don't know the project always
<beneroth>
(but in most cases)
<beneroth>
query per Package Number globally must be possible
<Regenaxer>
ok
<beneroth>
I go with +Aux here
<beneroth>
good luck with (pipe) :-)
<Regenaxer>
good
<Regenaxer>
thanks :)
orivej has joined #picolisp
<Regenaxer>
I don't find it. Somewhere in 'pipe' the standard input fd (i.e. 0) is closed, so that in 'in' fd zero is openesd. As a result the next read operation exits because stdin is not a tty
<Regenaxer>
I give up for today, enjoy the holiday
<Regenaxer>
Ha! Found it (could not resist)
<Regenaxer>
Error in access to a global in 'forkLisp'