havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview1: 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!
justache has joined #ruby
hiroaki has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
GodFather has quit [Remote host closed the connection]
elcontrastador has quit [Ping timeout: 240 seconds]
donofrio has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 244 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
ChmEarl has quit [Quit: Leaving]
TCZ has quit [Quit: Leaving]
Scient has quit [Quit: ZNC - http://znc.in]
bmurt has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 258 seconds]
RoSeH has joined #ruby
SeepingN has joined #ruby
TCZ has joined #ruby
drincruz has quit [Ping timeout: 258 seconds]
TCZ has quit [Quit: Leaving]
ramfjord has joined #ruby
kinduff4 has quit [Ping timeout: 265 seconds]
kinduff4 has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
thiagoramosal has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
powerhouse has quit [Remote host closed the connection]
cliluw has joined #ruby
zacts has joined #ruby
thiagoramosal has quit [Remote host closed the connection]
cthu| has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
kinduff48 has joined #ruby
kinduff4 has quit [Ping timeout: 240 seconds]
orbyt99 has quit [Quit: Textual IRC Client: www.textualapp.com]
rusua_ has quit [Quit: Connection closed for inactivity]
cthu| has joined #ruby
powerhouse has joined #ruby
adu has joined #ruby
RoSeH has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has joined #ruby
cd has quit [Quit: cd]
<nakilon> I wonder why ruby extconf.rb produces Makefile with `all: Makefile` instead of `all: mynativeextensioncoolname.bundle`
<nakilon> on Debian (ruby:slim) for some reason no .so/.o are created and so make does not even see if there is anything wrong
ramfjord has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
Liothen has quit [Quit: Liothen]
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
<nakilon> actually on macOS it creates .bundle and there is no .bundle dependence in any of Makefile tasks -- it's only used in the clean task, so seems like Makefile does not really checks if any binaries are produced -- how do I make it check then?
<nakilon> and why they are not being produced on Debian?
cthu| has quit [Ping timeout: 240 seconds]
<nakilon> (I call the `create_makefile` with only one argument so it can't just built to a custom destination)
adu has quit [Quit: adu]
ramfjord has quit [Ping timeout: 260 seconds]
<nakilon> nevermind, I guess I broke something elsewhere
<nakilon> yeah, didn't notice how I deleted the .c file
<nakilon> probably because I did the `rm mynativeextensioncoolname.*` instead of `rake clean` or something that I'm supposed to do
ur5us has quit [Ping timeout: 244 seconds]
_whitelogger has joined #ruby
zacts has quit [Quit: leaving]
alfiemax has joined #ruby
bocaneri has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
wnd-trans has joined #ruby
evdubs_ has joined #ruby
Fusl has quit [*.net *.split]
kashike has quit [*.net *.split]
jnoon has quit [*.net *.split]
Net has quit [*.net *.split]
pitastrudl has quit [*.net *.split]
peteretep has quit [*.net *.split]
englishm has quit [*.net *.split]
darthThorik has quit [*.net *.split]
proc has quit [*.net *.split]
alnk has quit [*.net *.split]
kent\n has quit [*.net *.split]
mojca has quit [*.net *.split]
Xiti has quit [*.net *.split]
graphicsv has quit [*.net *.split]
evdubs has quit [*.net *.split]
lightstalker has quit [*.net *.split]
wnd has quit [*.net *.split]
podman has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
badeball has quit [*.net *.split]
mojca has joined #ruby
peteretep has joined #ruby
kent\n has joined #ruby
Net has joined #ruby
pitastrudl has joined #ruby
Xiti has joined #ruby
jnoon has joined #ruby
proc has joined #ruby
alnk has joined #ruby
Fusl has joined #ruby
graphicsv has joined #ruby
darthThorik has joined #ruby
lightstalker has joined #ruby
englishm has joined #ruby
kashike has joined #ruby
mozzarella has quit [Remote host closed the connection]
yxhuvud has joined #ruby
badeball has joined #ruby
podman has joined #ruby
wnd-trans is now known as wnd
gensym has quit [Ping timeout: 240 seconds]
gensym has joined #ruby
ldepandis has joined #ruby
vondruch has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
cuerbot has joined #ruby
madsobel has joined #ruby
elcuervo has quit [Ping timeout: 256 seconds]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
rafadc has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby
rafadc has joined #ruby
Pyrophilia__ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Pyrophilia_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
madsobel has quit [Quit: Textual IRC Client: www.textualapp.com]
madsobel has joined #ruby
madsobel has quit [Client Quit]
madsobel has joined #ruby
ap4y has quit [Ping timeout: 260 seconds]
madsobel has quit [Client Quit]
rafadc has quit [Read error: Connection reset by peer]
madsobel has joined #ruby
rafadc has joined #ruby
Rudd0 has quit [Read error: Connection reset by peer]
zacts has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yxhuvud has joined #ruby
ur5us has joined #ruby
TheBrayn2 is now known as TheBrayn
madsobel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
powerhouse has quit [Read error: Connection reset by peer]
zacts has quit [Quit: leaving]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
madsobel has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
madsobel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has quit [Ping timeout: 240 seconds]
madsobel has joined #ruby
brendan- has joined #ruby
bamdad has joined #ruby
madsobel has quit [Client Quit]
madsobel has joined #ruby
jenrzzz has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
madsobel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
madsobel has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
madsobel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
madsobel has joined #ruby
imode has quit [Ping timeout: 240 seconds]
charrit69 has joined #ruby
alfiemax has quit [Remote host closed the connection]
fandre1986 has joined #ruby
Jonopoly has joined #ruby
madsobel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
alfiemax has joined #ruby
jenrzzz has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
cognemo has quit [Quit: cognemo]
cognemo has joined #ruby
rafadc has joined #ruby
madsobel has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris is now known as _aeris_
shaman_king has joined #ruby
shaman_king has left #ruby [#ruby]
Xiti` has joined #ruby
shaman_king has joined #ruby
<shaman_king> what is ruby
Xiti has quit [Ping timeout: 256 seconds]
Xiti` has quit [Ping timeout: 272 seconds]
fandre1986 has quit [Ping timeout: 240 seconds]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
ramfjord has joined #ruby
jenrzzz has joined #ruby
mnem has quit [Changing host]
mnem has joined #ruby
dionysus69 has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
<Jonopoly> , Attachment_FileName NVARCHAR(4000) NULL
mnem is now known as mnemon
rubydoc has quit [Ping timeout: 256 seconds]
<shaman_king> is ruby better than rails?
rafadc has quit [Quit: ZNC - https://znc.in]
rafadc has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
<jhass> shaman_king: is asp.net better than C#? 🤔
<shaman_king> ?
<jhass> right?
<shaman_king> why is ruby and its on RAILS
<jhass> because people had the idea to it
<shaman_king> what is so good about rails tha ruby needs to be on top of it ?
<jhass> What's so good about trains that they need to be?
<shaman_king> so ruby is associated with trains ?
<shaman_king> so ruby is ON RAILS because its developed for trains ?
<shaman_king> what about GRAILS /
<jhass> the holy or the unholy ones?
<shaman_king> like the groovy ones.
madsobel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shaman_king> so my question was is ruby related to GRAILS on RAILS?
<jhass> sorry I'm more into beats than grooves
<shaman_king> oh you are a wifebeater
<jhass> only with consent :)
<shaman_king> do you spank your wife with leather belts etc ?
<jhass> do you?
<shaman_king> do you ?
<jhass> Hey, I asked that!
<shaman_king> hey
<shaman_king> i asked that first
<jhass> you cannot prove that
<shaman_king> you cannot disprove that
<shaman_king> you cannot disprove what has already been proven.
<jhass> but then nothing is ever fully proven
ur5us has quit [Ping timeout: 260 seconds]
<shaman_king> but want to get to the bottom of this and understand why ruby can be on RAILS
<jhass> maybe trails were too boring
<shaman_king> what about GRAILS
cliluw has quit [Ping timeout: 246 seconds]
<jhass> what about them?
<shaman_king> i like them on rails.
<jhass> good for you :)
<shaman_king> what about metasploit
<shaman_king> is ruby affiliated with metasploit ?
<jhass> what about whataboutism?
<shaman_king> does is use rails to produce grails ?
alexherbo2 has joined #ruby
<jhass> metasploit is largely written in Ruby, but it's not a webapplication so it has no use for Rails
<shaman_king> is uses rails
<shaman_king> to exploit grails.
<jhass> you seem to know already, so why the question? :)
<shaman_king> because of gok wan.
cliluw has joined #ruby
<jhass> I don't follow
<shaman_king> follow the rails.
<jhass> they're full of nails
<shaman_king> is that ruby or the rails ?
<jhass> I don't know, I've only been told by the man that sails
<shaman_king> no
<shaman_king> so ruby is affiliated with grails and ruby on snails ?
<jhass> you'll have to ask the stone that wails
<shaman_king> like a wallhack ?
<shaman_king> i think im being trolled in here.
<shaman_king> are you a troll mr troll ?
<nakilon> you are troll and this is all boring
<shaman_king> you are a troll
<shaman_king> im going to ban you soon.
<jhass> yeah, I think we went far enough :D
<jhass> !troll shaman_king
shaman_king was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
madsobel has joined #ruby
TCZ has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
madsobel has quit [Ping timeout: 246 seconds]
jinie has joined #ruby
alexherbo2 has quit [Ping timeout: 256 seconds]
akem_ has joined #ruby
akem has quit [Ping timeout: 240 seconds]
Rudd0 has joined #ruby
alexherbo2 has joined #ruby
burgestrand has quit [Quit: burgestrand]
rubydoc has joined #ruby
phaul has joined #ruby
BSaboia has joined #ruby
Net has quit [*.net *.split]
kent\n has quit [*.net *.split]
peteretep has quit [*.net *.split]
kashike has quit [*.net *.split]
graphicsv has quit [*.net *.split]
evdubs_ has quit [*.net *.split]
wnd has quit [*.net *.split]
con3_ has quit [*.net *.split]
AutomationD has quit [*.net *.split]
Pyrophilia has quit [*.net *.split]
JayDoubleu has quit [*.net *.split]
gorsuch has quit [*.net *.split]
jokester_ has quit [*.net *.split]
mnemon has quit [*.net *.split]
Rush has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
Pyrophilia has joined #ruby
kashike has joined #ruby
graphicsv has joined #ruby
kent\n has joined #ruby
Net has joined #ruby
peteretep has joined #ruby
wnd has joined #ruby
evdubs_ has joined #ruby
con3_ has joined #ruby
JayDoubleu has joined #ruby
AutomationD has joined #ruby
gorsuch has joined #ruby
mnemon has joined #ruby
jokester_ has joined #ruby
Rush has joined #ruby
Kilo`byte has joined #ruby
evdubs_ is now known as evdubs
akem_ is now known as akem
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
graphicsv has quit [Ping timeout: 244 seconds]
graphicsv has joined #ruby
ellcs1 has joined #ruby
dfucci has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.9]
ellcs1 has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
burgestrand has joined #ruby
Pyrophilia has quit [Ping timeout: 244 seconds]
<nakilon> havenwood, remember the Ruby 2.4 Alpine issue? Just tried to upgrade the Ruby version keeping the same Alpine version as for 2.3.8 -- same error. I.e. it's not Alpine who introduced the error, it's Ruby.
Pyrophilia has joined #ruby
<nakilon> meanwhile ruby:slim has no issue but it's soooo huge: 1.4G for 2.3.8 and 1.7G for 2.7.2 right after installing gem dev dependencies
banisterfiend has joined #ruby
<nakilon> for some reason it's enough to just copy CImg.h to current directory and it builds on Alpine but Debian does not see it and `apt install cimg-dev` pulls so much trash, even python and firefox
vondruch has quit [Ping timeout: 264 seconds]
drincruz has joined #ruby
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
TCZ has quit [Quit: Leaving]
impermanence has joined #ruby
ruurd has quit [Quit: bye folks]
vondruch has joined #ruby
charrit69 has quit [Ping timeout: 246 seconds]
TCZ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
ChmEarl has joined #ruby
GodFather has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
bmurt has joined #ruby
donofrio has joined #ruby
charrit69 has joined #ruby
stryek has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
camilasan has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
alfiemax has quit [Remote host closed the connection]
GodFather has joined #ruby
jmoises has joined #ruby
jmoises is now known as jose2
jose2 is now known as jmoises
charrit69 has quit [Ping timeout: 240 seconds]
charrit69 has joined #ruby
ua_ is now known as ua
Swyper has joined #ruby
<apotheon> I find myself wondering whether shaman_king was just really confused, tried to play along, and ultimately got banned without understanding what was going on.
<apotheon> seems really confused, possibly
<apotheon> probably too confused to be helped, though
<jhass> I'm not going to share the fun we had in #ruby-banned after, but I'm quite confident of my decision ;)
<apotheon> ah, more context
<apotheon> coolio
<jhass> and I mean the "I'm going to ban you soon" is all we should need as a confirmation :)
<apotheon> It looks like shaman_king is a three day old registered nick.
<apotheon> You may have a point about the banning comment.
<apotheon> Well . . . I'm off to buy a part for the pickup, which seems less fun than Ruby.
<apotheon> Thanks for enteraining my curiosity.
<apotheon> ta
RoSeH has joined #ruby
ujjain2 has joined #ruby
akem has quit [Ping timeout: 264 seconds]
ruurd has joined #ruby
rubydoc has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 260 seconds]
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
rubydoc has joined #ruby
bvdw has joined #ruby
phaul has joined #ruby
ChrisBr has quit [Ping timeout: 265 seconds]
ChrisBr has joined #ruby
<extrowerk> Building latest stable ruby (2.7.2) on Haiku. Something fishy here: http://0x0.st/i0Jk.txt
charrit69 has quit [Quit: Konversation terminated!]
charrit69 has joined #ruby
TCZ has quit [Quit: Leaving]
alfiemax has joined #ruby
cd has joined #ruby
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
sarmiena_ has joined #ruby
<sarmiena_> is ObjectSpace.memsize_of_all not a good thing to use in production code that will call it hundreds of times?
akem has joined #ruby
TCZ has joined #ruby
weaksauce has quit [Ping timeout: 265 seconds]
<EdwardIII> how does array reduce work under the hood? i tried to find it in the source, but couldn't (likely my ineptitude, first time i've ever actually tried to look in ruby's source)
<EdwardIII> just interested if it is just sugar for a for loop, or if it actually works differently to that
<jhass> sarmiena_: can't say from any experience, but it doesn't sound like a particularily great idea. If I had a strong need I would just dig up its implementation and see whether it computes it value or reads a cached one to decide
<EdwardIII> ahh, i was looking for stuff around the word reduce, not inject. that's probably it :)
<EdwardIII> thanks sarmiena_
<jhass> a lot of ruby doc sites have a "show source" featue :)
<sarmiena_> jhass yeah i was trying to figure out the source for it... looks like it's doing some sort of iteration. bummer :/ i wanted to log some stuff in production to see how things are performing
<sarmiena_> memsize_of_all takes like .6s each call
<jhass> GC.stats ain't cutting it?
bvdw has joined #ruby
Swyper has quit [Remote host closed the connection]
<sarmiena_> jhass i'm trying to put a wrapper around suspicious methods to log memory growth to find culprits, basically
powerhouse has joined #ruby
<sarmiena_> or even just around common methods that aren't problematic right now. then we are logging things and hopefully create monitoring around it
<jhass> GC.stat[:heap_live_slots] might be enough to get that indication? Idk
Swyper has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
Swyper has quit [Remote host closed the connection]
<sarmiena_> jhass looks like total memory use does not equate to the heap? maybe there's a lot more on the stack or something, but there's a large discrepancy on heap used vs memsize_of_all
<sarmiena_> maybe memsize_of_all combines heap and stack? dunno
<jhass> maybe
akem has quit [Quit: Leaving]
Swyper has joined #ruby
<jhass> but then in a VM language all of the things should live on the heap, no?
<jhass> I mean I can't imagine memsize_of_all to include the actual memory used by stackframes
<sarmiena_> i'm really not sure of the implementation. been years since I've messed with C. I just noticed that heap size is returning a value, and the rsize is much higher
banisterfiend has joined #ruby
charrit69 has quit [Quit: Konversation terminated!]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
sarmiena_ has quit [Remote host closed the connection]
mnathani has joined #ruby
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
ellcs1 has joined #ruby
alexherbo2 has joined #ruby
akem has joined #ruby
cthu| has joined #ruby
Swyper has joined #ruby
davispuh has joined #ruby
Swyper has quit [Remote host closed the connection]
ellcs1 has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Takumo has quit [Quit: WeeChat 2.8]
Takumo has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper_ has joined #ruby
Swyper_ has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
ellcs1 has joined #ruby
howdoi has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo28 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fercell has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
ujjain2 has joined #ruby
Swyper has joined #ruby
ujjain2 has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
moeSizlak has left #ruby ["Leaving"]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
<s_> what does prefix/"libexec" do?
<s_> is that just division?
ramfjord has joined #ruby
BSaboia has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
rubydoc has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
<burgestrand> s_ it's not unlikely that something has defined a String#/ and it does something (e.g. File.join), but AFAIK stdlib doesn't have it — it depends what's in `prefix`
<s_> yeah it seems to go back to Pathname
<burgestrand> s_ indeed, I just noticed that too, and Pathname#/ _does_ exist :D
<s_> not sure if that is helpful.. i didn't see anything in Pathname docs showing use
<s_> ah there it is.. alias for +
<s_> sometimes i feel like ruby enables things that are overly DRY
<burgestrand> Oh for sure, there's more than enough rope for most everything
BSaboia has quit [Quit: This computer has gone to sleep]
phaul has quit [Ping timeout: 240 seconds]
<s_> its a popular-ish style to make every method somehow a one-liner
<s_> but... thank you for the lift. not sure why i didn't see that the first time i looked
<burgestrand> I don't agree, but that doesn't mean you're wrong :D I'm definitely a sucker for longer/more clear, so I naturally gravitate to others who have similar opinions
phaul has joined #ruby
<burgestrand> s_ sometimes all it takes is a rubber duck, you're welcome :)
Swyper has quit [Remote host closed the connection]
<s_> i want to make sure i am not coming in here with an uninformed rant as an expresssion of gratitude
alfiemax has quit [Remote host closed the connection]
rubydoc has joined #ruby
weaksauce has joined #ruby
BSaboia has joined #ruby
Swyper has joined #ruby
ujjain2 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
w10x12 has left #ruby ["WeeChat 2.3"]
klaas_ is now known as klaas
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bocaneri has quit [Remote host closed the connection]
BSaboia has quit [Quit: This computer has gone to sleep]
ldepandis has joined #ruby
hiroaki has joined #ruby
BSaboia has joined #ruby
elcuervo has joined #ruby
s2013 has joined #ruby
cuerbot has quit [Ping timeout: 260 seconds]
gix has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
queip has quit [Quit: bye, freenode]
queip has joined #ruby
banisterfiend has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
burgestrand has quit [Quit: burgestrand]
BSaboia has joined #ruby
dfucci has joined #ruby
Xiti has joined #ruby
TCZ has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 272 seconds]
ujjain2 has joined #ruby
bmurt has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
ap4y has joined #ruby
lebigsquare has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
lebigsquare has quit []
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldepandis has joined #ruby
xall has quit [Remote host closed the connection]
kristian_on_linu has joined #ruby
splud has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ramfjord has quit [Ping timeout: 260 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has joined #ruby
weaksauce has joined #ruby
dionysus69 has joined #ruby
impermanence has quit [Quit: Connection closed]
ramfjord has joined #ruby
banisterfiend has quit [Client Quit]
ujjain2 has joined #ruby
kba has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
GankMove has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ujjain2 has joined #ruby
jenrzzz has joined #ruby
Rudd0 has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Frankenstein is now known as Frankenlime
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
splud has joined #ruby
Rudd0 has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leftylink> you know... sometimes I want a Hash#invert_multi
<leftylink> something like...
<leftylink> &>> module InvertMulti refine Hash do def invert_multi; each_with_object(Hash.new { |h, k| h[k] = [] }) { |(k, v), inv| inv[v] << k } end end end; using InvertMulti; {a: 1, b: 1, c: 2}.invert_multi
<rubydoc> # => {1=>[:a, :b], 2=>[:c]} (https://carc.in/#/r/9ss6)
<leftylink> or maybe something like
<leftylink> &>> module InvertMulti refine Hash do def invert_multi; map { |k, v| {v => [k]} }.then { |x, *xs| x.merge(*xs) { |_, v1, v2| v1 + v2 } } end end end; using InvertMulti; {a: 1, b: 1, c: 2}.invert_multi
<rubydoc> # => {1=>[:a, :b], 2=>[:c]} (https://carc.in/#/r/9ss7)
<leftylink> honestly though I liked the first one better. the second one seems a little wasteful in creating all those small single-element hashes
<leftylink> would take suggestions for the impl but honestly I think the first one is probably the way to go
<leftylink> wait a second.
<leftylink> keys and group_by maybe???
<leftylink> oh that is beautiful
<leftylink> &>> module InvertMulti refine Hash do def invert_multi; keys.group_by(&self) end end end; using InvertMulti; {a: 1, b: 1, c: 2}.invert_multi
<rubydoc> # => {1=>[:a, :b], 2=>[:c]} (https://carc.in/#/r/9ss8)
<leftylink> oh heck yes
<leftylink> okay going to be hard to top that one
<leftylink> that is sickkkkkkkkkkkkkk
Liothen has joined #ruby
joshuacronemeyer has joined #ruby
va5c0 has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
thither has joined #ruby
Swyper has joined #ruby
<thither> What is T_IMEMO from ObjectSpace.count_objects?
RoSeH has quit [Ping timeout: 240 seconds]
<thither> Or T_ICLASS
Liothen has quit [Read error: Connection reset by peer]
GankMove has quit [Read error: Connection reset by peer]
Liothen has joined #ruby
va5c0 has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 260 seconds]
reaVer has quit [Remote host closed the connection]
reaVer has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 240 seconds]
Liothen has quit [Quit: Liothen]
ellcs1 has quit [Ping timeout: 240 seconds]
mnathani has quit []
ramfjord has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Liothen has joined #ruby
ur5us has joined #ruby