<havenwood>
i guess using the --dev flag when it's JRuby would help a bit
<havenwood>
it doesn't seems like there's anything like --properties to get at those Ruby constants
rcvalle has quit [Quit: rcvalle]
pawnbox has joined #jruby
camlow325 has quit [Quit: WeeChat 1.5]
pawnbox has quit [Ping timeout: 244 seconds]
fedenusy has joined #jruby
<nirvdrum>
havenwood: If you allow a hackish solution, RUBY_ENGINE is always "jruby" and RUBY_VERSION can be extracted from "jruby -v" (a fast command). Not sure I've ever seen GEM_ROOT.
<JayL>
@nirvdrum that's what they're trying to avoid. Jruby startup is slow for CLI users
<nirvdrum>
JayL: jruby -v is incredibly fast.
<havenwood>
hmm, I guess we don't actually know the RUBY_ENGINE at this point but --version would give that as well across supported Rubies (-v is funky on mruby)
tmio has quit [Quit: tmio]
<havenwood>
that would just leave GEM_ROOT unreplaced
<nirvdrum>
havenwood: Oh, so you don't even know what the binary is at this point? I thought you were just looking to build up a DB of sorts based on known installed versions.
<JayL>
yeah and I think you might need the cost of executing: require 'rubygems'; puts "export GEM_ROOT=#{Gem.default_dir.inspect};"
tmio has joined #jruby
<JayL>
that's the slowdown. jruby -v is quick
<nirvdrum>
That's too bad. "jruby -v" is only 150ms on my system.
<nirvdrum>
JayL's snippet is ~2s for me. ~1.5s with --dev.
<nirvdrum>
Not great.
<havenwood>
nirvdrum: yeah, it's fuzzy matching to select the Ruby so there might not have even been a "jruby", maybe just a: chruby 9.1.5.0
<havenwood>
err, actually yeah it has matched at this point, so that function would be called with: chruby_use "jruby-9.1.5.0"
<havenwood>
I don't know what to do about GEM_ROOT.
<JayL>
looking at something
johnsonch is now known as johnsonch_afk
johnsonch_afk is now known as johnsonch
<JayL>
GEM_ROOT is likely costly to obtain.
<JayL>
I checked a few things. The source of the Gem.default_dir value comes from the rubygems/defaults.rb - which in turn pulls from RbConfig. All obtained via the ruby interpreter
<JayL>
I was thinking maybe you could save loading the rubygems (and dependencies if there are any) ... I even checked the cost of going just to RbConfig - same time results.
<JayL>
The other thought was to save you a few 1/10s of seconds by adding the --client jruby option ... it does not seem to have any effect.
<JayL>
I was hoping there might be something equivalent to 'perl -V' but alas there is not.
<JayL>
Ugly but potentially an option - store the results in a "cache file" and if the cache file is present load results from file rather than the cost of firing up the jruby interpreter (that is the cost I think).
<JayL>
Ugly but potentially an option - store the results in a "cache file" and if the cache file is present load results from file rather than the cost of firing up the jruby interpreter (that is bulk of the cost I think).
<JayL>
That's as far as I can go :) don't let me stop you from further search
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #jruby
pawnbox has quit [Remote host closed the connection]
dannyNL has joined #jruby
dannyNL has quit [Client Quit]
blaxter has joined #jruby
fedenusy has joined #jruby
fedenusy has quit [Client Quit]
pawnbox has joined #jruby
fedenusy has joined #jruby
fedenusy has quit [Client Quit]
drbobbeaty has joined #jruby
<GitHub44>
[jruby-openssl] heisee opened issue #104: "Bag Attributes" in a private_key.pem file throws a ClassCastException, while it works in MRI https://git.io/vir5T
shellac has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dannyNL has joined #jruby
dannyNL has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pilhuhn is now known as pil-afk
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
drbobbeaty has joined #jruby
fedenusy has joined #jruby
fedenusy has quit [Client Quit]
bbrowning_away is now known as bbrowning
dannyNL has joined #jruby
dannyNL has quit [Client Quit]
pil-afk is now known as pilhuhn
claudiuinberlin has quit [Remote host closed the connection]
johnsonch_afk is now known as johnsonch
bbrowning has quit [Ping timeout: 265 seconds]
bbrowning has joined #jruby
lance|afk is now known as lanceball
dannyNL has joined #jruby
pawnbox has quit [Remote host closed the connection]
<GitHub64>
[jruby] bjfish pushed 1 new commit to truffle-check-funcall: https://git.io/viory
<GitHub64>
jruby/truffle-check-funcall b030e25 Brandon Fish: [Truffle] Implement more check_funcall_missing
prasunanand has joined #jruby
nicksieger has joined #jruby
<eregon>
havenwood JayL: Acutally, on jruby, the default GEM_ROOT is usually good enough, maybe there should be a way to tell chruby to not set GEM_ vars.
pilhuhn is now known as pil-afk
camlow325 has joined #jruby
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
nicksieg_ has quit [Read error: Connection reset by peer]
prasunanand has quit [Ping timeout: 265 seconds]
nicksieger has quit [Read error: Connection reset by peer]
nicksieg_ has joined #jruby
claudiuinberlin has quit [Remote host closed the connection]
cprice404 has quit [Quit: Konversation terminated!]
nicksieg_ has quit [Read error: Connection reset by peer]
claudiuinberlin has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #jruby
<GitHub120>
[jruby] headius opened pull request #4159: Format initial string to specific precision, so rounding works. (master...sprintf_rounding) https://git.io/vioM5
dannyNL has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
dannyNL has quit [Client Quit]
dannyNL has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
<GitHub34>
[jruby] bjfish pushed 1 new commit to truffle-head: https://git.io/vioHV
<GitHub34>
jruby/truffle-head ac60bbe Brandon Fish: [Truffle] Fix Kernel#hash seed name
camlow325 has quit [Quit: WeeChat 1.5]
nicksieger has quit [Read error: Connection reset by peer]
<JayL>
@eregon - I haven't stopped to ask why but it seems chruby needs to set GEM_HOME as part of its core feature set. Not quite sure why you'd select chruby over rvm but there must be a reason
nicksieger has joined #jruby
fedenusy has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
<havenwood>
JayL: RVM is tens of thousands of lines of shell. It even ships with support for chruby (MRVM). On the other hand chruby is a couple hundred lines of shell so it's much simpler overall and easier to maintain and debug.
<JayL>
Yeah - definitely get the rationale - KISS vs big-assed-feature-set
<havenwood>
eregon: I think we could get the RUBY_ENGINE and RUBY_VERSION from --version and have a flag to disable setting RUBY_ROOT. I'll look into that!
<JayL>
See my comment on your issue - I propose a rather exotic (unlikely to be taken serious) solution plus the suggestion that headius and I suggest which is to cache/memoize in a file you manage.
<havenwood>
JayL: Reading backlog! :-)
<JayL>
havenwood - HTH, fun problem to think about
<GitHub7>
[jruby] bjfish closed issue #3683: [Truffle] class_eval should allow negative line number https://git.io/vghQu
claudiuinberlin has quit [Remote host closed the connection]
<fedenusy>
hello! jruby is throwing a NPE that crashes my server (https://github.com/jruby/warbler/issues/391). im now trying to get the stack trace for that NPE. ive tried various config flags (eg -Djruby.debug.fullTrace=true), but the stack trace never shows up. @kares mentioned it's possible to modify the jruby logger instance to make it print out stack tr
<fedenusy>
aces -- does anyone know how to accomplish this?
rcvalle has joined #jruby
hobodave_ has joined #jruby
hobodave has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #jruby
claudiuinberlin has quit [Remote host closed the connection]
<GitHub106>
jruby/master 08d64dc Konstantin Shabanov: Extract operations with signal name to fns
<GitHub106>
jruby/master 6b793be Konstantin Shabanov: Also fix Interrupt class
<GitHub106>
jruby/master ffa2c63 Konstantin Shabanov: Direct port of SignalException from MRI...
tmio has joined #jruby
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
cprice is now known as cprice404
nicksieg_ has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
claudiuinberlin has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
blaxter has quit [Quit: foo]
<kares>
fedenusy: maybe it's not coming from JRuby than
<kares>
recall there was a ERROR prefix printed - recent 9K has some formatting by default printed from the internal logger
<kares>
maybe you should try go down a Java monitoring path (pretty sure some JVM tools allow to monitor/record exceptions generated by the VM) if you're still struggling with this
nicksieger has quit [Remote host closed the connection]