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
phantomcircuit has joined #picolisp
phantomcircuit has quit [Client Quit]
_whitelogger has joined #picolisp
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shpx has joined #picolisp
shpx has quit [Client Quit]
shpx has joined #picolisp
aw- has joined #picolisp
_whitelogger has joined #picolisp
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shpx has joined #picolisp
libertas has quit [Ping timeout: 256 seconds]
libertas has joined #picolisp
cilz has joined #picolisp
<cilz> good morning guys
<Regenaxer> Good morning cilz :)
<cilz> Hello Regenaxer
orivej has quit [Ping timeout: 264 seconds]
rob_w has joined #picolisp
<aw-> hi
<Regenaxer> Hi aw-
<aw-> was cleaning up my email and saw some old mailing list posts from cilz
<aw-> from ~2016
<cilz> yep ;-)
<Regenaxer> wow
<cilz> I'm not so new!
<Regenaxer> T
<cilz> though I did not do anything coding during the whole 2017
<cilz> hence resuming from zero now!
<aw-> oh ok
<aw-> wow no coding for a year, hard to imagine
<cilz> not so hard, it's not my job ;-)
<aw-> lucky haha
<cilz> I'm doing that mainly for fun
<Regenaxer> Ah, I thought no coding only in Lisp
<cilz> no coding in general...
<cilz> I was even far from any keyboard
<Regenaxer> wow!
<cilz> yes there are jobs where you don't need a keyboard, it's true :)
<Regenaxer> :)
<aw-> yeah, until that job decides it's a good idea to setup "smart trees" which can be analyzed with a mobile app when you visit the flower garden that previously had printed signs explaining everything
<aw-> i hate technology
<Regenaxer> You work in a botanical garden?
<aw-> Regenaxer: no, my neighbour does
<Regenaxer> I see :)
<Regenaxer> Bonzai?
<aw-> no, this one was mostly various flower trees
<aw-> i don't find it appealing to visit a botanical garden and be forced to use a mobile app to get info on everything
<cilz> it gets harder and harder to find something with no IT inside...
<Regenaxer> T
<cilz> aw->: T
<aw-> cilz: tu parles francais?
<cilz> oui, un peu :)
<cilz> I'm french
<aw-> haha un peu
<cilz> :)
<aw-> je suis Quebecois :P
<cilz> ah
<cilz> les picolispers sont partout
<cilz> c'est super de voir que ce chat est international
<aw-> oui, effecivement
<aw-> mais moi j'habites au Japon donc je suis souvent seul dans ce chat
<cess11_> Good morning.
<Regenaxer> Hi cess11_
<cess11_> cilz: Jobs without keyboards sounds like the army.
<beneroth> Good morning all
<Regenaxer> Hi beneroth
<cilz> cess11: no ;-
<cilz> hello
<aw-> cess11_: sounds like a nice change of pace
<beneroth> aw-, people like gadgets :( so they buy and install expensive non-solutions. or technical solutions to not-technical issues. such a waste.
<aw-> beneroth: hi, indeed
<aw-> technical solution to something that doesn't need fixing
<aw-> well you know.. products are always sold, not bought
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shpx has joined #picolisp
<cilz> ?
<aw-> business cliche
cilz has left #picolisp [#picolisp]
cilz has joined #picolisp
cilz has quit [Client Quit]
cilz has joined #picolisp
cilz has quit []
cilz has joined #picolisp
Regenaxer has quit [Ping timeout: 265 seconds]
cilz has quit [Client Quit]
cilz has joined #picolisp
<cilz> now trying Pil's Irc client from Regenaxer ;-)
Regenaxer has joined #picolisp
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtsd has joined #picolisp
_whitelogger has quit [K-Lined]
_whitelogger has joined #picolisp
<aw-> Regenaxer: here?
<Regenaxer> はい
<aw-> ah never mind, fixed it
<aw-> sorry
<Regenaxer> good :)
<aw-> kind of
<aw-> i'm having issues with files which contain ^
<Regenaxer> Should be no problem
<Regenaxer> file names?
<Regenaxer> or data?
alexshendi has quit [Ping timeout: 240 seconds]
<aw-> data
<aw-> it's converting ^ to ^M
<Regenaxer> How that?
<Regenaxer> ^ is a normal ASCII char
<aw-> normally it should convert to \^
<Regenaxer> T
<aw-> but my json parser is converting to ^M
<aw-> i don't know why
<Regenaxer> Do you read with (char)?
<aw-> the string in the file is: echo "$i" | sed 's/-[^-]*$//'
<aw-> read with (char) ?
<aw-> no? it does: (in File (till NIL T)
<Regenaxer> ok
<Regenaxer> : (in "a" (till NIL T))
<Regenaxer> -> "echo \"$i\" | sed 's/-[\^-]*$//'^J"
<aw-> yes
<aw-> that's why i don't understand
<Regenaxer> So the converter modifies it?
<aw-> maybe my JSON file is mistaken? picolisp interprets ^- as ^M
<aw-> my JSON file should contain \^- for it to be parsed correctly
<aw-> no, in fact, it doesn't convert - that's the issue haha
<aw-> perhaps I should search for ^ characters and manually escape them?
<Regenaxer> The JSON file should *not* contain \^-
<Regenaxer> the \ is just a metachar
<Regenaxer> in pil i/o
<Regenaxer> string markup
<aw-> yes but ^ is a special character in pil
<Regenaxer> the char itself is only ^
<aw-> control char
<Regenaxer> no
<Regenaxer> it is not
<Regenaxer> a normal char
<aw-> ok so why does ^J print a newline?
<Regenaxer> ^J is another char
<Regenaxer> you mix up with read/print syntax
<Regenaxer> The reader converts ^J to 10
<Regenaxer> : (pipe (prinl "a\^b") (line))
<Regenaxer> -> ("a" "\^" "b")
<Regenaxer> What is *printed* and *read* as "\^" is the single char ^
<Regenaxer> Because ^ is a metachar
<Regenaxer> like "
<Regenaxer> or \
<Regenaxer> If must be sure to know how characters *look like* and what they really *are*
<Regenaxer> : (mapcar char (chop "a\"b^Jc\^d"))
<Regenaxer> -> (97 34 98 10 99 94 100)
<Regenaxer> a " r ^J c ^ d
<aw-> hmmm
<aw-> yes I understand
shpx has joined #picolisp
<aw-> actually it confirms what i thought
<aw-> there's a bug in my parser
<aw-> (decode "{\"test\":\"x^2\"}")
<aw-> -> (("test" . "x^R"))
<aw-> this is incorrect
<Regenaxer> I think it is correct
<aw-> sorry you're right
<aw-> i meant to test an external file
<Regenaxer> hmm, it depends how the JSON syntax is defined
<Regenaxer> What are metachars and what not
<aw-> : (decode "test4.json" T)
<aw-> -> (("test" . "x^R"))
<aw-> this is wrong
<Regenaxer> ie. " is a metachar and ^ not?
<aw-> should be:
<aw-> : (decode "test4.json" T)
<aw-> -> (("test" . "x\^2"))
<Regenaxer> ok, good then
<aw-> JSON doesn't see metachars
<aw-> except i think \uNNNN
<Regenaxer> not "see" but "use"
<Regenaxer> yes
<aw-> right
<Regenaxer> and " of course
<Regenaxer> So "a\"b" is legal?
<aw-> yes it is
<Regenaxer> so it uses \ to escape
<Regenaxer> "\\" is a single backslash?
<aw-> yes
<aw-> exactly
<Regenaxer> I see
<Regenaxer> So ^ is not a metachar
<Regenaxer> like it is in pil
<Regenaxer> yeah, it is a confusing matter
<aw-> indeed it's confusing
<Regenaxer> I think the best is to read with (char)
<Regenaxer> like in @lib/xm.l
<Regenaxer> 'till' is also ok though, but (till) instead of (till NIL T)
<aw-> yes probably, but now I think there's no more bugs ;)
<Regenaxer> so you get a list
<Regenaxer> and process that
<aw-> hmm
<Regenaxer> eg for \uNNNN
<aw-> oh
<aw-> i get a string
<aw-> and then chop it
<Regenaxer> uh :)
<aw-> haha
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aw-> Regenaxer: thanks for the explanation + confirming
<aw-> hmmm.. interesting.. doesn't work on 32-bit anymore
<Regenaxer> oh, what would be different?
<aw-> oops
<aw-> (unless symbols (from "######"))
<aw-> haha
<Regenaxer> ah, pil32 check
<Regenaxer> It needs to run on both?
<aw-> yes
<aw-> i put my regression test before the line with ######
<aw-> so the test wasn't appearing on 32-bit systems
<Regenaxer> ok
<aw-> i was wondering why there was a single line with ######
<aw-> haha
<Regenaxer> :)
<aw-> i've never seen that (from "...") functionality in other languages
<Regenaxer> If you put that code between the 'unless' and "######" in the end of the file, you can simply use `symbols
<Regenaxer> or `(== 64 64)
<Regenaxer> ie conditional eof EOF
<aw-> oh, cool!
<Regenaxer> Like in @lib/debug.l
<aw-> useful shortcut!
<Regenaxer> Yes, and faster as further parsing of the file is abandoned
<Regenaxer> (strange, why did I write "eof EOF"? Did not notice ;)
<aw-> it's ok, i understood
<Regenaxer> :)
<aw-> ok, done for the day. good night!
aw- has quit [Quit: Leaving.]
orivej has joined #picolisp
mtsd has quit [Quit: Leaving]
rob_w has quit [Remote host closed the connection]
shpx has joined #picolisp
alexshendi has joined #picolisp
alexshendi has quit [Client Quit]
alexshendi has joined #picolisp
orivej has quit [Ping timeout: 260 seconds]
shpx has quit [Quit: Textual IRC Client: www.textualapp.com]
orivej has joined #picolisp
shpx has joined #picolisp
shpx has quit [Remote host closed the connection]
shpx has joined #picolisp
JUQ2C6ribe has joined #picolisp
JUQ2C6ribe has quit [Client Quit]
libertas has quit [Ping timeout: 240 seconds]
libertas has joined #picolisp
orivej has quit [Ping timeout: 264 seconds]