<mjc_>
I'd be ok with something that spits out a ruby hash, maybe
<mjc_>
rather than xpath
<mjc_>
xpath seems super slow in most implementations I've been trying?
<lopex>
well, it's super fast on libxml
<mjc_>
I hate XML and wish I could just ignore it :(
<lopex>
recently I've been using http://mitmproxy.org/ - a python project and libxml python etree
<lopex>
I've been surprised by performance of libxml
<lopex>
lots of queries like //whatever and aboslutely not perf problems
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] dgutov opened issue #2978: jruby-head Travis run blows up with java.lang.NullPointerException's http://git.io/vTSqc
JRubyGithub has left #jruby [#jruby]
tcrawley is now known as tcrawley-away
colinsurprenant has joined #jruby
havenwood has joined #jruby
subbu has joined #jruby
<lopex>
mjc_: well I guess there wont be such a thing as parsing into ruby hash
<lopex>
because that wont reflect xml abilities
<lopex>
and most efort has been put already into xml parsers wrt performance enyways
<mjc_>
we don't need super complex parsing for this case
<mjc_>
activesupport's XmlMini adds a Hash.from_xml() thing
<mjc_>
been using that because it has been faster than XPath
<lopex>
but that always a subset of xml
<mjc_>
fine for our needs
<lopex>
which means it's not an xml
<lopex>
sure
mikemar10 has joined #jruby
<mjc_>
fortunately these services are pretty straightforward
camlow32_ has quit [Ping timeout: 264 seconds]
<mikemar10>
I'm working on a game using libgdx and jruby but I've hit a snag. For some reason I can use java_import on any class except for 1 (that I'm aware of). Whenever I try java_import com.badlogic.gdx.utils.Timer I get a 'cannot initialize Java class' error and it suggests I'm missing dependencies. I've thoroughly checked and am not missing any dependencies, and have reviewed the source for the class here https://github.com/libgdx/libgdx
<mikemar10>
/blob/master/gdx/src/com/badlogic/gdx/utils/Timer.java any suggestions as to what I might be missing? I've also tried setting up a module and using include_package 'com.badlogic.gdx.utils' but I still can't use Timer. Any other class within com.badlogic.gdx.utils is fine, only Timer is broken
bb010g has quit [Quit: Connection closed for inactivity]
<headius>
that error is pretty much always a jar not in classpath or something
<headius>
have you required every jar that you need for it?
dinfuehr has joined #jruby
<headius>
the other option would be that it can't load a native library
<mikemar10>
I have, I've checked multiple times and verified that $CLASSPATH has the correct jars
<headius>
I have to run but double-check the jars and try running with -verbose:jni passed to Java (-J-verbose:jni passed to JRuby) to see if it fails at the point of trying to load a native lib
<lopex>
and also check the rights
<lopex>
headius: what was that setting to spit original javatreces there ?
<headius>
-Xbacktrace.style=full ?
<mikemar10>
when you say rights do you mean filesystem permissions or is this a java concept? The filesystem permissions are correct, they're all owned by my user and 644
<headius>
full gives you a Java trace with Ruby lines stuffed into it
<headius>
raw gives you just the java trace, leaving interpreter frames etc
<mikemar10>
excellent! Thank you, I'll try those options
<headius>
mikemar10: probably a java concept...we use some native libs within JRuby and sometimes the paths are not quite right for other JNI libs to load
<headius>
like might be used by a graphics lib
<headius>
gotta run, bbl
dinfuehr has quit [Ping timeout: 245 seconds]
codefinger has joined #jruby
djbkd has quit [Remote host closed the connection]
<lopex>
mikemar10: sometimes strace is useful the check whether java really opened those jars
<lopex>
afaik strace outputs to err by default so 2>&1 will allow you to pipe that output the less or whatever
<mikemar10>
in this case I'm certain it did, I'm successfully able to load many other classes from the gdx.jar which contains the Timer one that is giving me trouble. I'm trying to put together a test now to see if any others within the com.badlogic.gdx.utils package fail
<lopex>
mikemar10: is there a security manager installed or soemthing ?
<mikemar10>
there shouldn't be, this is my personal mac and I don't have any kind of antivirus or other file scanner running or installed
<mikemar10>
bizarre.. It is _just_ that class
<mikemar10>
I just pulled out every class in the com.badlogic.gdx.utils package and did a java_import on them all, only Timer fails
<lopex>
that's weird
<lopex>
at this time I'd suspect broken class files or something
<lopex>
mikemar10: are you sure there's no collisions ?
<lopex>
jar loading order is still pretty undefined
<mikemar10>
let me try this same test but remove all jars except this one, maybe some other jar is conflicting
subbu has quit [Ping timeout: 256 seconds]
<mikemar10>
java_import always pulls in to the global namespace right? But include_package within a module should namespace java classes to that module. Is my understanding of that correct?
<lopex>
i guess so, I dont recall the specifics
<lopex>
mikemar10: as last resort I'd try to access that class from a java program
<lopex>
to rule out any jruby oddities
<mikemar10>
good idea, I'll try that now
nirvdrum has quit [Ping timeout: 258 seconds]
dinfuehr has joined #jruby
dinfuehr has quit [Ping timeout: 272 seconds]
benlovell has joined #jruby
djbkd has joined #jruby
<mikemar10>
lopex: I think you were right, I think it's something wrong in libgdx. I built a java test and I'm getting an initializer error there as well due to a null pointer exception. I'm going to try building libgdx from source and run the tests for that class. Thank you lopex & headius for being so helpful :)
benlovell has quit [Ping timeout: 264 seconds]
<lopex>
mikemar10: cool, I think you might get that original backtrace with that -Xbacktrace setting from jruby
djbkd has quit [Ping timeout: 265 seconds]
<lopex>
headius: ^^ but I think the issue remains as not to waste user time wrt that
havenwood has quit []
havenwood has joined #jruby
codefinger has quit [Remote host closed the connection]
<mikemar10>
ok turned out not to be a bug, I actually got my code to work. Looks like the issue is that in order for that Timer class that was giving me hell to even load it has to be within the main thread libgdx spawns. Having the java_import code outside my class didn't work, I was able to get it to work by using the full package name for the class within another class that is instantiated by the libgdx main thread
<mikemar10>
I'm just going to go ahead and chalk the last few hours up to PEBKAC lol
<mikemar10>
though I have to admit, the concept of being unable to import a class except from within a certain thread context strikes me as really bizarre
<mikemar10>
I don't know that I've ever encountered that before
<lopex>
but still, jruby should have given a more precise info imho
<lopex>
the initializer error is a crucial info
colinsurprenant has quit [Quit: colinsurprenant]
colinsurprenant has joined #jruby
colinsurprenant has quit [Client Quit]
<mikemar10>
true, I definitely wouldn't mind more precise info from jruby :)
e_dub has quit [Quit: Leaving]
dinfuehr has joined #jruby
kfpratt has joined #jruby
e_dub has joined #jruby
dinfuehr has quit [Ping timeout: 272 seconds]
codefinger has joined #jruby
havenwood has quit [Remote host closed the connection]
bjfish2 has quit [Quit: bjfish2]
KevinCorcoran has joined #jruby
KevinCorcoran has quit [Ping timeout: 258 seconds]
codefinger has quit [Read error: Connection reset by peer]
codefinger has joined #jruby
codefinger has quit [Remote host closed the connection]
codefinger has joined #jruby
dinfuehr has joined #jruby
dinfuehr has quit [Ping timeout: 255 seconds]
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #jruby
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #jruby
kfpratt has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #jruby
ponga has quit [Quit: Leaving...]
dinfuehr has quit [Remote host closed the connection]
dinfuehr has joined #jruby
tenderlove has quit [Read error: Connection reset by peer]
dinfuehr has quit [Ping timeout: 246 seconds]
tenderlove has joined #jruby
colinsurprenant has joined #jruby
dinfuehr has joined #jruby
dinfuehr has quit [Ping timeout: 250 seconds]
benlovell has joined #jruby
colinsurprenant has quit [Quit: colinsurprenant]
temporalfox has quit [Ping timeout: 255 seconds]
temporalfox has joined #jruby
abonas has quit [Ping timeout: 264 seconds]
temporalfox has quit [Ping timeout: 264 seconds]
abonas has joined #jruby
abonas has quit [Ping timeout: 250 seconds]
djbkd has joined #jruby
temporalfox has joined #jruby
djbkd has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 246 seconds]
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
temporal_ has joined #jruby
temporalfox has quit [Ping timeout: 276 seconds]
temporalfox has joined #jruby
tenderlove has quit [Ping timeout: 252 seconds]
temporal_ has quit [Ping timeout: 250 seconds]
tenderlove has joined #jruby
temporalfox has quit [Read error: Connection reset by peer]
temporalfox has joined #jruby
dinfuehr has joined #jruby
temporal_ has joined #jruby
temporalfox has quit [Read error: Connection reset by peer]
temporalfox has joined #jruby
bbrowning_away has quit [Quit: Leaving]
dinfuehr has quit [Ping timeout: 244 seconds]
temporal_ has quit [Ping timeout: 244 seconds]
temporal_ has joined #jruby
temporalfox has quit [Ping timeout: 265 seconds]
codefinger has joined #jruby
pjammer has joined #jruby
codefinger has quit [Ping timeout: 264 seconds]
temporal_ has quit [Read error: Connection reset by peer]
temporalfox has joined #jruby
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
temporal_ has joined #jruby
temporalfox has quit [Read error: Connection reset by peer]
tenderlove has quit [Read error: Connection reset by peer]
pjammer has joined #jruby
tenderlove has joined #jruby
bjfish2 has joined #jruby
dinfuehr has joined #jruby
tenderlove has quit [Read error: Connection reset by peer]
dinfuehr has quit [Ping timeout: 272 seconds]
tenderlove has joined #jruby
elia has joined #jruby
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shellac has joined #jruby
djbkd has joined #jruby
djbkd has quit [Ping timeout: 246 seconds]
shellac has quit [Quit: Computer has gone to sleep.]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] jirutka closed issue #2974: NotImplementedError: waitpid unsupported or native support failed to load on OS X 10.9.5 / OpenJDK 8 / rbenv http://git.io/vTymd
JRubyGithub has left #jruby [#jruby]
kfpratt has joined #jruby
benlovell has joined #jruby
benlovell has quit [Ping timeout: 258 seconds]
dinfuehr has joined #jruby
temporal_ has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 246 seconds]
kfpratt has quit [Ping timeout: 265 seconds]
temporalfox has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] bjfish opened issue #2979: [Truffle] Kernel#caller issue with caller_locations http://git.io/vTHBS
JRubyGithub has left #jruby [#jruby]
cajone has left #jruby [#jruby]
djbkd has joined #jruby
dinfuehr has joined #jruby
Havenn has joined #jruby
djbkd has quit [Ping timeout: 245 seconds]
elia has quit [Read error: Connection reset by peer]
elia has joined #jruby
elia has quit [Quit: Computer has gone to sleep.]
benlovell has joined #jruby
codefinger has joined #jruby
subbu has joined #jruby
codefinger has quit [Ping timeout: 244 seconds]
KevinCorcoran has joined #jruby
shellac has joined #jruby
KevinCorcoran has quit [Ping timeout: 264 seconds]
camlow325 has joined #jruby
subbu has quit [Quit: Leaving]
Havenn is now known as havenwood
camlow325 has quit [Remote host closed the connection]
mikemar10 has quit [Ping timeout: 240 seconds]
shellac has quit [Quit: Computer has gone to sleep.]
benlovell has quit [Ping timeout: 255 seconds]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] eregon pushed 1 new commit to master: http://git.io/vTQvD
<JRubyGithub>
jruby/master 0667de4 Benoit Daloze: [Truffle] Call #caller_locations on Kernel n #caller....