<rtyler> headius, enebo: everything in the jruby org on github is basically tested via travisci right now correct?
nickfrd has joined #jruby
<nickfrd> hi
nickfrd has quit [Client Quit]
rrutkowski has joined #jruby
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #jruby
rrutkowski has left #jruby [#jruby]
joast has quit [Ping timeout: 268 seconds]
rrutkowski has joined #jruby
olle has joined #jruby
claudiuinberlin has joined #jruby
<GitHub123> [jruby] khirod12 opened issue #4893: NameError: cannot load Java class jline.console.ConsoleReader https://git.io/vbg6j
shellac has joined #jruby
<GitHub107> [jruby] khirod12 closed issue #4893: NameError: cannot load Java class jline.console.ConsoleReader https://git.io/vbg6j
vtunka has joined #jruby
lopex has quit [Quit: Connection closed for inactivity]
bga57 has joined #jruby
rrutkowski has quit [Ping timeout: 264 seconds]
olle has quit [Quit: olle]
shellac has quit [Quit: Leaving]
drbobbeaty has joined #jruby
<GitHub158> [jruby] thbar opened issue #4894: Is there a way to fail-fast on ambiguous arguments? https://git.io/vbgND
ragge_ has quit []
ragge_ has joined #jruby
Puffball_ has joined #jruby
Puffball has quit [Ping timeout: 248 seconds]
<reto_> Hmm,... I just have a case of a trival script that runs faster with mri than with jruby
<reto_> (even after warmup)
<reto_> (even after warmup)
<reto_> oops
bbrowning_away is now known as bbrowning
olle has joined #jruby
olle has quit [Client Quit]
olle has joined #jruby
joast has joined #jruby
Puffball_ has quit [Remote host closed the connection]
Puffball has joined #jruby
bbrowning is now known as bbrowning_away
shellac has joined #jruby
bbrowning_away is now known as bbrowning
subbu is now known as subbu|afk
<enebo> reto_: open an issue or even post it here for now
shellac has quit [Quit: Computer has gone to sleep.]
rrutkowski has joined #jruby
<headius> enebo: yeah, we'd love to see it
<headius> rtyler: yeah pretty much
subbu|afk is now known as subbu
rrutkowski has quit [Client Quit]
rrutkowski has joined #jruby
lopex has joined #jruby
<rtyler> headius: if I provisioned an account on https://codevalet.io to experiment with times and performance compared to Travis, would you be amenable to a Jenkinsfile in the jruby/jruby repo?
<headius> rtyler: yeah sure, it would be worth exploring
shellac has joined #jruby
<rtyler> I got some budget to onboard more open source projects to do some dogfooding of the leetest and greetest stuff coming down the Jenkins pipe :D
<headius> well I'm glad you thought of us then!
<rtyler> it was somewhat selfish
<rtyler> the second platform I added support for after Ubuntu was FreeBSD, and I have hit a few FreeBSD issues with JRuby in my past :)
<headius> that would be great to have CI for
<enebo> rtyler: if it is not obvious where we will be using that config from can you add a comment in the file where we can see where it is used
ebowling has joined #jruby
vtunka has quit [Quit: vtunka]
ebowling has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ebowling has joined #jruby
ebowling has quit [Client Quit]
ebowling has joined #jruby
ebowling has quit [Client Quit]
ebowling has joined #jruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
ebowling has quit [Client Quit]
ebowling has joined #jruby
ebowling has quit [Client Quit]
jasonsturges has joined #jruby
<jasonsturges> Looking for an older version of JRuby, but the download links are broken.
<jasonsturges> Amazon AWS has no such key.
<jasonsturges> Ah, disregard, I see there's a mirror from: https://github.com/jruby/jruby/issues/4789
shellac has quit [Quit: Computer has gone to sleep.]
rrutkowski has quit [Remote host closed the connection]
rrutkowski has joined #jruby
ebowling has joined #jruby
ebowling has quit [Client Quit]
ebowling has joined #jruby
ebowling has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
shellac has joined #jruby
<bascule> hmmm, this is... odd
<bascule> I have a RubyString whose strLength() is 64, asJavaString() the length() is also 64...
<bascule> but when I call .getBytes() on that, the resulting byte array is length 84...
<bascule> the encoding of the original RubyString is #<Encoding:ASCII-8BIT>
<lopex> might be shared
<bascule> is there a better method I can use to get a byte array of the string?
<lopex> use length field of ByteList
<lopex> or realLength it was ?
<bascule> I'm mostly confused where those extra bytes are coming from
<bascule> I assume it has something to do with encodings
<lopex> it might be a result of substring or something
<lopex> then resulting string will share original buffer
<bascule> this is a RubyString I'm making in Java as it were, from another byte array
<lopex> so maybe it's a result of growing the internal buffer from appending
<bascule> there's no appending happening
<lopex> how do you construct it ?
<lopex> it might use appending internally
<bascule> byte[] keypair = new byte[64];
<bascule> System.arraycopy(verify_key, 0, keypair, 32, 32);
<bascule> System.arraycopy(seed_bytes, 0, keypair, 0, 32);
<bascule> return RubyString.newString(context.getRuntime(), keypair);
<bascule> then in a different method
<bascule> byte[] keypair_bytes = keypair.asJavaString().getBytes();
<bascule> in that last line, keypair.asJavaString().length() is 64, but the length of the resulting byte array is 84
<bascule> this seems to work...
<bascule> byte[] keypair_bytes = keypair.asJavaString().getBytes(StandardCharsets.ISO_8859_1);
rrutkowski has quit [Ping timeout: 264 seconds]
<enebo> bascule: I think that makes a USASCII ByteList
<bascule> everything seems fine if I do .getBytes(StandardCharsets.ISO_8859_1)
<enebo> bascule: which does not fully explain it but it is defintiely what you don't want
<bascule> is that the best approach though?
<enebo> newString(runtime, new ByteList(bytes, whateverthe8859encodingis));
<enebo> hmmm weird
<bascule> the encoding of the resulting RubyString initially seems fine
<enebo> yeah I guess ASCII is 8859
<bascule> #<Encoding:ASCII-8BIT>
<bascule> that's Encoding::BINARY
<bascule> it's only getting mangled inside of Java itself...
<enebo> yeah 8859_1 is how we store binary
<bascule> trying to convert back from the RubyString to byte[]
<enebo> bascule: so getBytes() uses charset of Java itself
<enebo> asJavaString says it obeys charset of encoding so this is a little confusing
<lopex> bascule: getByteList().bytes() ?
<lopex> bytes will only copy
<lopex> can one tell me why CR_Cc appears in object file from here https://github.com/ruby/ruby/blob/trunk/enc/unicode/10.0.0/name2ctype.h#L6481 ?
<lopex> enebo: ^^ ?
<enebo> lopex: this is pretty weird though
<enebo> lopex: asJavaString examines encoding and gets Java charset
<lopex> enebo: yeah, that construction path does just a copy
<enebo> lopex: but then it still thinks it is default file.coding?
<lopex> no
<enebo> lopex: so why is it larger then ... some transcoding must be happening
<lopex> it's hardcoded as this(wrap, ASCIIEncoding.INSTANCE, copy);
<lopex> no idea
<lopex> let's see
<enebo> lopex: you are talking about the constructor only though
<enebo> lopex: he then does asJavaString().getBytes()
<enebo> lopex: the RubyString data is correct
<lopex> aah
<enebo> lopex: so he makes proper RubyString
<lopex> so then decodeString
<enebo> lopex: but asJavaString supposedly will get 8859_1 Charset
<bascule> there's the code in question
<bascule> I'm trying to do the same thing as #to_java_bytes
<enebo> bascule: you can do getByteList().bytes() and it should be fine
<bascule> oh ho JavaArrayUtilities.ruby_string_to_bytes()
<lopex> enebo: a question, why a c macro name would appear in binary ?
<enebo> bascule: there is something I do not understand about our asJavaString(). Seemingly it should be 8859_1 bytes but if it grows that means it is something else
<bascule> enebo: how can I inspect that?
* bascule hits merge, lol
<enebo> bascule: in Java? or Ruby?
olle has quit [Quit: olle]
<enebo> bascule: primitives suck in Java for displaying I generally just make a simple loop but there is probably a nicer way
<bascule> in Java
<enebo> byte[] byteArray = new byte[] { -1, -128, 1, 127 }; System.out.println(Arrays.toString(byteArray));
<bascule> err I meant how can I inspect the encoding of the Java string
<enebo> (googled... :) ). When I do this for reals I usually look at it in a debugger
<enebo> bascule: you can't
<lopex> enebo: so you thinks it's an external encoding artifact or something ?
<bascule> the problem with getByteList() is it's implemented on RubyString... is there a simple conversion from IRubyObject to RubyString that raises a Ruby TypeError?
bbrowning is now known as bbrowning_away
dave__ has joined #jruby
<enebo> bascule: TypeConverter.checkStringType(runtime, obj);
<enebo> bascule: this has one "feature" but you probably want it...it will to_str if it responds
olle has joined #jruby
<bascule> that's ok
<enebo> bascule: if it is a RubyString it will just return and not do anything more than a type check
shellac has quit [Ping timeout: 264 seconds]
<enebo> there is some irony that this is not a return type of RubyString
<lopex> why not just convertToString ?
<bascule> convertToString() looks like exactly what I want, thanks
<enebo> lopex: I did not think of it :)
<lopex> I guess checkStringType might return nil
<lopex> afair
<enebo> but it does a type error if it is not
<enebo> String
<enebo> shoot
<enebo> lopex: yeah it skips nil
<enebo> lopex: this is an MRI method but that is weird
<lopex> enebo: question
<lopex> #define FOO BAR
<lopex> why FOO would appear in object file ?
<enebo> lopex: I don't see why it would
<enebo> lopex: it is a macro
<enebo> lopex: unless there is some debug info now for tracking macro expansion
<lopex> enebo: CR_Cc is in unicode.o
<lopex> yeah
<enebo> lopex: I just made that up but as a feature it would be useful :)
<lopex> shall I look at makefile options in mri build then ?
subbu is now known as subbu|lunch
<enebo> lopex: -g3?
<enebo> lopex: I don't think I ever knew this was possible but in retrospect it would be very helpful
jasonsturges has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<enebo> lopex: assuming gdb, etc... can use it (remember I stopped actively writing C in about 1995)
<enebo> I just passively read it now :|
<lopex> yeah, it works thanks
<lopex> enebo: jeeze looks like I need to parse that gperf output to generate code tange aliases
<lopex> *range
<enebo> lopex: is there a text dump debug thing for perfect hash?
<lopex> yes
<enebo> lopex: ok
<lopex> I cant look into the binary since wordlist array is split by gcc
<lopex> I guess it would be too fragile read that
<GitHub112> [jruby] enebo pushed 2 new commits to bytelist_love: https://git.io/vb2Q0
<GitHub112> jruby/bytelist_love 07224e1 Thomas E. Enebo: Revert "More getName removal"...
<GitHub112> jruby/bytelist_love 59e8a6a Thomas E. Enebo: A lot more ByteList usage in IR.
subbu|lunch is now known as subbu
CustosLimen has quit [*.net *.split]
damnski has quit [*.net *.split]
yopp has quit [*.net *.split]
CustosLimen has joined #jruby
yopp has joined #jruby
damnski has joined #jruby
bbrowning_away is now known as bbrowning
dave__ has quit [Remote host closed the connection]
<chrisseaton> Is headius here?
olle has quit [Quit: olle]
<enebo> chrisseaton: congrats on OSSing svm
dave__ has joined #jruby
dave__ has quit [Ping timeout: 255 seconds]
<rtyler> \o/
<chrisseaton> Yeah - you could use it to have a pure Java launcher now!
<enebo> nice
<havenwood> ooh, that's great news! congrats!
shellac has joined #jruby
<GitHub78> [jruby] enebo pushed 1 new commit to bytelist_love: https://git.io/vbakB
<GitHub78> jruby/bytelist_love 58557e8 Thomas E. Enebo: Amazingly almost everything still passes (spec:ruby:fast totally does)....
shellac has quit [Read error: Connection reset by peer]
<rtyler> provisioned an account
<rtyler> I'll poke around with jruby/joni first and see what I can come up with
dave__ has joined #jruby
dave__ has quit [Ping timeout: 264 seconds]
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dave__ has joined #jruby