havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: 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!
impermanence has quit [Ping timeout: 240 seconds]
silviu has quit [Remote host closed the connection]
silviu19 has joined #ruby
bsdband67 has quit [Remote host closed the connection]
turbo_choo has quit [Ping timeout: 268 seconds]
davidw has quit [Ping timeout: 258 seconds]
turbo_choo has joined #ruby
jenrzzz has joined #ruby
silviu19 has quit [Remote host closed the connection]
silviu has joined #ruby
TCZ has quit [Quit: Bye Bye]
drincruz has quit [Ping timeout: 240 seconds]
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
jaequery has joined #ruby
im0nde_ has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
im0nde has quit [Ping timeout: 246 seconds]
Fusl has quit [Max SendQ exceeded]
mossplix has quit [Remote host closed the connection]
Fusl has joined #ruby
jaequery has quit [Ping timeout: 268 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mossplix has joined #ruby
mossplix has quit [Remote host closed the connection]
turbo_choo has quit [Ping timeout: 265 seconds]
davidw has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
brool has quit [Quit: WeeChat 2.7]
jenrzzz has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
subfj_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthu| has joined #ruby
turbo_choo has joined #ruby
cthulchu_ has quit [Ping timeout: 260 seconds]
subfj has joined #ruby
subfj has quit [Client Quit]
jaequery has quit [Remote host closed the connection]
mossplix has joined #ruby
jaequery has joined #ruby
turbo_choo has quit [Ping timeout: 268 seconds]
turbo_choo has joined #ruby
mossplix has quit [Remote host closed the connection]
turbo_choo has quit [Ping timeout: 265 seconds]
skryking_ has joined #ruby
skryking has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Read error: Connection reset by peer]
subfj has joined #ruby
turbo_choo has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
CrazyEddy has joined #ruby
SanguineAnomaly has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 258 seconds]
subfj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has quit [Remote host closed the connection]
drincruz has joined #ruby
alex`` has joined #ruby
jaequery has joined #ruby
wildtrees has quit [Quit: Leaving]
jaequery has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
SanguineAnomaly has joined #ruby
orbyt_ has joined #ruby
alex`` has quit [Ping timeout: 258 seconds]
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
turbo_choo has quit [Ping timeout: 268 seconds]
davispuh has quit [Ping timeout: 265 seconds]
turbo_choo has joined #ruby
davispuh has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
GodFather has joined #ruby
davidw has quit [Ping timeout: 265 seconds]
davispuh has quit [Client Quit]
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
davispuh has joined #ruby
jaequery has quit [Remote host closed the connection]
howdoi has joined #ruby
jenrzzz has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
fphilipe1 has joined #ruby
skryking_ has quit [Quit: Konversation terminated!]
jaequery has joined #ruby
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
dasher00 has quit [Remote host closed the connection]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
davispuh has joined #ruby
AJA4350 has quit [Remote host closed the connection]
jaequery has quit [Remote host closed the connection]
AJA4350 has joined #ruby
fphilipe1 has quit [Ping timeout: 252 seconds]
Rob__ has quit [Read error: Connection reset by peer]
drincruz has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
johnny56 has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 268 seconds]
jaequery has joined #ruby
jaequery has quit [Remote host closed the connection]
jaequery has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
johnny56 has joined #ruby
fphilipe1 has joined #ruby
jaequery has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
turbo_choo has quit [Ping timeout: 260 seconds]
cthu| has quit [Ping timeout: 258 seconds]
turbo_choo has joined #ruby
AJA4350 has quit [Quit: AJA4350]
jenrzzz has quit [Ping timeout: 240 seconds]
akem__ has joined #ruby
akem__ is now known as akem
akemhp_ has quit [Ping timeout: 268 seconds]
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
bsdbandit-01 has joined #ruby
drincruz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
NODE has quit [Remote host closed the connection]
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
NODE has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
fphilipe1 has quit [Ping timeout: 260 seconds]
znz_jp has quit [Remote host closed the connection]
znz_jp has joined #ruby
cthu| has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
cthu| has quit [Ping timeout: 240 seconds]
gix has joined #ruby
gix- has quit [Ping timeout: 260 seconds]
fphilipe1 has joined #ruby
gix has quit [Ping timeout: 265 seconds]
turbo_choo has quit [Ping timeout: 265 seconds]
fphilipe1 has quit [Ping timeout: 252 seconds]
turbo_choo has joined #ruby
<erikh> we're all ROM users here in computer land
<erikh> are you talking about like game rom dumps or something
markopasha has quit [Remote host closed the connection]
fphilipe1 has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
troulouliou_dev has quit [Quit: Leaving]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
suukim has joined #ruby
suukim has quit [Quit: Konversation terminated!]
Swyper has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristofferR has joined #ruby
phaul has joined #ruby
<havenwood> erikh: https://rom-rb.org/
<erikh> ohhh
<erikh> haha
_whitelogger has joined #ruby
<Cork> how do one uninstall broken gems? (uninstall and install complains)
<havenwood> Cork: gem uninstall gem-name-here
<havenwood> Cork: What's the error when you try to unistal?
<Cork> "Ignoring cairo-gobject-3.4.1 because its extensions are not built. Try: gem pristine cairo-gobject --version 3.4.1"
<Cork> and same error on gem install
Azure|dc has joined #ruby
<havenwood> Cork: Did you run?: gem pristine cairo-gobject --version 3.4.1
<Cork> ya, and it can't build them cause it depends on native packages that doesn't exist anymore
<havenwood> Cork: Show that error?
<Cork> mkmf-gnome to be exact
<havenwood> Cork: Oh, you just want to ditch the gem then?
<Cork> /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- mkmf-gnome (LoadError)
<havenwood> Cork: What's the error from?: gem uninstall cairo-gobject --version 3.4.1
<Cork> gem install
<Cork> the error on uninstall is the former one
Azure has quit [Ping timeout: 268 seconds]
<havenwood> Cork: You run `gem uninstall cairo-gobject --version 3.4.1` and it says `Ignoring cairo-gobject-3.4.1...`?
<Cork> ya
<havenwood> Cork: Show the output from?: gem list cairo-gobject
<havenwood> Cork: It looks like it's not installed. Maybe just do a: gem pristine --all
<Cork> gem list says it is
<Cork> i'm trying to remove everyting in that list
<havenwood> Cork: It's not in that list though.
<havenwood> Cork: You can't remove default gems.
<Cork> uh, wtf. it was when i talked about it first time...
<Cork> well it looks like it worked somewhere along the line i guess
<Cork> lol thx, exactly what i was about to ask about :)
<havenwood> Cork: Each Ruby release these days, more and more of the stdlib is gemified.
* Cork nods
<havenwood> It's nice, since it means you can update those parts of the stdlib for security purposes without updating Ruby itself. The process if 57% done.
<havenwood> But you can't uninstall stdlib "default" gems.
<havenwood> (Since they're the stdlib.)
<Cork> ya, my problem was that my os package manager complained about runy files on paths it wanted to install packages on
<Cork> som program has ran gem install as root
<Cork> and installed bundler among other things
<havenwood> Cork: If you just want to uninstall everything you can: gem uninstall --all
<havenwood> Cork: I think I added that flag to RubyGems back in the day. :)
<Cork> ya, i did but it ignored my the first times
<Cork> but ya, everythings fine now
<Cork> havenwood: thx for the help!
<havenwood> Cork: np, happy to rubber duck until it just starts working :)
<Cork> :)
william1_ has joined #ruby
Furai has quit [Quit: WeeChat 2.7]
william1_ has quit [Ping timeout: 268 seconds]
Furai has joined #ruby
cxl has quit [Quit: bye]
iNs has quit [Ping timeout: 240 seconds]
iNs has joined #ruby
andikr has joined #ruby
nowhere_man has joined #ruby
lineus has quit [Ping timeout: 240 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
subfj has joined #ruby
mossplix has joined #ruby
mossplix has quit [Remote host closed the connection]
cd has quit [Quit: cd]
code_zombie has quit [Quit: Leaving]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
Tikku has joined #ruby
Tikku has quit [Client Quit]
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
vondruch has quit [Quit: vondruch]
fphilipe1 has quit [Ping timeout: 245 seconds]
vondruch has joined #ruby
NODE has quit [Remote host closed the connection]
NODE has joined #ruby
subfj has quit [Ping timeout: 265 seconds]
subfj has joined #ruby
FlorianFa has quit [Quit: Leaving]
fphilipe1 has joined #ruby
teclator has joined #ruby
jokester has quit [Quit: WeeChat 1.6]
NODE has quit [Remote host closed the connection]
NODE has joined #ruby
conta has joined #ruby
subfj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 265 seconds]
DaRock has joined #ruby
william1_ has joined #ruby
subfj has joined #ruby
william1_ has quit [Ping timeout: 258 seconds]
jmcgnh has quit [Read error: Connection reset by peer]
william1_ has joined #ruby
NODE has quit [Remote host closed the connection]
ur5us has joined #ruby
NODE has joined #ruby
jmcgnh has joined #ruby
subfj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
subfj has joined #ruby
arahael1 is now known as Arahael
dellavg has joined #ruby
dellavg has quit [Remote host closed the connection]
subfj has quit [Client Quit]
subfj has joined #ruby
bsdbandit-01 has quit [Remote host closed the connection]
skx86 has joined #ruby
fig-le-deunch has joined #ruby
subfj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shaman42 has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
Benett has quit [Quit:  ]
NODE has quit []
fphilipe1 has quit [Ping timeout: 265 seconds]
fig-le-deunch has quit [Ping timeout: 268 seconds]
pwnd_nsfw has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
lalitmee has joined #ruby
Benett has joined #ruby
lalitmee has quit [Max SendQ exceeded]
NODE has joined #ruby
lalitmee has joined #ruby
NODE has quit [Remote host closed the connection]
NODE has joined #ruby
CrazyEddy has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
lalit has joined #ruby
CrazyEddy has joined #ruby
CrazyEddy has quit [Changing host]
CrazyEddy has joined #ruby
lalitmee has quit [Ping timeout: 260 seconds]
lalit is now known as lalitmee
Black has joined #ruby
Benett has quit [Ping timeout: 264 seconds]
NODE has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
Black is now known as Benett
NODE has joined #ruby
chalkmonster has joined #ruby
conta1 has joined #ruby
conta has quit [Ping timeout: 268 seconds]
conta1 is now known as conta
Fusl has quit [Excess Flood]
Fusl has joined #ruby
fphilipe1 has joined #ruby
lalit has joined #ruby
lalitmee has quit [Read error: Connection reset by peer]
lalit is now known as lalitmee
mossplix has joined #ruby
lalitmee has quit [Remote host closed the connection]
lalitmee has joined #ruby
lalitmee has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
dellavg has joined #ruby
dellavg has quit [Client Quit]
phaul has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
chalkmonster has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
vijvcic has joined #ruby
william1 has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
NODE has quit [Remote host closed the connection]
Fusl has quit [Max SendQ exceeded]
NODE has joined #ruby
Fusl has joined #ruby
mossplix has quit [Remote host closed the connection]
Silex has joined #ruby
lineus has joined #ruby
fig-le-deunch has joined #ruby
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
conta has quit [Quit: conta]
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
akemrir has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
fig-le-deunch has quit [Ping timeout: 260 seconds]
mossplix has joined #ruby
vijvcic has quit [Remote host closed the connection]
fig-le-deunch has joined #ruby
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
NODE has quit [Remote host closed the connection]
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
NODE has joined #ruby
lucasb has joined #ruby
fig-le-deunch has quit [Read error: No route to host]
alex`` has joined #ruby
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
mossplix has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
mossplix has joined #ruby
Silex has quit [Remote host closed the connection]
AJA4350 has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
DaRock has quit [Ping timeout: 240 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
chalkmonster has joined #ruby
william1 has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
TCZ has joined #ruby
turbo_choo has quit [Ping timeout: 268 seconds]
mossplix has quit [Read error: Connection reset by peer]
turbo_choo has joined #ruby
mossplix has joined #ruby
phenom has quit [Excess Flood]
phenom has joined #ruby
akemrir has quit [Quit: WeeChat 2.7]
alex`` has quit [Ping timeout: 268 seconds]
mossplix has quit [Remote host closed the connection]
alex`` has joined #ruby
mossplix has joined #ruby
nima_m has joined #ruby
william1 has joined #ruby
impermanence has joined #ruby
bmurt has joined #ruby
turbo_choo has quit [Ping timeout: 258 seconds]
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
mossplix_ has joined #ruby
mossplix has quit [Read error: Connection reset by peer]
mossplix_ has quit [Ping timeout: 268 seconds]
andikr has quit [Read error: Connection reset by peer]
andikr has joined #ruby
vondruch_ has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
vondruch_ is now known as vondruch
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
NODE has quit [Quit: changing servers]
TCZ has quit [Quit: Bye Bye]
NODE has joined #ruby
drincruz has joined #ruby
markopasha has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
mossplix has joined #ruby
TheDeadSerious__ has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Remote host closed the connection]
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
NODE has joined #ruby
BH23 has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
GodFather has joined #ruby
troulouliou_div2 has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
jaequery has joined #ruby
jaequery has quit [Remote host closed the connection]
leonid has joined #ruby
<leonid> hi
NODE has quit [Remote host closed the connection]
<leonid> is there anyone?
<havenwood> leonid: yup
<havenwood> leonid: hi
<leonid> hello
Fusl has quit [Max SendQ exceeded]
NODE has joined #ruby
Rob__ has joined #ruby
Fusl has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
<leonid> havenwood
pwnd_nsfw` has quit [Ping timeout: 268 seconds]
<leonid> is such silence constantly?)
cxl has joined #ruby
Swyper has quit [Remote host closed the connection]
<havenwood> leonid: Only between questions.
Swyper has joined #ruby
<havenwood> leonid: Have a Ruby question or any code to share or get reviewed?
nima_m has quit [Quit: Connection closed for inactivity]
mossplix has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
<havenwood> &>> base_9 = 1.step.lazy.flat_map { |n| n.to_s(9).to_i.digits.reverse }; 1.step.lazy.map { |level| -Array.new(level) { base_9.next }.last + 111 }.drop(1).map(&:chr).first(4).join
<rubydoc> # => "lion" (https://carc.in/#/r/8cp6)
<havenwood> leonid: In honor of your ^ name.
dinfuehr_ has quit [Ping timeout: 258 seconds]
<leonid> not understood
Rudd0 has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
<havenwood> leonid: I just wrote "lion" using bytes from this integer sequence with a couple lazy enumerators for fun: https://oeis.org/A104613
Rudd0^ has quit [Ping timeout: 268 seconds]
animo8 has joined #ruby
Rudd0^^ has quit [Ping timeout: 260 seconds]
BH23 has quit [Ping timeout: 240 seconds]
<leonid> it's funny)
<Mrbuck> i am still trying to understand it can that be converted to python please?
mossplix has joined #ruby
<Mrbuck> it printed lion not leonid ok
g3funk has joined #ruby
ellcs has quit [Ping timeout: 258 seconds]
Rudd0 has joined #ruby
sh7d has quit [Read error: Connection reset by peer]
sh7d has joined #ruby
mwlang has joined #ruby
<mwlang> Is anyone aware of a way to capture the method call stack similar to if you'd put binding.pry call in a line and just went "next", "next", "next"... to completion?
<mwlang> I have a unit test I've isolated that behaves differently when it runs by itself vs. when it runs within the context of entire suite. So I want to capture all the method calls of both runs to the log file and then diff the two.
Rudd0^ has joined #ruby
Rudd0^^ has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<havenwood> mwlang: TracePoint should do the trick, I'd think.
TheDeadSerious__ has quit [Quit: Connection closed for inactivity]
lineus has quit [Remote host closed the connection]
lineus has joined #ruby
troulouliou_div2 has joined #ruby
g3funk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
Rob__ has quit [Ping timeout: 260 seconds]
wildtrees has joined #ruby
animo8 has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
impermanence has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
NODE has quit [Remote host closed the connection]
NODE has joined #ruby
subfj has joined #ruby
NODE has quit [Remote host closed the connection]
NODE has joined #ruby
wildtrees has quit [Ping timeout: 268 seconds]
leonid has quit [Quit: Leaving]
dkmueller has joined #ruby
wildtrees has joined #ruby
cthulchu has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Technodrome has joined #ruby
Technodrome has left #ruby ["Textual IRC Client: www.textualapp.com"]
william1 has quit [Ping timeout: 258 seconds]
jaequery has joined #ruby
howdoi has joined #ruby
bmurt has joined #ruby
drincruz_ has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 268 seconds]
skx86 has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
g3funk has joined #ruby
za1b1tsu has quit [Ping timeout: 260 seconds]
davispuh has joined #ruby
leonid has joined #ruby
<leonid> hi
<leonid> Sorry, I have a question. how to call a command from ruby ​​in ruby ​​(in my case bash)
<leonid> oh
<leonid> command shell*
<adam12> leonid: There's a bunch of different ways. Backticks is the simplest possibly. `command`
<adam12> leonid: If you want to redirect stdout/stderr, etc. you should just skip to using open3.
<leonid> thanks adam
subfj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tmp0 has joined #ruby
william1_ has quit [Ping timeout: 260 seconds]
leonid has quit [Quit: Leaving]
andikr has quit [Remote host closed the connection]
william1_ has joined #ruby
<guzzlefry> Are symbol values deterministic?
gavlee has quit [Excess Flood]
gavlee has joined #ruby
<ytti> i don't understand the question
william1 has joined #ruby
mossplix has quit [Remote host closed the connection]
code_zombie has joined #ruby
mossplix has joined #ruby
Exuma has joined #ruby
mossplix has quit [Ping timeout: 268 seconds]
<guzzlefry> Would the symbol :pet be the same value if I ran a script multiple times, or even against multiple Ruby versions?
<guzzlefry> I might be getting ahead of myself with this, but I'm wondering if things like serializing a hash would be safe.
<adam12> &>> :pet.__id__
<rubydoc> # => 1034908 (https://carc.in/#/r/8crn)
<adam12> &>> :pet.__id__
<rubydoc> # => 1034908 (https://carc.in/#/r/8cro)
<adam12> guzzlefry: Presumably? But if you're using Marshal dump/load then don't presume it will work across multiple Ruby versions (or architectures)
<adam12> guzzlefry: Serializing a hash to json or yaml would likely be safer.
<ytti> the ojbect id would be only guaranteed to be same during runtime, i believe
<ytti> i.e. symbols are immutable
<ytti> but i don't think specifics guarantees are made at all to make the object id same the next time it runs
<ytti> basically just 'whats the next available object id'
<adam12> Symbols seem to be, at least on 2.7. But there were changes to how object id's are allocated recently AFAIL.
<ytti> but i wonder if by 'value' you meant object id
chalkmonster has quit [Quit: WeeChat 2.7]
<ytti> because it would be bizarre to expect object id to be static
<ytti> adam12, seems to be what?
<adam12> ytti: Object id of a symbol was the same across multiple runs of the ruby interpreter.
<ytti> adam12, i think your test is naive
<ytti> adam12, and on non-naive test you'd receive different result
<ytti> adam12, if before allocating that symbol you'd do some 'real work' it wouldn't be reliable to get same object_id
<ytti> adam12, if the real work is fully identical every time, then maybe
<ytti> but if you're like reading data that may be different on differetn run time, then no
<guzzlefry> &>> :puppy.__id__
<rubydoc> # => 1034908 (https://carc.in/#/r/8crs)
<ytti> adam12, what you're really measureing is 'how nth allocation was this'
<adam12> ytti: You're right.
<ytti> and even that is likely not at all guaranteed, but implementation specific behaviour
<adam12> ytti: I was thinking symbols were hashed and their id was static inside the symbol mapping table but they aren't.
TCZ has joined #ruby
subfj has joined #ruby
mossplix has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> &>> format '%#018x', :foo.object_id << 1
<rubydoc> # => "0x00000000001f9538" (https://carc.in/#/r/8cs3)
tag has joined #ruby
chalkmonster has joined #ruby
<havenwood> Many object ids directly correspond to memory locations.
<guzzlefry> okay, after searching for a bit I can't figure out what this Rubocop error means: RuboCop: Prefer annotated tokens (like `%<foo>s`) over unannotated tokens (like `%s`).
<guzzlefry> For the code: printf("Number: %5.2f,\nString: %s\n", 1.2, 'hello')
Ven`` has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
<havenwood> &>> printf("Number: %<number>5.2f,\nString: %<string>s\n", number: 1.2, string: 'hello')
<rubydoc> # => Number: 1.20,... check link for more (https://carc.in/#/r/8csc)
<havenwood> guzzlefry: ^
<guzzlefry> thanks
<guzzlefry> So is that essentially passing additional named arguments to printf()?
dkmueller has quit [Quit: WeeChat 2.7]
<havenwood> guzzlefry: It's using name rather than position for the entanglement.
<havenwood> guzzlefry: The things named `:string` is the String rather than the 1st thing is the string.
al2o3-cr has quit [Ping timeout: 256 seconds]
<guzzlefry> havenwood: Where would I find the definition of printf()?
al2o3-cr has joined #ruby
<havenwood> &>> method(:printf).owner # guzzlefry
<rubydoc> # => Kernel (https://carc.in/#/r/8csi)
<havenwood> guzzlefry: From the command line, you can: ri printf
<havenwood> guzzlefry: Same from inside IRB.
al2o3-cr has quit [Client Quit]
<havenwood> guzzlefry: In Pry: $ printf
<guzzlefry> oh nice, thanks
william1_ has quit [Ping timeout: 258 seconds]
subfj has quit [Ping timeout: 240 seconds]
gix has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
al2o3-cr has joined #ruby
subfj has joined #ruby
dkmueller has joined #ruby
ur5us has joined #ruby
troulouliou_div2 has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
dkmueller has quit [Quit: WeeChat 2.6]
markopasha has quit [Remote host closed the connection]
akemhp_ has joined #ruby
markopasha has joined #ruby
g3funk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem has quit [Ping timeout: 258 seconds]
william1_ has joined #ruby
Exuma has joined #ruby
akemhp has joined #ruby
Exuma has quit [Client Quit]
william1_ has quit [Ping timeout: 260 seconds]
g3funk has joined #ruby
Mia has quit [Read error: Connection reset by peer]
catphish has joined #ruby
akemhp_ has quit [Ping timeout: 268 seconds]
<catphish> using rubygems/bundler, is it possible do disable CPU-specific optimizations and build generic redistributable extensions? we're trying to build docker images and they're failing on older systems with illegal instruction errors
<catphish> *disable CPU-specific optimizations when compiling native extensions in gems
akemhp_ has joined #ruby
Exuma has joined #ruby
akemhp has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
nofxx_ has joined #ruby
tmp0 has quit [Quit: Connection closed for inactivity]
nofxx has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
davispuh has quit [Ping timeout: 268 seconds]
davispuh has joined #ruby
william1_ has joined #ruby
g3funk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> catphish: I'm just curious what the particular issue was? You can install gems with build flags—so if what you're wanting is doable with flags, you can.
<havenwood> catphish: See: gem install --help
<havenwood> Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]
<catphish> havenwood: this is the image my colleague sent me to investigate: https://i.imgur.com/i6SpTvW.png
<havenwood> gem install foo -- --build-flags "-march=x86-64 -mtune=generic"
<catphish> looks like FFI was built with some CPU instructions native to his laptop
<catphish> though do let me know if i'm mistaken about what's happening here
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
william1_ has quit [Ping timeout: 240 seconds]
g3funk has joined #ruby
<catphish> havenwood: also, do you happen to know if this can be automated through bundler to apply to all gem installations?
<catphish> or i suppose a rubygems config file or similar, for the same result
<havenwood> catphish: You can definitely set a build flag with Bundler config, but unsure it'd help here.
<havenwood> catphish: When we build distributable Rubies for RVM, they're statically linked not dynamically. It's somewhat of a pain to do.
<havenwood> catphish: TravisCI also does static linking, as does Traveling Ruby.
<havenwood> catphish: Another to look at is Fullstaq Ruby, which is nice for prod too. https://fullstaqruby.org/
<catphish> well my understanding is that ruby itself is fine (i'm using a generic build from docker) and dynamically compiled stuff should be okay too, since the'll be linked against the same generic libraries (also all from docker)
<havenwood> catphish: Ah, so it's the exact same FFI and you think it'd work but for a CPU optimization?
<catphish> right
<catphish> it's compiling on the exact same OS it's running
<catphish> just on a different CPU
<havenwood> catphish: I'd suggest trying the most vanilla build flags possible, but unsure if it'll work.
davispuh has quit [Ping timeout: 268 seconds]
<catphish> i just found that, seems to be per gem which is mildly inconvenient but not impossibly so
nofxx_ has quit [Ping timeout: 268 seconds]
davispuh has joined #ruby
<havenwood> catphish: It's just documented per-gem, but works globally if you omit the `.name`.
<havenwood> catphish: bundle config set build '--build-flags "-mtune=OMGWTFBBQ"'
<catphish> havenwood: ideal, i'll try that, thank you
mwlang has quit [Quit: mwlang]
<havenwood> catphish: you're welcome. good luck!
<catphish> i've not set build flags for a long time, but "-march=x86-64 -mtune=generic" looks sane
<catphish> if a little suboptimal
skx86 has quit [Quit: Connection closed for inactivity]
subfj_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
subfj has quit [Ping timeout: 240 seconds]
<catphish> well, my guy isn't working any more, but we'll have a proper play with it tomorrow, thanks again
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jenrzzz has quit [Ping timeout: 240 seconds]
davispuh has joined #ruby
chalkmonster has joined #ruby
william1_ has joined #ruby
william1_ has quit [Ping timeout: 258 seconds]
mnemon has quit [Ping timeout: 248 seconds]
mnemon has joined #ruby
Skarlso has quit [Quit: Ping timeout (120 seconds)]
ruby[bot] has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
Skarlso has joined #ruby
mnemon has quit [Ping timeout: 248 seconds]
mnemon has joined #ruby
NODE has quit [Remote host closed the connection]
markopasha has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
william1_ has joined #ruby
g3funk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
catphish has quit [Ping timeout: 240 seconds]
william1 has quit [Quit: WeeChat 1.9.1]
william1_ has quit [Ping timeout: 260 seconds]
g3funk has joined #ruby
jaequery has quit [Remote host closed the connection]
sauvin has quit [Ping timeout: 265 seconds]
sauvin has joined #ruby
sergioro has joined #ruby
sergioro has quit [Client Quit]
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 265 seconds]
g3funk has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has joined #ruby
mossplix has quit [Remote host closed the connection]
cd has joined #ruby
SeepingN has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
jaequery has joined #ruby
jenrzzz has joined #ruby
jaequery has quit [Ping timeout: 268 seconds]
TCZ has quit [Quit: Bye Bye]
jaequery has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endorama has quit [Ping timeout: 245 seconds]
hiroaki has quit [Ping timeout: 260 seconds]
im0nde_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
im0nde has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
william1_ has joined #ruby
william1_ has quit [Ping timeout: 268 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
AndroidKitKat has quit [Ping timeout: 240 seconds]
AndroidKitKat has joined #ruby
jaequery has quit [Remote host closed the connection]