dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
donV has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
dido has joined #jruby
dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
donV has quit [Quit: donV]
kith has quit [Ping timeout: 252 seconds]
sam2000 has joined #jruby
dido has joined #jruby
sam2000 has quit [Ping timeout: 246 seconds]
abel has joined #jruby
abel is now known as opt_abel
<opt_abel> I just upgraded from JRuby 9.0.0.0 rc2 to 9.1.6.0 and I'm getting a fixnum error.
<chrisseaton> opt_abel: can you Gist a stack trace?
<opt_abel> I'm having trouble tracing the problem since the trace that's printed just points to a file in the concurrent-ruby gem.
<chrisseaton> Ah well we know about concurrent-ruby as well :)
<opt_abel> Yeah you helped me over a year ago with it.
<opt_abel> Let me upgrade to the latest concurrent gem and get you a line number. It has to do with me calling a future and referencing its value.
<opt_abel> Well now with JRuby 9.1.6.0 and concurrent-ruby 1.0.2, it's not giving me the fixnum error, just that I'm now apparently referencing an object with a nil value rather than an enumerable like my code expects.
<opt_abel> So I'm pushing futures onto an array while calling .execute on them immediately before pushing. Then immediately pulling each future off of the list and evaluating its results. The future.value should be an array of objects, but it's returning nil.
<opt_abel> Has futures behavior changed between concurrent-ruby 0.9.0 and 1.0.2 that I need to read up on?
dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dido has joined #jruby
<chrisseaton> I don't think so
<chrisseaton> Can you reduce to a test case?
<opt_abel> It's admittedly a pretty messy call. Each future should return 4 objects in an array, which I parse upon fulfillment of the future.
dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<opt_abel> My thread pool should be allocated, and dumping my array of futures indicates that one is immediately getting processed while the others are pending. But the next line iterates over the futures array, and the first call to the first future's value returns nil. Not an array with a nil object, but as if the future failed entirely.
dido has joined #jruby
<opt_abel> On http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Future.html I see, "A timeout value can be passed to #value to limit how long the call will block. If nil the call will block indefinitely. If 0 the call will not block. Any other integer or float value will indicate the maximum number of seconds to block."
<opt_abel> What is the syntax to pass this to my future? Is it an arg I can pass to it upon construction or do I need to call something before I request its value?
<chrisseaton> .value(n)
<opt_abel> That was it!
<opt_abel> Thank you so much. The default timeout must have changed between infinite blocking and a set timeout.
<opt_abel> False alarm. I hadn't updated my path to the newest JRuby/gem. The futures are still failing.
<opt_abel> Upon inspection I can see that some of my futures are fulfilled sometimes. Is there a flag I can set to dump information upon rejection of a future?
<chrisseaton> I don't think so
<chrisseaton> Can you post some code?
<chrisseaton> Maybe your whole approach to using futures could be improved?
<opt_abel> No doubt it could be improved. But since it was working under 0.9.0 and 9.0.0.0, I'm wondering what happened. I haven't updated Ruby itself.
<opt_abel> It runs under concurrent-ruby 1.0.2 and JRuby 9.0.0.0, so I'm guessing it has to be a 9.0.0.0 -> 9.1.6.0 change.
<opt_abel> I wonder if the implementation of the Java thread pools was changed. I haven't kept up on your progress.
<opt_abel> Normally my program defaults to initiailizing a new Concurrent::FixedThreadPool.new(8) for 8 threads. If I force it to 1, it runs again.
dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dido has joined #jruby
sam2000 has joined #jruby
sam2000 has quit [Ping timeout: 246 seconds]
<opt_abel> I tried running under different JDK versions. 1.8.0 build 51 and 111 both work the same. So I think I've isolated the issue to JRuby 9.1.6.0 vs 9.0.0.0rc2. Forcing a thread pool of size 1 works in either version. A thread pool of >1 works under only 9.0.0.0rc2.
<opt_abel> The concurrent-ruby gem version doesn't seem to differ between 0.9.0 and 1.0.2.
<opt_abel> Per concurrent-ruby's documentation, I can't check the thread pool's "can_overflow?" since it appears it always returns false. Java's documentation indicates default thread pools are always unbounded for queue max size.
dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dido has joined #jruby
prasunanand has quit [Ping timeout: 260 seconds]
dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dido has joined #jruby
dido has quit [Client Quit]
opt_abel has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sam2000 has joined #jruby
sam2000 has quit [Ping timeout: 246 seconds]
dido has joined #jruby
dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zacts has quit [Ping timeout: 240 seconds]
dido has joined #jruby
amdprophet has quit [Ping timeout: 260 seconds]
zph has quit [Ping timeout: 260 seconds]
phlebas has quit [Ping timeout: 260 seconds]
phlebas has joined #jruby
amdprophet has joined #jruby
zph has joined #jruby
zacts has joined #jruby
sam2000 has joined #jruby
sam2000 has quit [Ping timeout: 246 seconds]
pawnbox has joined #jruby
<travis-ci> kares/jruby (test-sub-string:ded0e7e by kares): The build has errored. (https://travis-ci.org/kares/jruby/builds/175433832)
dido has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
thedarkone2 has quit [Quit: thedarkone2]
sam2000 has joined #jruby
claudiuinberlin has joined #jruby
sam2000 has quit [Ping timeout: 246 seconds]
olle has joined #jruby
beawesomeinstead has quit [Ping timeout: 268 seconds]
beawesomeinstead has joined #jruby
beawesomeinstead has quit [Ping timeout: 250 seconds]
beawesomeinstead has joined #jruby
olle has quit [Quit: olle]
beawesomeinstead has quit [Ping timeout: 268 seconds]
beawesomeinstead has joined #jruby
olle has joined #jruby
olle has quit [Quit: olle]
sam2000 has joined #jruby
sam2000 has quit [Ping timeout: 246 seconds]
sam2000 has joined #jruby
<GitHub158> [jruby] eregon pushed 3 new commits to truffle-head: https://git.io/vX6ER
<GitHub158> jruby/truffle-head ca6e1c3 Benoit Daloze: [Truffle] JT: setup Graal with mx quietly.
<GitHub158> jruby/truffle-head b917728 Benoit Daloze: [Truffle] JT: Fix combination of options.
<GitHub158> jruby/truffle-head 02284a0 Benoit Daloze: [Truffle] Implement io/console using JRuby's stty backend for now.
<GitHub159> [jruby] eregon pushed 1 new commit to truffle-head: https://git.io/vX6uk
<GitHub159> jruby/truffle-head 28aebbb Benoit Daloze: [Truffle] JT: Fix calling #run internally with options.
<GitHub96> [jruby] eregon pushed 1 new commit to truffle-head: https://git.io/vX6um
<GitHub96> jruby/truffle-head 98ff4f8 Benoit Daloze: [Truffle] Remove support for jruby_eclipse, mx support is better and easier now.
<GitHub17> [jruby] eregon pushed 1 new commit to truffle-head: https://git.io/vX6ua
<GitHub17> jruby/truffle-head fbc6255 Benoit Daloze: [Truffle] JT: remove code to change java version since 8 is default now.
kith has joined #jruby
donV has joined #jruby
donValentin has joined #jruby
<GitHub189> [jruby] eregon pushed 2 new commits to master: https://git.io/vX6gq
<GitHub189> jruby/master e4ae7f0 Benoit Daloze: [Truffle] Update to GraalVM 0.18 on master.
<GitHub189> jruby/master 270a5a8 Benoit Daloze: Merge remote-tracking branch 'origin/truffle-head'
donV has quit [Ping timeout: 260 seconds]
donV has joined #jruby
donValentin has quit [Ping timeout: 246 seconds]
shellac has joined #jruby
donValentin has joined #jruby
donV has quit [Ping timeout: 260 seconds]
<travis-ci> jruby/jruby (master:e4ae7f0 by Benoit Daloze): The build has errored. (https://travis-ci.org/jruby/jruby/builds/175465260)
pawnbox_ has joined #jruby
pawnbox has quit [Ping timeout: 248 seconds]
<GitHub156> [jruby] eregon pushed 3 new commits to truffle-head: https://git.io/vX62S
<GitHub156> jruby/truffle-head c1910e6 Benoit Daloze: Merge remote-tracking branch 'origin/master' into truffle-head
<GitHub156> jruby/truffle-head ce6a965 Benoit Daloze: Commit generated lib/pom.xml
<GitHub156> jruby/truffle-head 2cb999c Benoit Daloze: [Truffle] Disallow fast-forward in truffle-head/master merge.
Tristitia has quit [Remote host closed the connection]
claudiuinberlin has quit [Remote host closed the connection]
<travis-ci> jruby/jruby (truffle-head:ce6a965 by Benoit Daloze): The build was broken. (https://travis-ci.org/jruby/jruby/builds/175469957)
sam2000 has quit [Remote host closed the connection]
sam2000 has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
donValentin has quit [Ping timeout: 260 seconds]
<GitHub1> [jruby] eregon pushed 2 new commits to truffle-head: https://git.io/vX6ag
<GitHub1> jruby/truffle-head 47b98c6 Benoit Daloze: [Truffle] Add a simple tool to compare stdlib contents.
<GitHub1> jruby/truffle-head 18b3a53 Benoit Daloze: [Truffle] Update truffle links to rubygems in stdlib.
donV has joined #jruby
<travis-ci> jruby/jruby (truffle-head:47b98c6 by Benoit Daloze): The build was fixed. (https://travis-ci.org/jruby/jruby/builds/175473948)
clayton has quit [Read error: No route to host]
clayton has joined #jruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #jruby
claudiuinberlin has joined #jruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #jruby
Puffball_ has joined #jruby
Puffball has quit [Ping timeout: 240 seconds]
sam2000 has quit [Remote host closed the connection]
sam2000 has joined #jruby
<kares> eregon: hey! do you think the polyglot change might relate to master's test:mri travis-ci errors?
Puffball_ has quit [Remote host closed the connection]
Puffball has joined #jruby
shellac has joined #jruby
sam2000 has quit [Remote host closed the connection]
<travis-ci> kares/jruby (test-sub-string:771e161 by kares): The build has errored. (https://travis-ci.org/kares/jruby/builds/175487413)
shellac has quit [Quit: Computer has gone to sleep.]
ryez has joined #jruby
sam2000 has joined #jruby
shellac has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
sam2000_ has joined #jruby
<sam2000_> Hi, Could anyone please let me know what would be the best way to pass a database connection from a jruby/rails app to a java libray? I am using some clojure code with rails and all workds fine but it would be great if I can query the Posgresql databse directly from Clojure (or Java) code please
sam2000_ has quit [Client Quit]
sam2000 has quit [Remote host closed the connection]
sam2000 has joined #jruby
sam2000 has quit [Ping timeout: 246 seconds]
shellac has joined #jruby
shellac has quit [Client Quit]
shellac has joined #jruby
olle has joined #jruby
byteit101 has joined #jruby
olle has quit [Quit: olle]
shellac has quit [Quit: Computer has gone to sleep.]
pawnbox has joined #jruby
pawnbox_ has quit [Ping timeout: 252 seconds]
thedarkone2 has joined #jruby
<chrisseaton> What get merged to master? I'm 357 commits behind.
<chrisseaton> Ah dragon did the Truffle merge.
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 248 seconds]
olle has joined #jruby
sam2000 has joined #jruby
sam2000_ has joined #jruby
sam2000 has quit [Client Quit]
sam2000_ has quit [Remote host closed the connection]
sam2000 has joined #jruby
sam2000_ has joined #jruby
alex0ptr has joined #jruby
ryez has quit [Ping timeout: 260 seconds]
sam2000_ has quit [Client Quit]
sam2000 has quit [Remote host closed the connection]
sam2000 has joined #jruby
sam2000_ has joined #jruby
<GitHub103> [jruby] headius merged master into ruby-2.4: https://git.io/vX6bR
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
sam2000 has quit [Remote host closed the connection]
sam2000_ has quit [Quit: sam2000_]
pawnbox has quit [Ping timeout: 252 seconds]
<travis-ci> jruby/jruby (ruby-2.4:e4ae7f0 by Benoit Daloze): The build has errored. (https://travis-ci.org/jruby/jruby/builds/175540266)
sam2000 has joined #jruby
sam2000_ has joined #jruby
sam2000_ has quit [Quit: sam2000_]
sam2000 has quit [Remote host closed the connection]
sam2000 has joined #jruby
sam2000_ has joined #jruby
olle has quit [Quit: olle]
<eregon> chrisseaton: dragon? interesting auto-correct :)
sam2000_ has quit [Quit: sam2000_]
sam2000 has quit [Remote host closed the connection]
sam2000 has joined #jruby
sam2000 has quit [Remote host closed the connection]
claudiuinberlin has quit []
shellac has joined #jruby
sam2000 has joined #jruby
donV has quit [Quit: donV]
sam2000 has quit [Ping timeout: 246 seconds]