lucasb has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 256 seconds]
Antiarc has quit [Quit: ZNC 1.7.4+deb7 - https://znc.in]
Antiarc has joined #jruby
nirvdrum has joined #jruby
_whitelogger has joined #jruby
nirvdrum has quit [Ping timeout: 258 seconds]
nirvdrum has joined #jruby
postmodern has joined #jruby
<postmodern>
hello, if i've figured out how to optionally build C extensions for a ruby library via some hackery, should I still blacklist building native extensions for JRuby? Or has JRuby's C extension API improved? Or should I look into some new fangled way to also build Java Extensions for JRuby?
<kares[m]>
postmodern: C-extensions are defunct on JRuby, most gems provide a Java extension when necessary (or use ffi)
<postmodern>
kares[m], good to know. Next question, would native Java code that does CRC calculation be faster than pure Ruby code that gets optimized by the JVM?
<postmodern>
basically just doing lots of bit-math in a for loop
nirvdrum has quit [Ping timeout: 255 seconds]
ur5us has joined #jruby
rusk has joined #jruby
<kares[m]>
I think tons of bit math might be faster in Java but it depends - you should measure in a micro-benchmark
<kares[m]>
henry_bone: could you try `mvn clean package` on the 1.1-stable branch
<kares[m]>
there's some issues with specs boot but you can skip that using `mvn -Dmaven.test.skip=true package`
<kares[m]>
otherwise building as expected
shellac has joined #jruby
nirvdrum has joined #jruby
nirvdrum has quit [Ping timeout: 258 seconds]
ur5us has quit [Ping timeout: 240 seconds]
drbobbeaty has joined #jruby
nirvdrum has joined #jruby
<henry_bone>
thanks kares, I'll see how that goes
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<henry_bone>
1.1-stable and skipping tests got me to "BUILD SUCCESS"
<henry_bone>
thanks
nirvdrum has quit [Ping timeout: 265 seconds]
henry_bone has quit [Remote host closed the connection]
shellac has quit [Quit: Computer has gone to sleep.]
Liothen has quit [Ping timeout: 246 seconds]
Iambchop has quit [Read error: Connection reset by peer]
Iambchop has joined #jruby
Liothen has joined #jruby
shellac has joined #jruby
shellac has quit [Client Quit]
shellac has joined #jruby
lucasb has joined #jruby
nirvdrum has joined #jruby
<headius[m]>
postmodern: most likely faster in Java but as kares said it's worth measuring
<headius[m]>
No need to look for a new-fangled way to build extensions... there's rake-compiler out there that alreadty knows how to do it and there's maven plugins if you want to go that route. JRuby extensions are always built ahead of time, not locally, so no compiler is needed at install
<headius[m]>
If you're using a for loop it will definitely be faster in Java because that requires calling `each` and a block dispatch per iteration. A while loop would be significantly faster, but still probably not as fast as native code