<olleolleolle[m]>
I took a peek at the jbundler repo, and its using Travis, which... stopped. Should we attempt to get a GitHub Actions thing going for the repo?
<olleolleolle[m]>
I am asking on behalf of the warbler repo, which is sorta behind on releasing.
<enebo[m]>
olleolleolle: yeah GHA is the new black
<headius>
enebo: dunno if you saw this but SecureRandom.random_number is returning 0 all the time in 9.4
<headius>
something wrong in the series of methods I tried to convert over from CRuby... complicated bit math in there and something is not working right
<enebo[m]>
headius: is that why that regexp issue is fast?
<headius>
I haven't looked at that
<enebo[m]>
headius: I was trying to see what could have changed with regexp to see and you made thread-local change for match data but that would not make something go from 40s to 0.1s
<enebo[m]>
byteit101 I am getting undefined errno for SubSpawn::Win32::FFI
<enebo[m]>
haha
<byteit101[m]>
ooh, wait, which line?
<enebo[m]>
I am not logged into github or I could give you more exact string
<enebo[m]>
win32/pty.rb:202
<enebo[m]>
I had to make a script since CMD was very confused about seeing << in the -e (in addition to changing all quoting)
<enebo[m]>
but I made a script out of that
<byteit101[m]>
oh dear, IO.pipe may not be native pipes
<byteit101[m]>
JRuby or CRUby?
<enebo[m]>
JRuby
<enebo[m]>
I don't have C ruby installed there atm
<byteit101[m]>
Ok. Drat, I may have to upgrade JRuby's pipes
<byteit101[m]>
Alright thank you!
<byteit101[m]>
I think I have some work ahead of me
<enebo[m]>
byteit101: yeah np
<enebo[m]>
headius: so single argument random_number is almost always a zero return
<enebo[m]>
jruby -e 'p Random.random_number(3)'
<enebo[m]>
I did get a 2 once :)
<enebo[m]>
no argument version seems to give pretty random looking values between 0-1
<byteit101[m]>
headius: JRuby uses java Pipe.open, do you know if there is a way to get a windows handle from them? enebo's error above is because there was no associated handle & fileno with the (Ruby)IO
<headius>
We dig it out using reflection, probably do not have the right code in place for the Windows impl
<headius>
FilenoUtil
<headius>
ok so I have something working but it reuses the BigInteger path because of unsigned longs
<headius>
the CRuby code is very fancy with the bit math so that they can avoid passing through Bignum for large longs, but it makes the logic very hard to port