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
peterhil has quit [Ping timeout: 272 seconds]
peterhil has joined #picolisp
peterhil has quit [Read error: Connection reset by peer]
beneroth__ has joined #picolisp
peterhil has joined #picolisp
beneroth has quit [Ping timeout: 245 seconds]
Nistur has quit [Ping timeout: 258 seconds]
casaca has quit [Ping timeout: 256 seconds]
Nistur has joined #picolisp
casaca has joined #picolisp
<Regenaxer> OK, pseudo tty now *almost* works on PilBox
<Regenaxer> Even vip runs well
<Regenaxer> Only one strange thing: readline() does not echo backspaces, so the line gets garbled when backspace is pressed
<Regenaxer> Exactly like this:
<Regenaxer> and
<Regenaxer> But no solution so far
peterhil has quit [Ping timeout: 276 seconds]
beneroth__ has quit [Quit: Leaving]
beneroth has joined #picolisp
<Regenaxer> The second link is more to the point, but it is not a $TERM issue
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
peterhil has joined #picolisp
razzy has quit [Ping timeout: 252 seconds]
razzy has joined #picolisp
<beneroth> :/
razzy has quit [Ping timeout: 272 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 256 seconds]
<Regenaxer> I give up for today
<Regenaxer> Also installed parts of the terminfo database in PilBox, but no improvement
<Regenaxer> Must stop now cause otherwise I can't sleep ;)
<Regenaxer> afp
<beneroth> ;-)
razzy has joined #picolisp
razzy has quit [Ping timeout: 240 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 245 seconds]
razzy has joined #picolisp
<razzy> welp, (sort) seems broken. https://cl1p.net/weirdpaste
<razzy> Regenaxer: can (sort) handle weird '("f" "g" "4") lists?
<razzy> : (version)
<razzy> 21.7.22
<razzy> -> (21 7 22)
<beneroth> razzy, 1) sort is not broken. It's destructive! So the list in the value of A got corrupted, use (setq A (sort ...)) instead of (sort ...)
<beneroth> 2) sort can handle weird lists, as the basic picolisp datatypes (number, symbol, cons-pair) have a strict order, see "Comparison" section in reference: https://software-lab.de/doc/ref.html#cmp
<beneroth> about 1): your subsequent (sort) calls received different inputs, as A was changed by sort
<razzy> beneroth: thank you. I was thinking that (sort) is destructive in a way that it changes order. I see my mistake.
<beneroth> it changes the list given as input
<beneroth> because it is assumed that the input is anyway throw-away in most use cases
<beneroth> otherwise use (sort (copy List))
<beneroth> (copy takes a shallow copy of the list. shallow = only top elements are copied, if they're lists or symbols than the values in those are not duplicated)
<beneroth> razzy, no worries. been there, it caught me too in the beginning :)