wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
elcuervo has joined #ruby
<havenwood>
nakilon: Heh, changes in 2.4. :P
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: If an object responds to a method, you can't know if it will then subsequently raise unless you call it and check.
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<nakilon>
it sucks
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<nakilon>
my approach was to dup if possible to avoid the case if user passed some mutating lambda -- does not save from nested objects though but was better than nothing
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: You could rescue TypeError or upgrade Rubies.
wallace_mu has joined #ruby
<nakilon>
it makes me have such ugly line: [NilClass, FalseClass, TrueClass, Numeric, Symbol, Method].any?{ |c| key.is_a? c } ? key : key.dup
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
nakilon: In that case, update to Ruby 2.4 or higher. Ruby 2.3 isn't supported for critical bug fixes.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
nakilon: Even 2.4 isn't maintained. Use 2.6 or 2.7 preferably.
<havenwood>
nakilon: No reason to bang your head on problems that've been solved. :)
<havenwood>
nakilon: Modern Ruby is nice!
wallace_mu has quit [Remote host closed the connection]
<nakilon>
I'm not a hipster
wallace_mu has joined #ruby
<havenwood>
nakilon: Then don't use nightly build or 3.0-dev... :P
<havenwood>
nakilon: But a supported Ruby from the last few years... try it, it's nice!
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<nakilon>
what's default Ruby on macOS now? I believe it was 2.3 when I got this machine -- this is what I remain on
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<nakilon>
it's not a "critical bug" that I can't dup it nicely, it's just ugly and could have a better solution than I came up with
<havenwood>
nakilon: Default Ruby is 2.6.3 on stable macOS.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
nakilon: 2.5.8, 2.6.6 or 2.7.1 would all be fine options.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
nakilon: 2.7.1 from Homebrew or ruby-install works too.
<nakilon>
it's like in a joke when you have a problem and by adding regex you have another one
wallace_mu has quit [Remote host closed the connection]
<nakilon>
I don't need surprises, I have enough problems already
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<nakilon>
I know that 2.7.1 is in rbenv -- it does not mean that it works for me
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: Yeah, using ruby-build to install 2.7.1 with an rbenv shim is also a fine solution if you plan to develop in Ruby.
wallace_mu has joined #ruby
<nakilon>
just remember by ticket in ruby tracker -- native extensions don't even build correctly on ruby >= 2.4
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: With old macOS and old Ruby security problems may be your preexisting condition. I'd highly recommend using versions of both that are currently supported, even if you like to stay three years behind.
wallace_mu has joined #ruby
<nakilon>
I have no security issue, my code is being executed on a Mars with no wifi
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
macs without wifi. hem.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
okay then. if you have air-gapped computers without users then, yeah, you may not care about security updates.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
make sure no data whatsoever crosses the gap. ¯\_(ツ)_/¯ or pay close attention.
<nakilon>
there is no point to upgrade to version that does not work at all
wallace_mu has quit [Remote host closed the connection]
s3nd1v0g1us has joined #ruby
<nakilon>
the assumption that everything is better if version number is higher is just fundanebtally wrong
wallace_mu has joined #ruby
<nakilon>
otherwise issue trackers were not growing but instead becoming empty
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<nakilon>
making old versions unsupported is just a business decisions of a japanese team to keep with GTD, just a planned activity, not a sign that things are better and everything is fixed
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: That's no justification for using past-end-of-life software with known critical security vulnerabilities. Nobody has suggested you use a development version, just *any supported version*.
wallace_mu has joined #ruby
powerhouse has quit [Ping timeout: 256 seconds]
<nakilon>
"any supported version" does not even work
<nakilon>
"native extensions don't even build correctly on ruby >= 2.4"
<havenwood>
nakilon: What doesn't work about it? Why don't extensions build? What gem?
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: I saw you mention the error, but don't have content to give me any clue what extension isn't building.
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: Native extensions definitely generally build correctly on Ruby >= 2.4. Where'd you get that error?
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
nakilon: Ah, gotcha. You're maintaining the dhash-vips gem and it's not building. Looks like a neat gem. A shame the native extensions aren't compiling. Hrm.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: Wait, it works on macOS? Just not Alpine? I wasn't understanding your dilemma at all. Hah.
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<nakilon>
it was just out of scope all this time since 2.4 because no one makes extensions around bignum or because I don't know something that is not included in mkmf docs -- in both cases the fact is that ruby >= 2.4 does not work for a gem on the official and standard docker image
wallace_mu has quit [Remote host closed the connection]
Rudd0 has joined #ruby
wallace_mu has joined #ruby
<nakilon>
havenwood I'm migrating my Mars rover system to docker )
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<nakilon>
because people on other isolated planets are using it
<havenwood>
are there people on Mars now? wait, how long have I been sleeping?
wallace_mu has quit [Remote host closed the connection]
* havenwood
checks the stars
<nakilon>
and I want them to be able to use native extension because it's 15 times master than Ruby
wallace_mu has joined #ruby
<nakilon>
*faster
<havenwood>
nakilon: share the full backtrace?
wallace_mu has quit [Remote host closed the connection]
zacts has joined #ruby
wallace_mu has joined #ruby
<nakilon>
it's not much informative; you can get it within seconds running those two commands
<nakilon>
git clone and docker run
<nakilon>
*docker build
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
nakilon: my poor phone would overheat. maybe someone else can try at the moment.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: And this does work on Ruby 2.3 with Alpine? It's not a musl libc issue?
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<nakilon>
who knows
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
buckworst has joined #ruby
<havenwood>
nakilon: I thought I saw you said it worked on 2.3 on Alpine? Maybe I'm mistaken. Maybe you just said it doesn't work on 2.4+ and I took that to mean it did once work.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<nakilon>
I suppose other gems work so the issue is around the bignum.c
<havenwood>
nakilon: If you've not confirmed it works on Alpine, it strengthens my hunch that it's an incompatibility with the libc (musl) that Alpine ship with.
wallace_mu has quit [Remote host closed the connection]
<nakilon>
or some compile options that since 2.4 have to be added that are not documentd
wallace_mu has joined #ruby
<havenwood>
nakilon: I'd recon it never worked on musl libc, but I've never tried.
wallace_mu has quit [Remote host closed the connection]
buckworst has quit [Client Quit]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood>
I'd recommend posting that backtrace along with a comprehensive recap of what systems do and don't work to the issue ticket.
<nakilon>
it's in
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
<havenwood>
nakilon: You might check if any version of Ruby can compile this native extension on Alpine. If not, dig into musl or switch to another libc.
<nakilon>
backtrace is 1 line long -- it raises on require_relative
<nakilon>
it's in
<havenwood>
nakilon: You didn't include that one line in your issue... ¯\_(ツ)_/¯
<nakilon>
every Ruby versions result is provided in the ticket
<nakilon>
I said in ticket: "when I require the .o file"
<havenwood>
nakilon: ah, gotcha, you do show that in the docker builds. i can't run it at the moment so skimmed too lightly.
s3nd1v0g1us has quit [Quit: WeeChat 2.8]
<havenwood>
nakilon: someone else here may have a better clue. :)
<nakilon>
pretty much possible other people had the same issue but everything other than "can't add a product when clicking the jquery button [ror] pls hlp" gets closed and deleted within hours
<nakilon>
I mean SO
<nakilon>
Ruby community hates when people ask questions out of their knowledge scope
jenrzzz has quit [Ping timeout: 246 seconds]
<havenwood>
I can't imagine the Ruby community here minds, but I can't speak for SO. Many folk like questions that give them something to research. ¯\_(ツ)_/¯
akem_ has quit [Ping timeout: 260 seconds]
ChmEarl has quit [Quit: Leaving]
<havenwood>
nakilon: I found this question super confusion, involving air gapped computers, mars?, official gems on docker. I'm not sure where to start with my confusion.
akem has joined #ruby
<nakilon>
if it was easy I would not ask
<havenwood>
nakilon: I think I'm just too distracted. I'll try to look again but I bet someone else here has more context to give a helpful answer.
<nakilon>
thank you for a try
sagax has joined #ruby
<nakilon>
as I understood the creation of this ticker in MISC made it reach the ruby-core mailing list, also I asked nobu on github in commit comments on related problem but that's the end currently
wallace_mu has joined #ruby
s2013 has joined #ruby
wallace_mu has quit [Ping timeout: 240 seconds]
powerhouse has joined #ruby
my_dude has joined #ruby
alfiemax has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
<nakilon>
"speak for SO" -- on SO there is a brigade that answers everything 24/7 for karma and downvoting those who are not in their "team" that includes moderators, who are helping their "activity" by deleting content (questions, answers, comments) of others
<nakilon>
havenwood you won't notice it until you face it; mods are doing their best removing all the clues, prohibiting any open discussion of this
<nakilon>
pretty sure they have bots/notifications about [ruby] tag considering how fast the same people close and delete the content
<nakilon>
one guy even went so far in his karmapoints madness that even added links to other his barely related answers in his answer, like you know, the link list in a blog post for SEO -- when I reported it his friends moderators refused to take the action until I started doing their job for them, removing that SEO links attachment from the answer
<nakilon>
after Nth edit and revert by that kid (oh I wish he was a kid that would explain these retarded things but he's old) moderators came (probably an automated alert for "edit war") and finally did their job, removing those SEO links
mnathani has joined #ruby
<nakilon>
within hours after that suddenly one of my many years old answers got five downvotes, i.e. he either made 5 accounts or asked 4 friends to downvote it -- this is obviously a blatant violation of SO rules and rules of any adequate community, but when I reported this activity of course mods refused to do anything about it, because they are the team
<nakilon>
and thousands of people all over the world look at those pricks, see their high karma and assume "wow these guys are so cool", not knowing that SO is so much toxic and censored place where mods are violating the Stackexchange-wide rules just for fun, revenge and who knows what
tobiasvl has quit [Ping timeout: 246 seconds]
tvl has joined #ruby
tvl is now known as tobiasvl
Swyper has joined #ruby
Swyper has quit [Read error: No route to host]
Tempesta_ has joined #ruby
chwang has joined #ruby
Tempesta has quit [Ping timeout: 272 seconds]
ur5us_ has quit [Ping timeout: 260 seconds]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
Tempesta__ has joined #ruby
chwang has quit [Quit: Leaving]
Tempesta_ has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
Inoperable has quit [Excess Flood]
Inoperable has joined #ruby
my_dude has quit [Quit: ZZZzzz…]
Swyper has joined #ruby
my_dude has joined #ruby
Tempesta__ has quit [Excess Flood]
Tempesta has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Tempesta has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
my_dude has quit [Ping timeout: 260 seconds]
imode has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ur5us_ has joined #ruby
<hays>
yeah alpine containers seem barely worth it
jenrzzz has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
gix- has quit [Ping timeout: 272 seconds]
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
alfiemax has quit [Remote host closed the connection]
ur5us_ has quit [Ping timeout: 260 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Exagone313 has joined #ruby
Exagone313 has quit [Max SendQ exceeded]
Exagone313 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<splud>
meh. Needing to support an old version of ruby.
<splud>
1.8.7 and 1.9.3 - have an array - at it's most simple foo = [[10,50]]
<splud>
say.
<splud>
I want a hash. Turns out foo.to_h or [[10,50]].to_h is not supported. I need to output the keys (would actually be multiple elements in practice), and obtain the indexed value as needed.
<splud>
upgrading is not an option - this is a remote device, it has what it has.
Swyper_ has quit [Ping timeout: 260 seconds]
smotchkkiss has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thecoffemaker has quit [Ping timeout: 256 seconds]
thecoffemaker has joined #ruby
ujjain2 has joined #ruby
thecoffemaker has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
jenrzzz has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
TCZ has quit [Quit: Leaving]
dualfade has quit [Ping timeout: 240 seconds]
thecoffemaker has joined #ruby
dualfade has joined #ruby
schne1der has quit [Ping timeout: 260 seconds]
thecoffemaker has quit [Ping timeout: 256 seconds]
thecoffemaker has joined #ruby
baojg_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
wallace_mu has joined #ruby
baojg has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
Swyper_ has joined #ruby
Swyper has quit [Read error: Connection reset by peer]
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem has joined #ruby
Xiti` has joined #ruby
Xiti has quit [Ping timeout: 264 seconds]
Spizzo90 has joined #ruby
bamdad has quit [Remote host closed the connection]
bamdad has joined #ruby
bamdad has quit [Max SendQ exceeded]
bamdad has joined #ruby
Spizzo90 has left #ruby ["WeeChat 2.9"]
elcuervo has quit [Read error: Connection reset by peer]
cuerbot has joined #ruby
spizzo has joined #ruby
spizzo has left #ruby [#ruby]
<rapha>
havenwood: Re. the recursion-with-a-block-thing: ended up doing it without a block (and without any arguments) for now to figure out the recursion part itself first. But the more generic case will have to be done, too. Was there a specific reason that you gave me the same thing with a lambda proc, too? Is there a case where that's more appropriate to do or does it come down to style/preference?
Mrgoose has joined #ruby
Xiti` has quit [Quit: Leaving]
wallace_mu has quit []
spizzo has joined #ruby
spizzo has left #ruby [#ruby]
howdoi has joined #ruby
weaksauce has quit [Ping timeout: 256 seconds]
thecoffemaker has quit [Ping timeout: 260 seconds]
thecoffemaker has joined #ruby
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
roadt has joined #ruby
ujjain2 has joined #ruby
Xiti has joined #ruby
ChmEarl has joined #ruby
akem has quit [Quit: Leaving]
henninb has joined #ruby
Fusl has quit [Max SendQ exceeded]
henninb has quit [Client Quit]
meinside has quit [Quit: Connection closed for inactivity]
Fusl has joined #ruby
baojg has quit [Remote host closed the connection]