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
TeddyDD has quit [Ping timeout: 256 seconds]
razzy has quit [Ping timeout: 268 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 240 seconds]
razzy has joined #picolisp
schulze has quit [Ping timeout: 240 seconds]
razzy has quit [Ping timeout: 240 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 268 seconds]
razzy has joined #picolisp
<Regenaxer> hmm, woke up and remembered a yet shorter solution: http://ix.io/3J0Y
<Regenaxer> Could not resist ;)
<Regenaxer> I really forgot about this nifty destructuring-bind feature of pil21
rob_w has joined #picolisp
<razzy> Regenaxer: result 0
<razzy> I also do not imagine it working
<Regenaxer> oh, zero?
<Regenaxer> I think it is correct
<Regenaxer> Let me test
<razzy> mail file?
<Regenaxer> right, zero
<Regenaxer> moment
<Regenaxer> Hmm, seems a bug in 'cnt' (?). With 'map' it works
<Regenaxer> Let me investigate
<Regenaxer> ah, haha, no
<Regenaxer> same stupid error as yesterday
<Regenaxer> 'cnt' gets the CARs
<Regenaxer> So forget this one ;)
casaca has quit [Remote host closed the connection]
casaca has joined #picolisp
schulze has joined #picolisp
Hunar has joined #picolisp
<Hunar> Hello :)     what is the difference between   (set 'A 3) and (def 'A 3)
<Regenaxer> 'def' does more
<Regenaxer> it maintains debug properties, and gives a "redefined" message
<Regenaxer> Same as 'de' internally
<Hunar> (gives a "redefined" message) that's why I see them used to define constants then
<Regenaxer> Just 'de' is the non-evaluating version
<Regenaxer> yes
<Regenaxer> So yuu are warned if a constant was changed
<Hunar> :)  Cool
<Regenaxer> The return value is also different from 'setq'
<Regenaxer> it returns the symbol, not the value
<Hunar> Ah, didn't notice that
<Regenaxer> You can do (put (def 'x 'val) 'foo 7) etc
<Regenaxer> (let X (def (box) ...
<Hunar> yesterday razzy said (people solve it with 7 characters in custom languages)  I think he was refereeing to APL ..  there is also a youtube channel that has a series all about solving adventofcode challenges with the fewest  APL characters possible https://youtube.com/playlist?list=PLVFrD1dmDdvfejkfvQEI2bNfVlNO4iGkK
<Regenaxer> yes, APL is extreme in this regard
<Regenaxer> though I doubt even here 7 chars
<Regenaxer> There is more info to specify than 7 bytes
<Regenaxer> perhaps 56 bits?
<Hunar> I could probably create equivalent APL functions in PIL by calling a couple of mapping functions and using single unicode characters as function name .. the parenthesis would still be there though, APL doesn't need parenthesis because functions can only take either 1 or 2 arguments
<Regenaxer> I see
TeddyDD has joined #picolisp
aw- has joined #picolisp
Hunar has quit [Quit: Client closed]
<razzy> if you are interested i was refering to https://github.com/betaveros/advent-of-code-golf-2020/blob/master/day1-1.prdc solved in 12 bytes.
<razzy> I really do not wish for Regenaxer to take inspiration in advent golfing
<Regenaxer> No worry :)
<razzy> I would like to agree about objective criteria what makes good code. i think: smaller count of characters, smaller count type of functions(programming concepts), faster execution.
<Regenaxer> yeah, or, in case of interpreted Lisp: Number of cells
<Regenaxer> (size '(a b c))
<razzy> next thing would be to agree about relative worth. For example for project with life-expectancy 20 years: 50 more characters, new (nth*), execution time +12%. is equal to each other So the programmer can decide what to work on.
<razzy> size can help decide execution time before execution, yes?
<Regenaxer> Yes, it is a good approximation
<Regenaxer> if the algorithm is equivalent
<Regenaxer> in the end it boils down to number of function calls
<Regenaxer> Calls are expensive, [F]EXPRs more than FSUBRs
<Regenaxer> (for X Lst (foo (bar X))) is faster than (mapc '((X) (foo (bar X))) Lst)
<Regenaxer> because the latter calls a lisp function (EXPR) each time
aw- has quit [Quit: Leaving.]
razzy has quit [Ping timeout: 260 seconds]
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
casaca has quit [Remote host closed the connection]
casaca has joined #picolisp
casaca has quit [Remote host closed the connection]
Hunar has joined #picolisp
Hunar has quit [Ping timeout: 256 seconds]
rob_w has quit [Read error: Connection reset by peer]
<razzy> chmm, what linux package is litsi client?
<razzy> jitsi
<razzy> i am confused. i want jitsi desktop .deb for arm and i have trouble.
TeddyDD has quit [Quit: WeeChat 3.3]
<razzy> i think I have to compile jitsi client myself. if you have better idea, i will read the log