havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.0, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
<mooff> obj = nil doesn't deallocate the object, it just sets the obj variable to nil
cahoots has joined #ruby
<weaksauce> yeah that's why, since there is a reference to the scope in there containing the object the mark and sweep algorithm will not cull it... it's also something that you can get into with two strongly held loops of references that can cause a memory leak... not sure if ruby has that problem but it's definitely a problem in other reference counting GCs
<mooff> i wonder if locals are necessarily referenced when a block is created in the scope of them
cahoots has quit [Ping timeout: 256 seconds]
<mooff> def hi(a) at_exit { puts "a not referenced at all" } end # will a be uncollectable until the program exits, now?
<mooff> simply no way to know that a block won't use it :)
Guest7003 has quit [Ping timeout: 256 seconds]
<mooff> another thing for the wish list.. nice if then could be used as an operator like and that doesn't care if its left operand is nil
<mooff> so you could say puts foo then do_bar
<mooff> a and b if c is very nice, but can only get away with it if you're sure a must be truthy
<mooff> a then b if c drake-yes.jpg
<leah2> that operator is ; no? :)
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
Rounin has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
cybniv has joined #ruby
sam113101 has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
sam113101 has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
donofrio has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
cahoots has joined #ruby
donofrio has quit [Remote host closed the connection]
John_Ivan has quit [Quit: Leaving]
cahoots has quit [Ping timeout: 256 seconds]
michigan has quit [Quit: Connection closed for inactivity]
work has joined #ruby
Rounin has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
miah has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 256 seconds]
sleetdrop has joined #ruby
mooff has quit [Quit: Quit]
mooff has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
libsys has quit [Ping timeout: 252 seconds]
libsys has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
libsys has quit [Ping timeout: 256 seconds]
cahoots has joined #ruby
libsys has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 260 seconds]
cahoots has joined #ruby
libsys has quit [Ping timeout: 240 seconds]
cahoots has quit [Ping timeout: 256 seconds]
libsys has joined #ruby
cahoots has joined #ruby
oxfuxxx has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
_ht has quit [Remote host closed the connection]
cahoots has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
ur5us has joined #ruby
fef has joined #ruby
teclator has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
work has quit [Quit: Connection closed for inactivity]
oxfuxxx has quit [Ping timeout: 256 seconds]
Rounin has joined #ruby
szkl has joined #ruby
nmollerup has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
hololeap has quit [Ping timeout: 276 seconds]
cahoots has joined #ruby
hololeap has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
exondation has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
cahoots has joined #ruby
mjanssen has quit [Quit: WeeChat 3.0]
gproto23 has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
Jonopoly has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
bluedust_ has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
Guest96 has joined #ruby
Guest96 has quit [Client Quit]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
bluedust has joined #ruby
Guest7003 has joined #ruby
Leon_ has joined #ruby
Leon_ is now known as Guest3111
acosta7 has joined #ruby
ferr_ has joined #ruby
seabre_ has joined #ruby
infernixx has joined #ruby
jimeh_ has joined #ruby
diego has joined #ruby
ule_ has joined #ruby
axisys_ has joined #ruby
diego is now known as Guest3980
mahlon_ has joined #ruby
libsys has quit [*.net *.split]
miah has quit [*.net *.split]
HyLian has quit [*.net *.split]
Guest5824 has quit [*.net *.split]
dviola has quit [*.net *.split]
fercell has quit [*.net *.split]
jimeh has quit [*.net *.split]
seabre has quit [*.net *.split]
acosta has quit [*.net *.split]
axisys has quit [*.net *.split]
infernix has quit [*.net *.split]
justGhost has quit [*.net *.split]
mahlon has quit [*.net *.split]
Neopolitan has quit [*.net *.split]
eam has quit [*.net *.split]
ule has quit [*.net *.split]
pandabot has quit [*.net *.split]
benjaminwil has quit [*.net *.split]
cnsvc- has quit [*.net *.split]
_axx has quit [*.net *.split]
acosta7 is now known as acosta
infernixx is now known as infernix
jimeh_ is now known as jimeh
benjaminwil has joined #ruby
libsys has joined #ruby
HyLian has joined #ruby
pandabot has joined #ruby
Neopolitan has joined #ruby
miah has joined #ruby
cnsvc- has joined #ruby
eam has joined #ruby
justGhost has joined #ruby
_axx has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 245 seconds]
gproto23 has quit [Read error: Connection reset by peer]
gproto23 has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 250 seconds]
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
fef has quit [Ping timeout: 276 seconds]
gr33n7007h has quit [Quit: WeeChat 3.4]
bluedust has quit [Remote host closed the connection]
cahoots has joined #ruby
gr33n7007h has joined #ruby
cahoots has quit [Ping timeout: 250 seconds]
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
Tomte has joined #ruby
fef has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
TheBrayn has quit [Quit: WeeChat 3.4]
donofrio has joined #ruby
cahoots has joined #ruby
bluedust has joined #ruby
cahoots has quit [Ping timeout: 250 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
fredlinhares has joined #ruby
bhaak has quit [Ping timeout: 240 seconds]
bluedust has quit [Remote host closed the connection]
cahoots has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
cahoots has quit [Ping timeout: 245 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 245 seconds]
bluedust has joined #ruby
roshanavand has joined #ruby
Jonopoly has quit [Quit: WeeChat 3.0]
cahoots has joined #ruby
roadie has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
bhaak has joined #ruby
roadie has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
cahoots has joined #ruby
Tomte has quit [Ping timeout: 260 seconds]
cahoots has quit [Ping timeout: 245 seconds]
oxfuxxx has quit [Ping timeout: 256 seconds]
fredlinhares has quit [Read error: Connection reset by peer]
fredlinhares has joined #ruby
oxfuxxx has joined #ruby
fandre1986 has joined #ruby
bluedust_ has joined #ruby
<mooff> (a; b) if c? drake-ehh.jpg :)
<mooff> that's what i resort to atm!
oxfuxxx has quit [Ping timeout: 256 seconds]
bluedust has quit [Ping timeout: 260 seconds]
roadie has joined #ruby
oxfuxxx has joined #ruby
<leah2> just use regular if :p
<leah2> that said, i often want a logical implication operator somehow
<leah2> it's just nicer than !a || b
cahoots has joined #ruby
cahoots has quit [Client Quit]
<mooff> to save someone else a Google: i think the intent there is a ? b : true :)
<leah2> hm, another way to put it
* mooff thanks that one StackOverflow explainer
<leftylink> hmm it's too bad, becase in school I would have lost marks if I'd written boolean expressions involving true or false like that
<leftylink> but that actually looks all right
<leftylink> so I wish I would not have had to lose marks for that
<mooff> when sounds pretty useful in for
<leah2> i also want while else :p but not like python
<mooff> have wanted rescue without begin in if/for/all kinds of blocks
<leah2> yeah maybe
<mooff> i think while else may be supported in Ruby
<leah2> it isnt
<mooff> cool
<leah2> i also want a more granular rescue...
<leah2> you should say which parts you want to catch
<leah2> dunno any language that can do this properly
<mooff> what like?
<leah2> e.g. begin a; b; c; catch FooError => ... end
<leah2> but you only want to catch FooError if b threw it
<leah2> (and catch other stuff from other calls or so)
<mooff> how would you say you only want to catch FooError's from b?
<leah2> well idk! :D
<mooff> xD
<leah2> but i think many file not found exceptions or so are too wide
<leah2> or argumenterror
<leah2> lots of things can throw that
<mooff> idk either but i'd like to be able to inline rescue only certain types of errors
<leah2> yeah
fredlinhares has quit [Read error: Connection reset by peer]
<leah2> hard to parse i guess
<mooff> probably wouldn't fit with the existing syntax
<leah2> File.open rescue Foo => ...
<mooff> yeah, it's hard to think what could be consistent
<mooff> and backwards compatible
<leah2> hm, its not a hash literal tho
<leah2> so could work
<leah2> ah it's this damn pattern matching now :<
<mooff> {File.open rescue Foo => a}
<mooff> does that work atm? :P
<mooff> naw, need parens around the key
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
FetidToot has joined #ruby
fredlinhares has joined #ruby
looah is now known as llua
fandre1986 has quit [Quit: Connection closed]
bluedust_ has quit [Remote host closed the connection]
<mooff> Fiber is just https://ruby-doc.org/stdlib-1.8.6/libdoc/generator/rdoc/Generator.html with fresh paint, right?
<mooff> equivalent to JavaScript generator functions
<leah2> except continuations got dropped iirc?
roadie` has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
fredlinhares has quit [Read error: Connection reset by peer]
fredlinhares has joined #ruby
<mooff> /usr/lib/x86_64-linux-gnu/ruby/2.7.0/continuation.so: warning: callcc is obsolete; use Fiber instead
<mooff> :-O
ur5us has joined #ruby
fredlinhares has quit [Read error: Connection reset by peer]
fredlinhares has joined #ruby
<leah2> :)
bluedust has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
goldfish has joined #ruby
fef has quit [Ping timeout: 276 seconds]
___nick___ has joined #ruby
fredlinhares has quit [Read error: Connection reset by peer]
dostoyevsky2 has quit [Ping timeout: 256 seconds]
unyu has quit [Quit: brb]
unyu has joined #ruby
fredlinhares has joined #ruby
ule_ is now known as ule
ule has quit [Changing host]
ule has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
fredlinhares has quit [Read error: Connection reset by peer]
fredlinhares has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
oxfuxxx has joined #ruby
___nick___ has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
unyu has quit [Quit: WeeChat 3.4]
Tomte has joined #ruby
unyu has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Client Quit]
CrazyEddy has quit [Ping timeout: 250 seconds]
CrazyEddy has joined #ruby
dostoyevsky2 has joined #ruby
exondation has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Remote host closed the connection]
exondation has joined #ruby
gproto23 has quit [Remote host closed the connection]
roadie` has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
Tomte has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
Tomte has joined #ruby
duds- has quit [Read error: Connection reset by peer]
duds- has joined #ruby
bluedust_ has joined #ruby
bluedus__ has joined #ruby
bluedust has quit [Ping timeout: 250 seconds]
bluedust_ has quit [Ping timeout: 250 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
exondation has quit [Ping timeout: 250 seconds]
___nick___ has quit [Ping timeout: 240 seconds]
fredlinhares has quit [Quit: WeeChat 3.4]
DenKn has quit [Quit: Reconnecting]
DenKn has joined #ruby
bluedus__ has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
teclator has quit [Remote host closed the connection]
oxfuxxx has quit [Ping timeout: 240 seconds]
Tomte has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
oxfuxxx has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
danjo06 has joined #ruby
danjo0 has quit [Ping timeout: 256 seconds]
danjo06 is now known as danjo0
roshanavand has quit [Remote host closed the connection]
bluedust has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Quit: WeeChat 3.4]
exondation has joined #ruby
gr33n7007h has joined #ruby