marr has quit []
bbrowning_away is now known as bbrowning
kfpratt has quit [Ping timeout: 244 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #jruby
iamjarvo has joined #jruby
vikaton has joined #jruby
temporalfox has joined #jruby
temporal_ has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #jruby
yfeldblum has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KevinCorcoran has quit [Remote host closed the connection]
tcrawley-away is now known as tcrawley
yfeldblum has joined #jruby
camlow325 has quit []
tcrawley is now known as tcrawley-away
_djbkd has quit [Quit: My people need me...]
bbrowning is now known as bbrowning_away
rcvalle has quit [Quit: rcvalle]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/vUEbu
<JRubyGithub> jruby/master 7c29362 Chris Seaton: [Truffle] Hash load balance and resize.
JRubyGithub has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to truffle-head: http://git.io/vUEbo
<JRubyGithub> jruby/truffle-head c0d2d92 Chris Seaton: Merge branch 'master' into truffle-head
JRubyGithub has left #jruby [#jruby]
pitr-ch_ has quit [Ping timeout: 272 seconds]
pitr-ch has joined #jruby
nirvdrum has quit [Ping timeout: 246 seconds]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] bjfish pushed 1 new commit to master: http://git.io/vUEhO
<JRubyGithub> jruby/master dec6bbd Brandon Fish: [Truffle] Add test_exception to mri test index.
JRubyGithub has left #jruby [#jruby]
pitr-ch has quit [Ping timeout: 256 seconds]
pitr-ch has joined #jruby
pitr-ch has quit [Read error: Connection reset by peer]
iamjarvo has joined #jruby
pitr-ch has joined #jruby
tcrawley-away is now known as tcrawley
tcrawley is now known as tcrawley-away
rcvalle has joined #jruby
KevinCorcoran has joined #jruby
pitr-ch has quit [Ping timeout: 240 seconds]
pitr-ch has joined #jruby
KevinCorcoran has quit [Ping timeout: 256 seconds]
mitchellhenke has joined #jruby
rcvalle has quit [Quit: rcvalle]
rcvalle has joined #jruby
rcvalle has quit [Client Quit]
kfpratt has joined #jruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has joined #jruby
yfeldblum has quit [Ping timeout: 256 seconds]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:829740f by Chris Seaton): The build was broken. (http://travis-ci.org/jruby/jruby/builds/62144331)
travis-ci has left #jruby [#jruby]
mitchellhenke has joined #jruby
yfeldblu_ has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #jruby
colinsurprenant has quit [Quit: colinsurprenant]
mpapis has quit [Ping timeout: 264 seconds]
mpapis has joined #jruby
Antiarc has quit [Read error: Connection reset by peer]
thang has quit [Ping timeout: 264 seconds]
thang has joined #jruby
Antiarc has joined #jruby
kfpratt has quit [Ping timeout: 264 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] subbuss closed issue #2916: Multiple assignment has too much overhead http://git.io/vUv16
JRubyGithub has left #jruby [#jruby]
subbu has joined #jruby
KevinCorcoran has joined #jruby
subbu has quit [Quit: Leaving]
KevinCorcoran has quit [Ping timeout: 255 seconds]
bjfish2 has quit [Quit: bjfish2]
kfpratt has joined #jruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #jruby
kfpratt has quit [Ping timeout: 276 seconds]
KevinCorcoran has joined #jruby
skade has joined #jruby
KevinCorcoran has quit [Ping timeout: 246 seconds]
dinfuehr has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:9250f25 by Subramanya Sastry): The build was broken. (http://travis-ci.org/jruby/jruby/builds/62175866)
travis-ci has left #jruby [#jruby]
koichiro_zzz0 is now known as koichiro_zzz
mcclurmc has quit [Remote host closed the connection]
mcclurmc_ has joined #jruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
donV has quit [Quit: donV]
deobalds has joined #jruby
mcclurmc_ has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
rsim has joined #jruby
mberg has quit [Ping timeout: 264 seconds]
mberg has joined #jruby
mberg is now known as Guest10260
yfeldblum has quit [Ping timeout: 265 seconds]
kfpratt has joined #jruby
kfpratt has quit [Ping timeout: 276 seconds]
yfeldblum has joined #jruby
yfeldblu_ has joined #jruby
yfeldblum has quit [Read error: Connection reset by peer]
djellemah_ has joined #jruby
dinfuehr has quit [Remote host closed the connection]
pitr-ch has quit [Ping timeout: 265 seconds]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] kares opened issue #2933: "regression" when loading jars (due class-loader isolation) http://git.io/vUuFY
JRubyGithub has left #jruby [#jruby]
mister_solo has joined #jruby
mister_solo has quit [Client Quit]
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #jruby
dinfuehr has joined #jruby
deobalds has quit [Quit: Computer has gone to sleep.]
marr has joined #jruby
djellemah_ has quit [Ping timeout: 272 seconds]
vtunka has joined #jruby
jimbaker has quit [Ping timeout: 250 seconds]
jimbaker has joined #jruby
jimbaker has quit [Changing host]
jimbaker has joined #jruby
drbobbeaty has joined #jruby
skade has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #jruby
eregon has quit [Quit: No Ping reply in 180 seconds.]
eregon has joined #jruby
shellac has joined #jruby
SuperTaz has quit [Ping timeout: 255 seconds]
SuperTaz has joined #jruby
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheBrayn has quit [Quit: ZNC - http://znc.in]
TheBrayn has joined #jruby
TheBrayn has quit [Quit: ZNC - http://znc.in]
jimbaker has quit [Ping timeout: 255 seconds]
jimbaker has joined #jruby
jimbaker has quit [Changing host]
jimbaker has joined #jruby
pitr-ch has joined #jruby
kfpratt has joined #jruby
TheBrayn has joined #jruby
kfpratt has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
TheBrayn has quit [Quit: ZNC - http://znc.in]
skade has joined #jruby
TheBrayn has joined #jruby
arturaz has joined #jruby
dumdedum has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] kares closed issue #2933: "regression" when loading jars (due class-loader isolation) http://git.io/vUuFY
JRubyGithub has left #jruby [#jruby]
drbobbeaty has joined #jruby
<chrisseaton> Travis status says all-green but the site still doesn't seem to be working well for me - anyone else?
dinfuehr has quit [Remote host closed the connection]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] eregon pushed 1 new commit to master: http://git.io/vUzxF
<JRubyGithub> jruby/master f93682c Benoit Daloze: [Truffle] Call it load factor, as Java HashMap calls it.
JRubyGithub has left #jruby [#jruby]
skade has quit [Quit: Computer has gone to sleep.]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/vUgfF
<JRubyGithub> jruby/master 8271b9c Chris Seaton: [Truffle] verifyStore should always be behind an assert.
JRubyGithub has left #jruby [#jruby]
<chrisseaton> Really surprising: RubyArray#get converts the object to Java?
nirvdrum has joined #jruby
kfpratt has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/vUgmU
<JRubyGithub> jruby/master cf0bfa9 Chris Seaton: [Truffle] Fix converting JRuby arrays to Truffle arrays, so fixing a lot of #unpack
JRubyGithub has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton closed issue #2931: [Truffle] String#unpack is returning Strings instead of RubyStrings http://git.io/vURNj
JRubyGithub has left #jruby [#jruby]
yfeldblum has quit [Ping timeout: 265 seconds]
kfpratt has quit [Ping timeout: 272 seconds]
pitr-ch has quit [Ping timeout: 246 seconds]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:f93682c by Benoit Daloze): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62219108)
travis-ci has left #jruby [#jruby]
djellemah_ has joined #jruby
skade has joined #jruby
lance|afk is now known as lanceball
alderamin has joined #jruby
tcrawley-away is now known as tcrawley
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] eregon pushed 3 new commits to master: http://git.io/vUgnQ
<JRubyGithub> jruby/master 05eabb6 Benoit Daloze: [Truffle] Undefined Allocator for class which are only internally instantiated....
<JRubyGithub> jruby/master fb84fbc Benoit Daloze: [Truffle] Do not allow to allocate Bignum in user code....
<JRubyGithub> jruby/master fc3d39e Benoit Daloze: [Truffle] Make RubyBasicObject.EMPTY_SHAPE static....
JRubyGithub has left #jruby [#jruby]
<alderamin> I made a mistake in starting a few computing-intensive processes without the --server switch last night before going to bed. What was taking 7-8 hours with the --server switch is now at 11 hours. Is there any remotely accurate way to gauge time to completion? There's no status indicator or any way for me to query the process. It just runs until it's done.
<chrisseaton> eregon: if you are working on Bignum, I'd like to find a way to make the value final - at the moment the code paths don't make that easy
<eregon> chrisseaton: it is final now I think, no?
<chrisseaton> eregon: I don't think so - I removed the final flag when I copied from Mutex as we need to set it initialize
<eregon> yeah, just fixed that
<chrisseaton> Ah ok
mcclurmc has joined #jruby
<eregon> EMPTY_SHAPE is static now so it's easy and I also undefined the allocator to match MRI semantics
<chrisseaton> ah yes of course - didn't think of that
<eregon> they even undef new for some classes, not sure the value of doing that if #allocate raise anyway
<lopex> chrisseaton: because it's from List interface for JI purposes
<chrisseaton> ah
djellemah_ has quit [Ping timeout: 272 seconds]
<lopex> Array implements List and Hash implements Map, so methods from those interfaces will convert
DrShoggoth has joined #jruby
bbrowning_away is now known as bbrowning
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:8271b9c by Chris Seaton): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62219976)
travis-ci has left #jruby [#jruby]
DrShoggoth has quit [Quit: Leaving]
kfpratt has joined #jruby
kfpratt has quit [Ping timeout: 246 seconds]
kfpratt has joined #jruby
vikaton has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] kares opened issue #2934: toJava conversion regression when binding to JNDI http://git.io/vUgaN
JRubyGithub has left #jruby [#jruby]
alderamin has quit []
oko has joined #jruby
iamjarvo has joined #jruby
bjfish2 has joined #jruby
mcclurmc has quit [Remote host closed the connection]
iamjarvo has quit [Client Quit]
enebo has joined #jruby
<chrisseaton> headius: hopefully this will give you some confidence in Truffle threading https://twitter.com/smarr/status/598110142891196416
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] bjfish pushed 1 new commit to master: http://git.io/vUg6C
<JRubyGithub> jruby/master e0e18f1 Brandon Fish: [Truffle] Add test_readpartial.rb to mri test index.
JRubyGithub has left #jruby [#jruby]
jmartin has joined #jruby
KevinCorcoran has joined #jruby
KevinCorcoran has quit [Ping timeout: 264 seconds]
colinsurprenant has joined #jruby
alderamin has joined #jruby
iamjarvo has joined #jruby
dinfuehr has joined #jruby
mje113__ has joined #jruby
dinfuehr has quit [Remote host closed the connection]
dinfuehr has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:fc3d39e by Benoit Daloze): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62225560)
travis-ci has left #jruby [#jruby]
dumdedum has quit [Ping timeout: 255 seconds]
nateberkopec has joined #jruby
mcclurmc has joined #jruby
mcclurmc has quit [Remote host closed the connection]
brightball has joined #jruby
subbu has joined #jruby
cajone has left #jruby [#jruby]
colinsurprenant has quit [Quit: colinsurprenant]
KevinCorcoran has joined #jruby
rcvalle has joined #jruby
KevinCorcoran has quit [Ping timeout: 255 seconds]
deobalds has joined #jruby
balo has quit [Ping timeout: 240 seconds]
balo has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:e0e18f1 by Brandon Fish): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62234034)
travis-ci has left #jruby [#jruby]
mcclurmc has joined #jruby
TheBrayn has left #jruby ["WeeChat 1.1.1"]
mcclurmc has quit [Remote host closed the connection]
colinsurprenant has joined #jruby
subbu is now known as subbu|breakfast
arturaz has quit [Ping timeout: 255 seconds]
<dinfuehr> i am using jruby 1.7. one server starts with 1.9 per default and another with 1.8. I thought 1.9 is the default in jruby 1.7. Why could that be the case?
<lopex> JRUBY_OPTS ?
djellemah_ has joined #jruby
mcclurmc has joined #jruby
<dinfuehr> JRUBY_OPTS is not set. the server which starts in 1.8 has a x86 processor. could that be the reason?
<dinfuehr> and JDK 6
donV has joined #jruby
deobalds has quit [Quit: Computer has gone to sleep.]
<lopex> what does ps on that java process say ?
subbu|breakfast is now known as subbu
<dinfuehr> one says: jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on OpenJDK Server VM 1.6.0_20-b20 +jit [linux-i386], the other jruby 1.7.16 (ruby-1.8.7p370) 2014-09-25 575b395 on OpenJDK 64-Bit Server VM 1.6.0_0-b16 +jit [linux-amd64]
rsim has quit [Quit: Leaving.]
<dinfuehr> The amd64 server uses 1.8 per default
<dinfuehr> `env | grep JRUBY_OPTS` is empty for both servers
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 2 new commits to master: http://git.io/vU2Kp
<JRubyGithub> jruby/master 14ae2c4 Thomas E. Enebo: Simplification of ruby_sourceline
<JRubyGithub> jruby/master e4ce268 Thomas E. Enebo: Disable opttempvars for -X-C and JIT. The recent optimizations to fix multiple assignment...
JRubyGithub has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] eregon pushed 8 new commits to master: http://git.io/vU26Y
<JRubyGithub> jruby/master 66f055a Benoit Daloze: [Truffle] Add a comment on the cyclic Class#name case.
<JRubyGithub> jruby/master b1d476a Benoit Daloze: [Truffle] Remove usage of getSingletonClass() in ModuleNodes.
<JRubyGithub> jruby/master 85c5875 Benoit Daloze: [Truffle] Remove usage of getSingletonClass() in UnresolvedDispatchNode.
JRubyGithub has left #jruby [#jruby]
<enebo> wow I beat eregon by seconds!
<enebo> things should become green again
pitr-ch has joined #jruby
<eregon> :)
camlow325 has joined #jruby
pitr-ch has quit [Ping timeout: 256 seconds]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/vU21v
<JRubyGithub> jruby/master 43b68cd Chris Seaton: [Truffle] Optimise Array#pop()
JRubyGithub has left #jruby [#jruby]
deobalds has joined #jruby
KevinCorcoran has joined #jruby
deobalds has quit [Client Quit]
<lopex> dinfuehr: ps aux on that java process
chamila has joined #jruby
brightball has quit [Ping timeout: 256 seconds]
vtunka has quit [Quit: Leaving]
pitr-ch has joined #jruby
<dinfuehr> lopex: i used `jruby &` to do that: /usr/lib64/jvm/java/bin/java -Xmx500m -Xss2048k -Djffi.boot.library.path=/opt/jruby-1.7.16/lib/jni -Xbootclasspath/a:/opt/jruby-1.7.16/lib/jruby.jar -classpath : -Djruby.home=/opt/jruby-1.7.16 -Djruby.lib=/opt/jruby-1.7.16/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/vU2bb
<JRubyGithub> jruby/master 2e8f5e6 Chris Seaton: [Truffle] Array allocation sites weren't really being used.
JRubyGithub has left #jruby [#jruby]
shellac has quit [Quit: -> home]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest10260 is now known as mberg
skade has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #jruby
mike_c_11 has quit [Read error: Connection reset by peer]
skade has joined #jruby
_djbkd has joined #jruby
bbrowning is now known as bbrowning_away
mkristian has joined #jruby
chamila has quit [Ping timeout: 246 seconds]
JRubyGithub has joined #jruby
travis-ci has joined #jruby
<JRubyGithub> jruby/master 743b0dc Benoit Daloze: [Truffle] Do not call undefined methods with debug send.
<JRubyGithub> jruby/master 28af3af Benoit Daloze: [Truffle] Silence shadowed variable warning when running MSpec.
<JRubyGithub> [jruby] eregon pushed 2 new commits to master: http://git.io/vUaWP
JRubyGithub has left #jruby [#jruby]
<travis-ci> jruby/jruby (master:e4ce268 by Thomas E. Enebo): The build was fixed. (http://travis-ci.org/jruby/jruby/builds/62255493)
travis-ci has left #jruby [#jruby]
AlHafoudh has joined #jruby
<enebo> yippee
tenderlove has quit [*.net *.split]
dling has quit [*.net *.split]
errstr has quit [*.net *.split]
Osho has quit [*.net *.split]
Osho_ has joined #jruby
errstr has joined #jruby
tenderlove has joined #jruby
dling has joined #jruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] eregon pushed 1 new commit to master: http://git.io/vUaR0
<JRubyGithub> jruby/master ae14341 Benoit Daloze: [Truffle] Use Truffle 0.7 from the Sonatype repository.
JRubyGithub has left #jruby [#jruby]
chamila has joined #jruby
bbrowning_away is now known as bbrowning
x1337807x has joined #jruby
iamjarvo has joined #jruby
<chamila> how can I convert a fixnum into a java int?
<chrisseaton> getIntValue
<chrisseaton> but there's no guarantee it will fit into an int, and it will be silently truncated if it doesn't
<chrisseaton> so I wouldn't use it unless you have a very good reason
<chamila> what would be preferred here?
<chrisseaton> Just deal in longs rather than ints
<chrisseaton> A Fixnum in JRuby is 64bit, so why would you want to put it into an int unless you're doing something special?
<chamila> hmm, here this value refers to the indent of json docs create, it won't have a meaning if I used it as a float
<chrisseaton> Not quite sure what you mean - how is float involved?
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:ceaf178 by Benoit Daloze): The build was fixed. (http://travis-ci.org/jruby/jruby/builds/62255545)
travis-ci has left #jruby [#jruby]
<chamila> This value is passed through ruby, as a IRubyObject, I need to get int value from it
mitchellhenke has joined #jruby
<chamila> I thought it would have read from java as Fixnum
<chamila> actually what I have is a IRubyObhect
<chamila> Object
TheBrayn has joined #jruby
<chamila> I'm referring to https://github.com/ohler55/oj/blob/master/ext/oj/oj.c#L314 of the C code
<mjc_> are you reimplementing oj in java?
<chamila> yes
<mjc_> ah, that makes way more sense to me now
<mjc_> have you looked at other java interop gems for json stuff? like jrjackson (https://github.com/guyboertje/jrjackson/blob/master/lib/jrjackson/jrjackson.rb)
<mjc_> looks like they tend to make a tiny ruby wrapper for this stuff
<chamila> I discussed with headius and what he advise was to keep what oj currently implemented in ruby as ruby, and port C stuff to java
<chrisseaton> chamila: yeah but I don't get why you mentioned float - you've got a Fixnum - if you want to do something with it in Java code, call getLongValue(), and you'll get a long
<mjc_> the other option is how the json gem reads things like this https://github.com/flori/json/blob/master/java/src/json/ext/OptionsReader.java#L59-L64
<chrisseaton> oh if you're concerned you may have a RubyFloat instead, just use instanceof
<chamila> chrisseaton: Ahh sorry, when u say using int is a bad idea, I thought u r recommending float, sorry my bad, long didn't came into my mind
<chrisseaton> chamila: the only exception is if you're indexing an array - then you'll need an int
<chamila> What I currently have used is int since in C implementation, they have used int, I prefer to keep same here as well
brightball has joined #jruby
<lopex> enebo: how do I call java.lang.reflect.Field.setInt via JI ?
<enebo> lopex: you already have the field?
<lopex> yes
<lopex> enebo: plain old Field#modifiers
<enebo> field.int = some_fixnum
<enebo> this must not be what you are asking?
<lopex> I have an instance
<lopex> and it complaints about not having int= still
<enebo> lopex: This is a static method isn’t it?
<lopex> no
<enebo> Field.set_int(my_field, my_fixnum)
<lopex> well, the other is
<lopex> no set_int on it
dinfuehr_ has joined #jruby
<lopex> private int java.lang.reflect.Field.modifiers
<lopex> enebo: yeah, that's why I'm sumbled
<lopex> *stumbled
<lopex> there indeed is set_value, but I need set_int
<enebo> there is a set_int?
<lopex> no
<enebo> lopex: you have an instance of java.lang.reflect.Field but not setInt on it?
lanceball is now known as lance|afk
<lopex> that's right
<lopex> and no other set* ones
<lopex> and neither get*
dinfuehr has quit [Ping timeout: 245 seconds]
<enebo> and if you java_class.get_class.get_simple_name what displays?
dinfuehr_ has quit [Ping timeout: 255 seconds]
<lopex> NoMethodError: undefined method `java_class' for private int java.lang.reflect.Field.modifiers:Java::JavaField
<lopex> after java.lang.reflect.Field.java_class.declared_field('modifiers')
vikaton has quit []
<lopex> just plain old code to unfinalize a field
<chrisseaton> chamila: if you want to use int you'll have to check the size of every Fixnum every time you call getIntValue - otherwise you risk silent errors
<enebo> lopex: so some wacky internal field type
<lopex> yeah
<enebo> oh Java::JavaField
<enebo> hmmm
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/vUaHI
<JRubyGithub> jruby/master 2416cd3 Chris Seaton: [Truffle] Continue to reduce duplication in array nodes.
JRubyGithub has left #jruby [#jruby]
<lopex> enebo: I believe set_value might to switching based on type
<lopex> *be
<lopex> *should :)
<enebo> lopex: so this is an internal JRuby thing
<enebo> lopex: worst-case you can just field.value to get the real field
<lopex> final Object javaValue = convertValueToJava(value);
<lopex> then it does field.set(null, javaValue);
<enebo> lopex: but you probably want the field without a wrapper at all
<chamila> chrisseaton: ah okay, thanks, seems like long is the better option
<lopex> enebo: yes
<lopex> oh getValue ?
<enebo> lopex: but just see if .value on that field will work
<enebo> @JRubyMethod value ()
bbrowning is now known as bbrowning_away
<lopex> Can not set int field java.lang.reflect.Field.modifiers to java.lang.Integer
<enebo> value.set_int(5.to_java(:int))
<enebo> lopex: Not sure why it would not do that though
<enebo> automatically
<lopex> no set_int
<enebo> when you call .value on the field?
<lopex> yeah, and it complains about it's param
<lopex> mods.value(5.to_java(:int))
<enebo> mods.value.set_int(5.to_java(:int))
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:43b68cd by Chris Seaton): The build was fixed. (http://travis-ci.org/jruby/jruby/builds/62256627)
travis-ci has left #jruby [#jruby]
<lopex> value requires an arg
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 4 new commits to master: http://git.io/vUa5Q
<JRubyGithub> jruby/master 8a3b1ae Thomas E. Enebo: Re-enable testing MRI proc tests. Add Binding#local_variables
<JRubyGithub> jruby/master 445a63f Thomas E. Enebo: Implement Binding#local_variable_get
<JRubyGithub> jruby/master a4e83bf Thomas E. Enebo: Implement Binding#local_variable_defined?
JRubyGithub has left #jruby [#jruby]
<enebo> heh
<enebo> we should try and get you a real java.lang.reflect.Field
<enebo> This JavaField is nonsense
djellemah has quit [Ping timeout: 264 seconds]
jmartin has quit [Ping timeout: 246 seconds]
djellemah_ has quit [Ping timeout: 264 seconds]
<chamila> Is there a way I can get a ThreadContext object to declare static veriable outside methods, where I can't pass it as an arguement?
<enebo> chamila: I don’t quite parse…you want an instance of ThreadContext?
<chamila> yes
<lopex> enebo: want to see what worked ?
<enebo> lopex: sure why not
<lopex> you need both to_java(Field)
<enebo> chamila: typically you get acquire from @JRubyMethods if you just add it as first parameter to the java method but if you cannot do that you can get it from Ruby.getCurrentContext().
<enebo> lopex: hmm we must have some logic which converts reflect Fields to JavaField
<enebo> lopex: but nothing which goes the other way
<chamila> enebo: I think Ruby.getCurrentContext will work, I can't get it as a arguement since I am planning to use it outside a method globally to declare static final constant
<enebo> chamila: if you use multiple threads you cannot cache threadcontext unless you know you will always be calling stuff using the same thread
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chamila> enebo: what I want to do is "private static RubySymbol indentSymbol = RubySymbol.newSymbol(Ruby.getCurrentContext().runtime, "indent");",in a place like https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/RubyClass.java#L103
<chamila> it may get accessed by more than 1 thread
<enebo> chamila: ultimately you may be asking for trouble making a static cache of any Ruby type in Java since it is easy to leak runtimes (consider doing this in an app server)
yfeldblum has joined #jruby
<enebo> all instances of Ruby objects will retain a hard reference to Ruby which then holds a reference to the entire runtime
<chamila> enebo: Is there any way I can create similar RubySymbol without using context of runtime?
subbu is now known as subbu|lunch
<enebo> chamila: actually in this case you are using the instance of runtime and not ThreadContext but in either case you are holding a reference to the runtime by retaining an instance
<enebo> chamila: I guess it depends on how you are setting up your Ruby runtime instance though
<enebo> chamila: are you using ScriptingContainter or how are you initializing the runtime
<mjc_> chamila: please don't do things that could leak runtimes, super painful for those of us who use app servers :(
<chamila> enebo: I don't have much idea about that stuff
<enebo> chamila: what are you working on? Perhaps that will help figure out best way to do this
<chamila> enebo: I am porting https://github.com/ohler55/oj to jruby
<enebo> chamila: ideally if you are to make a symbol you should be doing runtime.newSymbol(“foo”)
<enebo> chamila: then you definitely do not want to use any static fields
<enebo> chamila: if n jruby runtimes are started up in a single JVM you will not get the behavior you desire :)
<chamila> enebo: https://github.com/cdwijayarathna/oj4j this is what I have by now
<enebo> chamila: so are you trying to simplify all these symbols here to be a single one?
<enebo> I am looking at Oj.java
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:2e8f5e6 by Chris Seaton): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62260932)
travis-ci has left #jruby [#jruby]
lance|afk is now known as lanceball
<enebo> chamila: StringWriter.java has a runtime field but you inherit from RubyObject so you can just call getRuntime() if you need it
<chamila> enebo: no, here same sysbol object used again and again in other methods as well,I have implemented only 1 yet, so I thought of using 1 object without creatin objects again and again
<enebo> chamila: I would make an instance of some sorts to contain these and pass that instance into each class which needs them in OjLibrary.load
oko has left #jruby ["peace ! i'm out !!"]
<enebo> chamila: then if Oj is loaded by multiple runtimes in the same JVM they will have their own proper copy of the symbol
<chamila> Oj.java has module level methods, which are declare static in java, so StringWriter may not have initialized at the time methods in Oj get called
<enebo> at the top of load() you create Oj before StreamWrtier and StringWriter but regardless at the time you call load() none of this extension has been loaded yet and you ahve a reference to Ruby so you can make symbols and then somehow pass them into the classes which need them
<enebo> I am trying to think of best way to pass in a context object
<chamila> enebo: so u r suggesting to create StringWriter before Oj in load and pass it's Runtime to Oj?
<enebo> chamila: no. I am thinking some type (any type) can contain references to created Symbols and any classes you make (like Oj or StringWriter) can get a reference to this instance. Then they can call methods getModeSymbol() which just returns the same :mode
<enebo> chamila: It is possible the easiest was is to use Oj itself for this purpose
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
<enebo> chamila: you actually make Oj first
iamjarvo has joined #jruby
<chamila> enebo: for now I only need symbols for class Oj
<enebo> chamila: then ((Oj) runtime.getConstant(“Oj”)).getModeSymbol() can be used
<enebo> chamila: and there is only a single Oj ever made?
<chamila> Oj is the module, it only has static methods, which can be called as Oj,dump, etc
<chamila> Oj.dump
<enebo> chamila: I see part of the problem but I also realized that perhaps you should not worry about this
iamjarvo_ has joined #jruby
iamjarvo_ has quit [Max SendQ exceeded]
<enebo> chamila: runtime.newSymbol() is actually a get or create
<enebo> chamila: so you will be doing a table lookup per call but you will not actually be making new symbols
iamjarvo_ has joined #jruby
<enebo> chamila: as a module you would need to do some lookup to do this properly
<enebo> chamila: so you would have to runtime.getConstant then cast that to ask for a sylbol
<enebo> chamila: but you absolutely cannot use static fields
<enebo> chamila: so I say use runtime.newSymbol(name) and depend on our symbol cache
<chamila> enebo: I can simply repeat "RubySymbol.newSymbol(Ruby.getCurrentContext().runtime, "indent")" , I thought its better to declare them only once sice C code have done so
<chamila> enebo: but I think for now repeating that would be the better option
iamjarvo has quit [Ping timeout: 256 seconds]
<enebo> chamila: 2 things: 1) Oj is a module and has no state. You cannot use static so you need to retrieve them from something. 2) I think you will always have either threadContext or ruby already available to you in Oj
<enebo> chamila: we have played tricks with storing values as weird names in instance var table but that is still a lookup against a table
<chamila> enebo: I don't get 2
<enebo> chamila: all of your code is executing under a @JRubyMethod
<enebo> chamila: your original question came only out of wanting a static field
<enebo> chamila: so I don’t think that is a concern any more
robbyoconnor has quit [Ping timeout: 264 seconds]
<chamila> enebo: yeah, I also think so
<chamila> enebo: thanks for ur time
<enebo> chamila: sure np
mitchellhenke has quit [Quit: Computer has gone to sleep.]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/vUVlP
<JRubyGithub> jruby/master 5720901 Thomas E. Enebo: Fix MRI Proc.to_s failures
JRubyGithub has left #jruby [#jruby]
skade has quit [Quit: Computer has gone to sleep.]
colinsurprenant has quit [Quit: colinsurprenant]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:28af3af by Benoit Daloze): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62268413)
travis-ci has left #jruby [#jruby]
<mjc_> chamila: I'm excited to see how oj4j goes, if it can outperform jrjackson :)
<chamila> mjc_: thanks, we'll see, In MRI it has outperformed almost all json parsers, I hope it would add some value to jruby as well
<mjc_> I like its oj_mimic_json stuff and have been thinking about building something like that for jrjackson
<chamila> mjc_ : cool
<mjc_> it's a pain trying to use other json libs with activemodel serializers and such now
mitchellhenke has joined #jruby
chamila has quit [Quit: Page closed]
rsim has joined #jruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JRubyGithub has joined #jruby
JRubyGithub has left #jruby [#jruby]
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/vUVwp
<JRubyGithub> jruby/master 7501519 Thomas E. Enebo: Fix Proc#arity failures in test:mri
subbu|lunch is now known as subbu
skade has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:ae14341 by Benoit Daloze): The build was broken. (http://travis-ci.org/jruby/jruby/builds/62270024)
travis-ci has left #jruby [#jruby]
bbrowning_away is now known as bbrowning
camlow32_ has joined #jruby
camlow32_ has quit [Remote host closed the connection]
camlow32_ has joined #jruby
camlow325 has quit [Ping timeout: 264 seconds]
iamjarvo_ has quit [Ping timeout: 265 seconds]
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:2416cd3 by Chris Seaton): The build was broken. (http://travis-ci.org/jruby/jruby/builds/62276123)
travis-ci has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 2 new commits to master: http://git.io/vUVhV
<JRubyGithub> jruby/master 7491353 Chris Seaton: [Truffle] Updates to the array mirror.
<JRubyGithub> jruby/master 215521c Chris Seaton: [Truffle] Optimize Array#concat
JRubyGithub has left #jruby [#jruby]
x1337807x has joined #jruby
Osho_ is now known as Osho
camlow32_ has quit [Remote host closed the connection]
camlow325 has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/vUwt6
<JRubyGithub> jruby/master d0132ad Thomas E. Enebo: I booched a method on signature which was returning required + opt vs just required
JRubyGithub has left #jruby [#jruby]
rsim has quit [Quit: Leaving.]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/vUwqd
<JRubyGithub> jruby/master 7c78686 Thomas E. Enebo: Empty tag files?
JRubyGithub has left #jruby [#jruby]
yfeldblum has quit [Ping timeout: 265 seconds]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:a2b34ef by Thomas E. Enebo): The build was broken. (http://travis-ci.org/jruby/jruby/builds/62277112)
travis-ci has left #jruby [#jruby]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camlow325 has quit [Remote host closed the connection]
iamjarvo has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/vUwsX
<JRubyGithub> jruby/master 7e94aec Thomas E. Enebo: Fix specs where proc passed to lambda stays a proc?
JRubyGithub has left #jruby [#jruby]
iamjarvo has quit [Remote host closed the connection]
yfeldblum has joined #jruby
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
camlow325 has joined #jruby
camlow325 has quit [Remote host closed the connection]
camlow325 has joined #jruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #jruby
_djbkd has quit [Read error: Connection reset by peer]
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
_djbkd has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:5720901 by Thomas E. Enebo): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62284379)
travis-ci has left #jruby [#jruby]
iamjarvo has joined #jruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
CustosLimen has joined #jruby
<CustosLimen> hi
<nirvdrum> Hi.
<CustosLimen> so I'm trying to use gem-maven-plugin - and have it install gems in my home dir ~/.gem/
<CustosLimen> but I'm a bit unsure what to do about GEM_HOME
<CustosLimen> GEM_HOME="${HOME}/.gem/jruby/" GEM_PATH="${GEM_HOME}" mvn ?
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/vUwgG
<JRubyGithub> jruby/master 04635bf Chris Seaton: [Truffle] Findbugs.
JRubyGithub has left #jruby [#jruby]
donV has quit [Quit: donV]
<CustosLimen> I did this, and it installs asciidoctor-diagram in ~/.gem/jruby
<CustosLimen> but then it complains it cant find it
tcrawley is now known as tcrawley-away
bbrowning is now known as bbrowning_away
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/vUwa8
<JRubyGithub> jruby/master 2774d78 Thomas E. Enebo: method.to_proc was providing 1-indexed line and not 0-indexed
JRubyGithub has left #jruby [#jruby]
rcvalle has quit [Quit: rcvalle]
alderamin has quit []
<CustosLimen> ;(
<CustosLimen> sux
lanceball is now known as lance|afk
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mkristian> CustosLimen, just let gem-maven-plugin install the gems in its default place which is target/rubygems
<CustosLimen> mkristian, slowness ;(
<mkristian> CustosLimen, but only after a clean
<CustosLimen> mkristian, this is what I would like to avoid
<mkristian> maybe use something like ${user.home}/.m2/rubygems
<mkristian> CustosLimen, this user-install directories are difficult. and set gem.home and gem.path properties inside you pom.xml
<CustosLimen> mkristian, I will once I got it working
<CustosLimen> but I think I know whats wrong
<CustosLimen> its cos I'm using asciidoctorj through the asciidoctor-maven-plugin
<CustosLimen> and this has its own ideas of where to find gems
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:7501519 by Thomas E. Enebo): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62288449)
travis-ci has left #jruby [#jruby]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<mkristian> CustosLimen, I see - what about using this example for asciidoctor: https://github.com/torquebox/jruby-maven-plugins#example-execute-bincompass-from-the-compass-gem
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/vUw67
<JRubyGithub> jruby/master b89e4a8 Thomas E. Enebo: yay no more proc failures
JRubyGithub has left #jruby [#jruby]
<mkristian> could/should work
<CustosLimen> mkristian, let me check it
<CustosLimen> mkristian, its ok, I got it working by setting gemPath on asciidoctor plugin to gem.path which I set on command line (its also used by gem plugin)
<mkristian> cool
mje113__ has quit [Ping timeout: 256 seconds]
<CustosLimen> mkristian, I'm trying to set it up so you can get it to use gems from ~/.gem/ from ~/.m2/settings.xml - but have it build gems in target by default
mje113__ has joined #jruby
_djbkd has quit [Quit: My people need me...]
<mkristian> CustosLimen, just be aware that the ~/.gem/jruby depends on compat version, i.e. jruby-9.0.0.0.pre2 will use 2.2 instead of 1.9 - but if you set the gem.path property right it should work
<CustosLimen> mkristian, can't jruby make subdirs like cruby ?
marr has quit [Ping timeout: 264 seconds]
<mkristian> it does but not is you set GEM_HOME manually. dito GEM_PATH
<CustosLimen> mkristian, but it will though cause problems if one project uses compat 1.9 and another uses 2.2
<CustosLimen> you will have to switch them as needed
<CustosLimen> anyway its fine, I guess this wont be perfect, but close enough
<mkristian> probably it will do anyways since jruby does not really need this separate directories
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
travis-ci has joined #jruby
<CustosLimen> ok got it working
<travis-ci> jruby/jruby (master:215521c by Chris Seaton): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62295727)
travis-ci has left #jruby [#jruby]
<CustosLimen> project builds fine with and without -gem.useSystem
<mkristian> :)
<CustosLimen> anyway, jruby is awesome
<CustosLimen> glad to see compat level moving to 2.2
<CustosLimen> why does travis-ci join and part all the time ?
<nirvdrum> CustosLimen: It's a bot. It reports CI job status and then leaves.
<CustosLimen> nirvdrum, can't it just stay in here ?
<nirvdrum> It could, probably. But I think the bot comes from a cluster of machines. Rather than coordinate all status through a single bot, I think it just joins and leaves. It also doesn't need to maintain a connection that way.
<nirvdrum> The GitHub bot is similar.
<nirvdrum> But don't quote me on that.
enebo has quit [Quit: enebo]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to truffle-head: http://git.io/vUwNm
<JRubyGithub> jruby/truffle-head 424e351 Chris Seaton: Merge branch 'master' into truffle-head
JRubyGithub has left #jruby [#jruby]
colinsurprenant has joined #jruby
jimbaker has quit [Ping timeout: 255 seconds]
mkristian has quit [Quit: Ex-Chat]
jimbaker has joined #jruby
jimbaker has quit [Changing host]
jimbaker has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:d0132ad by Thomas E. Enebo): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62299313)
travis-ci has left #jruby [#jruby]
colinsurprenant has quit [Quit: colinsurprenant]
subbu has quit [Ping timeout: 276 seconds]
nateberkopec has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/vUrIt
<JRubyGithub> jruby/master 6b59f27 Chris Seaton: [Truffle] Add an method to add at_exit handlers that are always run.
JRubyGithub has left #jruby [#jruby]
skade has quit [Quit: Computer has gone to sleep.]
mje113__ has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Ping timeout: 256 seconds]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:7c78686 by Thomas E. Enebo): The build is still failing. (http://travis-ci.org/jruby/jruby/builds/62299776)
travis-ci has left #jruby [#jruby]
_djbkd has joined #jruby
_djbkd has quit [Remote host closed the connection]