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!
yokel has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
jenrzzz has joined #ruby
yokel has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
alexherbo2 has quit [Ping timeout: 244 seconds]
alexherbo24 has joined #ruby
alexherbo24 is now known as alexherbo2
yokel has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Leaving]
yokel has joined #ruby
bmurt has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
weaksauce has joined #ruby
alexherbo2 has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Grios has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Grios has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
Grios has quit [Client Quit]
yokel has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
_whitelogger has joined #ruby
Jonathan_ has joined #ruby
Grios has joined #ruby
Jonathan_ has quit [Remote host closed the connection]
Grios has quit [Client Quit]
yokel has quit [Ping timeout: 240 seconds]
meinside has joined #ruby
lunarkitty7 has quit [Quit: Konversation terminated!]
yokel has joined #ruby
ramfjord has joined #ruby
ChmEarl has quit [Quit: Leaving]
gix has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
cadeskywalker has quit [Ping timeout: 256 seconds]
wallace_mu has quit [Ping timeout: 244 seconds]
yokel has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
yokel has joined #ruby
cadeskywalker has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
yokel has quit [Ping timeout: 240 seconds]
ldl has joined #ruby
<ldl> hi, friends.
<ldl> please help with this.
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
gthank has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
dualfade has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
dualfade has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
roshanavand_ is now known as roshanavand
yokel has quit [Ping timeout: 244 seconds]
<havenwood> ldl: You might try asking in the #puppet channel if you haven't already.
<ldl> ok
<ldl> thank you, havenwood
yokel has joined #ruby
Rudd0^ has quit [Ping timeout: 244 seconds]
Grios has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
Grios has quit [Client Quit]
cd has quit [Quit: cd]
Rudd0 has joined #ruby
alfiemax has joined #ruby
zululee_ has quit [Quit: The Lounge - https://thelounge.chat]
yokel has joined #ruby
_whitelogger has joined #ruby
jonathant has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
wallace_mu has joined #ruby
jonathant has quit [Quit: Textual IRC Client: www.textualapp.com]
wallace_mu has quit [Ping timeout: 240 seconds]
jwt_ has joined #ruby
jwt_ has quit [Client Quit]
jwt_ has joined #ruby
jwt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has joined #ruby
jwt has joined #ruby
jwt has quit [Client Quit]
yokel has quit [Ping timeout: 264 seconds]
skape has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 244 seconds]
Rudd0 has quit [Remote host closed the connection]
yokel has joined #ruby
Grios has joined #ruby
Grios has quit [Client Quit]
twodayslate has quit [Quit: Connection closed for inactivity]
yokel has quit [Ping timeout: 264 seconds]
Secret-Fire has quit [Remote host closed the connection]
nofxx_ has joined #ruby
yokel has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
Secret-Fire has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
wallace_mu has joined #ruby
Grios has joined #ruby
yokel has joined #ruby
wallace_mu has quit [Ping timeout: 260 seconds]
Grios has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dfucci has joined #ruby
jenrzzz has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
schne1der has joined #ruby
akemhp has joined #ruby
vondruch has joined #ruby
zacts has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
coniptor has quit [Ping timeout: 246 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
Grios has joined #ruby
Grios has quit [Client Quit]
coniptor has joined #ruby
Guest75385 has quit [Remote host closed the connection]
imode has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 240 seconds]
Grios has joined #ruby
duckpupp- has joined #ruby
yokel has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
Ediz has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
akemhp has joined #ruby
BSaboia has joined #ruby
yokel has joined #ruby
wallace_mu has joined #ruby
wallace_mu has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
braincrash has joined #ruby
yokel has joined #ruby
ellcs has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
tsujp14 has joined #ruby
<tsujp14> how can I use rspec to test that a class is indeed abstract?
yokel has quit [Ping timeout: 265 seconds]
yokel has joined #ruby
ctOS has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
alexherbo23 has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo23 is now known as alexherbo2
yokel has quit [Ping timeout: 256 seconds]
tsujp14 has quit [Remote host closed the connection]
kinduff has quit [Quit: Ping timeout (120 seconds)]
kinduff has joined #ruby
itok has quit [Ping timeout: 244 seconds]
Phoebus has quit [Ping timeout: 244 seconds]
nofxx__ has joined #ruby
SoF has quit [Quit: Ping timeout (120 seconds)]
ur5us has quit [Read error: Connection reset by peer]
redlegion has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
iNs has quit [Quit: bubye]
meinside has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
jrhorn424 has quit [Ping timeout: 240 seconds]
darthThorik has quit [Ping timeout: 240 seconds]
SoF has joined #ruby
iNs has joined #ruby
Phoebus has joined #ruby
MentalPower has quit [Ping timeout: 244 seconds]
fowl has quit [Ping timeout: 244 seconds]
meinside has joined #ruby
redlegion has joined #ruby
darthThorik has joined #ruby
MentalPower has joined #ruby
itok has joined #ruby
jrhorn424 has joined #ruby
fowl has joined #ruby
nofxx_ has quit [Ping timeout: 240 seconds]
<jhass> Ruby has no abstract classes
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
<jhass> tsujp: so what's an abstract class in this context?
yokel has quit [Ping timeout: 265 seconds]
Rudd0 has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
ldl has quit [Quit: Leaving]
yokel has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
ellcs has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
dasher00 has joined #ruby
alfiemax has joined #ruby
kintarowonders has joined #ruby
<kintarowonders> I am actually learning Rust, but the book wants me to use Rust from Ruby, which I do not know. The problem I have is that the Ruby code in the book does not work. It is telling me a few things.
<kintarowonders> First: embed.rb:4: class/module name must be CONSTANT
<ruby[bot]> kintarowonders: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<jhass> it's "module Hello", not "Hello module"
wallace_mu has joined #ruby
<kintarowonders> Oh, the book is translated from Spanish and the translator does not know how to code. So they have followed sentence structure differences mindlessly. Thanks!
<jhass> don't put spaces in front of the : of a :symbol_literal
<jhass> so ": process" -> ":process
<jhass> and it's probably valid syntax, but to be safe "Hello .process" -> "Hello.process"
<kintarowonders> kernel_require.rb:83:in `require': cannot load such file -- ffi (LoadError)
<jhass> gem install ffi
<jhass> it doesn't come with ruby
<kintarowonders> it would not install as the user i was running ruby as, so i installed ffi as root
<kintarowonders> is that a problem?
yokel has quit [Ping timeout: 244 seconds]
wallace_mu has quit [Ping timeout: 260 seconds]
xco has joined #ruby
<kintarowonders> ah just needed to `gem install bundler`
<jhass> shouldn't be much of a problem, beyond having stuff outside your home not managed by your OSes package manager, which some people dislike :)
<jhass> not sure why you'd need bundler here, but sure if it helps
ellcs has joined #ruby
sarna has joined #ruby
sarna has quit [Client Quit]
dfucci has quit [Ping timeout: 265 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
yokel has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
alexherbo2 has quit [Ping timeout: 256 seconds]
johnnnnnnnnn has joined #ruby
<johnnnnnnnnn> how can you add a ! method to String that modifies/mutates the string? Is it possible just in ruby without a c ext?
alexherbo2 has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
Mia has quit [Write error: Connection reset by peer]
alexherbo2 has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
drincruz has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
alfiemax has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 244 seconds]
drincruz has quit [Ping timeout: 240 seconds]
Ediz has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
supercoven has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
Ediz has joined #ruby
Ediz is now known as Guest31757
<jhass> johnnnnnnnnn: yes if the modification is expressable in already existing self-modifying methods
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest31757 has quit [Quit: Leaving]
cow[moo] has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
cow[moo] has quit [Client Quit]
bmurt has joined #ruby
drincruz has joined #ruby
yokel has joined #ruby
ellcs has joined #ruby
cow[moo] has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
meinside has quit [Quit: Connection closed for inactivity]
bmurt has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallace_mu has joined #ruby
cow[moo] has joined #ruby
ellcs has quit [Ping timeout: 244 seconds]
wallace_mu has quit [Ping timeout: 246 seconds]
weaksauce has quit [Ping timeout: 240 seconds]
<johnnnnnnnnn> jhass: ah, I suppose I could use gsub! to do nearly anything. thanks
vondruch has joined #ruby
alexherbo2 has joined #ruby
donofrio has joined #ruby
yokel has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
hiroaki has quit [Ping timeout: 256 seconds]
leitz has joined #ruby
gthank has joined #ruby
gthank has quit [Read error: Connection reset by peer]
wallace_mu has joined #ruby
dualfade has quit [Read error: Connection reset by peer]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
hiroaki has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
dualfade has joined #ruby
ChmEarl has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
johnnnnnnnnn has quit [Remote host closed the connection]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
va5c0 has joined #ruby
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 265 seconds]
TCZ has quit [Quit: Leaving]
yokel has joined #ruby
MrCrackPot has joined #ruby
MrCrackPot has quit [Client Quit]
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
TCZ has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
proc has joined #ruby
<proc> https://paste.ubuntu.com/p/HP6bM9c7Dg/ - the 'tries' part doesn't seem to work, or do anything. basically, start_edit_queue processes everything in @edits. if a particular edit causes issue, I want to retry 3x or remove it and go on
BSaboia has quit [Quit: Leaving]
<proc> IDE suggests 'tries' isn't being assigned a value on lines 10, 12, so guessing it's a scoping obscurity I'm not sure of?
vondruch_ has joined #ruby
yokel has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
vondruch_ is now known as vondruch
m27frogy has quit [Ping timeout: 258 seconds]
m27frogy has joined #ruby
<jhass> proc: well, how do you actuall jump back to begin?
<proc> oh
<proc> yeah...
<jhass> you gonna love the retry keyword :)
yokel has quit [Ping timeout: 256 seconds]
<proc> oh wow, this is nifty
<proc> thanks!
<jhass> yw
<proc> sidenote, if I'm parsing "January 1985", ruby's Date.parse gives me 1 January 1985. any way to find out that this is a 'defaulted' 1, and not an actual 1st of the month?
<proc> basically some way to know it wasn't actually a parsing of "1 January 1985", other than by doing regex on my input string?
roadt_ is now known as roadt
dionysus69 has joined #ruby
yokel has joined #ruby
ropeney has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 264 seconds]
MrCrackPot has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
<jhass> is your input string that free form and without an enforced format?
<jhass> Date.parse is generally discouraged because it has to guess that much
<jhass> I'd see if you can use strptime, maybe trying a couple of formats after each other. Then you'll have that information contextually by knowing which format parsed
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
mnathani has quit []
ropeney has joined #ruby
chalkmonster has joined #ruby
yokel has joined #ruby
dfucci has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
cthu| has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
yokel has quit [Ping timeout: 244 seconds]
greypack has quit [Quit: All your IRC are belong to ZNC]
yokel has joined #ruby
greypack has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
Grios has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
yokel has joined #ruby
alexherbo2 has quit [Ping timeout: 244 seconds]
sgen has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
dfucci has joined #ruby
<proc> jhass: that worked perfectly, thanks!
yokel has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
greengriminal has joined #ruby
yokel has joined #ruby
sgen has quit [Ping timeout: 265 seconds]
akemhp_ has quit [Ping timeout: 240 seconds]
eldritch has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
akemhp has joined #ruby
endorama has quit [Remote host closed the connection]
endorama has joined #ruby
greypack has quit [Quit: All your IRC are belong to ZNC]
yokel has quit [Ping timeout: 240 seconds]
stryek has joined #ruby
bmurt has joined #ruby
zacts_ has joined #ruby
zacts_ has quit [Client Quit]
mikecmpbll has quit [Quit: inabit. zz.]
mnx has joined #ruby
mnx has left #ruby [#ruby]
yokel has joined #ruby
TCZ has quit [Quit: Leaving]
ramfjord has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
cd has joined #ruby
eldritch has joined #ruby
yokel has joined #ruby
imode has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
va5c0 has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 264 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
zacts has quit [Ping timeout: 244 seconds]
greengriminal has quit [Quit: Leaving]
rippa has joined #ruby
alexherbo2 has joined #ruby
yokel has joined #ruby
creaked has joined #ruby
Eiam has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
_whitelogger has joined #ruby
Xiti has quit [Ping timeout: 258 seconds]
Xiti has joined #ruby
yokel has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
sirKnight2000 has joined #ruby
weaksauce has joined #ruby
bocaneri has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 260 seconds]
cliluw has quit [Ping timeout: 260 seconds]
nofxx__ has quit [Remote host closed the connection]
nofxx has joined #ruby
yokel has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
greypack has joined #ruby
TCZ has joined #ruby
cnsvc has joined #ruby
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
yokel has joined #ruby
supercoven has quit [Ping timeout: 256 seconds]
W3BV1P3R has joined #ruby
W3BV1P3R has quit [Quit: Leaving]
gix has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
duckpupp- has quit [Ping timeout: 244 seconds]
duckpuppy has joined #ruby
yokel has joined #ruby
akemhp has quit [Ping timeout: 258 seconds]
hiroaki has quit [Ping timeout: 256 seconds]
akemhp has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
<lxsameer> hey folks, is it possible to redefine a struct which has generics for an specific type ?
<lxsameer> oops wrong channel, sorry
yokel has joined #ruby
hiroaki has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
BTRE has quit [Quit: Leaving]
sirKnight2000 has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 244 seconds]
AndreYuhai has joined #ruby
BTRE has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
akemhp has quit [Remote host closed the connection]
Iarfen has joined #ruby
oncall-pokemon has joined #ruby
yokel has joined #ruby
oneeggeach has joined #ruby
justache has quit [Remote host closed the connection]
elxbarbosa has joined #ruby
AndreYuhai has left #ruby ["Leaving"]
dfucci has joined #ruby
justache has joined #ruby
akemhp has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
dfucci has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 244 seconds]
vondruch_ is now known as vondruch
yokel has quit [Ping timeout: 256 seconds]
justache has quit [Remote host closed the connection]
ur5us has joined #ruby
justache has joined #ruby
yokel has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
oneeggeach has quit [Quit: Leaving...]
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
dfucci has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
ellcs has joined #ruby
donofrio_ has joined #ruby
leitz has quit [Quit: Leaving]
dfucci has quit [Ping timeout: 240 seconds]
akemhp has quit [Quit: Leaving]
donofrio has quit [Ping timeout: 256 seconds]
cd has quit [Quit: cd]
duckpuppy has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
elxbarbosa has quit [Quit: ERC (IRC client for Emacs 27.1)]
akem has joined #ruby
duckpuppy has quit [Ping timeout: 258 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
sgen has joined #ruby
yokel has joined #ruby
TCZ has quit [Quit: Leaving]
schne1der has quit [Ping timeout: 258 seconds]
yokel has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
TCZ has joined #ruby
yokel has joined #ruby
sgen has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
sgen has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Remote host closed the connection]
yokel has joined #ruby
ellcs has quit [Ping timeout: 244 seconds]
yokel has quit [Ping timeout: 244 seconds]
sgen has quit [Ping timeout: 240 seconds]
x0n has quit [Ping timeout: 256 seconds]
dualfade has quit [Ping timeout: 256 seconds]
dualfade has joined #ruby
x0n has joined #ruby
yokel has joined #ruby
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]
x0n has quit [Ping timeout: 246 seconds]
yokel has quit [Ping timeout: 265 seconds]
x0n has joined #ruby
teardown has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teardown has quit [Read error: Connection reset by peer]
dhollinger has quit [Ping timeout: 256 seconds]
dhollinger has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]
istrasci has joined #ruby
<istrasci> What exactly is Float::NAN? Why does `Float::NAN == Float::NAN` give false?
Iarfen has quit [Remote host closed the connection]
yokel has joined #ruby
sh7d has quit [Ping timeout: 260 seconds]
sh7d has joined #ruby
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]
yokel has quit [Ping timeout: 256 seconds]
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]
elcuervo has quit [Ping timeout: 260 seconds]
<havenwood> istrasci: It's from the IEEE standard NaN: "NaN: not a number—a symbolic floating-point datum."
alexherbo2 has joined #ruby
<istrasci> havenwood: Yes, conceptually I understand it. I guess I'm asking about its object structure. Why does the identity == return false? Is there some sort of unique timestamp or hash value that it receives each time you reference it?
<havenwood> istrasci: There are a variety of operations you can't do with Floats where the standard says to return NaN. One NaN isn't equal to another NaN since they represent something like an overflow.
<havenwood> &>> Float::Infinity - Float::Infinity
<rubydoc> stderr: -e:4:in `<main>': uninitialized constant Float::Infinity (NameError)... check link for more (https://carc.in/#/r/9pf5)
<havenwood> I mean:
<havenwood> &>> Float::INFINITY - Float::INFINITY
<rubydoc> # => NaN (https://carc.in/#/r/9pf6)
<istrasci> So is Float#nan? the only way to check if something is NaN?
<havenwood> &>> 0.0 * Float::INFINITY
<rubydoc> # => NaN (https://carc.in/#/r/9pf7)
<havenwood> &>> 0.fdiv(0)
<rubydoc> # => NaN (https://carc.in/#/r/9pf8)
<havenwood> &>> Float::INFINITY / Float::INFINITY
<rubydoc> # => NaN (https://carc.in/#/r/9pf9)
<havenwood> &>> 0.rem(0)
<rubydoc> stderr: -e:4:in `<main>': undefined method `rem' for 0:Integer (NoMethodError)... check link for more (https://carc.in/#/r/9pfa)
<havenwood> &>> 0.remainder(0)
<rubydoc> stderr: -e:4:in `%': divided by 0 (ZeroDivisionError)... check link for more (https://carc.in/#/r/9pfb)
<havenwood> &>> 0.0.remainder(0)
<rubydoc> stderr: -e:4:in `%': divided by 0 (ZeroDivisionError)... check link for more (https://carc.in/#/r/9pfc)
<havenwood> Huh?
<havenwood> That should be NaN, I thought?
<havenwood> Anyways.
drincruz has quit [Ping timeout: 244 seconds]
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 256 seconds]
elcuervo has joined #ruby
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]