00:03
orivej has joined #picolisp
05:23
mtsd has joined #picolisp
06:09
orivej has quit [Ping timeout: 248 seconds]
07:15
mtsd has quit [Ping timeout: 240 seconds]
08:00
<
beneroth >
hi m_mans
08:05
rob_w has joined #picolisp
08:05
rob_w has quit [Changing host]
08:05
rob_w has joined #picolisp
08:20
miskatonic has joined #picolisp
08:32
<
cess11_ >
Good morning.
08:32
<
Regenaxer >
Hi cess11_
08:45
miskatonic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
08:47
<
beneroth >
hi cess11_, hi Regenaxer :)
08:47
<
Regenaxer >
Hi beneroth
08:53
<
beneroth >
sounds like ARM64 servers will come... RedHat supports them now, too
08:57
<
Regenaxer >
Good thing
09:22
<
Ober >
who needs cache coherency?
09:23
<
Ober >
check the memory and lru every ctx
09:31
<
tankfeeder >
~75% faster
09:31
<
tankfeeder >
Regenaxer: ^^^
09:31
<
tankfeeder >
but primeseq is monster
09:32
<
Regenaxer >
Looks wrong
09:33
<
Regenaxer >
the 'make' result is not used
09:33
<
Regenaxer >
I would do (link 2) and (link 3)
09:33
<
tankfeeder >
because prime? should use Lst in for D
09:33
<
Regenaxer >
then always step 2
09:33
<
Regenaxer >
But I though this is the returned list anyway
09:34
<
Regenaxer >
you build the list of primes
09:34
<
Regenaxer >
*and* use the list so far for trial divisions
09:34
<
Regenaxer >
very similar as it was before
09:34
<
Regenaxer >
Do you still have yesterday's version?
09:36
<
Regenaxer >
Before, you divided by 3, 5, 7, 9 right?
09:36
<
tankfeeder >
yesterdays version of which function?
09:36
<
Regenaxer >
Now just by 3, 5, 7, 11 etc
09:37
<
Regenaxer >
The one where I suggested to divide only by primes, not all odd numbers
09:38
<
tankfeeder >
i dont have prev versions, but i can rewrite
09:38
<
Regenaxer >
it was much simpler, yes
09:39
<
tankfeeder >
there is small number of changes
09:40
<
Regenaxer >
The 'prime?' function is fine, but does not need (or (= N 2)
09:40
<
Regenaxer >
Without the (queue 'R I) it should also be faster
09:41
<
Regenaxer >
I think I understand
09:41
<
Regenaxer >
you do that for we "from" value
09:42
aw- has joined #picolisp
09:42
<
Regenaxer >
So I would just remember the value of (made) for the result
09:42
<
Regenaxer >
(link) concatenates
09:42
<
Regenaxer >
so you don't need R
09:43
<
Regenaxer >
and no 'queue'
09:43
<
aw- >
beneroth: source of arm64 servers news?
09:43
<
tankfeeder >
so we discuss only primeseq, write ?
09:43
<
tankfeeder >
Primes between 100 and 150: (101 103 107 109 113 127 131 137 139 149)
09:43
<
tankfeeder >
Number of primes between 7700 and 8000: 31
09:43
<
tankfeeder >
i need it for this output, required for task
09:44
<
Regenaxer >
yes, only primeseq, but prime? can omit the 'or'
09:44
<
Regenaxer >
cause we don't test for '2', right?
09:45
<
Regenaxer >
"need it for this output": Yes, so remember the start value (made)?
09:45
<
Regenaxer >
after (while (> A I)
09:45
<
Regenaxer >
(setq R (made))
09:46
<
Regenaxer >
Then continue to (link), and finally return R as now
09:47
<
Regenaxer >
Can omit the two (queue 'R I) calls
09:47
<
Regenaxer >
as the result is built with (link ..)
09:50
<
beneroth >
aw-, heise writes that SUSE and Canonical also support ARM on enterprise/server contracts
09:51
<
beneroth >
so I guess they see a marketing for ARM64 servers :)
09:51
<
beneroth >
s/marketing/market
09:53
<
aw- >
beneroth: interesting, thanks
09:57
<
tankfeeder >
Regenaxer:
09:57
<
tankfeeder >
after (while (> A I)
09:57
<
tankfeeder >
(setq R (made))
09:57
<
tankfeeder >
i dont need numbers before 100
09:57
<
tankfeeder >
only after
09:57
<
Regenaxer >
must be the next one
09:57
<
tankfeeder >
and before 150
09:58
<
Regenaxer >
It must be the
*next* one, and then (setq R (tail 1 (made))) :)
09:58
<
Regenaxer >
ie the next cell
09:58
<
Regenaxer >
A bit nasty
09:59
<
Regenaxer >
Remember the length!
09:59
<
Regenaxer >
(setq R (length (made)))
10:00
<
Regenaxer >
return (nth (make ...) R)
10:00
<
Regenaxer >
(or (dec R)) to be exact
10:01
<
Regenaxer >
something like that, you know what I mean ;)
10:02
<
Regenaxer >
I think it will be faster than the queuing stuff, though not simpler
10:03
<
Regenaxer >
(nth (make ... (setq R (length (made))) ... (link)) (inc R))
10:05
<
beneroth >
aw-, you're welcome
10:06
<
tankfeeder >
prime? rewrite gives ~5% faster
10:08
<
tankfeeder >
now primeseq
10:09
<
tankfeeder >
also i should avoid (last (take N)))
10:10
<
Regenaxer >
'get' ?
10:11
<
tankfeeder >
maybe another version like take but takeN
10:11
<
tankfeeder >
something like (setq @@ (link I)) return @@
10:18
<
tankfeeder >
above doest help, so last is ok then
10:22
<
tankfeeder >
new version
10:22
<
tankfeeder >
i dont see it
10:23
<
tankfeeder >
first version ~78secs, now ~18secs
10:23
<
Regenaxer >
But why wrong?
10:26
<
tankfeeder >
wrong channel
10:26
<
tankfeeder >
last issue
10:26
<
tankfeeder >
"Number of primes between 7700 and 8000: "
10:26
<
tankfeeder >
should 30
10:26
<
tankfeeder >
not 31
10:26
<
tankfeeder >
i will fix it too.
10:32
<
tankfeeder >
7951 7963 7993 8009)
10:32
<
tankfeeder >
8009 thats why 31 items in list
10:32
<
tankfeeder >
(inc 'I 2) pass out range, ha
11:20
<
m_mans >
btw, I've tested libaio with PicoLisp, seq. and random write cases, no much overhead, it worked fine even with single thread. I used my laptop and USB HDD
11:22
<
Regenaxer >
m_mans, good to hear!
11:24
<
beneroth >
m_mans, cool, thanks for testing!
12:04
Regenaxer has quit [Ping timeout: 248 seconds]
12:40
aw- has quit [Quit: Leaving.]
12:58
Regenaxer has joined #picolisp
13:14
<
tankfeeder >
final version is ready
13:14
<
tankfeeder >
too nasty.
13:15
<
tankfeeder >
but works as should.
13:23
<
Regenaxer >
Cool tankfeeder
13:24
<
tankfeeder >
i gonna commit.
13:25
<
Regenaxer >
yes, good
15:02
<
tankfeeder >
new task done.
15:05
<
tankfeeder >
this is last task in Prime category on rosetta
15:08
<
Regenaxer >
Why not (for X 20 ... ?
15:08
<
Regenaxer >
Hmm, I see
15:08
<
Regenaxer >
Only if the 'and' fires, right
15:09
<
Regenaxer >
OK, so fine, isn't it?
15:12
<
tankfeeder >
i will commit
15:16
<
tankfeeder >
back to this task
15:16
<
tankfeeder >
damn, nasty.
15:42
rob_w has quit [Quit: Leaving]
16:24
miskatonic has joined #picolisp
17:03
orivej has joined #picolisp
17:13
<
rick42 >
beneroth: cool. arm servers. thanks for heads up
17:33
alexshendi has left #picolisp [#picolisp]
19:26
beneroth is now known as bene|off
19:58
miskatonic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
21:31
tankfeeder has quit [Ping timeout: 250 seconds]
23:39
tankfeeder has joined #picolisp