<JRubyGithub>
jruby/master cab9b48 Benoit Daloze: Eclipse: Ignore more Eclipse-generated files.
JRubyGithub has left #jruby [#jruby]
noop has quit [Ping timeout: 258 seconds]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] k77ch7 opened pull request #2321: Fix for issue 2182 on jruby-1_7 : Struct#inspect with utf8 encode string member (jruby-1_7...GH-2182_struct_has_ascii_encoding) http://git.io/SSZDNQ
JRubyGithub has left #jruby [#jruby]
mkristian has joined #jruby
noop has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] k77ch7 opened pull request #2322: change name of files which pass rspec regression test on master (master...change_name_of_files_which_pass_rspec_regression_test_1215) http://git.io/n9Yf1w
JRubyGithub has left #jruby [#jruby]
enebo has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] enebo pushed 2 new commits to master: http://git.io/zlsiig
<JRubyGithub>
jruby/master 20095ad Thomas E Enebo: Merge pull request #2322 from k77ch7/change_name_of_files_which_pass_rspec_regression_test_1215...
JRubyGithub has left #jruby [#jruby]
marr123 has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] k77ch7 opened issue #2323: failing GH-652 spec file on current master http://git.io/8PximA
JRubyGithub has left #jruby [#jruby]
marr has quit [Ping timeout: 245 seconds]
marr123 is now known as marr
vyorkin has joined #jruby
<nirvdrum>
headius: End up getting anywhere with that eval stuff?
<enebo>
nirvdrum: I am working on it now
<nirvdrum>
Ahh, cool.
<nirvdrum>
I was just wondering how deep it went :-)
<enebo>
nirvdrum: and by working on it I mean to say I am going to pair with subbu a little bit this week. I ripped it all out but our rubyclass algo got boned in the process
benlovell has joined #jruby
<nirvdrum>
enebo: Did you happen to see asirah's PR to move Travis build instance types?
<enebo>
nirvdrum: long story short IR has special “cubby” for shared variable scopes which can go away and simplify eval also in IR ni addition to removing the code you highlight
<nirvdrum>
enebo: Nifty.
<enebo>
nirvdrum: IR is old enough where we supported 1.8 semantics and this is still fallout from that
<nirvdrum>
I guess 1.8 permeates other things.
<nirvdrum>
I hadn't realized how old the IR stuff was until recently. I thought you guys started on it ~18 months ago.
<enebo>
nirvdrum: I did see it and it looks promising to me. I don’t mind not running 1.8 by default if that is the main issue
<subbu>
enebo, i haven't followed the discussion carefully .. but will catch up later.
mcclurmc has joined #jruby
<enebo>
subbu: yeah I will talk to you on IM about it too :)
<subbu>
k
<enebo>
subbu: not very difficult but I am missing something
<enebo>
subbu: I also changed allocation mechanism is directedgraph this weekend. but I will externalize this as a dep (well I already have dirgra)
anaeem1 has quit [Remote host closed the connection]
<subbu>
k
dfr|work has quit [Ping timeout: 258 seconds]
anaeem1_ has joined #jruby
cajone has quit [Remote host closed the connection]
cajone has joined #jruby
rsim has quit [Quit: Leaving.]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #jruby
Aethenelle has joined #jruby
dfr|work has joined #jruby
mcclurmc has quit [Remote host closed the connection]
subbu is now known as subbu|breakfast
mitchellhenke has joined #jruby
<Aethenelle>
anyone know if there's a way to get a list of the ruby requirements for a given ruby?
<Aethenelle>
mpapis: ^
noop has quit [Ping timeout: 264 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
erikhatcher has joined #jruby
mcclurmc has joined #jruby
subbu|breakfast is now known as subbu
mitchellhenke has joined #jruby
anaeem1_ has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
anaeem1 has joined #jruby
pchalupa has quit [Quit: Leaving]
erikhatcher has quit [Quit: erikhatcher]
Aethenelle has quit [Ping timeout: 256 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
mcclurmc has joined #jruby
mitchellhenke has joined #jruby
Neomex has joined #jruby
tenderlove has joined #jruby
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #jruby
Aethenelle has joined #jruby
tenderlove has quit [Ping timeout: 258 seconds]
Aethenelle has quit [Ping timeout: 264 seconds]
Aethenelle has joined #jruby
mcclurmc has quit [Remote host closed the connection]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] eregon pushed 2 new commits to master: http://git.io/8TUTcA
<JRubyGithub>
[jruby] headius opened issue #2324: Array#flatten! call in java_import breaks if we import a class with static to_ary http://git.io/oKWJ-w
JRubyGithub has left #jruby [#jruby]
triple_b has joined #jruby
claudiuinberlin has quit [Quit: Leaving.]
mcclurmc has quit [Remote host closed the connection]
Aethenelle has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
jruby/master ea530e2 Thomas E. Enebo: Move directed graph into external project
<enebo>
and trust me the iterable/iteration stuff still exists with tons of system array copying for that to continue working :)
<enebo>
variable name info is another expensive hashmap consumer and tbh I have never liked the impl so that one will likely hit the chopping block soon but this is good enough for now assuming it is really working
<enebo>
var name info in IRScope
<enebo>
relocating to coffeeshop
<enebo>
bbiab
enebo has quit [Quit: enebo]
Aethenelle has quit [Quit: Aethenelle]
Aethenelle has joined #jruby
tenderlove has quit [Read error: Connection reset by peer]
<lopex>
headius: the --dev option has some meaning wrt IR in post 1.7 ?
<momomomomo>
Morning all, I’m having a slight issue when taking a JSON string, which is encoded using Hash#to_json, converting to java bytes (.to_java_bytes), and trying to insert it into a db. Apparently the to_java_bytes process is taking some strings (similar to “600x300 - ….”) and converting those to characters like 0x09, and further others are losing their forward slash which escapes quotation mark. Has anyone else encountered issues like this? Are th
<momomomomo>
ways around it?
<momomomomo>
The strings are properly encoded prior to the to_java_bytes, I reckon, but need to do more exact testing on the ones giving me issues. Figured I’d ask around here to see if there was a known issue
<headius>
momomomomo: what's the encoding of those strings?
<headius>
er hmm...so it's going through json
<momomomomo>
they’re utf-8 as read from CSV
<headius>
you might check that the json string you get from it is still encoded properly
<momomomomo>
right, that’s my next step
<headius>
it might be turning into ascii, which would be a bug in json
<momomomomo>
aye, I’m going to try appending .encoding(‘utf-8’) after the to_json
<momomomomo>
to try and force encoding
<momomomomo>
:|
<headius>
ok
<headius>
open an issue any time
<momomomomo>
ack I hope it’s not needed, just wanted to see if you all were aware of any
<bbrowning>
the torqbox gem won't be getting any updates except to maybe depend on torquebox-web, but 'torquebox-web' 4.0.0.alpha1 is an updated version of it basically
<bbrowning>
some bug fixes over the last 'torqbox' release, despite its alpha version
momomomomo has joined #jruby
<lopex>
oh, that's cool
mcclurmc has quit [Remote host closed the connection]
<momomomomo>
headius: I’ve confirmed at least one of the issues
<enebo>
nirvdrum: A lot more to come but this uncovered lots of stuff to correct…mostly ramifications of having two runtimes woven to work together
<momomomomo>
as a #to_java_bytes issue :|
<nirvdrum>
enebo: Sweet.
cultureulterior1 has quit [*.net *.split]
LTe_ has quit [*.net *.split]
jgdavey has quit [*.net *.split]
eregon has quit [*.net *.split]
neoice has quit [*.net *.split]
Scient has quit [*.net *.split]
haze has quit [*.net *.split]
quadz has quit [*.net *.split]
rtyler has quit [*.net *.split]
lanceball has quit [*.net *.split]
<headius>
momomomomo: excellent...something we can fix
<headius>
also, thank goodness for nickname completion
<nirvdrum>
enebo: And here I thought you guys might be able to save an allocation or two.
mitchellhenke has joined #jruby
<enebo>
headius: haha
cultureulterior1 has joined #jruby
jgdavey has joined #jruby
LTe_ has joined #jruby
eregon has joined #jruby
quadz has joined #jruby
haze has joined #jruby
rtyler has joined #jruby
neoice has joined #jruby
lanceball has joined #jruby
Scient has joined #jruby
<headius>
I guess it could be worse, like mornomornomomorno
<momomomomo>
not sure what to do - I have a json string at the end of a tab delimited string which is escaped properly, that’s being screwed with. Eg: “val1\tval2\t{“key”: “Value … \”escaped quot \””}” - upon import, postgresql shows that the string didn’t have the quotes escaped
<momomomomo>
headius: ha
headius is now known as IlIlIIlIllIlI
jsgoecke has joined #jruby
<momomomomo>
why would to_java_bytes remove the escaping forward slash? IlIlIIlIllIlI
<momomomomo>
erm backslash
IlIlIIlIllIlI is now known as headius
<headius>
momomomomo: can you make a short code snippit and gist it for me?
<momomomomo>
aye was working on that, but want to use the real string for posterity.. and a single line is pretty long
<momomomomo>
give me a sec
<headius>
to_java_bytes literally just copies out the bytes as a fresh new byte[]
djbender has quit [Ping timeout: 244 seconds]
mcclurmc has joined #jruby
djbender has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] headius created test-instance_eval-self-fix-2301 (+1 new commit): http://git.io/V64j2g
<JRubyGithub>
jruby/test-instance_eval-self-fix-2301 7178caa Charles Oliver Nutter: Use target self as frame self for instance_eval. Fixes #2301....
JRubyGithub has left #jruby [#jruby]
<momomomomo>
hm headius actually this is pretty weird
aemadrid has joined #jruby
<momomomomo>
before to_java_bytes, the string is fine. running my_string.to_java_bytes.to_s returns the same string; however, postgresql reports that the quote wasn’t escaped when it received the data headius
<headius>
momomomomo: what do you do what the bytes once you have them?
<momomomomo>
I’m gisting up the code and error now, headius , I’m using the postgresql.jdbc adapter to copy the row into the db
<momomomomo>
sorry for potato quality, but I cut out the unnecessary components
<headius>
momomomomo: you can confirm the byte[] content by turning it into an array or back into a String again... String.from_java_bytes or row.to_a
<momomomomo>
I had, with a my_to_java_bytes_string.to_s
<momomomomo>
and the content looks to be as the same as when I put the row before to_java_bytes headius
<momomomomo>
can’t tell if the issue is with the jdbc postgresql adapter, or jruby
<headius>
yeah perhaps it wants double-escaping or something
<headius>
at the moment it doesn't seem like a jruby issue...if you've confirmed the byte[] looks like it should and the driver doesn't like it, there's a gap here
<headius>
i the byte[] doesn't look right, I wouldn't suspect to_java_bytes because it's very simple
<momomomomo>
aye
<momomomomo>
time to dig further I guess
<headius>
asarih: I think sudo: false is a fine change on both 1.7 and master branches, but 1.7 wants Java 6 and master wants Java 7
<headius>
what is the default? I assume we can't use sudo: false on one of them
<asarih>
headius: you can switch with a custom script "jdk_switcher". That's how JDK is chosen when you put "jdk" key.
<asarih>
headius: Java 7 is the default, IIRC.
<headius>
so 8 just requires sudo because it has to be installed?
<asarih>
correct
<asarih>
well, it is installed in such a way that requires 'sudo'.
<headius>
so we would stop using "jdk" section and add switched to script?
<headius>
or is JDK section fine
<asarih>
if you can install it in any directory and set $JAVA_HOME, that's up to the repository to manage.
<asarih>
right. the env var will have to managed separately, since there may not be appropriate matrix expansion.
<asarih>
Java 8 might be coming soon, though.
<headius>
hmmm ok
<headius>
I'm not clear exactly what change I need then
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Ping timeout: 245 seconds]
josh-k has quit [Remote host closed the connection]
mitchellhenke has joined #jruby
<headius>
nirvdrum: add a link if you get a chance
<headius>
bbl all
mister_solo has quit [Ping timeout: 264 seconds]
havenwood has joined #jruby
<nirvdrum>
Added.
tenderlove has joined #jruby
anaeem___ has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
<jsgoecke>
Hello all. In Jruby v1.7.8. It appears that on Linux if I use RestClient to open a socket, it closes just fine. But over time I seem to have a File Descriptor leak of PIPE and eventpoll types not getting GC'd. Any ideas?
joast has joined #jruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
codefinger has joined #jruby
<nirvdrum>
jsgoecke: Is it reproducible in 1.7.17?
<jsgoecke>
Let me give it a try there
mitchellhenke has joined #jruby
tenderlove has joined #jruby
<nirvdrum>
I just ask because a lot has changed over the releases.
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] Zapotek opened issue #2325: undefined method `define_method' for main:Object http://git.io/wdAZqA
JRubyGithub has left #jruby [#jruby]
<jsgoecke>
nirvdrum Yes, it does appear to persist in v1.7.17
<nirvdrum>
That's unfortunate.
<nirvdrum>
If there isn't an issue open already, please file one.
<bbrowning>
doing any moderately complex json parsing with multiple threads in the same runtime causes tons of contention there
pietr0 has joined #jruby
<rtyler>
bbrowning: that's the gem that's bundled with the ruby stdlib?
<bbrowning>
rtyler: Is it bundled these days? I don't rightly know :)
<rtyler>
`require 'json'` seems to work by default nowadays for me
* rtyler
shrugs
<nirvdrum>
Yeah. It's bundled.
<nirvdrum>
Leading to the abandonment of multi_json and Rails switching to using 'json' directly.
<nirvdrum>
Which sucks because 'json' also has a hard-code depth limit of 20.
<bbrowning>
is that the right source for the bundled json then?
<bbrowning>
because if so, we can make it a lot faster on jruby I bet
<rtyler>
wat? really nirvdrum? that's dumb
<bbrowning>
need to do some testing here but I've got most threads twiddling their thumbs waiting on a lock when doing heavily concurrent json parsing
<nirvdrum>
Maybe it's been increased, but there is a hard-coded limit.
<rtyler>
bbrowning: I have to run to some more meetings, if you end up filing an issue or pull requests for this will you add me? (rtyler) so I can follow along
<rtyler>
we do lots of json parsing in numerous request threads under jruby
<bbrowning>
rtyler: sure! I just want to make sure I'm looking at the right source first :)
<headius>
bbrowning: nice, good fix
<rtyler>
how are you identifing the contention?
<bbrowning>
rtyler: well, let me put it another way - I know the json gem has a TON of contention
<nirvdrum>
rtyler: Unfortunately, my concerns weren't addressed.
<rtyler>
oh rght, I should dig up my yourkit license now that I'm running linux again
<bbrowning>
rtyler: visualvm can easily show this as well
<bbrowning>
all the threads spend the majority of their time doing nothing
<bbrowning>
headius: can you confirm that the 'json' gem is shipped as part of jruby itself now? ie how do I go about modifying json locally and testing those changes?
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] jsgoecke opened issue #2326: File descriptor leak of type 'PIPE' when 'net/http' used to do a GET http://git.io/bDVesg
JRubyGithub has left #jruby [#jruby]
mcclurmc has quit [Remote host closed the connection]
purplefox has quit [Ping timeout: 255 seconds]
mcclurmc has joined #jruby
josh-k has joined #jruby
<bbrowning>
hmm I'll have to pick this up tomorrow
bbrowning is now known as bbrowning_away
tenderlo_ has joined #jruby
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ is now known as tenderlove
enebo has quit [Quit: enebo]
havenn has joined #jruby
<headius>
bbrowning_away: it is
<headius>
you'll want to modify json from florian's source, build gem, and install to test
<headius>
-I might work too
havenwood has quit [Ping timeout: 250 seconds]
havenn has quit [Remote host closed the connection]
subbu has quit [Ping timeout: 258 seconds]
havenwood has joined #jruby
skade has joined #jruby
dyer has joined #jruby
havenwood has quit [Ping timeout: 250 seconds]
subbu has joined #jruby
subbu is now known as Guest38795
Guest38795 has quit [Remote host closed the connection]
<jeremywoertink>
I'm getting an error that says cannot link Java class org.blah.Thing, probable missing dependency: org.other.Stuff.thisMethod
<jeremywoertink>
I can see that the method exists, but I get this error when trying to java_import some class
<jeremywoertink>
What sort of stuff should I look for to see why I get this error?
Aethenelle has quit [Quit: Aethenelle]
viking has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 272 seconds]
subbu_ has quit [Ping timeout: 245 seconds]
<headius>
jeremywoertink: probably an additional jar not getting loaded
<jeremywoertink>
That's what I figured, but I can run this java example in eclipse fine, but outside in jruby it tanks
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<jeremywoertink>
I don't have anymore jars to include
skade has quit [Quit: Computer has gone to sleep.]
<headius>
Eclipse has its classpath set up by the project, so that doesn't tell me much
subbu_ has joined #jruby
<jeremywoertink>
ah. Do you know if I can see what the classpath is set to in eclipse?
<headius>
yeah, check .classpath file usually
<jeremywoertink>
I'm not very familiar with using it >_<
subbu_ has quit [Read error: Connection reset by peer]
<headius>
this error is almost always a missing jar
<headius>
or a jar version mismatch
subbu_ has joined #jruby
<jeremywoertink>
ok, cool. That at least points me in a direction. Thanks!
colinsurprenant has quit [Ping timeout: 256 seconds]
josh-k has quit [Remote host closed the connection]
<codefinger>
it appears there are a number of Ruby2.0 String methods that are not present in RubyString.java of the jruby-1.7 branch (but they are in master). any reason for this? one of them prevents WebBrick from starting up.
<codefinger>
no, Webrick starts up, but fails on requests
<nirvdrum>
codefinger: There were some features that couldn't be easily implemented such as Module#prepend and keyword args (IIRC), so any API depending on them working also wasn't ported.
<nirvdrum>
Unfortunately, unless it's a trivial fix, I don't think you'll see any other 2.x changes land in 1.7.x
Aethenelle has quit [Read error: Connection reset by peer]
<codefinger>
ok cool. i'll stop worrying about it then :)
<nirvdrum>
codefinger: I'd do up the PR and ping one of them. If you're not around tomorrow, I can ping them for you.
<codefinger>
will do. thanks
<nirvdrum>
Partial 2.0 support in 1.7 has created more problems than it's solved, I'm afraid.
<nirvdrum>
We need to get 9k out the door.
<codefinger>
i don't know anyone who's actually using it. I was just testing things on our platform (heroku) and ran into. so it's probably not that high priority of a fix.
<chrisseaton>
codefinger: it could be shimmed I guess anyway
<codefinger>
and...no one should be using WEBrick anyways :P