01:34
alexshe26 has quit [Ping timeout: 252 seconds]
01:35
alexshendi has joined #picolisp
02:13
Iacob has quit [Ping timeout: 252 seconds]
02:25
clacke has joined #picolisp
02:34
Iacob has joined #picolisp
05:29
alexshendi has quit [Read error: Connection reset by peer]
05:42
alexshe49 has joined #picolisp
05:44
chexum has quit [Remote host closed the connection]
05:45
chexum has joined #picolisp
05:59
alexshe49 has quit [Read error: Connection reset by peer]
06:01
alexshe3 has joined #picolisp
06:05
alexshe3 has quit [Read error: Connection reset by peer]
06:11
alexshe34 has joined #picolisp
06:42
alexshe34 has quit [Quit: -a- Connection Timed Out]
06:47
alexshendi has joined #picolisp
07:19
<
tankf33der >
My next task will be
07:19
<
tankf33der >
completely do not understand
07:27
<
tankf33der >
the context
07:34
<
abu[m] >
interesting
07:44
alexshendi has quit [Read error: Connection reset by peer]
07:47
alexshe78 has joined #picolisp
07:50
<
abu[m] >
This is a use case for 'rev'
07:51
<
abu[m] >
(hex (rev 32 (dec (** 2 12))))
07:51
<
abu[m] >
-> "FFF00000"
08:03
<
abu[m] >
OK, solved the task
08:11
<
abu[m] >
Tell me if I should post it here
08:55
<
tankf33der >
my implementation
08:56
<
abu[m] >
Very good!
08:56
<
tankf33der >
printing will do later
08:57
<
abu[m] >
and chop and split of string is needed I think
08:59
<
tankf33der >
i can do printing on lists or strings, do not what is better
09:03
<
abu[m] >
I stole your (sum >> (-24 -16 -8 0) L)
09:34
alexshe78 has quit [Read error: Connection reset by peer]
09:47
alexshe60 has joined #picolisp
10:16
alexshe60 has quit [Read error: Connection reset by peer]
10:16
alexshendi has joined #picolisp
10:44
alexshendi has quit [Read error: Connection reset by peer]
10:47
alexshendi has joined #picolisp
11:36
alexshendi has quit [Read error: Connection reset by peer]
11:47
alexshe86 has joined #picolisp
12:04
chexum has quit [Remote host closed the connection]
12:05
chexum has joined #picolisp
12:28
alexshe86 has quit [Read error: Connection reset by peer]
12:28
alexshendi has joined #picolisp
12:33
<
abu[m] >
@tankf33der , your (sum >> ..) is a good candidate for a #PicoLispRepl tweet. OK to post it?
12:35
<
tankf33der >
full printing task
12:36
<
Hunar >
Hello :) quick question how to turn the resulting string from (argv) into a number
12:36
<
abu[m] >
Good. Just the indentation of the (for A loop looks strange in the browser.
12:37
<
abu[m] >
Hi @Hunar! 'format' is to convert to/from number
12:37
<
abu[m] >
But usually (format (opt)) is better
12:38
<
tankf33der >
fixed.
12:38
<
Hunar >
Great :D thanks
12:38
<
abu[m] >
@tankf33der: Perfect!
12:42
<
tankf33der >
~160th rosetta task solved.
12:47
alexshendi has quit [Quit: -a- Connection Timed Out]
12:52
alexshe6 has joined #picolisp
12:54
chexum has quit [Remote host closed the connection]
12:55
alexshe6 has quit [Read error: Connection reset by peer]
12:55
chexum has joined #picolisp
12:56
alexshe60 has joined #picolisp
12:59
alexshe60 has quit [Read error: Connection reset by peer]
13:01
alexshendi has joined #picolisp
13:10
<
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
13:10
alexshendi has quit [Read error: Connection reset by peer]
13:10
<
Hunar >
I think my github link is broken
13:11
<
Hunar >
I ran 100000 items and 100000 iterations like he did
13:11
alexshendi has joined #picolisp
13:13
<
abu[m] >
So N is 100000x ?
13:13
<
Hunar >
yes, both are 100,000
13:15
alexshendi has quit [Read error: Connection reset by peer]
13:15
alexshe88 has joined #picolisp
13:16
<
abu[m] >
Hmm, this finishes in 0.00 sec
13:16
<
abu[m] >
oops, forget that ;)
13:18
<
abu[m] >
I think your pil code is optimal
13:18
<
abu[m] >
I did not really check the task, but the other implementations used arrays, right?
13:33
chexum has quit [Remote host closed the connection]
13:34
chexum has joined #picolisp
13:34
<
Hunar >
sorry I suddenly got very busy at work..
13:34
<
Hunar >
yes the used arrays
13:35
<
abu[m] >
No problem!
13:35
<
abu[m] >
OK, but then the benches cannot really be compared
13:35
<
abu[m] >
Traversing a linked list is much more expensive, and cache hits are worse too
13:38
<
Hunar >
hmm, you're right..
13:39
<
Hunar >
Now that I think about it, who needs to reverse an array in real life 😅
13:40
<
Hunar >
especially 100,000 times
13:40
<
abu[m] >
haha, true, but it happens
13:40
<
abu[m] >
In case of Pil, the efficiency of the 'flip' primitive is measured
13:41
<
Hunar >
The benchmark also measured built-in functions seperately .. what is an easy way to manually reverse a list in pil?
13:42
<
abu[m] >
The 'flip' function in Pil is a little slowed down as it checks for circularity on each cell
13:46
<
abu[m] >
Wait, I'm wrong. Not really, but it gracefully handles circular lists not to loop infinitely
16:04
alexshe88 has quit [Ping timeout: 245 seconds]
16:09
alexshendi has joined #picolisp
17:49
alexshe86 has joined #picolisp
17:49
alexshendi has quit [Read error: Connection reset by peer]
18:45
clacke has quit [Remote host closed the connection]
18:57
alexshe86 has quit [Quit: -a- Connection Timed Out]
19:01
alexshendi has joined #picolisp
19:12
calle has joined #picolisp
19:56
alexshendi has quit [Read error: Connection reset by peer]
20:01
alexshe89 has joined #picolisp
20:02
alexshe89 has quit [Read error: Connection reset by peer]
20:05
alexshendi has joined #picolisp
20:10
alexshendi has quit [Read error: Connection reset by peer]
20:13
alexshendi has joined #picolisp
20:36
alexshe16 has joined #picolisp
20:36
alexshendi has quit [Read error: Connection reset by peer]
20:37
alexshendi has joined #picolisp
20:39
alexshe16 has quit [Remote host closed the connection]
20:41
alexshe6 has joined #picolisp
20:41
alexshendi has quit [Read error: Connection reset by peer]
20:44
chexum has quit [Remote host closed the connection]
20:46
chexum has joined #picolisp
20:54
alexshendi has joined #picolisp
20:54
alexshe6 has quit [Read error: Connection reset by peer]
20:55
alexshe92 has joined #picolisp
20:55
alexshendi has quit [Read error: Connection reset by peer]
20:56
alexshendi has joined #picolisp
20:56
alexshe92 has quit [Read error: Connection reset by peer]
20:57
alexshe56 has joined #picolisp
20:59
alexshe91 has joined #picolisp
20:59
alexshe56 has quit [Read error: Connection reset by peer]
20:59
alexshendi has quit [Remote host closed the connection]
21:01
alexshe91 has quit [Read error: Connection reset by peer]
21:01
alexshendi has joined #picolisp
21:02
alexshe25 has joined #picolisp
21:02
alexshendi has quit [Read error: Connection reset by peer]
21:03
alexshendi has joined #picolisp
21:04
alexshe93 has joined #picolisp
21:06
alexshe25 has quit [Ping timeout: 255 seconds]
21:07
alexshendi has quit [Ping timeout: 255 seconds]
21:07
alexshe93 has quit [Read error: Connection reset by peer]
21:08
alexshendi has joined #picolisp
21:15
alexshendi has quit [Read error: Connection reset by peer]
21:15
alexshendi has joined #picolisp
21:16
alexshe67 has joined #picolisp
21:19
alexshendi has quit [Ping timeout: 245 seconds]
21:23
alexshendi has joined #picolisp
21:24
alexshe57 has joined #picolisp
21:24
alexshendi has quit [Read error: Connection reset by peer]
21:25
alexshe67 has quit [Remote host closed the connection]
21:28
alexshe57 has quit [Read error: Connection reset by peer]
21:28
alexshendi has joined #picolisp
21:30
alexshe75 has joined #picolisp
21:30
alexshendi has quit [Read error: Connection reset by peer]
21:42
alexshe75 has quit [Read error: Connection reset by peer]
22:23
alexshendi has joined #picolisp
23:51
calle has quit [Ping timeout: 252 seconds]