x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pietr0 has quit [Quit: pietr0]
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elia has quit [Ping timeout: 246 seconds]
pjammer has joined #jruby
baroquebobcat has quit [Quit: baroquebobcat]
subbu has quit [Ping timeout: 252 seconds]
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 246 seconds]
pjammer has joined #jruby
nateberkope has joined #jruby
nateberkopec has quit [Read error: Connection reset by peer]
e_dub has joined #jruby
elia has joined #jruby
camlow325 has quit []
<ebbflowgo>
I'm looking to setup a simple ActiveRecord database with activerecord-jdbcpostgresql-adapter... i bundled the gems but can't for the life of me get it to work.. gist error here: https://gist.github.com/ebbflowgo/c706b2ab9cc8abb95ee2
<ebbflowgo>
I'm running it with jruby -S db/database.rb
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subbu has joined #jruby
pjammer has joined #jruby
elia has quit [Ping timeout: 265 seconds]
elia has joined #jruby
<Antiarc>
can you gist the contents of /Users/hank/.rvm/gems/jruby-1.7.19/gems/activerecord-jdbc-adapter-1.3.15/lib/arjdbc/jdbc/base_ext.rb ?
<ebbflowgo>
Antiarc: sure, finding now
<Antiarc>
(I could just look it up)
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
e_dub has quit [Quit: ZZZzzz…]
iamjarvo_ has joined #jruby
iamjarvo_ has quit [Max SendQ exceeded]
iamjarvo_ has joined #jruby
vtunka_ has joined #jruby
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
subbu has joined #jruby
mitchellhenke has joined #jruby
qmx has quit [Ping timeout: 264 seconds]
pjammer has joined #jruby
enebo has joined #jruby
erikhatcher has joined #jruby
bjfish2 has joined #jruby
vtunka_ has quit [Ping timeout: 250 seconds]
vtunka has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
ebbflowgo_ has joined #jruby
<ebbflowgo_>
nirvdrum: it looks like that's what I'll have to do as well
<nirvdrum>
I switched for other reasons with AR . . . plugins broke on every Rails release. Two unexpected benefits though: 1) Sequel optimizes extremely well on JRuby; 2) I don't have to worry about AR-JDBC lagging.
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kares has joined #jruby
qmx has joined #jruby
qmx has quit [Changing host]
qmx has joined #jruby
<ebbflowgo_>
nirvdrum: fair, I didn't know about this alternative, I'll check it out
temporalfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pjammer 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]
mitchellhenke has joined #jruby
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #jruby
<lopex>
sequel ftw
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #jruby
a5i 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]
iamjarvo has joined #jruby
mrmargolis has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #jruby
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mrmargolis>
Is there a trick to profiling multithreaded code? jruby's profiler is telling me that I spend most of my time on "ConditionVariable#wait" but I am not seeing how that time is being spent.
dvorak is now known as clayton
<chrisseaton>
mrmargolis: what is your code doing? maybe it is spending more of that time waiting? can you see where wait is being called from?
<mrmargolis>
chrisseaton: Using Celluloid to concurrently validate a handful of ActiveRecord instances and then render them to json. The wait appears to be from Celluloid.
<chrisseaton>
That's not surprising - a concurrent application having to wait at some point - but without a graph profiler (does Java have one of those) it's hard to say more
pjammer has joined #jruby
<mrmargolis>
I am using graph output for the jruby compiler, but either I'm reading it wrong or it's opaque on where the time is actually being spent. I am going to make it single threaded and profile again to see if anything jumps out at me. Thanks.
<mrmargolis>
err jruby profiler, not compiler
JRubyGithub has joined #jruby
<JRubyGithub>
jruby/truffle-pack d630ab8 Chris Seaton: [Truffle] Remove pack benchmark and add PE test instead.
<JRubyGithub>
jruby/truffle-pack 9a0facf Chris Seaton: [Truffle] Add tagged PE test for failing pack constant fold.
<JRubyGithub>
[jruby] chrisseaton pushed 2 new commits to truffle-pack: http://git.io/vexXR
JRubyGithub has left #jruby [#jruby]
dinfuehr has joined #jruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
e_dub has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] kares closed issue #2286: Loading some constants twice with Rails 4.2.0.rc1 and postgres http://git.io/87Zj_Q
JRubyGithub has left #jruby [#jruby]
mje113__ has joined #jruby
dinfuehr_ has joined #jruby
anaeem___ has joined #jruby
stepheneb has joined #jruby
anaeem1 has quit [Read error: Connection reset by peer]
dinfuehr_ has quit [Ping timeout: 272 seconds]
bbrowning is now known as bbrowning_away
temporalfox has joined #jruby
dinfuehr has quit [Remote host closed the connection]
e_dub has quit [Quit: ZZZzzz…]
e_dub has joined #jruby
iamjarvo has joined #jruby
ahadding1 has quit [Ping timeout: 256 seconds]
pjammer has joined #jruby
ahadding1 has joined #jruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
temporalfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ypasmk_ has joined #jruby
ypasmk has quit [Ping timeout: 240 seconds]
shellac has quit [Remote host closed the connection]
thsig has joined #jruby
baroquebobcat has joined #jruby
camlow325 has joined #jruby
thsig has quit [Client Quit]
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stepheneb has quit [Quit: stepheneb]
iamjarvo has joined #jruby
havenwood has joined #jruby
ypasmk_ has quit [Ping timeout: 256 seconds]
mrmargolis has quit []
erikhatcher has quit [Ping timeout: 245 seconds]
pjammer has joined #jruby
erikhatcher has joined #jruby
ebbflowgo has quit [Ping timeout: 255 seconds]
cremes has quit [Remote host closed the connection]
e_dub has quit [Quit: ZZZzzz…]
e_dub has joined #jruby
cremes has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] bjfish opened issue #2818: [Truffle] File#basename needed for pathname http://git.io/vep81
JRubyGithub has left #jruby [#jruby]
e_dub has quit [Quit: ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
e_dub has joined #jruby
bbrowning_away is now known as bbrowning
baroquebobcat has quit [Remote host closed the connection]
kares has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #jruby
Hobogrammer 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
elia has quit [Quit: Computer has gone to sleep.]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] bjfish opened pull request #2819: [Truffle] Add jt mri test command. (master...truffle_jt_mri) http://git.io/vepQ7
JRubyGithub has left #jruby [#jruby]
skade has quit [Quit: Computer has gone to sleep.]
pjammer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pjammer has joined #jruby
havenwood has quit [Remote host closed the connection]
dinfuehr has joined #jruby
erikhatcher has quit [Ping timeout: 252 seconds]
erikhatcher has joined #jruby
elia has joined #jruby
marr has quit [Ping timeout: 245 seconds]
eswiac has joined #jruby
subbu is now known as subbu|lunch
<eswiac>
hello everyone. I am migrating a rails 4 app from mri to jruby. everything is fine but for one thing: activerecord-jdbcmysql does not emulate booleans (as it should be doing per default per the doc) and return 1 or 0. The fields in my DB are tinyint(1).
<eswiac>
ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans is set to true already, so I don't know what else I can do
elia has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #jruby
temporalfox has joined #jruby
x1337807_ has joined #jruby
x1337807x has quit [Read error: Connection reset by peer]
skade has joined #jruby
elia has joined #jruby
temporalfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
havenwood has joined #jruby
e_dub has joined #jruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lopex>
eswiac: does the version of mysql jdbc driver report that field as tiny int ?
<nirvdrum>
I'm not sure, but you probably need to modify JRuby.
<phlebas>
Antiarc: yes
subbu has quit [Ping timeout: 272 seconds]
<phlebas>
i need it throughout the runtime of the program. VariableTableManager already distinguishes between unsafe and safe variable to decide which accessor to return, i basically need a third case to check if the variable has previously appeared in a constraint
<Antiarc>
VariableAccessor looks like a likely culprit, then
<Antiarc>
Fortunately it's very easy to compile jruby, and there's a nice robust test suite to guide you :)
mitchellhenke has joined #jruby
djbkd has joined #jruby
e_dub has quit [Quit: It's a hard knock life]
iamjarvo has joined #jruby
iamjarvo has quit [Max SendQ exceeded]
e_dub has joined #jruby
iamjarvo has joined #jruby
djbkd has quit [Ping timeout: 252 seconds]
subbu has joined #jruby
dinfuehr has joined #jruby
erikhatcher_ has joined #jruby
erikhatcher has quit [Ping timeout: 272 seconds]
erikhatcher_ is now known as erikhatcher
djbkd has joined #jruby
x1337807x has joined #jruby
djbkd has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
camlow32_ has joined #jruby
baroquebobcat has joined #jruby
camlow325 has quit [Ping timeout: 246 seconds]
phlebas has quit [Ping timeout: 265 seconds]
djbkd has joined #jruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
a5i has quit [Quit: Connection closed for inactivity]
<chrisseaton>
did phlebas go? this would be something that would be easy to do in Truffle
tcrawley is now known as tcrawley-away
camlow32_ has quit [Remote host closed the connection]
mitchellhenke has joined #jruby
camlow325 has joined #jruby
x1337807x has joined #jruby
pitr-ch_ has quit [Ping timeout: 265 seconds]
<lopex>
chrisseaton: howdy there
<chrisseaton>
hello
pietr0 has joined #jruby
<lopex>
chrisseaton: is there a tool that might show ruby overhead with respect to runtime (core impls) overead ? like dispatch performance is one thing and an impl of a method is another
<chrisseaton>
you could profile and just sum the time of core impl methods
<lopex>
I know inlining will thwart things
<chrisseaton>
profiling handles that doesn't it?
<lopex>
I guess ?
<lopex>
yeah, hmm
<lopex>
a simple script might automate that
elia has joined #jruby
<lopex>
chrisseaton: I guess I meant a tool that would show the boundaries, but that possible
lanceball is now known as lance|afk
<lopex>
chrisseaton: what I'm trying to boil into is a reliable tool with fast feedback for measuring core method perf
<lopex>
visualvm and the like is a no go here
<chrisseaton>
Isn't there a profile which shows you time for a method and method it calls - and then you can just look at each core method, or one at a time, and see how long they take
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lopex>
that's not a fast feedback
<chrisseaton>
but in Ruby there is almost nothing but core library is there?
<chrisseaton>
what is not core library? creating a closure? writing to a local variable? method prelude? there's not a lot
<lopex>
depends on the benchmark
<chrisseaton>
what benchmark is not almost entirely core library?
<chrisseaton>
empty method calls?
<chrisseaton>
moving a few objects around between parameters and locals?
<lopex>
benchmark with loops ?
<lopex>
whatever
<chrisseaton>
you'd need some logic to break out of the loop - so a comparison or something - which is core library
<lopex>
sure
<lopex>
in those terms yes
<lopex>
ok, then I guess I want to eliminate dispatch etc
<chrisseaton>
maybe you could make something synthetic that calls core library implementations statically, without actually a running ruby program?
<chrisseaton>
a Java program that calls core library methods
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<chrisseaton>
my_array.op_plus(my_other_array) to test Array#+
bbrowning is now known as bbrowning_away
<lopex>
yeah, but in that case, I'd have to basically reimplement every benchmark
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chrisseaton>
maybe you could do some kind of very basic translation from Ruby to Java if you knew what most benchmarks looked like
<lopex>
yeah I know
<lopex>
just wanted to avoid that
<lopex>
to be more specific, let's assume I want to benchamrk String#scan and for that I need a code like x.times.do {str.scan(regexp)}
<chrisseaton>
Well that would be easy to write in Java
<lopex>
and rehaersal code
<lopex>
sure
<lopex>
but there's lots of combinations of those
<lopex>
maybe I'm asking for too much for free
<chrisseaton>
Do you have specific optimisations in end? If you're just planning to have a go at generally optimising all core library methods you may find you want to focus more anyway
<lopex>
optimisations throughout a given set of core impls
<lopex>
er, was that sentence correct ?
ypasmk has joined #jruby
<chrisseaton>
yeah i get it
marr has quit []
ypasmk has quit [Ping timeout: 252 seconds]
anaeem___ has quit [Remote host closed the connection]
phlebas has joined #jruby
Antiarc has quit [Ping timeout: 252 seconds]
phlebas has quit [Ping timeout: 251 seconds]
elia has quit [Read error: Connection reset by peer]
elia has joined #jruby
djbkd has quit [Remote host closed the connection]
Antiarc has joined #jruby
erikhatcher has quit [Quit: erikhatcher]
<Antiarc>
What's the current state of the art for rubyland debugging these days?