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
alexshe33 has quit [Ping timeout: 268 seconds]
clacke has quit [Remote host closed the connection]
aw- has quit [Read error: Connection reset by peer]
aw- has joined #picolisp
alexshendi has joined #picolisp
Abhishek_ has quit [Quit: Connection closed for inactivity]
alexshendi has quit [Read error: Connection reset by peer]
alexshe32 has joined #picolisp
alexshe32 has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
<tankf33der> Now i think my probalistic isprime function is wrong on hyper huge numbers, i was too optimistic.
<abu[m]> Oh! I was thinking to use it in @lib/rsa.l
<tankf33der> now i must reimplement on hyper huge random numbers using gmp library
<tankf33der> picolisp random state is too small
<abu[m]> The algorithm cannot be written in PicoLisp? Or is it unknown?
<tankf33der> I need random function on any number of bits
<tankf33der> libgmp can do it
<abu[m]> In pil you can build a big random number easily
<abu[m]> 'rand' and '>>'
<tankf33der> This way, ok, i will play
<abu[m]> There is 'longRand' in @lib/rsa.l
<tankf33der> Hyper huge numbers for me is 100k digits and more
<abu[m]> it uses /dev/urandom instead of 'rand' though
<tankf33der> i understand direction, thanks
<tankf33der> Where is i can find latest rsa.l?
<abu[m]> Not sure if it is public. My latest one is this: http://ix.io/46d0
<abu[m]> Probably the latest public one is the last pil64 release
<tankf33der> Not included, checked on github
<tankf33der> i will safe your version.
<tankf33der> First i must implement longrand odd generator
<abu[m]> For an odd number, just shift left one bit and add 1?
alexshe89 has joined #picolisp
alexshendi has quit [Ping timeout: 240 seconds]
<tankf33der> i did this
<tankf33der> do you think this is ok ?
<abu[m]> I think it is a little less random
<tankf33der> I don understand how to implement your variation
<abu[m]> Better (inc (>> -1 (in "/dev/urandom" (rd N))))
<tankf33der> Testing
aw- has quit [Ping timeout: 244 seconds]
aw- has joined #picolisp
<tankf33der> lets keep additional bit variation
<tankf33der> today is my last vacation day.
<abu[m]> Enjoy it!
<tankf33der> random number must be more than 2
<abu[m]> I see. Should be very improbable for a big random number though ;)
<abu[m]> You could just add 2
<abu[m]> or add 999 or so
<tankf33der> switched to newer version
<abu[m]> I'm not sure what is the most random way
<tankf33der> test will take weeks
<abu[m]> Perhaps the safest is to simply generate a new number if it is even or less than 2
<abu[m]> Really? Heavy test.
<tankf33der> I want to be sure as much as possible
<tankf33der> 14:47 <abu[m]> Perhaps the safest is to simply generate a new number if it is even or less than 2
<tankf33der> i will do it this way
<tankf33der> after all
<abu[m]> Seems the safest, and speed is not important, right?
<tankf33der> right.
<tankf33der> Problem with longRand with loop it runs forever on small values
<tankf33der> (longRand 3) loops very long, so will stay version when i read urandom device once
<abu[m]> Then loop only if <= 2
<abu[m]> and odd is made by (inc .. (>>
<tankf33der> Will show code asap
<abu[m]> No hurry, we must watch footballl now (Germany / England)
alexshe89 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
<tankf33der> testing this variation
<tankf33der> could be even so i must handle only 2.
<tankf33der> afk.
<tankf33der> i sent tremendous amount of time on prime test and integer factorization this year.
<abu[m]> ret
<abu[m]> ☺
<abu[m]> I do not understand what the 'N' argument is
<abu[m]> In any case, technically the 'loop' is simply an 'until'
<abu[m]> And I don't understand why 2 is so special
<abu[m]> I can't concentrate now, let's discuss tomorrow
calle has joined #picolisp
alexshe43 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe43 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
calle has quit [Ping timeout: 252 seconds]
<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?
<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)"