havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
Swyper has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
Swyper has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
adu has quit [Quit: adu]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 256 seconds]
impermanence has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
chouhoulis has joined #ruby
dualfade has quit [Quit: leaving]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
cyrus_mc_ has joined #ruby
elcuervo has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
dualfade has joined #ruby
my_dude has quit [Quit: ZZZzzz…]
drincruz has quit [Ping timeout: 272 seconds]
meinside has joined #ruby
davispuhh has joined #ruby
davispuh has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Quit: ZNC 1.8.2 - https://znc.in]
duckpuppy has joined #ruby
<hays> yxhuvud: any advice on how to construct something like a tuple in Ruby
<hays> (or others)
<hays> with strict weak ordering (sortable)
cthulchu has quit [Ping timeout: 256 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> hays: Would an Array work for your case? Or what attributes of a tuples are you looking for?
<havenwood> hays: [1, "foo", 0.5]
<hays> Im open to ideas, but generally I want to be able to create it consistently and sort it
Swyper has quit [Remote host closed the connection]
<hays> hmm let me put up some code
<hays> havenwood: is this reasonable? https://bpa.st/N4QA
<havenwood> hays: You can already sort Arrays of Arrays, but yes it's reasonable to define #<=> on a class to get sorting behavior.
<havenwood> &>> [[1, 0], [1, 2], [0, 1]].sort
<rubydoc> # => [[0, 1], [1, 0], [1, 2]] (https://carc.in/#/r/9qy2)
<hays> i guess i should include Comparable
<havenwood> hays: In that example's case, Arrays already do the trick.
<havenwood> hays: But yeah, including comparable and defining spaceship operator give a struct or class custom comparison.
<hays> havenwood: it seems like the Struct would need to create the array
<hays> Key = Struct.new(:foo, :bar)
<hays> that would not be sortable, correct?
<hays> OK, thanks. I think I understand.
Rudd0 has quit [Ping timeout: 240 seconds]
<hays> sometimes it feels like programming is half a task of deciding what glue smells better
rg03 has quit [Ping timeout: 245 seconds]
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 272 seconds]
drincruz has joined #ruby
chouhoulis has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has quit [Quit: Konversation terminated!]
kent\n has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
Mrgoose has quit [Ping timeout: 260 seconds]
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]
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]
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]
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]
<nakilon> why does numbers respond_to :dup if they actually raise exception if you call it?
<nakilon> how do I check if object really supports it?
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]
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]
wallace_mu has joined #ruby
Xiti has quit [Quit: Leaving]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood> &>> 42.dup
<rubydoc> # => 42 (https://carc.in/#/r/9qyf)
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
<havenwood> nakilon: What number is raising when you #dup it?
wallace_mu has quit [Remote host closed the connection]
<nakilon> maybe it has changed in recent rubies
wallace_mu has joined #ruby
<nakilon> I'm on 2.3 for example
Xiti has joined #ruby
wallace_mu has quit [Remote host closed the connection]
davispuhh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wallace_mu has joined #ruby
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?
<nakilon> the extension is in the gem that is in the repo provided: https://bugs.ruby-lang.org/issues/17174
wallace_mu has joined #ruby
<nakilon> "works on my pc"? )
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]
<nakilon> havenwood https://dpaste.org/juPi/slim
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]
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…]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
schne1der has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
bvdw has joined #ruby
akem has quit [Ping timeout: 240 seconds]
schne1der has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cd has quit [Quit: cd]
cnsvc has quit [Ping timeout: 240 seconds]
baojg_ has joined #ruby
baojg has quit [Ping timeout: 260 seconds]
kristian_on_linu has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
Swyper_ has joined #ruby
ruurd has quit [Quit: bye folks]
schne1der has joined #ruby
smotchkkiss has joined #ruby
alfiemax has joined #ruby
splud has joined #ruby
<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…]
dionysus69 has joined #ruby
smotchkkiss has joined #ruby
Swyper has joined #ruby
akem has joined #ruby
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
schne1der has quit [Ping timeout: 264 seconds]
Swyper has quit [Ping timeout: 260 seconds]
smotchkkiss has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smotchkkiss has joined #ruby
<phaul> &20>> [[1,2]].inject({}) { |acc, (k, v)| acc[k] = v; acc }
<rubydoc> # => {1=>2} (https://carc.in/#/r/9qz4)
<splud> phaul ?
<phaul> it's one way, prly there are other ways
havenwoo_ has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
<splud> I'll go check. (another workstation accessing remote device)
<splud> thx
<phaul> np
havenwoo_ has quit [Remote host closed the connection]
<splud> extended Array with that, now have to_h so the rest of the code looks as it would with 2.x
ujjain2 has joined #ruby
Swyper has joined #ruby
lxsameer has joined #ruby
smotchkkiss has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
smotchkkiss has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
roadt has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
Nowaker has quit [Ping timeout: 260 seconds]
elcuervo has quit [Read error: Connection reset by peer]
roadt has quit [Read error: Connection reset by peer]
mookdups is now known as mcspud
elcuervo has joined #ruby
<jhass> &>> Hash[[10,50]]
<rubydoc> stderr: -e:4:in `[]': wrong element type Integer at 0 (expected array) (ArgumentError)... check link for more (https://carc.in/#/r/9qz7)
<jhass> &>> Hash[[[10,50]]]
<rubydoc> # => {10=>50} (https://carc.in/#/r/9qz8)
<jhass> splud, phaul ^ that's already around in 1.8 iirc
Nowaker has joined #ruby
jenrzzz has joined #ruby
smotchkkiss has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 264 seconds]
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
braincrash has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
TCZ has joined #ruby
schne1der has joined #ruby
TomyWork has joined #ruby
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<splud> 1.9.3 clearly doesn't have it.
<splud> to_h
<jhass> yeah
<jhass> I mean the Hash#[] I showed of course
<jhass> er, Hash::[]
cow[moo] has joined #ruby
bmurt has joined #ruby
postmodern has quit [Quit: Leaving]
ta has quit [Quit: WeeChat 2.9]
ta has joined #ruby
ujjain2 has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
akem has quit [Quit: Leaving]
banisterfiend has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
drincruz has joined #ruby
ljarvis has quit [Quit: WeeChat 2.6]
bmurt has joined #ruby
redlegion has joined #ruby
banister_ has quit [Quit: Textual IRC Client: www.textualapp.com]
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]
baojg has joined #ruby
s2013 has joined #ruby
zacts has quit [Quit: leaving]
jenrzzz has joined #ruby
dualfade has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
dualfade has joined #ruby
coniptor has quit [Ping timeout: 260 seconds]
dualfade has quit [Ping timeout: 240 seconds]
dualfade has joined #ruby
zacts has joined #ruby
ujjain2 has quit [Quit: Textual IRC Client: www.textualapp.com]
coniptor has joined #ruby
SeepingN has joined #ruby
gdonald has joined #ruby
mnathani has quit []
dfucci has quit [Ping timeout: 260 seconds]
Tempesta has joined #ruby
chalkmonster has quit [Remote host closed the connection]
elcuervo has joined #ruby
cuerbot has quit [Read error: Connection reset by peer]
Swyper_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
Swyper_ has joined #ruby
baojg_ has joined #ruby
baojg has quit [Ping timeout: 260 seconds]
akem has joined #ruby
<adam12> Looks like an rc for 3.0 might be dropping shortly. https://github.com/ruby/ruby/commit/b30af31c37b91c8a918b340b24bfcd33e51d0167
TCZ has quit [Quit: Leaving]
thecoffemaker has quit [Ping timeout: 256 seconds]
weaksauce has joined #ruby
execat[m] has left #ruby ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
linuus[m] has quit [Quit: Idle for 30+ days]
coniptor has quit [Ping timeout: 258 seconds]
samokoder has quit [Remote host closed the connection]
dualfade has quit [Ping timeout: 256 seconds]
thecoffemaker has joined #ruby
akem has quit [Quit: Leaving]
dualfade has joined #ruby
akem has joined #ruby
cthulchu has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coniptor has joined #ruby
cyrus_mc_ has quit [Quit: Connection closed]
BSaboia has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
thecoffemaker has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
<nakilon> why send a Terminator to kill Sarah if you could send a hacker to patch a RELEASE_DAY or something
thecoffemaker has joined #ruby
<nakilon> (I mean the 2nd chapter, when humans were sending a thing to fight a machine, not vice versa)
ramfjord has joined #ruby
impermanence has joined #ruby
cnsvc has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 260 seconds]
drincruz has joined #ruby
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
imode has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
TomyWork has quit [Remote host closed the connection]
gix has joined #ruby
cd has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
zacts has quit [Quit: leaving]
w10x12 has joined #ruby
davispuh has joined #ruby
akem_ has quit [Quit: Leaving]
bocaneri has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
Swyper_ has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
alfiemax has quit [Remote host closed the connection]
Swyper has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
Rudd0 has quit [Ping timeout: 256 seconds]
Swyper has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 260 seconds]
hiroaki has joined #ruby
jenrzzz has joined #ruby
schne1der has joined #ruby
bmurt has joined #ruby
rippa has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
burgestrand has joined #ruby
bamdad_ has joined #ruby
bamdad has quit [Quit: quit]
TCZ has joined #ruby
vondruch has quit [Ping timeout: 258 seconds]
postmodern has joined #ruby
Swyper_ has joined #ruby
Swyper has quit [Read error: Connection reset by peer]
Deesl has joined #ruby
Technodrome has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
vmatiyko has joined #ruby
ur5us_ has joined #ruby
Deesl has quit [Quit: Textual IRC Client: www.textualapp.com]
ellcs1 has joined #ruby
vmatiyko has quit [Remote host closed the connection]
kristian_on_linu has joined #ruby
greengriminal has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
kristian_on_linu has joined #ruby
dfucci has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
ellcs1 has quit [Read error: Connection reset by peer]
ellcs1 has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
elcuervo has quit [Ping timeout: 265 seconds]
Rudd0 has joined #ruby
bmurt has joined #ruby
elcuervo has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
burgestrand has quit [Quit: burgestrand]
TCZ has joined #ruby
ruurd has joined #ruby
ellcs1 has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
budonyc has joined #ruby
woodruffw has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
kristian_on_linu has quit [Remote host closed the connection]
Rudd0 has quit [Ping timeout: 260 seconds]
TCZ has left #ruby ["Leaving"]
s3nd1v0g1us has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
TCZ has joined #ruby