<JRubyGithub>
jruby/jruby-1_7 805ccb8 kares: use 'new' CallableSelector methods (with IntHashMap cache) for better performance...
<JRubyGithub>
[jruby] kares pushed 33 new commits to jruby-1_7: http://git.io/j3cL
<JRubyGithub>
jruby/jruby-1_7 ce714cd kares: cleanup JavaUtil - use implicit primitive boxing (instead of explicit) + less array[i] access
<JRubyGithub>
jruby/jruby-1_7 765fee8 kares: more JavaUtil cleanup - "less" startsWith checks in getRubyNamesForJavaName loop
JRubyGithub has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] kares closed issue #2742: Regression in loading Java classes with upper case package names http://git.io/hQDq
JRubyGithub has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] kares closed issue #2749: some array factories do not work http://git.io/hpVR
JRubyGithub has left #jruby [#jruby]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] kares closed issue #1354: Calling .to_java(Java::byte[]) on a RubyArray doesn't convert to a multi-dimensional byte array, but fails with a TypeError exception http://git.io/j3WP
<nirvdrum>
JRuby is pretty good about fixing bugs while maintaining backwards compatibility. Trying a newer version out is usually a safe bet.
e_dub has joined #jruby
<a5i>
Will there ever be some sort of update when all ruby gems can be compatible with JRuby?
colinsurprenant has joined #jruby
colinsurprenant has quit [Client Quit]
gregorsc5 has joined #jruby
Aethenelle has quit [Read error: Connection reset by peer]
e_dub has quit [Quit: e_dub]
blaxter has quit [Quit: foo]
colinsurprenant has joined #jruby
benlovell has joined #jruby
<PragTob>
a5i: Being realistic, I fear that all ruby gems will neber be compatible with JRuby. But a good portion sure is
ssutch has joined #jruby
dinfuehr has joined #jruby
kfpratt has joined #jruby
<ssutch>
hello. i'm debugging an issue i'm not totally sure is directly related to jruby - but we're experiencing it in jruby none-the-less
<ssutch>
it seems that as we spin up more and more threads that once we get to around 75 concurrent SSL connections jruby just dies, seemingly trying to read the ca_certs file
colinsurprenant has quit [Quit: colinsurprenant]
<digitalextremist>
headius, did that commit go into any branch I can pull down and test?
colinsurprenant has joined #jruby
dinfuehr has quit [Remote host closed the connection]
<kares>
ssutch: please try to provide us with a script so we can reproduce the issue (and possible report with details - Java/JRuby/jruby-openssl versions might be important)
<ssutch>
kares: will do, thank you
benlovell has quit [Ping timeout: 256 seconds]
<kares>
ssutch: there's definitely somthing going on lately - probably with the whole internets updating OpenSSL ... just hit something - could you check if you've see it maybe :
<mpapis>
headius, good morning, any materials I could use to use jruby as a front to jvm (like mixing code with scala)
<mpapis>
I mean for next project
<headius>
mpapis: can you elaborate on that a bit?
<ssutch>
kares: and at times it will have an expanded backtrace complaining of a "bad file descriptor" - it has the same backtrace just further detailed
<kares>
so I fixed a test-case on 1_7 that failed test-extended due https to paypal.com (same on MRI 1.9.3) - with the commit other failures got green but there's new failures on test-extended that did not happen previously or locally ... I mean come on travis :)
<kares>
ssutch: in that case it's probably something different ... just shoot us as many back-stack traces as you get :)
<headius>
mpapis: so like a good presentation for you to show Java folks?
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] nirvdrum pushed 2 new commits to truffle_encoding: http://git.io/jsK8
<JRubyGithub>
jruby/truffle_encoding 8f93b7d Kevin Menard: [Truffle] Moved some stuff out of EncodingPrimitiveNodes to EncodingConverterPrimitiveNodes.
<JRubyGithub>
jruby/truffle_encoding 86a2f6b Kevin Menard: [Truffle] Implemented the encoding_converter_primitive_errinfo primitive.
JRubyGithub has left #jruby [#jruby]
<headius>
obviously there's several JRuby talks that would be good for Rubyists
e_dub has joined #jruby
<mpapis>
headius, right, also is there any extra type safety I could apply on jruby (compilation time)
<headius>
no extra type safety
<headius>
mpapis: Mark Menard's talk from JRubyConf.EU would be good
<JRubyGithub>
[jruby] nirvdrum force-pushed truffle_encoding from 86a2f6b to 809a72f: http://git.io/jkRX
<JRubyGithub>
jruby/truffle_encoding 0f310c4 Kevin Menard: [Truffle] Filled in more Encoding::Converter functionality.
<JRubyGithub>
jruby/truffle_encoding c06568a Kevin Menard: [Truffle] Created EncodingConverterPrimitiveNodes.
<JRubyGithub>
jruby/truffle_encoding 32a495c Kevin Menard: [Truffle] Moved some stuff out of EncodingPrimitiveNodes to EncodingConverterPrimitiveNodes.
JRubyGithub has left #jruby [#jruby]
elia_ has quit [Read error: Connection reset by peer]
mister_solo has quit [Remote host closed the connection]
elia has joined #jruby
mister_solo has joined #jruby
camlow325 has joined #jruby
vtunka_ has quit [Quit: Leaving]
erikhatcher has quit [Quit: erikhatcher]
baroquebobcat has joined #jruby
e_dub has quit [Quit: e_dub]
universa1 is now known as universaL
lanceball is now known as lance|afk
e_dub has joined #jruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
e_dub has quit [Client Quit]
e_dub has joined #jruby
dinfuehr has joined #jruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dinfuehr has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] nirvdrum force-pushed truffle_encoding from 809a72f to 5c279e8: http://git.io/jkRX
<JRubyGithub>
jruby/truffle_encoding e74f51a Kevin Menard: [Truffle] Initial import of Rubinius's encoding system.
<JRubyGithub>
jruby/truffle_encoding 06c0938 Kevin Menard: [Truffle] Added the default internal encoding to the encoding map.
<JRubyGithub>
jruby/truffle_encoding 3e6214d Kevin Menard: [Truffle] Make debugging RubyEncodings a bit easier by providing a toString.
JRubyGithub has left #jruby [#jruby]
pitr-ch has quit [Quit: Computer has gone to sleep.]
e_dub has quit [Quit: e_dub]
calavera has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
e_dub has joined #jruby
kares has joined #jruby
subbu has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] nirvdrum force-pushed truffle_encoding from 5c279e8 to 7146eb7: http://git.io/jkRX
<JRubyGithub>
jruby/truffle_encoding 7146eb7 Kevin Menard: [Truffle] Cleaned up a bit now that Rubinius methods won't override Java-based ones if they exist.
JRubyGithub has left #jruby [#jruby]
SynrG has quit [Ping timeout: 244 seconds]
triple_b has joined #jruby
dinfuehr has joined #jruby
dinfuehr has quit [Remote host closed the connection]
calavera_ has joined #jruby
dinfuehr has joined #jruby
dinfuehr has quit [Remote host closed the connection]
benlovell has joined #jruby
e_dub has quit [Quit: e_dub]
colinsurprenant has quit [Quit: colinsurprenant]
Peteykun has quit [Quit: Leaving]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
e_dub has joined #jruby
benlovel1 has joined #jruby
benlovell has quit [Ping timeout: 255 seconds]
e_dub has quit [Client Quit]
calavera has joined #jruby
gregorsc5 has quit [Quit: Leaving.]
calavera_ has quit [Ping timeout: 252 seconds]
lewis1711 has joined #jruby
zorak8 has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
tlarevo has joined #jruby
gregorsc5 has joined #jruby
PragTob has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #jruby
colinsurprenant has joined #jruby
<nirvdrum>
enebo: It looks like https://jruby.org no longer works (http seems fine, however).
<headius>
that would be due to github move
<headius>
hmm
<headius>
looks like this is an open issue on github
havenwood has quit [Remote host closed the connection]
<headius>
enebo: this could be an issue for us too, maybe?
<headius>
all our download links still go to https...does the main site need to be https for trust?
<enebo>
I don’t know…lunch is ready bbiab
calavera has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has quit [Remote host closed the connection]
calavera has joined #jruby
tlarevo has joined #jruby
calavera has quit [Client Quit]
tarcieri_ is now known as tarcieri
colinsurprenant has quit [Quit: colinsurprenant]
benlovel1 has quit [Ping timeout: 252 seconds]
kfpratt has quit [Remote host closed the connection]
<nirvdrum>
headius: The download artifacts are on S3, so https there doesn't seem to be problematic.
<nirvdrum>
FYI, I found out because someone just pinged me to tell me that jruby.org was down. Turns out he was using HTTPS.
benlovell has joined #jruby
<headius>
ahhh ok
colinsurprenant has joined #jruby
x1337807x has joined #jruby
pitr-ch has joined #jruby
benlovell has quit [Ping timeout: 255 seconds]
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #jruby
calavera has joined #jruby
calavera has quit [Client Quit]
anaeem1 has joined #jruby
calavera has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] nirvdrum force-pushed truffle_encoding from 7146eb7 to 4762cc4: http://git.io/jkRX
<JRubyGithub>
jruby/truffle_encoding 4762cc4 Kevin Menard: [Truffle] Cleaned up a bit now that Rubinius methods won't override Java-based ones if they exist.
JRubyGithub has left #jruby [#jruby]
zorak8 has quit [Ping timeout: 264 seconds]
zorak8 has joined #jruby
jeremyevans_ has quit [Ping timeout: 246 seconds]
elia has quit [Quit: Computer has gone to sleep.]
anaeem1 has quit [Remote host closed the connection]
ssutch has quit [Remote host closed the connection]
lance|afk is now known as lanceball
<nirvdrum>
headius: And it looks like it was linked to from reddit somewhere. So it appears at least one existing link was broken in the move.
anaeem1 has joined #jruby
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drbobbeaty has joined #jruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emakris has joined #jruby
mcclurmc has quit [Ping timeout: 244 seconds]
anaeem1 has quit [Remote host closed the connection]
e_dub has joined #jruby
tenderlove has quit [Quit: Leaving...]
<a5i>
What exactly is Truffle ?
<headius>
nirvdrum: ok...we'll see if we get any other reports
mister_solo has quit [Ping timeout: 264 seconds]
tenderlove has joined #jruby
mitchellhenke has joined #jruby
skade has joined #jruby
colinsurprenant has quit [Ping timeout: 256 seconds]
colinsurprenant has joined #jruby
skade has quit [Quit: Computer has gone to sleep.]
<headius>
a5i: Truffle is a language development framework that builds atop the Graal pure-Java JIT
anaeem1 has joined #jruby
JRubyGithub has joined #jruby
<JRubyGithub>
[jruby] bjfish opened pull request #2763: [Truffle] Adding more implementation of Array#initialize. (master...truffle_array_initialize) http://git.io/jZZc
JRubyGithub has left #jruby [#jruby]
benlovell has joined #jruby
kith has quit [Read error: Connection reset by peer]
kith has joined #jruby
kares has quit [Ping timeout: 255 seconds]
mcclurmc has joined #jruby
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #jruby
subbu is now known as subbu|lunch
kares has joined #jruby
skade has joined #jruby
robbyoconnor has quit [Ping timeout: 250 seconds]
calavera has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #jruby
tlarevo has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
tlarevo has joined #jruby
subbu|lunch has quit [Ping timeout: 245 seconds]
mcclurmc has joined #jruby
mcclurmc has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #jruby
skade has quit [Read error: Connection reset by peer]
jeremyevans has joined #jruby
tlarevo has quit [Ping timeout: 246 seconds]
subbu|lunch has joined #jruby
subbu|lunch is now known as subbu
benlovell has quit [Ping timeout: 272 seconds]
calavera has joined #jruby
djbkd has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
lanceball is now known as lance|afk
djbkd has joined #jruby
<headius>
a5i: yes, I am
<headius>
nirvdrum: none of the *19 stuff makes sense now
<headius>
I think we need to say merging days are over, make the non-19 versions be the 19 bodies, make the 19 versions call the old ones, and deprecate (or remove, but that will break some exts) the 19 versions
<headius>
having bodies of code only in 19 versions, as we do in many cases, doesn't make sense
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<headius>
anymore, anyway
<headius>
we did it before to ease merging with 1.7
<nirvdrum>
headius: Okay. This one is particularly perplexing because there are numerous places that call modify() rather than modify19().
<headius>
modify is also the non-coderange-nuking version
<nirvdrum>
Right.
<lopex>
nirvdrum: I dont think so
<headius>
yeah, it's a mess
<lopex>
oh, he answered
<nirvdrum>
I'm asking whether that distinction should exist.
<headius>
nobody should be calling modify from outside anyway so I think we need to clean it up
temporalfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<headius>
it shouldn't really be a public API
<headius>
or they should just be one public method that removes all sharing
<lopex>
java makes it public anyways
<lopex>
and ppl use it
<headius>
damn java
<Antiarc_>
**args doesn't seem to work in 1.7.18 in 2.0 mode; is that a known issue?
<lopex>
headius: I'd vote for removal non 19 versions
<headius>
lopex: you mean remove any non-19 logic we're not using, yeah?
<lopex>
headius: bacause any ext that will bind to incorrect version will make madness bugs
temporalfox has joined #jruby
<lopex>
and some might work by chance
<lopex>
let it break imho
<nirvdrum>
There's also some weird stuff like RubyString#force_encoding calling modify19 (clears code range), then associates the encoding, then clears the code range explicitly.
<nirvdrum>
And associating the encoding both expects the code range to be set and can clear it.
<lopex>
nirvdrum: what does mri do ?
<nirvdrum>
I guess I should start getting familiar with their source.
<lopex>
nirvdrum: it clears cr after associating the encoding
<lopex>
oh and it calls modifiable
<lopex>
so not modify
<lopex>
it shouldnt reallocate on force_encoding
<lopex>
nirvdrum: mri source is really good compared to python
<lopex>
easy to navigate
<nirvdrum>
I haven't at their C source in depth, but their Ruby source is its own special form of hell.
<nirvdrum>
I spent two days tracing through net/http once just to discover that the docs were wrong.
<Antiarc_>
Hahah
<Antiarc_>
I thoroughly enjoy jruby just because of how clean the source is
<Antiarc_>
Digging into MRI feels a little like peering into the eyes of an Eldritch horror
<lopex>
you can get used to that
<Antiarc_>
It makes a certain kind of sense, but you'll lose yourself discovering it.
triple_b has quit [Ping timeout: 250 seconds]
<Antiarc_>
MRI makes sense to me. I think it's mostly just that C is *really* good at misdirecting implementations through macros
<Antiarc_>
well, not misdirecting. Hiding.
<lopex>
Antiarc_: the pitty is that thye fix many bugs by adding goto
<lopex>
*they
<Antiarc_>
You'll end up going through 12 macros across 4 source files just to find a one-line implementation, by which time you've forgotten what you wanted to find out about it.
<lopex>
much easier as quick fix for them
<lopex>
I hope I still remember all that
<lopex>
Antiarc_: and the very beginning we were bitten by lots short circuits mri does
<lopex>
*at
<Antiarc_>
That doesn't surprise me even a little. :)
<lopex>
and most of it is nont consisdent even for it's own merits
gregorsc5 has quit [Quit: Leaving.]
<lopex>
like checking for Fixnum, shor circuiting on Fixnum#+ but then happily funcalling ">" to it
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #jruby
<lopex>
Range is a hell of those
<lopex>
at least it used to be
<lopex>
headius: hey, there should be a holiday period once a year of something when lots of stuff needs to be re-ported
<lopex>
re-portidays
<Antiarc_>
Co-worker of mine is talking about how how he likes the requirejs module system, and it's gotten me thinking -
<Antiarc_>
Really, most of the problems with conflicting versions of Ruby libs is that they share the same namespaces, right?
<Antiarc_>
So if you could say "all modules created in this block get created under this namespace as its root", you could theoretically solve that.
<Antiarc_>
How crazy would that be to tinker with? Basically, rather than assuming a root module that everything is created under, allow for scoped creation of modules under a defined namespace?
<Antiarc_>
Mostlyj ust thought-experimenting here, but it could allow for some interesting things WRT dependency resolution
<Antiarc_>
(I realize this would break lots of stuff because of how things are conventionally used)
rsim has quit [Quit: Leaving.]
<lopex>
once there's refinements it can be easier I guess ?
<Antiarc_>
I guess this might almost be "all modules are refinements"
<Antiarc_>
yeah
tcrawley is now known as tcrawley-away
<Antiarc_>
It's still not quite the same thing, since the idea would be that you could load two versions of the same gem in parallel, and use each in the context it's needed
<Antiarc_>
Whereas right now the gem B would clobber gem A's namespace
<lopex>
yes
<Antiarc_>
So the idea would have to be that you have these empty modules, which you could load the gem into and have the gem refine that module.
<Antiarc_>
Then you could `using GemVersionX` in whatever lexical scope you needed it in
dinfuehr has joined #jruby
djbkd has quit [Remote host closed the connection]
<Antiarc_>
His particular pain point is resolving version conflicts in gems in a large project; it would be pretty cool if you could just depend on the things you needed to, explicitly use them in the context you need, and not worry about that conflicting with other code in the project
<Antiarc_>
But that would require large changes to rubygems and probably to Ruby's module resolution semantics, in any case :)
<Antiarc_>
Would be neat though.
djbkd has joined #jruby
<nirvdrum>
headius: Re: start-up time. I'm seeing the JFFI strings all go through the slow path for string length calculations at startup.
<nirvdrum>
I haven't looked into it much. I'm just hitting it a lot in a debugger.
<headius>
nirvdrum: huh, interesting
<headius>
I guess they're all cr=unknown though eh?
<nirvdrum>
Yeah.
<headius>
what strings do you mean?
<nirvdrum>
The "rbx.platform.typedef." ones.
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #jruby
<nirvdrum>
The cheap fix might be setting the code range when reading strings from a file like the lexer does.
<headius>
ahh yes
<headius>
yeah that would be the fix
<headius>
are those read by a Ruby IO?
anaeem1 has quit [Ping timeout: 246 seconds]
<nirvdrum>
Debugging Ruby from Java is a bit hard, but I think they're being read by lib/ruby/shared/ffi/types.rb.
<nirvdrum>
That does a File.open and #each_line on the handle.
enebo has quit [Quit: enebo]
anaeem1_ has joined #jruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #jruby
djbkd has quit [Remote host closed the connection]
drbobbeaty has joined #jruby
colinsurprenant has quit [Quit: colinsurprenant]
djbkd has joined #jruby
kares has quit [Ping timeout: 252 seconds]
donV has quit [Quit: donV]
a5i has quit [Quit: Connection closed for inactivity]
<nirvdrum>
Ugh. I think I just found a bug in RubyConverter#primitive_convert.
subbu has quit [Ping timeout: 265 seconds]
kfpratt has joined #jruby
<nirvdrum>
Yeah. This isn't fun.
<nirvdrum>
There's a trailing null byte. It looks like the end pointer is off by one.
kfpratt has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #jruby
<headius>
nirvdrum: oh really?
<headius>
that would be my fault I guess
elia has joined #jruby
<nirvdrum>
headius: I'm filing the issue right now. I'm still trying to trace it to see if I can work it out.
elia has quit [Read error: Connection reset by peer]
<headius>
ok
<nirvdrum>
The pointer bump happens in Econv. So it might be a problem there. But we might just be setting the real size when we shouldn't be.
<headius>
most of that code should match up with MRI
skade has joined #jruby
<headius>
but it gets into some HAIRY stuff really fast
elia has joined #jruby
djbkd has quit [Remote host closed the connection]
<headius>
I've been meaning to try to set up remote debugging of ruby + java
djbkd has joined #jruby
<headius>
with jit threshold=0 it should be possible to step from one to the other, if the source paths are available to the debugger
<nirvdrum>
But that ec.convert call bumps outPtr.p from 16 to 17 on the second pass.
<nirvdrum>
And there are only 16 bytes in there.
elia has quit [Client Quit]
<headius>
ahh yeah :-\
<headius>
I think the problem is below then
<headius>
I'm not positive though
<nirvdrum>
This is sort of an evil case anyway. The source string is 16 bytes. We see the buffer is full and then allocate another 32 bytes. But they're never used.
anaeem1 has quit [Remote host closed the connection]
dinfuehr has quit [Remote host closed the connection]
anaeem1 has joined #jruby
<headius>
I can take a look after I've got everything green on my branch again
<headius>
which I sure hope is going to happen in the next couple hours
elia has joined #jruby
elia has quit [Client Quit]
<nirvdrum>
Cool. I'm looking at MRI in the interim.
<nirvdrum>
Incidentally this is the one thing preventing me from getting green.
anaeem1 has quit [Ping timeout: 252 seconds]
<headius>
ok
djbkd has quit [Remote host closed the connection]
skade has joined #jruby
skade has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
<nirvdrum>
So many pointers.
<nirvdrum>
I don't really get why output_byteoffset_v is being set to Qnil.
<nirvdrum>
Well, I'm breaking for dinner. I'll be looking it again afterwards.
skade has joined #jruby
a5i has joined #jruby
subbu has joined #jruby
mje113__ has quit [Quit: Connection closed for inactivity]
<headius>
ok
<headius>
I will probably not...going on 12 hours straightof this stuff for me today