aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshe54 has joined #picolisp
alexshe54 is now known as alexshendi
clacke has quit [Remote host closed the connection]
aw- has quit [Quit: Leaving.]
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
clacke has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshe86 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe86 has quit [Ping timeout: 268 seconds]
alexshendi has quit [Ping timeout: 268 seconds]
calle has joined #picolisp
alexshe47 has joined #picolisp
calle has quit [Ping timeout: 252 seconds]
aw- has joined #picolisp
<
tankf33der>
abu[m]: here?
<
tankf33der>
i have such short code
<
abu[m]>
Hi @tankf33der !
<
tankf33der>
i build a dictionary of words and searching a combinations of word katsunis
<
tankf33der>
do i use idx correctly, does it look good?
<
abu[m]>
Permute may become very long
<
tankf33der>
0.002 secs
<
tankf33der>
creation of dictionary 18secs of 26
<
abu[m]>
I think 'idx' is called correctly. Insert with T.
<
tankf33der>
dictionary 370k words
<
tankf33der>
should i use (cons (hash X) X) like i cache ?
<
abu[m]>
Is 'name' needed?
<
abu[m]>
I see. 'hash' is needed if the symbols may be sorted
<
abu[m]>
so the tree degenerates
<
abu[m]>
Check the 'depth' of the tree
<
tankf33der>
works without name
<
tankf33der>
cool feature of hash map without indexes
<
abu[m]>
cause (read) gives new symbols, and (lowc) makes again a new symbol
<
abu[m]>
Is (read) good? It interns the symbols
<
tankf33der>
different case in file
<
abu[m]>
yes, so (lowc) gives a new symbol
<
abu[m]>
(lowc (line T))
<
tankf33der>
example of file
<
tankf33der>
(lowc (till " "))
<
abu[m]>
yeah (lowc (till " \n"))
<
tankf33der>
why i need \n ?
<
abu[m]>
I though some items are at the end of a line (?)
<
tankf33der>
always in the beggining
<
tankf33der>
first colomn
<
tankf33der>
testing
<
abu[m]>
Yes, I see the (line)
<
abu[m]>
Better (from "\n") so that the consing of (line) is avoided
<
tankf33der>
i did not know this trick
<
tankf33der>
i got new timming
<
tankf33der>
two times faster
<
tankf33der>
two times more heap usage
<
tankf33der>
orgasmic cool.
<
tankf33der>
about heap or time ?
<
tankf33der>
now idx stores real data without intern symbols
<
tankf33der>
all heap usage came from idx creation
<
abu[m]>
Ah, right, so more symbols are created and then gc'd
<
abu[m]>
Still better than interning
<
tankf33der>
much better
<
tankf33der>
i will try to remember todays lessons forever.
<
tankf33der>
thanks a lot.
<
abu[m]>
My pleasure
calle has joined #picolisp
alexshendi has joined #picolisp
alexshe47 has quit [Read error: Connection reset by peer]
alexshe79 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
calle has quit [Ping timeout: 268 seconds]
alexshendi has joined #picolisp
alexshe79 has quit [Ping timeout: 268 seconds]
alexshendi has quit [Read error: Connection reset by peer]
alexshe66 has joined #picolisp
calle has joined #picolisp
alexshe66 has quit [Ping timeout: 244 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
<
tankf33der>
My prime integer factorization passed 1M tests up to 56 bits. Enough.
<
abu[m]>
56-bit integers?
<
tankf33der>
I tested against cli unix command factor
<
abu[m]>
So how long does a single factorization take?
<
tankf33der>
every unix distr have it
<
tankf33der>
immediately
<
abu[m]>
Then how long did 1 million take?
<
tankf33der>
let me bench then
<
abu[m]>
I did not know the Unix factor command. Which package is it?
<
tankf33der>
coreutils
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
<
tankf33der>
1M factorizations took 1800secs.
<
abu[m]>
Thanks. So 1.8 msec. Fast! :)
alexshendi has quit [Ping timeout: 268 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 268 seconds]
alexshendi has joined #picolisp
alexshe45 has joined #picolisp
alexshendi has quit [Ping timeout: 264 seconds]
alexshe45 has quit [Ping timeout: 268 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 268 seconds]
alexshe77 has joined #picolisp
alexshendi has joined #picolisp
alexshe77 has quit [Ping timeout: 268 seconds]
alexshe20 has joined #picolisp
alexshendi has quit [Ping timeout: 240 seconds]
clacke has quit [Remote host closed the connection]
alexshe20 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
calle has quit [Ping timeout: 264 seconds]
calle has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe95 has joined #picolisp
calle has quit [Quit: Leaving]