karswell_ has joined #picolisp
karswell has quit [Remote host closed the connection]
karswell_ has quit [Read error: No route to host]
_whitelogger has joined #picolisp
_whitelogger has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
_whitelogger has joined #picolisp
_whitelogger has joined #picolisp
orivej has joined #picolisp
_whitelogger has joined #picolisp
<
tankf33der>
trickiest double links tasks failed on pil21.
<
tankf33der>
double linked i meant
<
tankf33der>
pil21 can print double linked list, very suspecious :)
<
Regenaxer>
Hi tankf33der! What exactly goes wrong?
<
tankf33der>
unknown
<
Regenaxer>
No hurry!
<
Regenaxer>
No need to go deep into it now
<
Regenaxer>
I'm on a walk in the fields. Will look later
<
tankf33der>
also strange eol thing in all pils versions. appended to issue
<
Regenaxer>
I think (eol) is right (?)
<
Regenaxer>
line) (char) (eol)
<
Regenaxer>
(char) skipped the newline
<
Regenaxer>
so we are at eof
<
tankf33der>
i dont think so
<
tankf33der>
if i replace char by peek i see char after newline, 7 in my example
<
tankf33der>
for me looks like broken state or something
<
tankf33der>
i will create full example bundle to show
<
tankf33der>
this is test-.txt
karswell_ has joined #picolisp
<
tankf33der>
^^^ code
<
tankf33der>
so (eof) or (println (peek)) are workaround before eol call
<
tankf33der>
if comment in both then until loop never executed.
<
Regenaxer>
eol is:
<
Regenaxer>
(if (or (le0 (val $Chr)) (== @ (char "\n")))
<
Regenaxer>
cmp (Chr) 10 # Linefeed?
<
Regenaxer>
jeq retT # Yes
<
Regenaxer>
null (Chr) # Chr <= 0?
<
Regenaxer>
jsz retT # Yes
<
Regenaxer>
ld E Nil # Return NIL
<
Regenaxer>
So the same as if (peek) gives linefeed or EOF
<
Regenaxer>
This means, the last line may be unterminated
<
Regenaxer>
I'm working on 'echo' now, one of the nastiest functions
<
Regenaxer>
The next nasty things are waitFd, native and coroutines
<
Regenaxer>
all three only implemented as skeletons yet
<
Regenaxer>
Especially 'waitFd' is a horror
<
Regenaxer>
And nearly impossible to test ;)
<
beneroth>
waitFd = wait for file descriptor?
<
tankf33der>
so eol is ok and not the issue?
<
Regenaxer>
waitFd, yes, internal event handler
<
Regenaxer>
I would say eol is ok. How would you expect it?
karswell_ has quit [Ping timeout: 246 seconds]
<
tankf33der>
return nil until next eol
karswell_ has joined #picolisp
<
tankf33der>
and return iff i stay on eol or will stay in the future
karswell_ is now known as karswell
<
Regenaxer>
Back at home
<
Regenaxer>
eol is seldom used in fact
<
Regenaxer>
Perhaps not very useful
<
tankf33der>
its ok. i will remove note from issue list
<
Regenaxer>
Well, I think eol is wrong also for another reason
<
Regenaxer>
It does not work after opening the file
<
Regenaxer>
It should bre-fetch the first char
<
Regenaxer>
I will put it into pil21
<
Regenaxer>
Continuing with 'echo' ...
emacsomancer has quit [Read error: Connection reset by peer]
emacsomancer has joined #picolisp
emacsomancer has quit [Read error: Connection reset by peer]
emacsomancer has joined #picolisp
orivej_ has joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
<
Regenaxer>
'echo' seems to work
karswell has quit [Remote host closed the connection]
karswell has joined #picolisp
<
tankf33der>
will you release today?
karswell has quit [Remote host closed the connection]
karswell has joined #picolisp
<
Regenaxer>
Released already when I wrote the above
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #picolisp
<
tankf33der>
(pipe (in "test-.txt" (echo 2)) (line T))
<
tankf33der>
this one does not work
<
Regenaxer>
(echo 2) ?
<
Regenaxer>
Yes, with prin it works
<
Regenaxer>
(echo 2) by itself work
<
Regenaxer>
tomorrow :)
<
Regenaxer>
Probably 'pipe' is the culprit. With 'out' it works ... adyway tomorrow ;) Nite!
karswell has quit [Read error: Connection reset by peer]
karswell_ has joined #picolisp