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
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
avocadoist has quit [Quit: Konversation terminated!]
avocadoist has joined #picolisp
avocadoist has quit [Quit: Konversation terminated!]
avocadoist has joined #picolisp
seninha has quit [Quit: Leaving]
avocadoist has quit [Quit: Konversation terminated!]
avocadoist has joined #picolisp
avocadoist has quit [Client Quit]
avocadoist has joined #picolisp
avocadoist has quit [Client Quit]
avocadoist has joined #picolisp
avocadoist has quit [Read error: Connection reset by peer]
rob_w has joined #picolisp
avocadoist has joined #picolisp
avocadoist has quit [Client Quit]
avocadoist has joined #picolisp
avocadoist has quit [Read error: Connection reset by peer]
avocadoist has joined #picolisp
seninha has joined #picolisp
seninha has quit [Quit: Leaving]
seninha has joined #picolisp
<aw-> abu[m]: here?
<abu[m]> Hi aw-!
<aw-> hi
<aw-> i need help
<aw-> trying to do something like: (until (= *X (myfun)) (myfun))
<aw-> but it seems weird
<abu[m]> yes, it checks only every second time
<abu[m]> Why not (until (= *X (myfun))) ?
<aw-> oh
<aw-> haha!
<aw-> yeah that works, thanks!
<abu[m]> \☺/
<aw-> every other stupid programming language makes me forget how easy and simple it is to do these things in PicoLisp
<abu[m]> indeed :)
<beneroth> ^^
<beneroth> hi aw- :)
cess11 has quit [Quit: Client closed]
seninha has quit [Quit: Leaving]
<aw-> hi beneroth
<aw-> i'm trying to parse a stream of data
<aw-> struggling to find the start of the packet
<abu[m]> Is it utf8 ? If so, then 'from'
<aw-> start/end.. there's a few approaches, the one i'm using is first skipping all data until i find the "end of packet" bytes, then searching for the "start of packet" bytes, then parsing normally from there until "end of packet" (and repeat)
<aw-> no it's not utf8
<abu[m]> ok
<abu[m]> So you use (rd 1)?
<aw-> yes (rd 1)
<abu[m]> Ok
seninha has joined #picolisp
<abu[m]> What if you first read some chunk inti a buffer?
<aw-> (until (= (rd 1) *Start)) (parse data) (until (= (rd 1) *End))
<aw-> something like that
<abu[m]> yeah
<aw-> yes i could read into a buffer that it'll block if there's not enough data
<aw-> i'm not sure..
<abu[m]> Byte by byte with 'rd' is probably easier (though slower)
<abu[m]> In (until (= (rd 1) *Start ... you must also check for EOF
<abu[m]> i.e. NIL
<aw-> right... otherwise it blocks
rob_w has quit [Remote host closed the connection]
<aw-> hmmm
<aw-> maybe
<aw-> i need to think more about this
<abu[m]> Perhaps (loop (NIL (rd s)) (when (= @ *Start ...
<abu[m]> (rd 1) I mean
<aw-> ah, i tried something like that
<aw-> but I couldn't get the @ to be the value i want
<aw-> @ was like.. /bin/bash
<aw-> instead of the byte read from (rd 1)
<abu[m]> Sorry, 10 min.
<aw-> actually i need to sleep
<aw-> i'll try again tomorrow, g'nite
<aw-> thanks for the help
<abu[m]> ok, good night! :)
seninha has quit [Ping timeout: 248 seconds]
seninha has joined #picolisp