sgeorge has joined #jruby
sgeorge has quit [Read error: No route to host]
sgeorge has joined #jruby
sgeorge has quit [Remote host closed the connection]
NightMonkey has quit [*.net *.split]
Osho has quit [*.net *.split]
Osho has joined #jruby
NightMonkey has joined #jruby
sgeorge has joined #jruby
sgeorge has quit [Read error: Connection reset by peer]
sgeorge has joined #jruby
sgeorge has quit [Remote host closed the connection]
Eiam has quit [Ping timeout: 260 seconds]
havenwood has quit [Quit: ZNC 1.7.1 - https://znc.in]
havenwood has joined #jruby
<headius> ok something's goofy about the generated errno we merged in
<headius> I"m not sure what is causing the errno problems yet...the values are the same, although longs instead of ints
<headius> well I didn't audit every line but thing appear to line up
jmalves_ has joined #jruby
jmalves_ has quit [Remote host closed the connection]
jmalves has quit [Ping timeout: 245 seconds]
drbobbeaty has joined #jruby
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
justinmcp has joined #jruby
drbobbeaty has joined #jruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #jruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #jruby
<kares> running RG.org locally - compared to MRI one visible difference in speed lost seems to be "raw" partial rendering
<kares> not yet sure why - guessing maybe a lot of string copy-ing
<kares> headius enebo anyone of you know about this/have looked at it in the past?
<kares> is there really a reason for it to be slower?
<kares> oh right it seems to get on par with MRI after some warmup
<kares> this is 9.2 (from master)
<kares> ok so its still 'worse' ... got 12.30 (mean) request/second compared to 29.63 on 2.5.1
<headius> kares: yo
<headius> huh, I don't know what would cause that...sounds like a good opportunity
<enebo> kares: yeah I am not aware either but if IO is suspects maybe see if you can run 1.7.x and see if we are better?
<headius> enebo: I'm going to sort out the constants thing today
<headius> I don't see anything obviously weird in the updated linux constants
<enebo> headius: ok I bet it is only a couple at most
<headius> and I don't get failures locally on MacOS
<enebo> one was just wrong value for almost all of the specs
<enebo> the last I think was same EBADF that we see in test:jruby
<headius> could you generate linux jnr-constants again and see what's diff for you?
<enebo> what was the command again? rake generate?
<headius> I did see one or two values change but the vast majority did not
<headius> rake generate:platform I think
<headius> or regen:platform
<enebo> generate : platform did something but no diff
<enebo> I will regen
<headius> spinning up my ubuntu vagrant
<enebo> some tiny differences
<enebo> -AF_MAX(41L);
<enebo> +AF_MAX(44L);
<headius> show me
<enebo> same value for PF_MAX
<enebo> and SIGUNUSED does not exist for me
<enebo> but I will gist the diff
<headius> that's one I noticed
<headius> and that's Fedora yeah?
<enebo> yeah
<enebo> FC28
<headius> ok
<headius> enebo: you build with 8 for day to day work?
<headius> I'm having some weird effect where I think I'm building with 8 but it's picking up those ByteBuffer.clear methods added in 9
<headius> ugh wtf
<headius> it's using 9 for maven even though 'java' is pointing at 8
<enebo> I am using 8 yeah
<enebo> I almost feel like I need some java version randomizer so I am constantly using a different one
<headius> ugh, it's passing
<headius> oh wait not on branch
sgeorge has joined #jruby
<headius> enebo: we may have to accept the reality of release builds requiring both an 8 JDK and a 9+ JDK
<headius> the API changes they make are really difficult to avoid without bootstrapping off 8
<enebo> headius: so long as we can regularly build off of 8 and use it daily then the only requirements is releasing with 9 right?
<enebo> I am happy largely using 8 for day to day over 9+ for a loooong time
<headius> yes, only requirement would be for release
<lopex> next lts is 11 right ?
<headius> yes
<headius> that's why I want to get back to JPMS work
<lopex> and that cds thing ?
<lopex> how does it apply to jruby ?
<lopex> enebo: I'm still not seeing the artifacts deployed, though I have seen the uploads completed successfully for staging
<enebo> lopex: did you close them from sonatype then release them?
<enebo> lopex: or you just mean for a snapshot?
<lopex> enebo: did what ?
<enebo> lopex: you need to log into oss.sonatype and in the web ui close the artifacts you want to release. If they successfully close then you can use the ui to release them
<enebo> lopex: this is a safety net for not doing things properly like signing since once the artifact is really published you cannot change it
<headius> lopex: and CDS/AOT but that's a longer term thing too
<headius> how does it apply? CDS?
jmalves has joined #jruby
jmalves has quit [Read error: Connection reset by peer]
jmalves has joined #jruby
<kares> enebo: not really an option for a full Rails app, maybe some parts but those parts also changed in Rails
<kares> hopefully I can easily profile out just the rendering parts I want and it gives a clue
jmalves has quit [Ping timeout: 252 seconds]
<lopex> enebo: jeeze this thing is slow
sgeorge has quit [Remote host closed the connection]
<lopex> enebo: oh, so I close multiple stating artifacts at once
sgeorge has joined #jruby
<lopex> enebo: ok, signature thing
<lopex> lol how clueless I was about it
sgeorge has quit [Read error: Connection reset by peer]
sgeorge has joined #jruby
jmalves has joined #jruby
<headius> enebo: I think I was right about there being some binary incompat in the new stuff
<headius> appears that most of these errors are due to jnr-enxio now using an "invalid argument" for some native read operation
<headius> I'm going to try to isolate what change it is that caused the breakage and undo it
<headius> I thought these would still be binary compat but I forgot some constants might not have been generating before
<enebo> headius: yeah I wondered if we would fall over to something generic if something was not defined but I am not sure I can still articulate what scenario that would be
<enebo> kares: RG server is an excellent real world use case for us too. Not a ton run it but everything acknowledges it as a usefule real world app
<headius> I'd love to see RG.org run JRuby too :-D
<headius> we have a lot of fragile logic around hiding and unhiding errno results inside IOException
<headius> JDK does it, we do it to conform to Channel API, but not consistently doing this translation is an issue
sgeorge has quit [Read error: Connection reset by peer]
sgeorge_ has joined #jruby
sgeorge_ has quit [Remote host closed the connection]
xardion has quit [Remote host closed the connection]
xardion has joined #jruby
Eiam has joined #jruby
<lopex> enebo: so after cliking release it's done ?
<lopex> headius: hey there was a problem with pool.sks-keyservers.net
<lopex> I could recv-key from it, but that http layer didn work
<lopex> and sonatype uses that
<lopex> I had to send to ubuntu key server
<lopex> and that fixed the problem
<lopex> thye query a bunch of them
<lopex> *they
sgeorge has joined #jruby
<headius> enebo: this jnr-constants update is becoming a major headache
<headius> most of this stuff had not been regenerated in years and now there's all these weird issues coming up because the enums were manually changed before
<enebo> headius: can you see actual errors in generation?
<headius> errors?
<headius> I'm not positive but I believe these errno issues are a knock-on effect from some enums changing
<headius> and I discovered a moment ago that jnr-posix was using the Windows "LastError" constants directly
<enebo> headius: yeah I mean if the enums changed values that is what I mean by errors since the manually entered ones were working?
<headius> I'm trying to patch up the issues
<headius> I have no evidence that changed values are the problem yet
<headius> so far it seems more likely that it's binary incompat due to enums that got reordered
<enebo> oh you mean the enum of 2 is something else from last compilation
<enebo> so anything using it would need to recompile against it?
<enebo> you have said binary incompat a couple of times but I am unsure what you specifically mean
<headius> Java enums are binary-compatible if you only ever add values to the end of the list
<enebo> headius: yeah I was just making sure you just mean that
<headius> right
<headius> I thought we fixed most of these so they didn't reorder but still having problem
<headius> so the error coming out if jnr-enxio is an EINVAL during the read, which according to man page means the fd is negative
<enebo> headius: So was the sort one of the bigger issues?
<headius> jnr-enxio throws IOException with the platform's description for EINVAL and we're not handling that in our IOException-to-Errno conversion in JRuby
<headius> that's why it ends up a weird SystemCallError
<enebo> ah
<headius> so jnr-enxio needs to actually throw something we can pull an Errno enum out of first of all
<headius> and second of all why is this raising EINVAL suddenly
<enebo> heh this is a bit of a mess if we need to depend on same order of enums
<enebo> I guess we could diff the main commits per platform and rearrange them so they are in same order with new entries at the end? Seems like a lot of work for what I feel is a design flaw in the library
<headius> well, that's how enums work...I don't know how we would get around it
<headius> it would be even worse if they were static final int
<headius> may be that platform constants are a poor fit for enums
<headius> I also wasn't aware there were users (just jnr-posix so far) of the internal enums
<enebo> yeah but adding them onto the end is a solution right? We just need to look at old values and new values
<headius> haven't audited JRuby to see if we're using any platform-specific jnr-constants enums
<headius> adding to end us a solution
<headius> is
<enebo> we just need to ... heh
<headius> that's what I did before pushing this
<headius> I moved all the things that were new to the end...it was mostly Errno that changed
<enebo> but things still broke
<headius> yeah but I don't know why
<enebo> so maybe something missed or something new interfering
<headius> the errno for read seems valid but I don't know why it is suddenly einval
<headius> it is actually the right errno number coming from native for that error
<headius> so it's not something broken in Errno
<headius> EINVAL is also used to specify that you passed a bad flag in somewhere, so possibly an open flag that changed value or enum moved or something
<enebo> errno is right but enum value for that error is right or wrong?
<headius> it is correct
<headius> I don't think any Errno values changed
<headius> only new ones added
<enebo> Do we have code where we lookup value in some table and assign if unknown
<enebo> I could see something like that suddenly breaking as we would now have a more precise value and we don't know how to deal with it or something like that
<headius> hmmm
<headius> d is attached to an object which is unsuitable for reading; or the file was opened with the O_DIRECT flag, and either the address specified in buf, the value specified in count, or the current file offset is not suitably aligned.
<headius> oops that's "fd is attached..."
<headius> from read(2) man page
<enebo> O_DIRECT
<enebo> hmm constants to the left of us constants to the right of us
<headius> unsuitable for reading...so possible an O_RDWR enum got borked, or something's passing O_DIRECT now when it shouldn't
<headius> we open the fd for jnr-enxio separately, within Jruby
<enebo> headius: I forgot about the +1 thing we saw the other week
<headius> jnr-enxio doesn't do the open
<enebo> where all enums were off by one
<headius> yeah
<enebo> that was only for a few things
KeyJoo has joined #jruby
<enebo> but I felt like one was for some fd READ thi9ng
<headius> yeah that was for one that wmeissner turned into a bitmask but it's not a bitmask
<enebo> you could try older release and print out the fd constant value perhaps and compare against now
<enebo> it sounds like you just figured something out though
<enebo> probably wrong value on fd to read causing proper error message and we are handling the error ok
<enebo> or write
<enebo> whichever
<headius> Shutdown constants, not being used in this case
<enebo> I would expect this to be something with OpenFlags?
<lopex> enebo: at last, jcodings/joni in repos
<lopex> enebo: did you see my question wrt key servers ?
<lopex> oh, joni not yet
<enebo> lopex: yeah but I did not realize it was a question
<enebo> another random thought on generation if we keep this is to not put a timestamp at the top of a file which does not change
<enebo> I mean I definitely see why it is there but it makes it impossible to see which commits actually changed one of these files
<enebo> a little lunch
<headius> enebo: yes, OpenFlags is primary suspect at the moment
<headius> flags: 16384
<headius> 😳
<headius> yeeeeeeah I'm thinkin that's probably the issue
<lopex> enebo: ok, so any caviats about release rollbacks ?
<headius> enebo: I think I have it
<headius> O_BINARY on Linux does not exist and the fake value for it is 16384
<enebo> nice
<headius> the tests failing are doign File.read(... "rb"
<headius> most places check if O_BINARY is defined before using it, as they should
<headius> some don't
<enebo> I was just wondering about how those get OR'd but if you found a weird value that's great
<headius> well this is a constant only on Windows I think
<headius> so constants like that should always be checked for .isDefined() before using them
<enebo> headius: didn't you also say some windows constants were included across all platforms?
<headius> hmm
<headius> enebo: I don't recall that
<headius> I HAVE NO RECOLLECTION
<lopex> maybe Slava did
<enebo> heh yeah I thought you said it earlier or in a comment
<headius> aha
<headius> public static final int BINARY = OpenFlags.O_BINARY.intValue()
<headius> in ModeFlags
<headius> that should be 0 if not defined
<headius> hmm
<headius> you know fake should have a way for the generator to specify specific values
<enebo> hmm
<headius> on platforms without O_BINARY, setting that bit does weird stuff
<headius> good thing I'm running this in a VM
<enebo> will 0 actually work
<enebo> I guess I might be getting BINMODE and BINARY confused but it is not clear they don't play off each other
<enebo> final RubySymbol binmode = runtime.newSymbol("binmode");
<enebo> if (isTrue(options.fastARef(binmode))) {
<enebo> ioOptions = newIOOptions(runtime, ioOptions, ModeFlags.BINARY);
<headius> same thing
<headius> binmode is the MRI term for it
<headius> only Windows actually has an O_BINARY flag at open(2) level
<enebo> yeah but we have two constants with those two names and I cannot tell how BINMODE is toggled based on code like the above
<headius> well binmode probably is unix term for it too
<headius> but "rb" doesn't exist as a mode on unix does it?
<enebo> I am confused but I thought b will force ascii-8bit AND no newline/cr garbage
<enebo> headius: in any case if you set it to 0 and nothing fails then perhaps my thoughts don't matter
<headius> yeah 0 is what MRI uses all over when it's not defined
<headius> because it's a bitmask
<enebo> I am mostly just looking at ModeFlags.BINARY and the interchanging of that and BINMODE are not super clear to me
<headius> BINMODE from where?
<enebo> yeah that makes sense if it is windows only
<enebo> OpenFile
<enebo> getModeFlagsAsIntFrom(fmode)
<enebo> It is possible it does not matter if O_BINARY is only significant on windows
<enebo> I just thought it also was ASCII-8BIT which would affect all platforms
<enebo> Although it may set that encoding right away too
<enebo> these flags may not be used for determining encoding
<headius> the binmode concept in MRI does default to BINARY or ASCII-8BIT encoding for the resulting strings
<enebo> '"b" Binary file mode Suppresses EOL <-> CRLF conversion on Windows. And sets external encoding to ASCII-8BIT unless explicitly specified.'
<headius> so I guess "BINMODE" is basically that plus O_BINARY on Windows
<headius> right
<headius> whew, guess my understanding is correct
<enebo> I guess my understanding was right too
<headius> ok I pushed a minor fix to JRuby that appears to work properly with *existing* jnr-constants release
<headius> there are fixes required in jnr-constants though for other things
<enebo> I just am looking at our code and it is unclear since one seems to set the other
<headius> namely we lost constant.value() method in generated code because it changed to intValue in the generator at some point but nobody regenerated after that
<headius> I just added another .value() to all constant sets that does the same as intValue
<enebo> if (fmode_p == null) fmode_p = new int[]{0};
<enebo> I half wonder how many dummy objects we make
<enebo> although in this case it will potentially set [0] to something
<enebo> interestinly in this case fmode_p could be removed and we could use a return value
<headius> can we?
<enebo> just for that one method where I saw this
<headius> ah
<enebo> it is a void static method
<headius> well that's an easy change if so
<headius> MRI has a ton of functions with "out" params so that's where these come from
<enebo> It is a rats maze overall since fmode_p cannot be done that in most places
<headius> always wanted to do another pass and un-C this code but multiple return values are hard to do another way
<enebo> yeah I know this was a port
<enebo> before you ported over the work I did I already had this out var
<headius> it's funny how much typical C code uses out params and then you realize Java has nothing equivalent *at all* and it feels so strange
<enebo> the real problem with MRI code is it is not really thought out...you can see how organic these methods are
<headius> I mean...out values or multi-return, either way it's a gap
<enebo> yeah and making a box feels really shitty
<enebo> and using a field when only a few things use it is weird from a modelling perspective
<enebo> Box == pointer but we probably pay a significant price for it whereas pointer is free (other than locality weirdness)
<enebo> OO can be a huge pagefault machine but I have wondered how many page faults in C exist just do to weird rando pointer being passed all over
<headius> yeah I wonder
<lopex> sometimes it's a pointer to pointer to some struct field
<enebo> lopex: pointers all the way down
<lopex> but hwy
<lopex> why
<headius> if we could pass by reference we could always just pass backref/lastline local variable through
<lopex> int holders all the way down
<enebo> no doubt kotlin has it
<enebo> but it would just be a language convenience feature
<enebo> Scala make pass by reference trivial but I cannot image how that is implemented for reals
<enebo> no doubt some box
<lopex> enebo: how ?
<lopex> afaik it's all the same thing
<enebo> lopex: on the JVM no doubt it is
<enebo> lopex: or are you saying a pointer is just a box in C
<lopex> enebo: I dont think they would introduce that feature for perf costs
<enebo> as it is not but sometimes I get confused
<lopex> enebo: C# has out with destructuring now
<headius> ok...getting closer
<headius> needed update jnr-constants to regain O_TMPFILE and value()
<lopex> enebo: this is very convinient
<lopex> enebo: no perf costs
<headius> yeah ok...bunch of specs and tests that use TMPFILE broke because I stopped defining it if it's not available on the platform
<enebo> lopex: how important is this being explicit as a feature?
<headius> and linux didn't have it because it was removed during regeneration
<lopex> enebo: what is explicit ?
<lopex> enebo: you just unapply like in scala but without perf cost
<enebo> Is Deconstruct a special name? I mean it is three out params already
<enebo> couldn't it be named 'foo'. Why is Deconstruct explicit name
subbu is now known as subbu|lunch
<lopex> enebo: it's special like in scala unapply from what I gather
<lopex> enebo: and it desugars to what is down there
<enebo> so out params by themselves in how they are used is not enough hinting to compiler to do this anywhere where it can destructure the struct/box
<enebo> the special name is required for compiler to do the extra work
<lopex> yeah, and use that (a, b, c) = foo syntax
<enebo> lopex: or literally this snippet but don't use a method called 'Deconstruct'
<enebo> I think the heart of my question is why the method name must exist for it to work vs any method which had the same out params + assignments
<lopex> enebo: it does
<lopex> it's explained there
<enebo> ah so Deconstruct is just an idiom
<lopex> and a special method
<lopex> jsut like unapply in scala
<enebo> YES MY QUESTION IS WHY A SPECIAL METHOD
<lopex> so you can use (a, b, c) = foo syntax
<enebo> ah sorry I did miss that snippet
<lopex> and have control over it
<enebo> sorry I did not connect that this is a general feature but Deconstruct is literally only for (a, b, c) = foo
<lopex> yes
<enebo> ok that was what I did not understand
<headius> yay, looking better
<headius> I do dislike that C# uses caps for method names
<headius> it visually throws me off all the time
<lopex> enebo: hmm, can I now DOS sonatype now by overrealsing ?
<lopex> headius: yeah
<headius> another one of those things they did in C# that seems solely designed to be different from Java
<lopex> headius: the passphrase to key also sits in that ubikey thing ?
<headius> though I guess Win32 has all leading-caps APIs too
<headius> lopex: yes
<headius> I have to occasionally wake up the key with a ping
<headius> pin
<lopex> headius: for some reason maven doesn pick it up from settings.xml for me
<enebo> lopex: I feel like sonatype feels like it is under a DDOS all the time
<enebo> lopex: some times the page takes like 30 seconds to refresh
<enebo> maybe just not a lot of hardware for OSS
<enebo> Not complaining since it is free but it is really slow at times
<lopex> enebo: you saw it didnt see my keys on keyservers ?
<enebo> lopex: yes
<lopex> enebo: was I unlucky or am I an idtiot ?
nirvdrum has quit [Ping timeout: 252 seconds]
<headius> lopex: I've never configured passphrase into any file
nirvdrum has joined #jruby
<headius> I used gpg-agent to cache it in memory
<lopex> yeah, I'm too lazy
<headius> or MacOS password service thing also did that for me
<lopex> so it's kept somewhere in extra aslr and encrypted ?
<lopex> somewhat joking
<headius> haha
<headius> yeah I dunno where they kept it
<headius> at least this constant thing has exposed some...flaws
<headius> I dunno if they're bugs but they're holes in the code
<lopex> enebo: I've split forward and backward searches so that's how it looks for first exact part in regexp https://github.com/jruby/joni/blob/master/src/org/joni/Regex.java#L342
<lopex> enebo: and this is for regexp, but I've got an idea we could still use faster singlebyte algos for cr7 bit strings in matcher
<lopex> there's also 'map' searches if the regexp starts with a char class
<lopex> at least it's more fine grained now
<lopex> enebo: the string from "match?" issue uses map search so it's completely independent from sunday search update unfortunately
<lopex> er, the regexp
subbu|lunch is now known as subbu
<lopex> enebo: https://www.youtube.com/watch?v=iUBd35sBMqc you'll like it
<enebo> lopex: best part was that it can effectively fit on that trailer
<enebo> "That's the same guy who made the original BB-8 for Star Wars 7!"
<lopex> hah
<enebo> Apparently it is though
<lopex> I cant imagine
<enebo> "Even for people who do understand physics it's too slow."
<lopex> enebo: reliability ?
<lopex> enebo: or feed back loops ?
<lopex> kalman filters etc
<enebo> All his hardware/software choices seem to be around what was largely a best fit for what he was trying to do
<enebo> like picking wince for touch screen ui
<lopex> 486 ?
Puffball has quit [Remote host closed the connection]
<lopex> enebo: so mostly timing issues ?
Puffball has joined #jruby
<enebo> well he kept talking about can bus. I was wondering if it was a board with some extra hardware for mechanical embedding
<enebo> The plugs plugging into the 486 were huge
<lopex> enebo: did you like it
<enebo> lopex: 7/10
<lopex> enebo: youre expectations are high
<enebo> would have been higher if he showed how it was intended to be used like going down into a ditch
<enebo> him talking about the tech that went into it was neat but I wanted to see that big metal bug to more than lift two legs
<lopex> enebo: that reminds me so of much heat on that wrt Timo Boll Kuka video https://www.youtube.com/watch?v=tIIJME8-au8
<lopex> enebo: ppl were expecting it to happen
<lopex> lol, at my word ordering
<lopex> enebo: obviously PR stunt but I wonder if they could put enough money into that to make it happen
<lopex> maybe nowadays
<enebo> "Impressive robot, but just in case ur thinking of selling this in Sweden: "Kukar" means the male Genitalias in Swedish"
<lopex> enebo: do you always read yt comments ?
<enebo> I always read all comments
<enebo> "The score was 9/11. Kuka did 9/11."
<enebo> so that video does seem fake
<lopex> of course
<enebo> they showed that arm swivelling 180 degrees I would fear for my life if that thing could do that in time to return the ball
<lopex> yeah
<lopex> enebo: I wonder how heavy it is
<enebo> "i wanna see the outtake where the robot arm smashed the table then enslaved humanity and destroyed the world"
<lopex> enebo: is it the actuators and motors or the momentum
<lopex> let alone the control
<enebo> "Kuka means dog in Telugu"
<lopex> enebo: if you like it so much I have a better one
<lopex> a non volatile read
<lopex> headius: ^^
<enebo> eventually salty
<lopex> oh right. so just bad caching
<lopex> another one I liked
<lopex> enebo: backing to releasing, so if any of us stage something it will end up in different per user stating repos right ?
<lopex> *staging
<lopex> enebo: since these things seem to accumulate in per user repo
Puffball has quit [Remote host closed the connection]
<enebo> lopex: I am not sure I think there will just be two entries in staging for each?
<enebo> lopex: It does not happen very often so I don't remember
<lopex> enebo: when I released both joni and jcodings almost at once, they ended up in same staging repo
<lopex> enebo: so that's why I'm asking
<lopex> so if I'd have closed them both they'd be closed together
<lopex> er, they'd have been ?
<lopex> wrt grammar
<enebo> lopex: until you release they are just in staging if I released the same artifact I don't know if it would replace the previous one in staging or ???
<enebo> but closing is just running verification that it is safe to release
<enebo> so they are both closed independently
<lopex> enebo: I talk about different artifacts
<lopex> in the same staging
<enebo> lopex: I guess I don't understand what you are asking...all things we push go to a staging server. I doubt it is n staging servers.
<enebo> lopex: and I don't actually understand what a full release means in a staging server
<lopex> enebo: so I go orgjruby_somenumber and both joni and jcodings in the content
<enebo> other than verifying that all the artifact stuff has been done correctly
<lopex> *got
<lopex> enebo: so let's recap orgjruby_number is a staging repo right ?
bbrowning is now known as bbrowning_away
<enebo> I have no idea
<lopex> enebo: the thing you click to close it
<enebo> lopex: yeah I don't know technically what it is
<enebo> lopex: but I have never thought about it so I am confused why you are asking
<enebo> lopex: is there something bad which can happen if it is not a staging repo? or if it is?
<lopex> enebo: what I'm saying is that after both performing release for joni and jcodings, I got one staging repo on sonatype side
<enebo> ok
<lopex> enebo: with both them in the staging repo content
<enebo> so if you expand 'content' it shows a tree of two artifacts?
<lopex> so, one close, both released
<lopex> yes
<lopex> yes!
<enebo> lopex: weirdly I don't think I have even done that the entire time I used it
<lopex> enebo: so maybe it;s just a time threshold ?
<enebo> lopex: no I just think I release one thing at a time
<enebo> lopex: so i have not noticed that. Can you have bi-directional deps in Maven?
<enebo> lopex: maybe it is so you can release deps dependent on each other?
<lopex> why is that relevant ?
<lopex> the versions are upped
<enebo> lopex: maybe close verifies the artifact you depend on exists already?
<lopex> hm
<lopex> so if the deps might have changed ?
<enebo> lopex: with bi-dependent artifacts you could not ever pass close?
<lopex> makes sense
<enebo> lopex: but I am just guessing
<enebo> lopex: I always just release the base artifact first in a series
<lopex> anyways, I can show you in next release
<enebo> then do next one etc...
<lopex> yeah
<lopex> but in differen staging repos you mean...
<enebo> lopex: so what you did is interesting in that I have never done it but I guess knowing that maybe I can release a series at the same time
<lopex> enebo: and it depends in the timint perhaps ?
<lopex> *timing
<enebo> perhaps release at same time is a reason for it? but I am not sure they will neccesarily show up in central mirrors at same time. It would be useful to know all artifacts did successfully closed I guess?
<lopex> or it is sonatype opt
<enebo> I can only guess
<enebo> You know I do this regularly actually
<lopex> enebo: lol
<enebo> I just never think about it
<lopex> enebo: embrassing
<enebo> jruby-*
<lopex> what ?
<enebo> In my mind I am just releasing one thing so I did not think about the fact that I am closing jruby-complete, jruby-stdlib, ... all at once
<enebo> I think that way because I am just doing a single mvn command though
<lopex> enebo: but you have to clickit
<enebo> well yeah there is a single item to select and then say close
<enebo> but if I expand it there are several artifacts involved in the close
<lopex> ah, yes, that what I'm talking about
<lopex> yes yes
<lopex> doh
<enebo> yeah so I do it but did not think about that when you brought it up
<lopex> we came to that eventually
<enebo> yeah
<enebo> but I can say I never worried about it either :P
<lopex> enebo: yeah, my question was would the versions accumulate
<enebo> I probably realized this when I first started using sonatype and then forgot about it
<lopex> enebo: talk like to the newbie
<enebo> lopex: I don't know. I am sure I have never been in that situation
<lopex> ok
<enebo> lopex: like I release joni then realize we missed a commit then push another release with a new version?
<lopex> yeah ?
<enebo> lopex: I would probably just be inclined to finish the first one if it happened then release after first was out I guess
<enebo> lopex: but I don't know
<lopex> you drop the previous stage ?
<enebo> lopex: maybe it will handle n versions at once
<lopex> ok
<enebo> lopex: you can drop. I have done that many times but that is basically realizing the release is boned before you finish
<lopex> enebo: at least you appreciate it was a legitimate question
<enebo> lopex: but I have been paranoid about not dropping
<lopex> why ?
<enebo> lopex: I assume if you fix it and push a new release it will replace
<enebo> lopex: but I am not sure since I have never knowingly left a bungled upload without explicitly dropping it
<lopex> enebo: so I was dropping like child in a fog today
<enebo> lopex: I have to think it will just replace it if it is the same version though
<lopex> but only after fail or sucessful close
<lopex> er, success has that drop checkbox on by default
<lopex> aka release
<enebo> the other thing I wonder is if two people up the same release at same time what happens
<lopex> yeah, like the verification block or something ?
<lopex> *blocks
<lopex> er, not
<lopex> enebo: you mean actually hittinh that relase button
<lopex> *hitting
<lopex> enebo: though same applies for earlier stages
<lopex> or not ?
<enebo> lopex: I just mean what you see in staging that you can close/drop/release
<lopex> yes
<lopex> let's start from that
<lopex> the I dont know
<lopex> it's up to a decision like sign time etc
<lopex> whatever criteria
<lopex> enebo: is sign time actually a thing ?
<enebo> lopex: well I am asked during release plugin
<enebo> lopex: so I am guessing I sign artifact as part of whatever it happening
<lopex> enebo: but it's up the maven plugin what's actually that right ?
<lopex> *up to
<enebo> lopex: yeah it is just a black box to me
<enebo> lopex: I just trust the plugin is actually signing it and sonatype seems to think so
<lopex> enebo: I've run -X when I had that sig problem so probably easily traceable
<lopex> yeah
<lopex> and then there's issue between gpg2 etc
<lopex> lots of mismatchs
<lopex> *es
<lopex> enebo: anyways, thanks for your assistance, I've never done that before and have learned whole lot of things
<enebo> lopex: sure. I am glad you can do it now too
<lopex> like that keyserver no responding with key etc
<lopex> enebo: and there's was a question how settings.xml will interact with .gitconfig
<lopex> wrt signing
<lopex> so much bifuracation
<lopex> nirvdrum: you here ? how does TR do on sequel and jdbc (via java integration) ?
<lopex> is it even a legitimate question wrt java integration ?
<nirvdrum> lopex: No idea. It's probably worth taking a look at.
<lopex> nirvdrum: it probably depends on usages right ?
<lopex> er, user base
<nirvdrum> Well, first off it'd only work when running on a JVM. There no way to dynamically load the adapter code in the native image.
<lopex> right
<nirvdrum> I could try to build it with the adapter JAR on the classpath. But doing that for every adapter would be less than ideal.
<lopex> nirvdrum: on the plus side of things sequel seems to use only rudimentary java integration
<lopex> so just plain method calls etc
<nirvdrum> Yeah. For some reason I thought it called into JRuby specific classes.
<nirvdrum> Maybe it did years ago. Or maybe my memory is just bad.
<lopex> nowadays jeremyevans seems to be specializing lots of things for pg in exts
<lopex> nirvdrum: you think it would be easier to support sequel than AR on first sight ?
<nirvdrum> It's really the adapter gems that we'd need to support.
<lopex> I know about the elephant rails
<lopex> nirvdrum: so it;s all about exts ?
<nirvdrum> I think so.
<nirvdrum> The rest of it is just Ruby.
<lopex> ok
<nirvdrum> I really don't know what the best approach would be.
<lopex> nirvdrum: but at some point you;ll need jdbc
<nirvdrum> Using JDBC on Java seems to make a lot of sense. But AR-JDBC is a massive undertaking for you guys and most AR "extensions" don't work with it because they're really all monkey-patches that assume a particular class structure.
<lopex> yes
<lopex> I understand the compat matrix for ar-jdbc :P
<lopex> enebo: ^^
<lopex> enebo: from your talk anyways
<headius> yo
<headius> I'm back
<lopex> nirvdrum: but yep, lots of monkey patching
<lopex> and ultra fragile
<headius> there's almost no patching now
<lopex> in ar-jdbc ?
<headius> the structure of AR is more amenable to alternative adapters
<headius> yes
<lopex> from when ?
<headius> from 50.0
<enebo> nirvdrum: lopex: we copy main adapter file and postgresql has some different method but it should be all compat with AR
<headius> the reboot removed all legacy support which also killed most of the patching...recent Rails abstracts the adapters better
<enebo> sqlite3 is only a few dozen lines now
<enebo> mysql is like 150
<headius> yeah that's just temporary though...we need to get them to move some class logic to modules and we can just include then
<nirvdrum> lopex: I just pulled together a simple file to test a SQLite connection and immediately encountered a problem with https://github.com/jeremyevans/sequel/blob/d827fdf77ded006c3a608dda8cd4bf1181c5e1d7/lib/sequel/adapters/jdbc.rb#L27
<enebo> mysql does already
<enebo> sqlite3 and postgres are more complicated
<enebo> mysql has AbstractMySQLAdapter since they support two mysql variants
<enebo> so we can just include that one
<nirvdrum> lopex: I set JRUBY_VERSION in my script. Then I hit a new interop issue.
<nirvdrum> headius: I mean 3rd party AR extensions. Or has that improved as well?
<lopex> nirvdrum: I have no opinion on AR
<headius> We can support them if they aren't C exts
<headius> and don't depend on the C adapters
<headius> there are some that were C but have JRuby versions as well
<lopex> headius: sadly sequel goel ext way for pg
<lopex> *goes
<nirvdrum> I tried to do that once with a popular Postgres extension that added in support for arrays, json, and hashes, before AR supported them properly. It was a major headache.
<headius> sequel should work fine with pg on jdbc
<lopex> headius: it does
<lopex> headius: he does some optz
<lopex> Jeremy
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nirvdrum> The AR-JDBC class internals differed, so the monkeypatch wouldn't work. I tried to fix that on a branch, but Bundler won't let you have the same gem name listed with different versions or branches for different platforms.
<headius> AR-JDBC is no longer a "massive" undertaking either...the reboot cleaned up like 90% of the code
<nirvdrum> Cool.
<headius> nirvdrum: yes, that's probably much better these days
<lopex> well, java drivers will stay jdbc 4 forever right ?
<nirvdrum> That was something I encountered when migrating from MRI to JRuby. At some point I gave up maintaining it and switched to using Sequel. I was considerably happier afterwards.
<headius> lopex: I don't see why they would have to
<lopex> nirvdrum: because of java integration ?
<headius> nirvdrum: yeah, AR took a long time to restructure
<nirvdrum> Heh, so my knowledge on that might be 6.5 years out of date.
<lopex> headius: you mean supporting odbc dedicated bridbges ?
<headius> much of that came along with ARel since it needed to remove the logic of sql generation from AR itself
<lopex> *bridges
<headius> lopex: oh you mean level 4
<lopex> yeah
<headius> I thought you meant jdbc 4.x
<headius> yeah probably
<lopex> right
<headius> they could be anything though
<headius> I'm not sure the non-pure drivers have any benefit now though
jmalves has quit [Remote host closed the connection]
<lopex> hm
jmalves has joined #jruby
<lopex> I confused all the time about jruby and tr thing wrt dbs
<enebo> nirvdrum: as of last week we just fixed an issue with initialize of all three adapters to stuff like postgresql-gis works since AR 5+ changed arity
<headius> enebo: with repaired jnr-constants and some patches to JRuby everything passes again on Travis
<enebo> well we fixed it over a week ago but kares just revved new points for 5.0-5.2
<headius> I'll finalize the PR if you can have a look through it
<enebo> headius: ok
<headius> jnr-constants changes are just on master
<headius> so needs a release, and then I can merge the update
<lopex> nirvdrum: so all the exts for sequel pg you will run right ?
<enebo> nirvdrum: so I believe we should work with extensions sans expectations of adapter API itself (e.g. pg specific calls)
<enebo> we do not emulate connection adapters API themselves
<headius> that's closer to what we had to do before, or else reimpl the entire adapter
<headius> thank goodness they improved the architecture
<lopex> headius: so on graal, can jruby hook up to these exts in somewhat ?
<headius> lopex: I suppose if we wanted to do a similar sulong-based rig...probably could reuse much of what TR does
<nirvdrum> enebo: Awesome (on the gis thing).
<lopex> yep
<lopex> headius: but it seems to be pretty centralized work anyways
<enebo> nirvdrum: well we thought we were supporting it up until recently so it was a bummer we weren't :)
<nirvdrum> lopex: I assume at some point all the exts will run. The goal is to be run what MRI can out of the box.
<nirvdrum> *to be running
jmalves has quit [Ping timeout: 252 seconds]
<lopex> headius: and api mapping ?
<lopex> having sulong seems to simplify things long way
<headius> well my understanding of the C ext stuff in TR is that there's specific upcalls implemented on the Java or Ruby side and they map those to the API
<headius> so we'd map them to something equivalent on our side
<headius> that's basically how our JNI C ext support worked...most of the API just ended up being an upcall to a similar-named method in Java
<lopex> headius: including cleanups and thread issues ?
<headius> well...that's where it gets nasty and why I don't trust C exts :-)
<lopex> hah
<lopex> I just cant imagine how much work gets into these things
<lopex> and mostly it;s c api on both jvm and mri sides
sgeorge has quit [Remote host closed the connection]
<nirvdrum> I'm trying to eat dinner and then I need to go drop my car off at the dealership.
<nirvdrum> If I'm quiet, I'm not trying to ignore anyone :-)
<lopex> nirvdrum: offence taken :P
<lopex> headius: but we're on graal then why not just use sulong ?
sgeorge has joined #jruby
<nirvdrum> lopex: If you don't want to require Graal to be fast, then note that Sulong will run strictly in interpreter mode. That may be prohibitively slow.
<headius> lopex: JRuby is a JVM language, not a GraalVM language
<nirvdrum> It's a Truffle language after all.
<nirvdrum> The call bridge is also Truffle's interop mechanism.
<headius> if at some point we can use Sulong on other JVMs, then sure
<enebo> If it is trivial to wire up then it could be fun to play with from jruby but not for supporting MRI cext footprint
sgeorge_ has joined #jruby
<headius> sure, probably could use it for something
<enebo> we decided not to take that support effort on years ago and I don't think any of us have had a change in heart
<headius> though if we're not going all-in on truffle I'm not sure what it would gain us versus FFI
<lopex> why cant you mix both ?
<enebo> lopex: both of which?
sgeorge_ has quit [Read error: Connection reset by peer]
<lopex> java program and truffle
<lopex> that's the way I see it
<enebo> lopex: you can but it will only work well with graal
<nirvdrum> You guys are in a much better position than we are currently with regards to extensions. All the major native ones have JRuby-compatible releases already.
<lopex> enebo: yes
<nirvdrum> And I think the incremental on-going maintenance isn't too baad.
<nirvdrum> *bad
<nirvdrum> Nokogiri is probably the next most complicated one.
<headius> most new ext authors at least give some consideration to JRuby, so that's helped a lot
<enebo> lopex: so we can do that but if we want to support non-Graal (admittedly high 90s of Java world) we are then supporting two things
sgeorge has quit [Ping timeout: 252 seconds]
<lopex> nirvdrum: hey I want to run TR too
<headius> there are also fewer exts these days purely for performance...that majority are just wrapping some lib, which we can do with FFI or shimming a Java lib
<lopex> headius: but in mostly non portable ways
<headius> non portable?
<enebo> he means platform compat I think
<headius> Java libs are obviously portable...you mean FFI?
<lopex> well, if you mean linux and windows then sure
<lopex> yeah
<lopex> I agree
<nirvdrum> lopex: I wish native extension authors would provide a pure Ruby variant as well.
<lopex> headius: I somewhat meant as400
<headius> well, FFI could be improved a lot with some generation tools
<enebo> nirvdrum: for perf stuff especially
<headius> lopex: right, but TR wouldn't be able to support that at all
<nirvdrum> Although, there's opportunity for divergence. I've hit a json bug in the json-pure variant.
<enebo> nirvdrum: for wrapping imagemagick or HTML5 parser it is more of a commitment
<headius> JVM libs obviously massively win here
<nirvdrum> So, I can appreciate why one might not want to maintain parallel versions of a gem.
<headius> pure-Ruby versions of everything would be nice but again most of them are wrapping a library
<enebo> yeah my point above since who is going to rewrite imagemagick in ruby
<enebo> (note: image_voodoo is pretty nice)
<headius> if we'd put more effort into getting FFI generators to work nicely, FFI probably would be the standard option for wrapping a lib
<nirvdrum> Someone reported a compatibility issue for hamlit with TruffleRuby. We'll get the extension working, but just running haml on TR is faster than running hamlit on MRI.
<lopex> and then the argument gets back to mri apis
<enebo> but much less than imagemagick
<nirvdrum> headius: FFI is a fine option as well. It's a shame people still overlook it.
<enebo> nirvdrum: haha you remember our cext support
<nirvdrum> I could even warm up to Fiddle.
<lopex> nirvdrum: actually in case you've looked at python api would it be easier ?
<nirvdrum> Yeah. It was interesting.
<enebo> nirvdrum: people would get the cext du jour to work then complain we were not quick then we would say you can use this version...it was an endless issue
<headius> C ext over JNI is death of a million cuts...the C API is diced so small
<lopex> nirvdrum: or it;s just a uncontrolled c thing
<nirvdrum> lopex: Sorry, I don't understand the question.
<enebo> so if cext is slower than pure Ruby you will endlessly be having to close issues telling people to use something else.
<headius> python API would definitely not be easier because it exposes reference-counting APIs
<lopex> nirvdrum: would python c api be easier fo sulong ?
<headius> for the same reason that MRI's conservative GC and raw pointer access is a hassle
<lopex> gc is one thing
<nirvdrum> lopex: I don't know. I could ask Tim. He's leading up the Graal.Python effort.
<nirvdrum> He also wrote the JRuby C ext. support.
<lopex> headius: ah, right DataWrapStruct is gc dependent
<headius> no alternative Python or PHP impl has managed to do a good enough job supporting C exts because both have refcounting C APIs
<nirvdrum> He seems to be a glutton for punishment.
<headius> lopex: you can also allocate objects on the heap and walk away from them
<headius> if they're in the GC'ed heap MRI will eventually clean them up
<headius> so you have to handle abandoned object handles in C exts
<lopex> headius: but you can release some requirements somewhat, for paying less
<headius> the weakref cleanup of handles alone was a huge overhead for our C API
<lopex> headius: featurewise
<lopex> headius: tell me, who really depends on ObjectSpace perf wise
<headius> not objectspace
<headius> just handles to managed objects
<lopex> walking mark&sweep ?
<headius> which might be allocated from C code
<lopex> ah
<headius> if they live on managed heap they have to have a lazily-collected handle
<lopex> just dangling ?
<headius> if they live on unmanaged heap they have to be copied across
<headius> and calling across either way has to deal with managed VM boundary
<lopex> right
<headius> yes, dangling is the common case
<lopex> which from sulong point of view are ok
<headius> because there's no APIs for bounding the lifetime of a reference into the managed heap
<headius> well, how is that any more ok in Sulong?
<lopex> yeah, understood
<lopex> headius: because sulong manages the heap ?
<headius> but it's still an unmanaged heap with raw pointer access and dangling allocations
<headius> I assume Sulong has some smarts here but it's really a native heap
<lopex> hm
<enebo> dinner
<lopex> headius: I though sulong is just a layer for ast and c exts dont matter here
<lopex> *thought
<lopex> headius: c malloc is java alloc or no ?
<headius> well java alloc is on managed heap
<headius> it's definitely not that
<lopex> ok
<headius> at a minimum because you need those pointers not to move
<lopex> right
<headius> I mean again, if you can see the whole world maybe you can prove more
<headius> but most exts call out to C functions and libraries
<lopex> headius: and you cant get that from llvm bitcode
<headius> so pointesrs have to be pointers
<lopex> right ?
<headius> llvm bitcode probably tells you a ton but at some point a pointer is just a number
<lopex> yeah, I think I get it now
<lopex> so just c semantics gets in the way
<lopex> game over
<headius> I don't have all the info about Sulong but this is my understanding
<headius> it's basically just running the C code via llvm bitcode along side the JVM/Substrate/GraalVM stuff
<lopex> right without java semantics
<headius> I think most of the smarts are in reducing the copying and calling across that boundary because it has visibility across
<headius> yeah
<headius> so it can, say, be much less overhead per call than JNI
<headius> since it can know if something's a leaf or makes other calls etc
<headius> but eventually you're still dealing with two heaps
<headius> and opaque pointer refs
<headius> and unknowable concurrency issues :-D
<lopex> so if c takes pointer to poiner in some less obvious way, then no clue
<headius> right
<headius> raw pointers passed to C libs, callback functions, managed objects represented as pointers for an arbitrary amount of time...it's really an awful API to support
<nirvdrum> lopex: AFK for a couple hours. I'll be happy to answer any questions when I get back. Or just mention me in your message and my client will highlight it.
<lopex> nirvdrum: sure
<lopex> jeeze on how much I underestimated the effort
<lopex> headius: but potentially having whole world c program sulong might do better ?
<lopex> it's the lib calls that are unsafe now
<lopex> headius: provided sulon is aware of all c
<lopex> which is alias analysis which is hard and there we go ?
<lopex> I just know alisa analysis is a killer for lots of c optz
<lopex> and it's not even mentioning GC
<lopex> seems kinda hard
<lopex> headius: assuming AA is just pointer to pointer streal
<lopex> *steal
<lopex> headius: this is madness
<headius> lopex: maybe, I don't know
<headius> that would work for things like json, oj, ox libraries that don't call any libs
<headius> they have to call libc though presumably
<headius> so...pointers again for some of it
<lopex> yeah, but allocs inbetwen are hell
<headius> right
<lopex> or alloced passed between ext end runtime
<headius> there's always a native edge for any extension, even if it doesn't explicitly use some third-party lib
<lopex> jeeeze
<lopex> never thought of that
<lopex> wrt optz
<headius> I know TR+Sulong has some smarts to know when to leave a String in native or managed to reduce calling across that boundary but there's always going to be a boundary I assume
<lopex> ok, but for the most part sulong can be useful, just guessing from code patterns right ?
<lopex> not every c program does those things
<headius> I assume so...if only as a "smarter JNI"
<headius> oh, yeah I dunno if it's better than LLVM or not
<headius> that's fairly subjective
<lopex> and the mmemory model, and gc
<lopex> etc
<lopex> helll
<headius> right
<headius> this is why we abandoned C ext effort...twice
<headius> and one of those efforts actually worked
<headius> most of the overhead was the copying (which Truffle might be able to help profile and improve) and JNI overhead like safe points (which could be reduced but not eliminated
<lopex> yeah, calling into c dynamically will always be useful
<lopex> till the end of c
<headius> so I guess we're waiting to see if the finely-diced MRI API will ever be fast and thread-safe
<lopex> yeah
<headius> yeah
<lopex> mri needs to change
<headius> if we could use sulong to improve the FFI situation, for example
<headius> like use the clang plumbing already in Sulong (I think?) to generate the FFI binding
<headius> lopex: the TR C ext support also has to patch many (most?) extensions
<headius> it's just too broad and invasive an API
<lopex> I guess I always looked at sulong / truffle optimistically like calling into some ddb driver with options which would get optimized internally
<lopex> all those checks lile (this option is set) would be constant propagated
<lopex> headius: right ?
<headius> yeah it probably can do some of that
<headius> if it has complete info about stuff it does great...but C is the definition of incomplete information :-)
<headius> so I dunno
<lopex> headius: imagine something like live rebel, with that ideal graph visualizer for perf on production
<lopex> and STABLE
<lopex> nirvdrum: ^^
<lopex> headius: yeah, but some parts of c code can be statically proved to be safe
<lopex> but yeah, it;s just the assert boundaries
<headius> I guess it remains to be seen how far that can go...I really don't know
<headius> we'll let TR folks figure it all out and then just borrow it :-)
<lopex> yeah
<lopex> seems very hard
<headius> Rubinius folks had to figure this all out too, and they still had really poor C ext perf
<lopex> I wonder how far it would go if Evan had the money
<headius> well, let's remove Evan from the equation too...if there were enough money and man-hours
<lopex> he is brilliant
<lopex> not enough evan's ?
<headius> I'm pretty sure he didn't stop because he wouldn't be paid anymore
<headius> Brian kept working on it under EY for a good while after Evan left
<lopex> and ruby specs are still dead ?
<headius> if it were me I'd have left because it was too big a problem to try to solve
<headius> like, if the primary challenge I faced every day was C exts...I'd quit too
<lopex> mhm
<headius> rubyspec was adopted by MRI and is actually more active than ever
<lopex> oh, cool
<headius> it is now called ruby/spec because someone requested it not be called rubyspec
<headius> 🙄
<lopex> well, at some point ruby was most speced language right ?
<lopex> at least dynamic one
<lopex> headius: on jruby site there should be info on failed ruby impls
<lopex> microsoft, apple, SAP
<lopex> gemstone ?
<headius> yeah
<headius> I dunno if I'd call rubymotion failed...but it wasn't really a true ruby impl anyway
<headius> I have no idea if SAP BlueRuby still exists
<lopex> but those above are
<headius> don't forget topaz
<lopex> yeah
<lopex> ah
<lopex> righto
<headius> opal is still going
<headius> partial impl obviously
<headius> xruby
<lopex> yeah, and it;s almost interesting
<lopex> headius: there;s react api for it
<headius> I think the OMR effort is dead
<lopex> wrt opal
<headius> Cardinal was Ruby for Parrot
<lopex> ah, I recall
<headius> I'm not sure if rbx should be considered failed or not
<lopex> dormant ?
<headius> failed may be the wrong word...ruby impls that are not usable today
<lopex> but opal goes strongs wrt dev
<headius> yeah
<lopex> headius: I tried whole react app on it
<headius> I find this more interesting than trying to build a better MRI
<lopex> and it worked
<lopex> ah
<headius> JRuby is better than MRI at many things but also has the value add of running on any JVM, running with parallel threading, accessing all the JVM libraries, deploying to JVM servers
<lopex> headius: once you said strings will become symbols
<lopex> so read only
<headius> Opal's value add is being on JS in the same way
<headius> heh yeah...it's going that way
<headius> .freeze hack and the pragma are both efforts to move Ruby code toward immutable strings
<lopex> Martin suggests ruby will ditch encodings for unicode
<lopex> headius: what do you think ?
<headius> might be wishful thinking, but I sure hope so
<lopex> so much code will go away
<headius> I assume it would largely be the same plumbing but they'd remove everything not needed if only one encoding is supported
<lopex> and asian encodings ?
<headius> at some level you still need to interop with platform encoding
<headius> yeah
<lopex> will they ditch that ?
<headius> so even if they said UTF-8 internally they still have to get things to and from Big5
<lopex> EU is only on BMP so I dont care
<headius> that might be JVM style transcoding at the boundary, but it would still have to exist
<lopex> US is only english right ?
<lopex> er, BMP
<headius> US all fits in ascii generally
<headius> well US English
<lopex> and BMP ?
<headius> naive versus naíve
<lopex> you have immigrants :P
<lopex> we have too
<headius> yeah that's why I said US English
<headius> second language in US would be Spanish, also BMP
<headius> Asia's really the problem child
<headius> we have lots of Asian immigrants but probably no more than EU
<lopex> headius: hey, I actually learned more from your encoding talk than when porting this stuff
<headius> haha
<headius> well I'm glad someone did
<lopex> seriously
<headius> that talk was not received well...too low-level and Java developers never think about encodings
<headius> like ever
<lopex> yea I imagine
<headius> most Java developers don't even think about JVM
<headius> makes it hard to come up with topics
<lopex> just spring
<lopex> spring is quite managable therse days though
<lopex> *these
<lopex> I dont like it
<headius> heh I don't like building applications in Java period
<headius> libraries, absolutely
<headius> apps, hell no
<lopex> headius: they end up with businness mappers from dp to DTO all the time
<lopex> *db
<headius> yeah
<lopex> I just dont get it
<headius> after doing EE Java I learned that 90% of work on EE apps is just dealing with EE
<headius> and probably 90% of the code in those apps
<lopex> and all the field are in annotation striongs
<headius> ok jnr-constants looks fixed...gonna let a build of jruby run through CI and then I'll commit everything
<lopex> from what I've learned from scala community is that spring is the same glorified global variables and stringly programming
<headius> at least things are passing on linux
<headius> hah yeah annotations are great and massively abused
<headius> just look at how ugly Ceylon ended up being
<lopex> headius: but rails seems still strong in bay area
<headius> * This opinion is does not reflect the opinions of my employer
<headius> -is
<headius> Rails is a silent giant it seems like
<lopex> haha :P
<headius> tons of shops still start new apps with it and tons of shops have made it work well for them
<headius> but it's not in the hype at all
<lopex> headius: you have some US data ?
<headius> mostly anecdotal
<headius> RG download rates would be illustrative maybe
<headius> I also have no idea how many people are actually using Ruby...it's obviously a small percentage of total developers out there
<headius> if JRuby were not mature today I doubt anyone would want to fund it...there's decades of man-years in there
<lopex> no idea how to interpret that
<headius> I hear about a lot of folks that come back to Ruby, or at least come back to Rails for webapps
<headius> none of the alternatives have quite the same productivity
<headius> JRoR + something else on JVM (Scala or Clojure or Kotlin) is fairly common
<headius> oh I have to run to dinner...ttfn
<headius> if you need something to do look for encoding bugs marked for 9.2.1 that aren't fixed :-)
<headius> or regex I suppose
<lopex> headius: in many minds rails is more productive than anything from what I hear
<lopex> I just have no idea
<lopex> but spring is getting really prductive now
<lopex> so that;s the competition
<lopex> headius: phoenix is a niche right ?