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
orivej has quit [Ping timeout: 265 seconds]
xificurC has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xificurC has joined #picolisp
aw- has joined #picolisp
<aw-> hi all
<Regenaxer> Hi aw-
<aw-> tankf33der: i also closed Facebook and LinkedIn and Instagram... many years ago. Twitter closed earlier this year.
<aw-> Regenaxer: i have a question regarding picolisp tutorial docs
<Regenaxer> ok
<aw-> tut.html#funio
<aw-> in the example " # Convert to Macintosh"
<aw-> could have just written: (case @ ("^J" NIL) (T @)) ...
<aw-> ?
<aw-> the comment "# ignore CR" is a bit misleading, since it doesn't ignore it, it actually removes it
<Regenaxer> IIRC the Mac uses ^M for newlines, correct?
<aw-> yes
<Regenaxer> so the comment is wrong
<Regenaxer> The code is right I think: "from Unix or DOS format"
<Regenaxer> Unix does not use ^M
<aw-> unix is ^J
<Regenaxer> so we must convert the ^J
<Regenaxer> T
<aw-> windows is ^J^M
<aw-> we don't need to touch ^M if converting to Mac
<Regenaxer> But then we get 2 returns
<Regenaxer> Just the comment
<aw-> that's why i wrote: (case @ ("^J" NIL) (T @)) ..
<aw-> just remove ^J is sufficient
<Regenaxer> Must be "convert LF to CR"
<Regenaxer> no
<Regenaxer> Then Unix breaks
<aw-> ohhh
<aw-> oh right!
<aw-> ok i see what you did now
<Regenaxer> I fix the comment
<aw-> "# ignore CR" -> "# remove CR" ?
<Regenaxer> < ("^J" "^M") # convert CR to LF
<Regenaxer> ---
<Regenaxer> > ("^J" "^M") # convert LF to CR
<aw-> or "# convert CR to LF" should be "# LF to CR"
<Regenaxer> correct?
<Regenaxer> ok
<aw-> yes right!
<aw-> that's what had me confused
<Regenaxer> Perfect. I'll release it
<Regenaxer> Thanks for checking!
<aw-> thanks
<Regenaxer> The spam attack seems to have ceased (?)
<aw-> ah, seems like it
<aw-> was so annoying yestersday
<Regenaxer> Stupid
<aw-> indeed
<Regenaxer> wasting so many resources
<Regenaxer> human nerves ;)
<aw-> yeah
<aw-> ok can you tell me if this is correct, convert to Unix from Mac or DOS format: (case @ ("^J" NIL) ("^M" "^J") (T @)) .. ?
<aw-> hmm.. seems wrong
<Regenaxer> Looks good, doesn't it?
<Regenaxer> both have ^M
<aw-> no, it removes newline from Unix documents
<Regenaxer> only if input is already Unix
<aw-> yes exactly
<Regenaxer> if that is possible, yes
<Regenaxer> There is no simple way
<Regenaxer> needs look ahead
<Regenaxer> do detect CR+LF
<Regenaxer> (peek)
<Regenaxer> (case @ ("^J" @) ("^M" (let C (peek) (unless (= "^J" C) C))) (T @))
<Regenaxer> ?
<Regenaxer> (case @ ("^J" @) ("^M" (let C (char) (unless (= "^J" C) C))) (T @))
<Regenaxer> not peek
bodeezl has joined #picolisp
<bodeezl> Read what IRC investigative journalists have uncovered on the freenode pedophilia scandal https://encyclopediadramatica.rs/Freenodegate
<bodeezl> I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<bodeezl> With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<Regenaxer> uh
<bodeezl> A fascinating blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
<Regenaxer> The above is not right
bodeezl is now known as Guest30207
<aw-> oh no they're back
<aw-> Regenaxer: you're not Op in this channel?
<Regenaxer> I mean: (case @ ("^J" @) ("^M" (prin "^J") (let C (char) (unless (= "^J" C) C))) (T @))
<aw-> much more complex converting to Unix
<Regenaxer> No, I'm not. It is rob_w, but he is on vacation (see mail archive)
<Regenaxer> I did not want something more to take care of
Guest30207 has quit [Ping timeout: 244 seconds]
<aw-> ok no problem
<aw-> gotta run, bbl
<aw-> thanks for the help
<Regenaxer> cu :)
aw- has quit [Quit: Leaving.]
orivej has joined #picolisp
elenah19 has joined #picolisp
<elenah19> With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<elenah19> I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<elenah19> Read what IRC investigative journalists have uncovered on the freenode pedophilia scandal https://encyclopediadramatica.rs/Freenodegate
<elenah19> A fascinating blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
elenah19 has quit [Remote host closed the connection]
matti has joined #picolisp
<matti> With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<matti> I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<matti> Read what IRC investigative journalists have uncovered on the freenode pedophilia scandal https://encyclopediadramatica.rs/Freenodegate
<matti> A fascinating blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
matti has quit [Remote host closed the connection]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 260 seconds]
Guest73014 has joined #picolisp
<Guest73014> With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<Guest73014> I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
Guest73014 has quit [K-Lined]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 265 seconds]
karswell_ has joined #picolisp
karswell_ has quit [Remote host closed the connection]
karswell_ has joined #picolisp
karswell_ has quit [Remote host closed the connection]
karswell has joined #picolisp
karswell has quit [Remote host closed the connection]
karswell has joined #picolisp
karswell has quit [Read error: Connection reset by peer]
karswell has joined #picolisp
karswell has quit [Read error: Connection reset by peer]
karswell has joined #picolisp
orivej has joined #picolisp
erkin has joined #picolisp
styx has joined #picolisp
styx has quit [Quit: styx]
erkin has quit [Quit: Ouch! Got SIGIRL, dying...]
karswell has quit [Remote host closed the connection]
karswell has joined #picolisp
libertas has quit [Ping timeout: 260 seconds]
thunderrd0 has joined #picolisp
<thunderrd0> This channel has been hacked by Australia's #1 hacker Simon 'eVestigator' Smith https://evestigatorsucks.com/
<thunderrd0> With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<thunderrd0> I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
thunderrd0 has quit [Remote host closed the connection]