00:32
alexshe33 has quit [Ping timeout: 268 seconds]
00:36
clacke has quit [Remote host closed the connection]
00:38
aw- has quit [Read error: Connection reset by peer]
00:39
aw- has joined #picolisp
00:42
alexshendi has joined #picolisp
01:45
Abhishek_ has quit [Quit: Connection closed for inactivity]
05:39
alexshendi has quit [Read error: Connection reset by peer]
05:40
alexshe32 has joined #picolisp
07:33
alexshe32 has quit [Quit: -a- Connection Timed Out]
07:40
alexshendi has joined #picolisp
08:43
<
tankf33der >
Now i think my probalistic isprime function is wrong on hyper huge numbers, i was too optimistic.
08:43
<
abu[m] >
Oh! I was thinking to use it in @lib/rsa.l
08:44
<
tankf33der >
now i must reimplement on hyper huge random numbers using gmp library
08:44
<
tankf33der >
picolisp random state is too small
08:44
<
abu[m] >
The algorithm cannot be written in PicoLisp? Or is it unknown?
08:45
<
tankf33der >
I need random function on any number of bits
08:45
<
tankf33der >
libgmp can do it
08:46
<
abu[m] >
In pil you can build a big random number easily
08:46
<
abu[m] >
'rand' and '>>'
08:46
<
tankf33der >
This way, ok, i will play
08:47
<
abu[m] >
There is 'longRand' in @lib/rsa.l
08:47
<
tankf33der >
Hyper huge numbers for me is 100k digits and more
08:48
<
abu[m] >
it uses /dev/urandom instead of 'rand' though
08:48
<
tankf33der >
i understand direction, thanks
09:12
<
tankf33der >
Where is i can find latest rsa.l?
09:15
<
abu[m] >
Probably the latest public one is the last pil64 release
09:16
<
tankf33der >
Not included, checked on github
09:16
<
tankf33der >
i will safe your version.
09:34
<
tankf33der >
First i must implement longrand odd generator
09:39
<
abu[m] >
For an odd number, just shift left one bit and add 1?
10:13
alexshe89 has joined #picolisp
10:15
alexshendi has quit [Ping timeout: 240 seconds]
10:33
<
tankf33der >
i did this
10:34
<
tankf33der >
do you think this is ok ?
10:36
<
abu[m] >
I think it is a little less random
10:36
<
tankf33der >
I don understand how to implement your variation
10:37
<
abu[m] >
Better (inc (>> -1 (in "/dev/urandom" (rd N))))
10:38
<
tankf33der >
Testing
10:55
aw- has quit [Ping timeout: 244 seconds]
11:06
aw- has joined #picolisp
11:13
<
tankf33der >
lets keep additional bit variation
11:14
<
tankf33der >
today is my last vacation day.
11:43
<
tankf33der >
random number must be more than 2
11:45
<
abu[m] >
I see. Should be very improbable for a big random number though ;)
11:45
<
abu[m] >
You could just add 2
11:46
<
abu[m] >
or add 999 or so
11:46
<
tankf33der >
switched to newer version
11:46
<
abu[m] >
I'm not sure what is the most random way
11:46
<
tankf33der >
test will take weeks
11:47
<
abu[m] >
Perhaps the safest is to simply generate a new number if it is even or less than 2
11:47
<
abu[m] >
Really? Heavy test.
12:03
<
tankf33der >
I want to be sure as much as possible
12:41
<
tankf33der >
14:47 <abu[m]> Perhaps the safest is to simply generate a new number if it is even or less than 2
12:41
<
tankf33der >
i will do it this way
12:41
<
tankf33der >
after all
12:42
<
abu[m] >
Seems the safest, and speed is not important, right?
12:42
<
tankf33der >
right.
15:36
<
tankf33der >
Problem with longRand with loop it runs forever on small values
15:37
<
tankf33der >
(longRand 3) loops very long, so will stay version when i read urandom device once
15:38
<
abu[m] >
Then loop only if <= 2
15:39
<
abu[m] >
and odd is made by (inc .. (>>
15:43
<
tankf33der >
Will show code asap
15:44
<
abu[m] >
No hurry, we must watch footballl now (Germany / England)
15:59
alexshe89 has quit [Read error: Connection reset by peer]
16:03
alexshendi has joined #picolisp
17:54
<
tankf33der >
testing this variation
17:55
<
tankf33der >
could be even so i must handle only 2.
17:56
<
tankf33der >
i sent tremendous amount of time on prime test and integer factorization this year.
18:40
<
abu[m] >
I do not understand what the 'N' argument is
18:41
<
abu[m] >
In any case, technically the 'loop' is simply an 'until'
18:41
<
abu[m] >
And I don't understand why 2 is so special
18:42
<
abu[m] >
I can't concentrate now, let's discuss tomorrow
19:45
calle has joined #picolisp
19:49
alexshe43 has joined #picolisp
19:49
alexshendi has quit [Read error: Connection reset by peer]
22:22
alexshe43 has quit [Read error: Connection reset by peer]
22:23
alexshendi has joined #picolisp
22:40
calle has quit [Ping timeout: 252 seconds]
23:10
<
lagash >
Hello again! Finally got my hands on an 64-bit Android phone. It has this odd problem that the SD card is always mounted read-only. I don't have a spare card lying around - is there a way to load a .zip without writing to external storage? And without root access?
23:58
<
lagash >
Placing hello.zip into the internal storage, I'm always getting this error: "java.io.FileNotFoundException: /data/user/0/de.software_lab.pilbox/files/PIL-file:/storage/emulated/0/download/pilbox/hello: open failed: ENOENT (No such file or directory)"