ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Check also http://www.picolisp.com for more information
orivej has quit [Ping timeout: 264 seconds]
<razzy> i think i was able to install penti. but i could not see it anywhere.
<razzy> found it
<razzy> is there a way how to personalise penti? change chords and alike?
<Regenaxer> You can directly only personalize the chars generated with the Alt prefix (via FUNCT-D (= definee)
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
razzy has quit [Ping timeout: 258 seconds]
razzy has joined #picolisp
razzy has quit [Changing host]
razzy has joined #picolisp
<Regenaxer> razzy, did you read my answer? I'm getting tired of respunding to you
<Regenaxer> I really hate it if people pop up, post a question, I take the trouble to answer, and they vanish without any reaction
_whitelogger has joined #picolisp
orivej has joined #picolisp
<razzy> Regenaxer i am sorry for your mood. i have no intention of disconnecting, it is side-effect of me changing networks when i am on move. turns out, i have habit of sending messages when i am finishing at a spot.
<Regenaxer> ok
<razzy> i have read the log. not really understanding. i guess i need to change code?
<razzy> not some settings option.
<Regenaxer> You can change the code of course, but if only special chars are concerned, you can DEFine them on the fly
<razzy> thx.
clacke_movim has left #picolisp [#picolisp]
orivej has quit [Ping timeout: 248 seconds]
clacke_movim has joined #picolisp
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
miskatonic has joined #picolisp
rob_w has joined #picolisp
<DKordic> Good morning everyone.
<Regenaxer> Hi DKordic
orivej has joined #picolisp
<razzy> good morning.
orivej has quit [Ping timeout: 245 seconds]
razzy has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
razzy has joined #picolisp
razzy has joined #picolisp
razzy has quit [Changing host]
orivej has joined #picolisp
freeemint has joined #picolisp
freeemint has quit [Remote host closed the connection]
freeemint has joined #picolisp
Blue_flame has joined #picolisp
freeemint has quit [Ping timeout: 252 seconds]
miskatonic has quit [Remote host closed the connection]
Blue_flame has quit [Quit: Blue_flame]
<tankf33der> hi all
<tankf33der> looks like all this can be repeated via (match), right ?
<tankf33der> afk.
freeemint has joined #picolisp
<Regenaxer> hi tankf33der! Yes, I would use 'match' and other list or symbol functions.
<Regenaxer> Not sure how powerful that lib is though
<tankf33der> i will try replicate something, since i have the same ideas.
<Regenaxer> great!
<Regenaxer> I never felt the need for a full-blown matching library, preferred to do such things manually on the fly
<tankf33der> i will just do use cases for match
<tankf33der> match cookbook like
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #picolisp
freeemint has quit [Ping timeout: 252 seconds]
xkapastel has joined #picolisp
razzy has quit [Ping timeout: 268 seconds]
razzy has joined #picolisp
razzy has quit [Changing host]
razzy has joined #picolisp
freeemint has joined #picolisp
razzy has quit [Ping timeout: 268 seconds]
razzy has joined #picolisp
razzy has quit [Changing host]
razzy has joined #picolisp
rob_w has quit [Remote host closed the connection]
freeemint has quit [Remote host closed the connection]
freeemint has joined #picolisp
freeemint has quit [Ping timeout: 268 seconds]
freeemint has joined #picolisp
freeemint has quit [Client Quit]
freemint has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
freemint has quit [Ping timeout: 245 seconds]
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
beneroth_ has joined #picolisp
beneroth has quit [Disconnected by services]
beneroth_ is now known as beneroth
<beneroth> hi
beneroth_ has joined #picolisp
<Regenaxer> Hi beneroth_!
<beneroth> Guten Abend Regenaxer :)
<Regenaxer> ☺/
<beneroth> I'm trying to process a json file using your lib, but it fails because a text value contains smiley (isutf8 reports the file as valid, so its a high unicode char I suspect)
<beneroth> "Papa 👍"
<beneroth> idea how to handle this beside just stripping this char out ?
<Regenaxer> Hi Unicode is no problem if UTF-8
<Regenaxer> : (chop "Papa 👍")
<Regenaxer> -> ("P" "a" "p" "a" " " "👍")
orivej has quit [Ping timeout: 272 seconds]
<beneroth> readJson fails at the record containing that value
<Regenaxer> Note that this IRC client is also pil, so double-processed ;)
<beneroth> T
<Regenaxer> Strange
<beneroth> maybe I'm wrong about the exact failure
<beneroth> I get "Bad JSON"
<Regenaxer> What error message?
<Regenaxer> ok
<beneroth> I suspect the parsing cursor gets misaligned
<Regenaxer> looks like
<Regenaxer> So a bad char could indeed be the problem
<Regenaxer> But this smiley looks good
<beneroth> I try a (for ... (char) to step through the entry
<Regenaxer> echo 👍 |hd
<Regenaxer> 00000000 f0 9f 91 8d 0a
<Regenaxer> Same if you hexdump the file?
<Regenaxer> (without the linefeed 0a)
<aecepoglu[m]> Can I suppress "method is redefined" warnings?
<aecepoglu[m]> Or more specifically, when I'm using (load), how can I not conflict with already defined function names (like car, cdr etc)?
<Regenaxer> Yes, with (undef ..)
<beneroth> undef, redef, off
<Regenaxer> T
<Regenaxer> Namespace?
<Regenaxer> (local) (car cdr ...)
<Regenaxer> What is the problem with defined symbols?
<aecepoglu[m]> Well, the command line arguments I want to use have the same name as some of the functions
<beneroth> how do you read them?
<Regenaxer> But are the *values* used?
<Regenaxer> 'read' does not care about definitions
<beneroth> Regenaxer, texteditor "Papa 👍"},"realm" - pil reading char by char: "Papa ߑ
<beneroth> },"realm"
<aecepoglu[m]> I wanted to use (load), which in turn would call the functions with the same names
<aecepoglu[m]> (load T)
<Regenaxer> Did you try the hexdump above?
<Regenaxer> f0 9f 91 8d
<Regenaxer> ?
<aecepoglu[m]> I assumed this was the common/preferred way of reading named arguments. If I had to read positional arguments I'd have to find another way
<Regenaxer> 'load'ing non-Lisp sources is normally not useful
<beneroth> Regenaxer, hexdumping the file direct results in f0 9f 91 8d 22 7d
<beneroth> so, different
<Regenaxer> No, same
<Regenaxer> f0 9f 91 8d is the UTF8 for 👍
<Regenaxer> 22 is the double quobne
<beneroth> T
<Regenaxer> Is it an old PicoLisp?
<beneroth> 17.12.30
<beneroth> pil64
<Regenaxer> Ha!
<Regenaxer> 18dec18 Support 4th UTF-8 byte
<beneroth> :D
<beneroth> thanks
<aecepoglu[m]> Is there an easier way of loading CLI argumenths than (load T) then?
<beneroth> Regenaxer, my fault, I owe you one more ;-)
<Regenaxer> No problem!
<beneroth> aecepoglu[m], look at (opt)
<beneroth> you can also mix (opt) and (load T)
<beneroth> e.g. (load T) calling picolisp functions, which use (opt) to parse their arguments
<Regenaxer> I also sometimes define functions as (de -foo ...
<beneroth> yes, me too!
<Regenaxer> Then pil --foo
<Regenaxer> :)
<Regenaxer> But yes, (opt) is probably the most general one
<beneroth> (opt) is much more fun then doing argument parsing in C :)
<Regenaxer> yep :)
<beneroth> Regenaxer, works! ha! nice. thank you
<Regenaxer> Installed new version?
<beneroth> I guess with 18dec18 the 4th UTF-8 byte is supported everywhere, including db, rihgt?
<beneroth> local installation / adapted bin/pil
<beneroth> aye
<Regenaxer> yes, s-exprs and plio
<beneroth> 19.7.6
<Regenaxer> perfect
<Regenaxer> also (key) which is separate, and stuff like (chop) and (pack)
<beneroth> I see
<beneroth> you also adapted plio.js and plio C-implementation? ;-)
<Regenaxer> Not :)
<Regenaxer> plio.js should not be necessary
<Regenaxer> and C should be transparent to it
<Regenaxer> Not sure ATM
<Regenaxer> I think this plio I/O does not look inside string data, so it should not matter
<beneroth> I would guess there is just a number value, not an actual string
<beneroth> aye, this
<Regenaxer> T
<Regenaxer> Only internally handling symbols it is necessary
<beneroth> Regenaxer, after the emoticon problem is solved, control characters appear xD
<beneroth> "!?!\u0026^"
<Regenaxer> uh
<beneroth> I'll do pre-parsing
<Regenaxer> yeah, thought so too
<beneroth> the fun of json in reality
<beneroth> *in the wild
ubLIX has joined #picolisp
razzy has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
razzy has joined #picolisp
razzy has quit [Changing host]
razzy has joined #picolisp
orivej has joined #picolisp
_whitelogger has joined #picolisp
miskatonic has joined #picolisp
<tankf33der> pil utf8 tested against python and ruby
<tankf33der> passed.
<Regenaxer> Great!
<beneroth> wonderful! thank you, tankf33der
<beneroth> good night
beneroth has quit [Quit: Leaving]
<miskatonic> picolisp made it into debian 10
beneroth_ has quit [Quit: Verlassend]
beneroth has joined #picolisp
<beneroth> miskatonic, which version of picolisp?
ubLIX has quit [Quit: ubLIX]
orivej has quit [Ping timeout: 245 seconds]
stultulo has joined #picolisp
f8l has quit [Ping timeout: 268 seconds]
stultulo is now known as f8l
<miskatonic> 18-12.1
<miskatonic> errr 18.12-1
<miskatonic> rthat is the evrsion of picolisp in debian 10.1
<miskatonic> is that outdated?
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
stultulo has joined #picolisp
f8l has quit [Ping timeout: 245 seconds]
stultulo is now known as f8l