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
alexshe26 has quit [Ping timeout: 252 seconds]
alexshendi has joined #picolisp
Iacob has quit [Ping timeout: 252 seconds]
clacke has joined #picolisp
Iacob has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe49 has joined #picolisp
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
alexshe49 has quit [Read error: Connection reset by peer]
alexshe3 has joined #picolisp
alexshe3 has quit [Read error: Connection reset by peer]
alexshe34 has joined #picolisp
alexshe34 has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
<tankf33der> My next task will be
<tankf33der> completely do not understand
<tankf33der> the context
<abu[m]> interesting
alexshendi has quit [Read error: Connection reset by peer]
alexshe78 has joined #picolisp
<abu[m]> This is a use case for 'rev'
<abu[m]> (hex (rev 32 (dec (** 2 12))))
<abu[m]> -> "FFF00000"
<abu[m]> OK, solved the task
<abu[m]> Tell me if I should post it here
<tankf33der> http://ix.io/46NJ
<tankf33der> my implementation
<abu[m]> Very good!
<tankf33der> printing will do later
<abu[m]> and chop and split of string is needed I think
<tankf33der> i can do printing on lists or strings, do not what is better
<abu[m]> I stole your (sum >> (-24 -16 -8 0) L)
<abu[m]> Then I get http://ix.io/46NN
<tankf33der> i see
alexshe78 has quit [Read error: Connection reset by peer]
alexshe60 has joined #picolisp
alexshe60 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe86 has joined #picolisp
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
alexshe86 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
<abu[m]> @tankf33der , your (sum >> ..) is a good candidate for a #PicoLispRepl tweet. OK to post it?
<tankf33der> sure.
<abu[m]> ☺
<tankf33der> http://ix.io/46OD
<tankf33der> full printing task
<Hunar> Hello :) quick question how to turn the resulting string from (argv) into a number
<abu[m]> Good. Just the indentation of the (for A loop looks strange in the browser.
<abu[m]> Hi @Hunar! 'format' is to convert to/from number
<abu[m]> But usually (format (opt)) is better
<tankf33der> http://ix.io/46OE
<tankf33der> fixed.
<Hunar> Great :D thanks
<abu[m]> @tankf33der: Perfect!
<tankf33der> ~160th rosetta task solved.
<abu[m]> \😃/
<tankf33der> afk.
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshe6 has joined #picolisp
chexum has quit [Remote host closed the connection]
alexshe6 has quit [Read error: Connection reset by peer]
chexum has joined #picolisp
alexshe60 has joined #picolisp
alexshe60 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
<Hunar> I saw a benchmark at http://github.com/unipickle/Benchmarks I ran some examples from array-reverse, I got these different results (C 0.001s, Java 2.932s, Go 4.225s, Python3 builtin 3.279s, pil 11.266) here is my pil code ix.io/46OP I don't know how python is faster than java for me :/ does my picolisp code contain major mistakes? or the speed is expected
alexshendi has quit [Read error: Connection reset by peer]
<Hunar> I think my github link is broken
<Hunar> I ran 100000 items and 100000 iterations like he did
alexshendi has joined #picolisp
<abu[m]> So N is 100000x ?
<Hunar> yes, both are 100,000
alexshendi has quit [Read error: Connection reset by peer]
alexshe88 has joined #picolisp
<abu[m]> Hmm, this finishes in 0.00 sec
<abu[m]> oops, forget that ;)
<abu[m]> I think your pil code is optimal
<abu[m]> I did not really check the task, but the other implementations used arrays, right?
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
<Hunar> sorry I suddenly got very busy at work..
<Hunar> yes the used arrays
<abu[m]> No problem!
<abu[m]> OK, but then the benches cannot really be compared
<abu[m]> Traversing a linked list is much more expensive, and cache hits are worse too
<Hunar> hmm, you're right..
<Hunar> Now that I think about it, who needs to reverse an array in real life 😅
<Hunar> especially 100,000 times
<abu[m]> haha, true, but it happens
<abu[m]> In case of Pil, the efficiency of the 'flip' primitive is measured
<Hunar> The benchmark also measured built-in functions seperately .. what is an easy way to manually reverse a list in pil?
<abu[m]> The 'flip' function in Pil is a little slowed down as it checks for circularity on each cell
<Hunar> oh
<abu[m]> Wait, I'm wrong. Not really, but it gracefully handles circular lists not to loop infinitely
alexshe88 has quit [Ping timeout: 245 seconds]
alexshendi has joined #picolisp
alexshe86 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
clacke has quit [Remote host closed the connection]
alexshe86 has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
calle has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe89 has joined #picolisp
alexshe89 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe16 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe16 has quit [Remote host closed the connection]
alexshe6 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
alexshendi has joined #picolisp
alexshe6 has quit [Read error: Connection reset by peer]
alexshe92 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe92 has quit [Read error: Connection reset by peer]
alexshe56 has joined #picolisp
alexshe91 has joined #picolisp
alexshe56 has quit [Read error: Connection reset by peer]
alexshendi has quit [Remote host closed the connection]
alexshe91 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe25 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe93 has joined #picolisp
alexshe25 has quit [Ping timeout: 255 seconds]
alexshendi has quit [Ping timeout: 255 seconds]
alexshe93 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe67 has joined #picolisp
alexshendi has quit [Ping timeout: 245 seconds]
alexshendi has joined #picolisp
alexshe57 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe67 has quit [Remote host closed the connection]
alexshe57 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe75 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe75 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
calle has quit [Ping timeout: 252 seconds]