slyphon has joined #jruby
nateberkopec has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:02817a8 by Kevin Menard): The build has errored. (http://travis-ci.org/jruby/jruby/builds/48290960)
travis-ci has left #jruby [#jruby]
colinsurprenant has quit [Quit: colinsurprenant]
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
Aethenelle has joined #jruby
dinfuehr has joined #jruby
dinfuehr has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
nirvdrum has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
nateberkopec has joined #jruby
skade has joined #jruby
skade has quit [Ping timeout: 272 seconds]
tcrawley-away is now known as tcrawley
tcrawley is now known as tcrawley-away
nateberkopec has quit [Quit: Leaving...]
skade has joined #jruby
skade has quit [Ping timeout: 245 seconds]
diegoviola has joined #jruby
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
colinsurprenant has joined #jruby
nateberkopec has joined #jruby
skade has joined #jruby
CodeWar has joined #jruby
<CodeWar> Does JRuby patch bytecode on the fly or for that matter is that even supported on JVMs officially or unofficially
<CodeWar> hot patching would mean updating bytecode in some Classloader loaded class and telling JVM about this. The expectation would be that this causes an invalidation of the underlying native translations for that class and sends hotspot back to the interpreter for that code site
skade has quit [Ping timeout: 276 seconds]
CodeWar has quit [Quit: (null)]
pgokeeffe has joined #jruby
nateberkopec has quit [Quit: Leaving...]
yfeldblum has quit [Read error: Connection reset by peer]
skade has joined #jruby
yfeldblum has joined #jruby
skade has quit [Ping timeout: 255 seconds]
diegoviola has quit [Quit: WeeChat 1.1]
diegoviola has joined #jruby
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
SpaceToast has joined #jruby
<SpaceToast> hello, anyone alive? I'm having an issue on cygwin where jruby fails to detect native extensions of gems
pgokeeffe has quit [Quit: pgokeeffe]
<SpaceToast> if I try to use jgem to pristine them, it says I have no write permissions (even if mintty is ran as admin and the permissions on GEM_HOME are 777)
<SpaceToast> any idea what that's about
<SpaceToast> ?
skade has joined #jruby
skade has quit [Ping timeout: 255 seconds]
diegoviola has quit [Quit: WeeChat 1.1]
pchalupa has quit [Quit: Computer has gone to sleep.]
havenwood has joined #jruby
skade has joined #jruby
skade has quit [Ping timeout: 256 seconds]
skade has joined #jruby
yfeldblu_ has joined #jruby
yfeldblum has quit [Ping timeout: 264 seconds]
rsim has joined #jruby
dinfuehr has joined #jruby
dinfuehr has quit [Remote host closed the connection]
dinfuehr has joined #jruby
dinfuehr has quit [Remote host closed the connection]
temporalfox has joined #jruby
dumdedum has joined #jruby
rtyler_ is now known as rtyler
rtyler has quit [Changing host]
rtyler has joined #jruby
dinfuehr has joined #jruby
dinfuehr has quit [Ping timeout: 244 seconds]
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pchalupa has joined #jruby
SpaceToast has left #jruby ["WeeChat 1.0.1"]
havenwood has quit []
dinfuehr has joined #jruby
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
pgokeeffe has joined #jruby
colinsurprenant has quit [Quit: colinsurprenant]
pgokeeffe has quit [Ping timeout: 264 seconds]
multibot_ has quit [Remote host closed the connection]
multibot_ has joined #jruby
deobalds has joined #jruby
deobalds has quit [Client Quit]
vtunka has joined #jruby
skade has joined #jruby
Hobogrammer_ has quit [Ping timeout: 265 seconds]
elia has joined #jruby
nirvdrum has joined #jruby
nirvdrum has quit [Ping timeout: 252 seconds]
saga65 has joined #jruby
PragTob has joined #jruby
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
drbobbeaty_ has joined #jruby
drbobbeaty has quit [Ping timeout: 264 seconds]
<rtyler> PragTob:
nirvdrum has joined #jruby
nirvdrum_ has joined #jruby
marr has joined #jruby
nirvdrum has quit [Ping timeout: 244 seconds]
drbobbeaty_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
auxbuss has joined #jruby
auxbuss has quit [Client Quit]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] eregon pushed 2 new commits to master: http://git.io/QScnuQ
<JRubyGithub> jruby/master 694f4a6 Benoit Daloze: [Truffle] JT: Use compact + find.
<JRubyGithub> jruby/master 6250a05 Benoit Daloze: [Truffle] JT: --asm implies --graal.
JRubyGithub has left #jruby [#jruby]
<temporalfox> hi there, anyone knows how to deal with JavaObject and convert it back to a more regular Ruby object ?
shellac has joined #jruby
pgokeeffe has joined #jruby
pgokeeffe has quit [Client Quit]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:6250a05 by Benoit Daloze): The build has errored. (http://travis-ci.org/jruby/jruby/builds/48328216)
travis-ci has left #jruby [#jruby]
<chrisseaton> CodeWar: JRuby achieves that using the SwitchPoint class from the invokedynamic work
skade has quit [Quit: Computer has gone to sleep.]
deobalds has joined #jruby
JohnBat26 has joined #jruby
pgokeeffe has joined #jruby
os97673 has joined #jruby
skade has joined #jruby
drbobbeaty has joined #jruby
os97673 has quit [Remote host closed the connection]
os97673 has joined #jruby
Aethenelle has quit [Quit: Aethenelle]
Aethenelle has joined #jruby
Aethenelle has quit [Client Quit]
<temporalfox> so is really java_method useful in jruby ? I'm using it because it allows me to cache method object from the class but calling "invoke" does not returns me a proper ruby object
<temporalfox> the normal invocation uses the same JavaMethod object but with invokeDirect
<temporalfox> and has its return object usable
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
os97673 has quit []
bbrowning_away is now known as bbrowning
Scorchin has quit []
Scorchin has joined #jruby
Xzyx987X_ has joined #jruby
bbrowning_ has joined #jruby
skade has quit [Ping timeout: 252 seconds]
yosafbridge` has quit [Ping timeout: 252 seconds]
bruceadams has quit []
Xzyx987X has quit [Ping timeout: 252 seconds]
bruceadams has joined #jruby
yosafbridge has joined #jruby
skade has joined #jruby
bbrowning has quit [Ping timeout: 252 seconds]
nateberkopec has joined #jruby
bbrowning_ is now known as bbrowning
pgokeeffe has quit [Quit: pgokeeffe]
deobalds has quit [Quit: Computer has gone to sleep.]
Aethenelle has joined #jruby
asarih has quit []
asarih has joined #jruby
jeregrine has quit []
jeregrine has joined #jruby
tcrawley-away is now known as tcrawley
<temporalfox> another question "java_method" does not seem to work on Java 8 interface static methods. Any idea of a work around ?
<chrisseaton> temporalfox: you'll probably need to wait a couple of hours for answers to these, while the US wakes up
<temporalfox> yes probably
<temporalfox> probably here is not the best place
<temporalfox> as it's not good for asking questions and getting answers later
<chrisseaton> I can't think of anywhere better
<temporalfox> that kind of force me to work at night :-)
<temporalfox> without a guaranteed rsponse
<temporalfox> a list would be better
<chrisseaton> I can normally help with JRuby stuff on an EU time zone, but I don't know about Java interop I'm afraid
<temporalfox> chrisseaton ok thanks for the info
<temporalfox> I whish I could invoke invokeDirect on JavaMethod
Aethenelle has quit [Quit: Aethenelle]
BurningChrome has joined #jruby
<temporalfox> I could use a java static class as workaround for invoking this maybe
erikhatcher has joined #jruby
shellac has quit [Quit: Ex-Chat]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:6250a05 by Benoit Daloze): The build passed. (http://travis-ci.org/jruby/jruby/builds/48328216)
travis-ci has left #jruby [#jruby]
<nirvdrum_> temporalfox: There is a mailing list: https://github.com/jruby/jruby/wiki/MailingLists
<nirvdrum_> You probably won't get an answer any faster, but at least you don't have to wait around.
nirvdrum_ is now known as nirvdrum
<temporalfox> nirvdrum I'll psot there
<temporalfox> I found a solution to my problem by subclassing a JavaMethod
<temporalfox> and override the behavior of invoke
<temporalfox> not proud of that but will allow me to move forward
<temporalfox> and I can then explain my needs on the list
havenwood has joined #jruby
nirvdrum has quit [Quit: Leaving]
e_dub has quit [Quit: e_dub]
slyphon has joined #jruby
DrShoggoth has joined #jruby
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
Aethenelle has joined #jruby
metadave has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
metadave has quit [Client Quit]
skade has joined #jruby
metadave_ has quit [Ping timeout: 272 seconds]
enebo has joined #jruby
metadave has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 2 new commits to master: http://git.io/ctF25Q
<JRubyGithub> jruby/master 7e40b2a Thomas E Enebo: Merge pull request #2513 from Who828/2512_issue...
<JRubyGithub> jruby/master 307e432 Smit Shah: Correctly parse kereq in RubyMethod args
JRubyGithub has left #jruby [#jruby]
colinsurprenant has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo closed pull request #2516: Remove exclusion of nonfailing tests (master...excluded_tests_cleanup) http://git.io/v8YJzA
JRubyGithub has left #jruby [#jruby]
mitchellhenke has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
mitchellhenke has joined #jruby
mitchell_ has joined #jruby
triple_b has joined #jruby
mitchellhenke has quit [Ping timeout: 264 seconds]
n1ftyn8 has quit []
n1ftyn8 has joined #jruby
viking has joined #jruby
temporalfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
e_dub has joined #jruby
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #jruby
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #jruby
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #jruby
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #jruby
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #jruby
kb-kt has joined #jruby
kares has joined #jruby
skade has joined #jruby
<kb-kt> Hi together, i have a question regarding jruby + RoR + IntelliJ Idea Ultimate. I have setup the priject successfully as a jruby on rails project. I would like to preocmpile the who.
<kb-kt> whole rails project.
<kb-kt> I have tried this: https://www.jetbrains.com/ruby/help/generating-archives.html. But it doesnt work. Is there another way than using the warbler plugin maybe?
tenderlove has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] jcoyne opened issue #2519: TypeError: bind argument must be an instance of #<Module:0x483af9f5> http://git.io/c1yb8g
JRubyGithub has left #jruby [#jruby]
mitchell_ has quit [Quit: Computer has gone to sleep.]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:2c1f22c by Thomas E Enebo): The build was broken. (http://travis-ci.org/jruby/jruby/builds/48350106)
travis-ci has left #jruby [#jruby]
mitchellhenke has joined #jruby
temporalfox has joined #jruby
erikhatcher has quit [Quit: erikhatcher]
nirvdrum has joined #jruby
subbu has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/r3wBFg
<JRubyGithub> jruby/master ac6458c Thomas E. Enebo: 2 flaky tests on ci
JRubyGithub has left #jruby [#jruby]
tenderlove has quit [Quit: Leaving...]
tenderlove has joined #jruby
dinfuehr has quit [Ping timeout: 272 seconds]
subbu has quit [Ping timeout: 245 seconds]
ivan\ has quit [Remote host closed the connection]
ivan\ has joined #jruby
_dabradley has joined #jruby
dabradley has quit [Ping timeout: 264 seconds]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] eregon pushed 1 new commit to master: http://git.io/I5Z5_A
<JRubyGithub> jruby/master d9577f9 Benoit Daloze: [Truffle] Symbol#id2name is Symbol#to_s.
JRubyGithub has left #jruby [#jruby]
dinfuehr has joined #jruby
camlow325 has joined #jruby
mrmargolis has joined #jruby
dinfuehr has quit [Remote host closed the connection]
dinfuehr has joined #jruby
bryancp has quit []
vtunka has quit [Ping timeout: 264 seconds]
bryancp has joined #jruby
Hobogrammer has joined #jruby
shellac has joined #jruby
baroquebobcat has joined #jruby
dinfuehr_ has joined #jruby
gazarsgo has quit []
gazarsgo has joined #jruby
temporalfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dinfuehr_ has quit [Remote host closed the connection]
rsim has quit [Read error: Connection reset by peer]
DomKM has quit []
DomKM has joined #jruby
pchalupa has quit [Quit: Computer has gone to sleep.]
rsim has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:d9577f9 by Benoit Daloze): The build was fixed. (http://travis-ci.org/jruby/jruby/builds/48360643)
travis-ci has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] eregon pushed 1 new commit to master: https://github.com/jruby/jruby/commit/ed3448620287e640b93ac211e89ae6773844602d
<JRubyGithub> jruby/master ed34486 Benoit Daloze: [Truffle] JT: Allow to run from any directory and keep cwd for `run`....
JRubyGithub has left #jruby [#jruby]
temporalfox has joined #jruby
<nirvdrum> Quiet day today.
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 2 new commits to master: https://github.com/jruby/jruby/compare/ed3448620287...6da31a200864
<JRubyGithub> jruby/master 7fb91e7 Chris Seaton: [Truffle] Fix reading of objects from frames as opposed to reading any value.
<JRubyGithub> jruby/master 6da31a2 Chris Seaton: [Truffle] Start support for Marshal.
JRubyGithub has left #jruby [#jruby]
dinfuehr has quit [Quit: dinfuehr]
mcclurmc_ has joined #jruby
<headius> kb-kt: look into Warbler...it can precompile and package up your app as a .war file
colinsurprenant has quit [Quit: colinsurprenant]
<headius> SpaceToast: dunno if you got an answer... JRuby does not support C extensions in 1.7+. What library are you trying to use?
<kb-kt> headius: thank you for your answer. i submitted a comment on jetbrains page, and started to create my own config file for the warbler gem.
<headius> temporalfox: I'm unclear what you're using java_method for. You shouldn't need to cache anything on your own. As for your question...if there are places where the method object differs unreasonably from regular dispatch, we can discuss ways to improve it
<headius> kb-kt: ok great
<headius> yorickpeterse: there are some autoconversions for a few types in JRuby's ext API, but not RubyArray
Who has joined #jruby
<temporalfox> headius ok hi
<Who> hey
<headius> if you know it's a RubyArray you can just cast the IRubyObject
mcclurmc has quit [Ping timeout: 265 seconds]
<temporalfox> so it works with java_method, not caching it though
<Who> enebo: hey, I was thinking of picking this issue https://github.com/jruby/jruby/issues/2511
<temporalfox> headius when using java_method, the returned objects are not wrapped in proxies
<enebo> Who: sure but be aware that it is highly dependent on #2015
<headius> yorickpeterse: I'm not sure how Rubinius handles the case of passing something other than specified type into a primitive, but opted not to magically attempt to cast it and fail
<temporalfox> I have to rewrite the JavaMethod objects using this https://gist.github.com/vietj/a87ffcba5ab24d7da546
<headius> but we opted, rather
<temporalfox> to work around
<temporalfox> I think that either I'm missing something or JavaMethod is missing something :-)
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<enebo> Who: The algo for detecting required kwargs just removes from the original hash and you will probably want to change how that is done
<temporalfox> java_method allows to control dispatch
elia has quit [Quit: Computer has gone to sleep.]
<enebo> Who: The other complicating factor is each recv_kwargs instr regenerates this hash
<headius> temporalfox: so java_method and java_send are both intended to be raw escape hatches, skipping all double-dispatch and conversion logic
<temporalfox> headius that's what I need
<enebo> Who: but you will learn quite a bit from the experience
<Who> nice
<temporalfox> because we generate wrapper from java code, we know how dispatch should be done
<headius> ok....and JavaMethod is giving you what type of objects back?
<Who> enebo: I also want help out with search_required implementation, both seem to excellent issues for me to learn more
<temporalfox> headius invoke retursn a JavaObject
<headius> temporalfox: if you're doing integration this deeply you may want to consider writing a JRuby extension
<temporalfox> headius invokeDirect retursn the correct object
<headius> temporalfox: ah...yes
<temporalfox> headius I like having ruby source code because, rubyist can look at it
<Who> enebo: okay, I will focus on #2015 then. It should help me out with frozen hash issue as well
<headius> temporalfox: right, I understand that
<temporalfox> headius even if it contains generated code, it gives a more readable thing
<temporalfox> headius or native binding code
subbu has joined #jruby
<enebo> Who: yeah the issue is we subtract/delete each reqd element from the original hash which is why frozen hashes don’t like it
<headius> yeah so I think you should open an issue...I remember wanting to fix java_method so it returned something that returns normal-looking Ruby objects or Java object wrappers rather than JavaObject, but never got around to it
<temporalfox> headius so I hacked an invoke that returns like invokeDirect
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<headius> right
<headius> ok I get it now
<enebo> Who: but it also bones 2015 because it mutates the orignial hash so after the call all the reqd elements are gone
<temporalfox> headius as for java_send I had issues with static method interfaces in java 8
<enebo> Who: so same underlying issue
<temporalfox> headius I believe it is not possible to use it with such methods
<headius> temporalfox: I think there's an outstanding issue for that I haven't resolved
<headius> basically it just doesn't look for static methods on interfaces
<temporalfox> headius one thing isthat it reutrns a module for java_class lookup
<temporalfox> headius and this module does not provide a way to obtain a method
<enebo> Who: An unknown to me is whether kwargs hashes are required to dup or not on the way in
<headius> yeah it should be returning the proxy class wrapper
<headius> this may be a breaking change if we fix it in 9k
<headius> if anyone's depending on the object being a java_object
<headius> er JavaObject
<enebo> Who: if they do then the original strategy would work just by dup’ing on the way in and unfreezing the dup
<eregon> enebo, headius: if I modify pom.rb I can just every change made by rake maven:dump_poms, right?
<headius> eregon: that's the idea, yes
<temporalfox> headius so I should open an issue for JavaObject return object wrapping in GitHub ?
<headius> and I think it works :-)
<headius> temporalfox: please do
<headius> and for the static interface methods
<enebo> hah I was going to say in theory
<eregon> - <jruby.plugins.version>1.0.3</jruby.plugins.version>
<eregon> + <jruby.plugins.version>1.0.7</jruby.plugins.version>
<eregon> - <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<eregon> + <arg value="test/mri/ruby/test_process.rb" />
<eregon> I get these funny changes but seem reasonable
<temporalfox> headius ok, also my code has some failures with IllegalAccessException to a public method, I had to add method.setAccessible(true)
<Who> enebo: sure, I’ll just test it out
pietr0 has joined #jruby
<temporalfox> headius I'll outline it in the issue
<headius> temporalfox: odd, ok
<headius> eregon: we sometimes forget to update pom.rb so just make sure the changes seem reasonable
<headius> and run anything you're concerned about by mkristian
<eregon> headius: do these above look OK?
<temporalfox> headius https://github.com/jruby/jruby/issues is the right place ?
<headius> yeah they look ok
paulswilliamsesq has joined #jruby
<headius> temporalfox: yes
<headius> dbussink: what do rbx primitives do if you pass a value that's not the type specified in C++?
paulswilliamsesq has quit [Remote host closed the connection]
<enebo> eregon: I question the test_procss.rb
<headius> enebo: I just added that late last week
<enebo> headius: ^ you remove it at some point
<headius> to mri.index
<enebo> oh so it should be added
<enebo> but that means it was not added yet?
<headius> I'm guessing mkristian added it to the additional runs his embedding profiles do
<eregon> headius: so looks good, no?
<enebo> oh I see it is getting added to some other profile
<headius> enebo: he duplicates mri.index in those builds
<headius> yeah
<enebo> ok cool
<headius> eregon: yes looks good to me
<eregon> cool, I'll push that, we have Truffle in Maven Central now
pietr0 has quit [Quit: pietr0]
mje113__ has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] eregon pushed 2 new commits to master: http://git.io/FmfA
<JRubyGithub> jruby/master 7e3f984 Benoit Daloze: Use Maven Central to fetch Truffle jars.
<JRubyGithub> jruby/master 3cdfc85 Benoit Daloze: Other changes done by rake maven:dump_poms.
JRubyGithub has left #jruby [#jruby]
mje113__ has quit [Client Quit]
mje113__ has joined #jruby
<headius> eregon: oh excellent
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
camlow32_ has joined #jruby
<Who> enebo: cloning args (non-dup) worked I think
<Who> got rid of the exception
camlow325 has quit [Ping timeout: 246 seconds]
fniephaus has joined #jruby
camlow32_ has quit [Remote host closed the connection]
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
Hobogrammer has quit [Ping timeout: 272 seconds]
<eregon> any idea what is this: [WARNING] Failure to transfer rubygems:equalizer/maven-metadata.xml from https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced. Original error: Could not transfer metadata rubygems:equalizer/maven-metadata.xml from/to sonatype-nexus-snapshots (https://oss.sonatype.
<eregon> org/content/repositories/snapshots): Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/rubygems/equalizer/maven-metadata.xml. Return code is: 500 , ReasonPhrase:Server Error.
<eregon> I get lots of them while just trying to build
<Who> same here
<eregon> and [WARNING] The POM for rubygems:jruby-ripper:gem:2.1.0.dev-20140815.170930-2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
<eregon> which means the build takes forever :/
<Who> enebo: so I had to dup keyWodArguments before deleting them
<Who> to fix 2015 and frozen args issue
oblutak has joined #jruby
colinsurprenant has joined #jruby
colinsurprenant has quit [Client Quit]
<headius> eregon: I think the first one is because we have many maven repos and they are each checked for deps
e_dub has quit [Quit: e_dub]
matthias_ has joined #jruby
<headius> the rubygems deps come out of the torquebox proxy
<headius> the latter issue should be fixed
<headius> I use -pl flag to maven to reduce what I need to rebuild
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/FmZC
<JRubyGithub> jruby/master 667e30f Chris Seaton: [Truffle] Truffle::Debug.storage_class for Hash
JRubyGithub has left #jruby [#jruby]
colinsurprenant has joined #jruby
camlow325 has joined #jruby
camlow325 has quit [Remote host closed the connection]
colinsurprenant has quit [Client Quit]
<headius> may have bitrotted a bit, but it's a clang-based struct/function FFI generator
<cremes> headius: holy crap, that’s exactly what i’m looking for. google sucks finding anything ffi related (too many hits)
<cremes> thank you!!
<headius> no problem...I'd love to get that into more peoples' hands and make it possible to generate on install
<headius> one of the great projects out there I just don't have cycles to support and promote
<cremes> that is some neat stuff. love it!
jumex has joined #jruby
<headius> cremes: enebo has wanted to play with mmap for files in the past, but we've only ever done experiments
<headius> part of the issue of having no-copy string is that the mmap'ed memory has to remain alive as long as any of those strings are alive
<headius> not to mention string-based-on-mmap potentially seeing changes
matthias_ has quit [Ping timeout: 246 seconds]
<headius> happy to chat more about it when you start looking into mmap though
<cremes> headius: true. i’m sure there will be some complexity down the road that will require some tricks to make it work reliably. when i have something working i’ll ping you guys so you can look at it.
<headius> what's your goal with mmap btw?
<cremes> initiially those strings will get copied to avoid the very issue you raise. longer term it would be great to make IO zero-copy
<cremes> goal is to improve rbx IO perf
<cremes> secondary goal is to simplify the IO class code. using mmap means no longer f’ing around with buffers since the OS does it for you.
<headius> well the OS has some buffers, yes
paulswilliamsesq has joined #jruby
<headius> part of the reason there's such extensive buffering in MRI is to avoid the cost of transcoding
<cremes> sure, but i don’t have to worry about failed reads. treating the file as a block of memory greatly simplifies access and the OS hides the buffering.
<headius> well, it will be interesting to see if it helps :-) I have not noticed buffering being a perf issue for us, but obviously we do it differently
<cremes> sure, jruby has a different approach. i got started on this because I looked at the IO ruby code and my eyes started to bleed. nasty! i think mmap will simplify a lot of it.
<headius> how do you mmap a file that's growing?
<cremes> don’t know. i’ll figure that out when i get to it. :)
camlow325 has joined #jruby
<Who> cremes: replacing IO buffers by just using memory mapped files where OS takes care of flushing the buffer etc?
<cremes> Who: partly
PragTob has quit [Remote host closed the connection]
<cremes> there will still be some buffering logic in IO but it will be reserved for Sockets and those systems that don’t support mmap.
colinsurprenant has joined #jruby
pchalupa has joined #jruby
camlow325 has quit [Remote host closed the connection]
<Who> hmm I wonder why mmap wasn’t used to start with, maybe there was a reason or something since maintaining buffers could be challenging
colinsurprenant has quit [Client Quit]
colinsurprenant has joined #jruby
colinsurprenant has quit [Quit: colinsurprenant]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/Fmw3
<JRubyGithub> jruby/master 658b588 Chris Seaton: [Truffle] Translate Rubinius to ::Rubinius in Rubinius kernel code....
JRubyGithub has left #jruby [#jruby]
<cremes> Who: no idea.
diegoviola has joined #jruby
<chrisseaton> on 32bit machines was there the address space available to mmap large files?
<cremes> chrisseaton: that may be part of the reason. however, i don’t think the rbx project has any intention to support 32-bit systems anymore
colinsurprenant has joined #jruby
<cremes> also, mmap does work on 32-bit boxes but there’s more trickery involved.
camlow325 has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:3cdfc85 by Benoit Daloze): The build has errored. (http://travis-ci.org/jruby/jruby/builds/48369674)
travis-ci has left #jruby [#jruby]
<enebo> Who: back
<enebo> Who: cool. Fling PR if you are ready
<Who> duping keywords failed some specs, so looking at them
<jumex> This might be a noob question, but I thought I’d ask here. I am trying to use enebo’s jmx gem (https://github.com/enebo/jmx) to create custom MBeans for a Rail app I am writing. The example has a server variable that has default_domain and register_mbean methods on it. Does anyone know how I can set that up in my Rails app, and where I can find the server variable?
<enebo> headius: Do we start jmx server by default for JIT stats?
<headius> enebo: not unles you pass --manage
<headius> that enables jmx server and turns on our metrics
<headius> well the metrics are always there, but not exported
<enebo> manage works from JRUBY_OPTS right?
<enebo> jumex: It may be a noob question but it has been so long since I fixed an issue in that gem some of my domain knowledge is gone
<enebo> jumex: I think if you start JRuby with —manage we will make a server in JRuby runtime itself. Then we just need to grab a reference to it
<enebo> hmmm perhaps not using that
<enebo> —manage will enable JMX but you might want to make a server for just your stuff
<headius> enebo: it should
<Who> enebo: seems like rubyspec fails if we dup the keywords arg
dumdedum has quit [Quit: foo]
<enebo> Who when do you dupe?
<nirvdrum> That missing colon makes reading that last message very confusing :-P
<enebo> heh
<enebo> we just need Who working with What on an issue
<Who> Don’t forget When and where :D
<Who> enebo: yep
<enebo> :)
<enebo> jumex: Depending on how you want to connect using JMX is more complicated and probably best figured out by reading a general JMX document but jmx_server_test does show a URL for a port-based connection
<enebo> jumex: I know this gem still works because Java has not changed but my brain swapped some of this knowledge out :)
yfeldblu_ has quit [Ping timeout: 245 seconds]
chrisseaton has quit []
chrisseaton has joined #jruby
fniephaus has quit [Quit: fniephaus]
nirvdrum has quit [Ping timeout: 252 seconds]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/FmFh
<JRubyGithub> jruby/master 48de773 Chris Seaton: [Truffle] A bit more work on Marshal.
JRubyGithub has left #jruby [#jruby]
cpuguy83 has quit [Remote host closed the connection]
cpuguy83 has joined #jruby
<Who> enebo: strange thing is rubyspec doesn’t fail when I run MRI mspec on it
metadave has joined #jruby
<enebo> Who: you mean MRI passes and we don’t right? Or do you mean something else?
<Who> yeah
<Who> with dup change
<enebo> Who: yeah so dup might not be the right change perhaps. I guess you will know once you isolate what is wrong
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
<jumex> enebo: Thanks for the reply! I am going to try with the simple_server to start and see where it gets me.
<enebo> jumex: great
<jumex> I am running Rails with the following options, which should spin up the JMX server in any case: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8686 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
Neomex has joined #jruby
temporalfox has quit [Quit: Textual IRC Client: www.textualapp.com]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/FYLE
<JRubyGithub> jruby/master 8ddcf61 Chris Seaton: [Truffle] String from a long code point.
JRubyGithub has left #jruby [#jruby]
subbu has quit [Ping timeout: 264 seconds]
subbu has joined #jruby
<enebo> jumex: just saw that now. Yeah I thnk you should be able to use similar snippet to the test_server_test code and get it up. Be aware that this will get you going but you will probably need some security at some point if you want that in a prod env
<enebo> jumex: but once you get your bean going you can figure out how to lock down the connection
<jumex> enebo: Totally! We lock our stuff down from the network side, so that part I think I have underhand.
<Who> enebo: found the issue
<Who> between MRI and JRuby
<Who> all test fail when there is a keywordsRest arg is there
<Who> def foo(bar: 'baz', **k); puts bar, k end
<Who> opts = {:bar=>"something", :k=>2}
<Who> foo(opts)
<Who> should give
<Who> something
<Who> {:k=>2}
<enebo> Who: yeah
yfeldblum has joined #jruby
<enebo> Who: that was another reason for removinbg required kwargs
<Who> but it gives
<Who> something
<Who> {:bar=>"something", :k=>2}
<Who> on JRuby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to master: http://git.io/FY3I
JRubyGithub has left #jruby [#jruby]
<JRubyGithub> jruby/master dafa4cc Chris Seaton: [Truffle] Truffle#graal? #substate? and #version
<enebo> Who: but it worked before your patch
<enebo> Who: right?
<Who> yeah because we removed the arg
<Who> hence during recivekeywordrest things worked fine
<enebo> Who: yeah it seems like kwarg.dup; <- save in runtime (Interpreter); all recv_kwargs instrs work on that single instance
<enebo> Who: I am guessing each instr still extractsKwargsArg probably?
<Who> yeah
<enebo> Who: yeah so that is the next part is massaging the interpreter (and likely the JIT but let’s not worry about that yet)
<enebo> Who: probably for interpreter as interpretercontext( ic) if ic.receivesKeywordArguments and save that at top of interpret
<enebo> err if that is true extractKwargs and save as a local
<enebo> Who: Then pass it to the method which has the recv instrs for kwargs
<enebo> Who: Then they will all be working on a single copy
<Who> makes sense, I was trying to dup at higher level to get it working now
baroquebobcat has quit [Quit: baroquebobcat]
<enebo> Who: yeah actually duping at higher level might solve it too
baroquebobcat has joined #jruby
<enebo> Who: The only detail is that we can only extractKwargs once
<Who> enebo: just one last thing, only RubyFixNum can’t be duped?
<enebo> Who: You should only need to dup the hash but yeah no immediate values can be dup’d in ruby
<enebo> Who: fixnum, float (2.1+), boolean, nil are all immediate objects
mrmargolis has quit [Remote host closed the connection]
<Who> enebo: I tried duplicating args at interpreter level
AlHafoudh has joined #jruby
<Who> maybe I think it’s not the right level
yorickpeterse has joined #jruby
<Who> figuring out who calls interpret
<yorickpeterse> MRI provides a function rb_block_call() that lets you call a method that uses yield from C. Does JRuby have something similar to this?
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:48de773 by Chris Seaton): The build has errored. (http://travis-ci.org/jruby/jruby/builds/48381256)
travis-ci has left #jruby [#jruby]
elia has joined #jruby
<enebo> Who: InterpretedIRBlockBody
<enebo> CompiledIRBlockBody is for compiler
<enebo> Who: but don’t worrk about compiled
dinfuehr has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
subbu has quit [Ping timeout: 252 seconds]
<Who> enebo: checking for instanceof RubyHash at InterpretedIR level isn’t helping, can I do a check like arg hasMethod dup or something?
<enebo> Who: The logic for doing this can be found in IRRuntimeHelpers.java:extractKwargsHash
<enebo> Who: it is unfortunate that RubyHash is the storage facility for kwargs since we cannot directly tell whether it is just a hash or a kwargs holder
<Who> enebo: so I had done this patch, https://gist.github.com/Who828/f4c5f617efac26c2b906
<enebo> Who: oh duping all arguments
elia has quit [Quit: Computer has gone to sleep.]
nirvdrum has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] enebo pushed 1 new commit to master: http://git.io/FYS1
<JRubyGithub> jruby/master 6eae595 Thomas E. Enebo: Remove IRMethod.callArgs+keywordArgs and IRClosure.blockArgs+keywordArgs...
JRubyGithub has left #jruby [#jruby]
<Who> however sadly this isn’t duping the keyword arguments at all
<enebo> Who: here I will try a quick stab to show what I think will work
<Who> sure
<Who> my idea was basically dup all RubyHash at InterpretedIRBlockBody and the pass them down, so passed args don’t get mutated
<enebo> Who: I think a shallow dup of only kwargs hash is needed for this to work
e_dub has joined #jruby
<enebo> Who: fwiw I think our current impl of this is pretty icky overall but I would like more confidence before trying to change it
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:8ddcf61 by Chris Seaton): The build has errored. (http://travis-ci.org/jruby/jruby/builds/48384732)
travis-ci has left #jruby [#jruby]
yorickpeterse has left #jruby ["The NSA took my baby"]
<enebo> Who: This is an icky bug. I fixed the block case with that snippet but in order to do this in a place which fixes both methods and blocks it should happen in a place where I don’t know how many required variables exist
<enebo> InterpreterContext could record that so we can put this logic into interpreter
<enebo> but in order to do that IRMethod and IRClosure need to know required arg count
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] headius reopened issue #2301: unable to get value of object's fields in RubyMine debugger http://git.io/ChLQvA
JRubyGithub has left #jruby [#jruby]
<enebo> Who: So I hope you at least learned to navigate around the code base better but this one might not be so simple for you to fix
<Who> heh, yeah its not a simple bug
<Who> also one thing I noticed InterpretedIRBlockBody, when I printed the args
<Who> all were RubyLex objects
skade has joined #jruby
<enebo> mpapis: yeah good to me too
<enebo> mpapis: e.g. ditto to what headius said
<mpapis> :)
<mpapis> so I will push a new version in few
Who has quit [Quit: Who]
dinfuehr has quit [Ping timeout: 244 seconds]
triple_b has quit [Ping timeout: 256 seconds]
<Aethenelle> seems like I missed a SecureRandom discussion...
<Aethenelle> Did you guys figure something out?
drbobbeaty has quit [Read error: Connection reset by peer]
drbobbeaty has joined #jruby
elia has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
subbu has joined #jruby
e_dub has quit [Quit: e_dub]
amdprophet_ has quit [Remote host closed the connection]
zph has quit [Remote host closed the connection]
flavorjones has quit [Remote host closed the connection]
portertech has quit [Remote host closed the connection]
colinsurprenant has quit [Quit: colinsurprenant]
<headius> Aethenelle: on that Array#hash bug?
<Aethenelle> yup
skade has joined #jruby
dinfuehr has joined #jruby
pietr0 has joined #jruby
portertech has joined #jruby
amdprophet_ has joined #jruby
paulswilliamsesq has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has quit [Ping timeout: 272 seconds]
nirvdrum has quit [Ping timeout: 264 seconds]
towski has quit [Ping timeout: 255 seconds]
zph has joined #jruby
colinsurprenant has joined #jruby
flavorjones has joined #jruby
towski has joined #jruby
Felystirra has joined #jruby
ahadding1 has joined #jruby
ahadding1 has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:6eae595 by Thomas E. Enebo): The build passed. (http://travis-ci.org/jruby/jruby/builds/48392651)
travis-ci has left #jruby [#jruby]
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
elia has joined #jruby
dinfuehr has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
kares has quit [Ping timeout: 265 seconds]
bbrowning is now known as bbrowning_away
diegoviola has quit [Ping timeout: 245 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<jumex> enebo: I made the example in the README for the jmx gem work. Also, update JMX.simple_server to be able to pass in the server and registry: https://github.com/enebo/jmx/pull/12
<headius> nice
<headius> Aethenelle: yeah I think we'll just pull a number from the same place we bootstrap SecureRandom
<headius> assuming we've resolved all blocking-on-start-to-aqcuire-salt issues, it should be fine
<enebo> jumex: cool. Thanks for the PR
<jumex> Thanks for the gem!
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jumex> enebo: Oops. Small typo: https://github.com/enebo/jmx/pull/13
yfeldblum has joined #jruby
Felystirra has quit []
nateberkopec has quit [Quit: Leaving...]
viking has quit [Remote host closed the connection]
errstr has quit [Ping timeout: 272 seconds]
errstr has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 4 new commits to master: http://git.io/FOdp
<JRubyGithub> jruby/master 4adfeac Chris Seaton: [Truffle] Lots of Marshal working.
<JRubyGithub> jruby/master 22250a4 Chris Seaton: [Truffle] We can run more of core than we think.
<JRubyGithub> jruby/master 0ba07c1 Chris Seaton: [Truffle] Make core spec exclusions more precise.
JRubyGithub has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 1 new commit to truffle-head: http://git.io/FOFV
JRubyGithub has left #jruby [#jruby]
<JRubyGithub> jruby/truffle-head 7d26b4b Chris Seaton: Merge branch 'master' into truffle-head
<Aethenelle> A decent fallback should be to pull the seed from Random. it's not a CSPRNG, but I think it's better for this use than a pointer address.
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #jruby
Felystirra has joined #jruby
Felystirra has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]
mrmargolis has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] chrisseaton pushed 3 new commits to master: http://git.io/FOh1
<JRubyGithub> jruby/master ed6ccf7 Chris Seaton: [Truffle] Some Set failures.
<JRubyGithub> jruby/master a4686d8 Chris Seaton: [Truffle] Exclude all of the erb specs so we can expect zero failures from :rubysl
<JRubyGithub> jruby/master c9ae6ab Chris Seaton: [Truffle] Don't allow RubySL specs to fail.
JRubyGithub has left #jruby [#jruby]
mcclurmc_ has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
diegoviola has joined #jruby
elia has joined #jruby
nateberkopec has joined #jruby
tcrawley is now known as tcrawley-away
JRubyGithub has joined #jruby
<JRubyGithub> [jruby] sferik opened pull request #2520: Move methods from BasicObject to Object (master...move_methods_to_object) http://git.io/F3Tr
JRubyGithub has left #jruby [#jruby]
dinfuehr has joined #jruby
mcclurmc has joined #jruby
dinfuehr has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
ivan\ has quit [Read error: Connection reset by peer]
ivan\ has joined #jruby
r0bby_ is now known as robbyoconnor
imperator has joined #jruby
shellac has joined #jruby
DrShoggoth has quit [Quit: Leaving]
<imperator> howdy
<headius> hi there!
<imperator> i'm on a mission
mcclurmc has quit [Remote host closed the connection]
<headius> a Windows mission!
mcclurmc has joined #jruby
<imperator> indeed
colinsurprenant has quit [Quit: colinsurprenant]
<imperator> we're into win32api stuff :(
elia has quit [Quit: Computer has gone to sleep.]
<imperator> i think i have it down to a ReqQueryValueEx call