pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #jruby
colinsurprenant has quit [Quit: colinsurprenant]
<jwinter__>
is there a way to add a maven source/snapshot repo into a gemspec file using jar-dependencies? I have something that works with a Jarfile, but I'm trying to convert that into a gemspec so I can distribute it
<jwinter__>
that is, I have a non-maven-central repo configure in a Jarfile and I'd like to do something similar in a gemspec
thedarkone2 has quit [Quit: thedarkone2]
colinsurprenant has joined #jruby
brauliobo has quit [Ping timeout: 244 seconds]
shellac has quit [Quit: Computer has gone to sleep.]
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samphippen has joined #jruby
isjaylee has joined #jruby
<Papierkorb>
I have a maven artifact I'd like to play around with from inside JRuby / pry. How do I install that artifact in a way so I can load its JAR?
<GitHub185>
[jruby] subbuss pushed 1 new commit to master: http://git.io/vB8I1
<GitHub185>
jruby/master 5e13527 Subramanya Sastry: Rename arguments in blockBody signatures for easier understanding...
brauliobo has joined #jruby
<mkristian_>
jwinter__, there is no way to add an external repo to the gemspec itself. not sure if this is really a good idea to allow to configure it and hope the external repo is up and running
<jwinter__>
it's for an internal gem, so we control whether that external repo is running
<mkristian_>
Papierkorb, create a Jarfile with your maven coordinate 'jar 'org.slf4j:slf4j-simple', '1.7.7'. run lock_jars and add require 'jars/setup' to your code
<jwinter__>
mkristian_: would you recommend vendoring the jars if we need jars from a non-maven-central repo?
<mkristian_>
jwinter__, I see. what about using a settings.xml which add the extra repo. but each developer needs to have this setup.
<mkristian_>
I would not vendor the jars if somehow possible
<dfr|work>
morning folks.
<Papierkorb>
is there a way to quick n dirty download a JAR and load it? Much like gem install for toying around
<jwinter__>
mkristian_: I was starting to look into settings.xml based on your docs from jar-dependencies. would that be adding a proxy in settings.xml ? I don't know much about maven...
<mkristian_>
jwinter__, the question is whether this "external repo" does include maven central or not ? just a second . . .
<isjaylee>
Papierkorb: if I get what you're asking, you want to just use a java library from a .jar file. Should be as simple as two lines: require "java" and require "path/to/.jar"
<GitHub166>
[jruby] subbuss pushed 1 new commit to master: http://git.io/vB8Yi
<GitHub166>
jruby/master 6bb6149 Subramanya Sastry: Next step in refactoring block body signature for improved clarity...
<mkristian_>
this will assume all the jars coming from this mirror server - artifactory or nexus-server for example
<jwinter__>
thanks! I'll give that try
<mkristian_>
Papierkorb, no "jar install" exists. download it manually and require the jar. "require 'java'" is not needed anymore
<mkristian_>
basically as isjaylee said :)
<Papierkorb>
mkristian_: That won't resolve the dependencies for me though :|
<dfr|work>
enebo, in case you care, I got bitten by https://github.com/jruby/jruby/issues/1024 due to apparently reasonably recent openjdk stuff, so trying to figure out the cause.
<mkristian_>
Papierkorb, no it won't. but then the only way is a Jarfile, execute lock_jars and require 'jars/setup'
<dfr|work>
chrisseaton, ^^
<chrisseaton>
dfr|work: maybe a JVM bug
<dfr|work>
chrisseaton, it likely is. I can reproduce it pretty reliably, albeit with bunch of custom Rails code. I'm working with out platforms team to see if we can figure out the root cause.
<dfr|work>
At least it's possible to work around it with disabling method flushing >.<
<dfr|work>
anyhow, if I learn anymore more, I'll update the issue
<isjaylee>
you can call ruby within a java class. theoretically, is it possible to call methods from a gem (example: call ActiveSupport methods within a jsp)?
<dfr|work>
isjaylee, yes.
tcrawley is now known as tcrawley-away
<isjaylee>
dfr|work, sweet, thanks.
<dfr|work>
isjaylee, Ruby runtime = initRuntime(); runtime.getLoadService().require("active_support"); runtime.evalScriptlet("'foos'.singularize") <- should work. However you'll have to make sure that GEM_PATH and stuff is configured for the runtime, etc
thedarkone2 has joined #jruby
<eonwe>
We had a JVM running Tomcat + JRuby + gazillion gems crash. My reading of the crash log is that there would be some code in rails AbstractRenderer#find_template that's compiled to byte code and that would directly call some native code. Does this match with the given stack trace in crash dump? https://gist.github.com/jmiettinen/6cce1683f20de264be79
<Papierkorb>
Ha. It works with a dummy Jarfile and lock_jar. thanks everyone
<isjaylee>
dfr|work, thanks, i'll look into that.
<eonwe>
Is there some definite way to translate rubyjit.ActionView::AbstractRenderer$$find_template_9af018a98f114671f461d502368b5f303415c39d2065754361.__file__(Lrubyjit/ActionView::AbstractRenderer$$find_template_9af018a98f114671f461d502368b5f303415c39d2065754361;Lorg/jruby/runti
<eonwe>
me/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+45 to source code?
<Papierkorb>
Has someone in here every tinkered with libtextsecure (the app is now called 'Signal', formally 'TextSecure')?
<eonwe>
dfr|work: not as such. That trace has JVM code in it. Here I only see byte code interpretation and some non-JVM native code
<GitHub170>
[jruby] kares commented on commit 6bb6149: might break stuff - such as Java extensions that do create blocks - using a home-grown block-body impl http://git.io/vB8ci
<eonwe>
I am suspecting that some of the stack is not recorded as there should probably be at least some more java code around it
<dfr|work>
eonwe, it seems that there's a JITting side-effect. So while not JITTed the IRubyObject is fine =/
<eonwe>
That's just an interface? I was wondering if JRuby does some direct native calls somewhere. I know that there's the FFI, but is it used by default?
<GitHub57>
[jruby] kerbo closed issue #3430: Unable to get temp file on Windows http://git.io/vWPif
isjaylee has left #jruby [#jruby]
<dfr|work>
eonwe, the code you linked seems pretty innocuous to me =/ I'd blame JIT, but I'm biased 'cause I'm dealing with a definite JIT issue. Are you able to reproduce the issue consistently?
<GitHub41>
[jruby] eregon pushed 4 new commits to truffle-head: http://git.io/vB8Wx
<GitHub41>
jruby/truffle-head 69223cd Benoit Daloze: [Truffle] Remove dispatch entries when the Shape becomes invalid.
<GitHub41>
jruby/truffle-head f8dd00c Benoit Daloze: [Truffle] MetaClassNode does not need the VirtualFrame.
<GitHub41>
jruby/truffle-head 39e1ae9 Benoit Daloze: [Truffle] Implement cached #method_missing for primitives as well.
<GitHub0>
[jruby] subbuss commented on commit 6bb6149: In the last 5-6 commits, I made sure that the block api itself is unchanged. Ideally, extensions shouldn't really be messing around with JRuby internals like BlockBody, but I am curious to find out if there are extensions out there that are doing this.... http://git.io/vB84A
drbobbeaty has quit [Ping timeout: 264 seconds]
<GitHub188>
[jruby] eregon pushed 1 new commit to truffle-head: http://git.io/vB8B4
<GitHub188>
jruby/truffle-head 763aa62 Benoit Daloze: [Truffle] Profile if arrays have the same length in Array#zip.
<GitHub133>
[jruby] enebo commented on commit 6bb6149: @kares if you can find an example of someone making their own blockbody or even how you might try and search for that I would love to see it in the wild. Worst-case is we add back the deprecations (at least for now). http://git.io/vB8ge
shellac has joined #jruby
vtunka has quit [Quit: Leaving]
mkristian has joined #jruby
mkristian_ has quit [Ping timeout: 240 seconds]
<eonwe>
dfr|work: sadly, no
mkristian has quit [Ping timeout: 250 seconds]
drbobbeaty has joined #jruby
bb010g has quit [Quit: Connection closed for inactivity]
colinsurprenant has quit [Read error: Connection reset by peer]
colinsurprenant has joined #jruby
<GitHub126>
[jruby] kares commented on commit 6bb6149: hmm, can't find what I though - but I recall I've seen it ... just can't figure where (thus feel free to ignore).... http://git.io/vB8Km
josh-k has quit [Remote host closed the connection]
josh-k has joined #jruby
<dfr|work>
eonwe, maybe you can simulate a bunch of load by pummelling a local server to see if it can reproduce?
<dfr|work>
eonwe, 'cause I'd recommend playing with JIT settings =/
drbobbeaty has quit [Ping timeout: 272 seconds]
josh-k has quit [Ping timeout: 260 seconds]
<GitHub182>
[jruby] eregon pushed 1 new commit to truffle-head: http://git.io/vB8Df
<GitHub182>
jruby/truffle-head 021fa27 Benoit Daloze: [Truffle] The Shape must be updated before looking for existing matches.
<eonwe>
dfr|work: the "funny" thing was that this happened after long quite period and there was just some small request. I would expect the JVM JIT problems to show up as V or J (compiled Java code). This looks to me like a call to some native library. At least the trace is such
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brauliobo_ has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
brauliobo has quit [Ping timeout: 240 seconds]
lanceball is now known as lance|afk
drbobbeaty has joined #jruby
nirvdrum has joined #jruby
shellac has quit [Quit: Ex-Chat]
nirvdrum has quit [Remote host closed the connection]
colinsurprenant has quit [Quit: colinsurprenant]
<GitHub58>
[jruby] lucasallan opened pull request #3497: [Ruby-2.3] - Implements Numeric#positive? and Numeric#negative? (ruby-2.3...negative-positive-numeric) http://git.io/vB4eq
skade has joined #jruby
skade has quit [Read error: Connection reset by peer]
nirvdrum has joined #jruby
tcrawley-away is now known as tcrawley
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
brauliobo_ has quit [Ping timeout: 255 seconds]
lance|afk is now known as lanceball
<GitHub167>
[jruby] subbuss pushed 1 new commit to master: http://git.io/vB4Zm
<GitHub167>
jruby/master a195645 Subramanya Sastry: Remove changes to Block.java accidentally committed in 5e135278
<GitHub98>
[jruby] kares commented on commit 6bb6149: seems it was my own :hankey: old experiment with an extension that never got out ... searched github and did not find anything that would break. looking forward for the refactorings. sorry for the false alarm, but knowing the API it's hard to imagine creating a block on the J side without running into some `BlockBody` sub-classing (which is probably a very rare use-case). http://git.io/vB4nh
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #jruby
skade has quit [Client Quit]
skade has joined #jruby
mkristian has quit [Quit: This computer has gone to sleep]
xandrews has quit [Ping timeout: 244 seconds]
brauliobo has joined #jruby
lanceball is now known as lance|afk
gaustin has joined #jruby
gaustin has quit [Client Quit]
enebo has quit [Quit: enebo]
djbkd has joined #jruby
tcrawley is now known as tcrawley-away
pawnbox has joined #jruby
djbkd has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 272 seconds]
djbkd has joined #jruby
josh-k has joined #jruby
pawnbox has joined #jruby
josh-k has quit [Remote host closed the connection]
enebo has joined #jruby
pawnbox has quit [Ping timeout: 260 seconds]
djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #jruby
skade has quit [Read error: Connection reset by peer]
skade has joined #jruby
DrShoggoth has joined #jruby
skade has quit [Ping timeout: 244 seconds]
_djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #jruby
skade has joined #jruby
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 252 seconds]
donV has quit [Ping timeout: 240 seconds]
donValentin has joined #jruby
oblutak has left #jruby [#jruby]
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #jruby
<colinsurprenant>
hiya
<colinsurprenant>
is there an existing method to easily convert a Java deep collection (map of map/list) containing Java primitive + String keys/values in a proper Ruby object? looked in the JavaUtil class but did not see
waka has quit [Read error: Connection reset by peer]