00:12
<
mooff >
obj = nil doesn't deallocate the object, it just sets the obj variable to nil
00:14
cahoots has joined #ruby
00:15
<
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
00:21
<
mooff >
i wonder if locals are necessarily referenced when a block is created in the scope of them
00:21
cahoots has quit [Ping timeout: 256 seconds]
00:22
<
mooff >
def hi(a) at_exit { puts "a not referenced at all" } end # will a be uncollectable until the program exits, now?
00:23
<
mooff >
simply no way to know that a block won't use it :)
00:24
Guest7003 has quit [Ping timeout: 256 seconds]
00:27
<
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
00:28
<
mooff >
so you could say puts foo then do_bar
00:30
<
mooff >
a and b if c is very nice, but can only get away with it if you're sure a must be truthy
00:30
<
mooff >
a then b if c drake-yes.jpg
00:31
<
leah2 >
that operator is ; no? :)
00:44
cahoots has joined #ruby
00:48
cahoots has quit [Ping timeout: 256 seconds]
01:08
Rounin has joined #ruby
01:15
cybniv has joined #ruby
01:17
sam113101 has quit [Ping timeout: 240 seconds]
01:19
cahoots has joined #ruby
01:20
sam113101 has joined #ruby
01:24
cahoots has quit [Ping timeout: 256 seconds]
01:39
donofrio has joined #ruby
01:49
roshanavand has quit [Ping timeout: 240 seconds]
01:53
cahoots has joined #ruby
01:57
cahoots has quit [Ping timeout: 256 seconds]
01:59
cahoots has joined #ruby
02:02
donofrio has quit [Remote host closed the connection]
02:02
John_Ivan has quit [Quit: Leaving]
02:03
cahoots has quit [Ping timeout: 256 seconds]
02:08
michigan has quit [Quit: Connection closed for inactivity]
02:19
work has joined #ruby
02:20
Rounin has quit [Ping timeout: 240 seconds]
02:26
cahoots has joined #ruby
02:31
cahoots has quit [Ping timeout: 256 seconds]
02:39
miah has joined #ruby
03:01
cahoots has joined #ruby
03:06
cahoots has quit [Ping timeout: 256 seconds]
03:35
cahoots has joined #ruby
03:39
cahoots has quit [Ping timeout: 240 seconds]
03:41
bluedust has joined #ruby
03:41
bluedust_ has quit [Ping timeout: 256 seconds]
03:46
sleetdrop has joined #ruby
04:00
mooff has quit [Quit: Quit]
04:01
mooff has joined #ruby
04:05
oxfuxxx has joined #ruby
04:09
oxfuxxx has quit [Ping timeout: 256 seconds]
04:10
cahoots has joined #ruby
04:15
cahoots has quit [Ping timeout: 256 seconds]
04:19
libsys has quit [Ping timeout: 252 seconds]
04:20
libsys has joined #ruby
04:43
libsys has quit [Ping timeout: 256 seconds]
04:43
cahoots has joined #ruby
04:44
libsys has joined #ruby
04:47
cahoots has quit [Ping timeout: 240 seconds]
04:51
bluedust_ has joined #ruby
04:54
bluedust has quit [Ping timeout: 256 seconds]
04:55
ur5us has quit [Ping timeout: 260 seconds]
05:15
cahoots has joined #ruby
05:20
libsys has quit [Ping timeout: 240 seconds]
05:20
cahoots has quit [Ping timeout: 256 seconds]
05:21
libsys has joined #ruby
05:49
cahoots has joined #ruby
05:51
oxfuxxx has joined #ruby
05:53
cahoots has quit [Ping timeout: 240 seconds]
06:21
cahoots has joined #ruby
06:24
_ht has quit [Remote host closed the connection]
06:25
cahoots has quit [Ping timeout: 240 seconds]
06:52
cahoots has joined #ruby
06:56
cahoots has quit [Ping timeout: 240 seconds]
07:29
cahoots has joined #ruby
07:33
cahoots has quit [Ping timeout: 240 seconds]
07:36
oxfuxxx has quit [Ping timeout: 256 seconds]
07:36
oxfuxxx has joined #ruby
07:40
ur5us has joined #ruby
07:51
fef has joined #ruby
07:51
teclator has joined #ruby
08:04
cahoots has joined #ruby
08:08
cahoots has quit [Ping timeout: 256 seconds]
08:09
work has quit [Quit: Connection closed for inactivity]
08:12
oxfuxxx has quit [Ping timeout: 256 seconds]
08:13
Rounin has joined #ruby
08:19
szkl has joined #ruby
08:22
nmollerup has joined #ruby
08:27
ur5us has quit [Ping timeout: 256 seconds]
08:30
roshanavand has joined #ruby
08:31
hololeap has quit [Ping timeout: 276 seconds]
08:37
cahoots has joined #ruby
08:38
hololeap has joined #ruby
08:42
cahoots has quit [Ping timeout: 256 seconds]
08:52
exondation has joined #ruby
08:54
roshanavand has quit [Ping timeout: 256 seconds]
09:13
cahoots has joined #ruby
09:15
mjanssen has quit [Quit: WeeChat 3.0]
09:16
gproto23 has joined #ruby
09:17
cahoots has quit [Ping timeout: 256 seconds]
09:19
Jonopoly has joined #ruby
09:43
cahoots has joined #ruby
09:48
cahoots has quit [Ping timeout: 256 seconds]
09:54
bluedust_ has quit [Ping timeout: 240 seconds]
09:58
roadie has joined #ruby
10:08
Guest96 has joined #ruby
10:08
Guest96 has quit [Client Quit]
10:17
cahoots has joined #ruby
10:22
cahoots has quit [Ping timeout: 256 seconds]
10:24
bluedust has joined #ruby
10:28
Guest7003 has joined #ruby
10:31
Leon_ has joined #ruby
10:32
Leon_ is now known as Guest3111
10:33
acosta7 has joined #ruby
10:33
ferr_ has joined #ruby
10:33
seabre_ has joined #ruby
10:35
infernixx has joined #ruby
10:36
jimeh_ has joined #ruby
10:36
diego has joined #ruby
10:36
ule_ has joined #ruby
10:36
axisys_ has joined #ruby
10:36
diego is now known as Guest3980
10:39
mahlon_ has joined #ruby
10:41
libsys has quit [*.net *.split]
10:41
miah has quit [*.net *.split]
10:41
HyLian has quit [*.net *.split]
10:41
Guest5824 has quit [*.net *.split]
10:41
dviola has quit [*.net *.split]
10:41
fercell has quit [*.net *.split]
10:41
jimeh has quit [*.net *.split]
10:41
seabre has quit [*.net *.split]
10:41
acosta has quit [*.net *.split]
10:41
axisys has quit [*.net *.split]
10:41
infernix has quit [*.net *.split]
10:41
justGhost has quit [*.net *.split]
10:41
mahlon has quit [*.net *.split]
10:41
Neopolitan has quit [*.net *.split]
10:41
eam has quit [*.net *.split]
10:41
ule has quit [*.net *.split]
10:41
pandabot has quit [*.net *.split]
10:41
benjaminwil has quit [*.net *.split]
10:41
cnsvc- has quit [*.net *.split]
10:41
_axx has quit [*.net *.split]
10:41
acosta7 is now known as acosta
10:41
infernixx is now known as infernix
10:45
jimeh_ is now known as jimeh
10:46
benjaminwil has joined #ruby
10:46
libsys has joined #ruby
10:46
HyLian has joined #ruby
10:46
pandabot has joined #ruby
10:46
Neopolitan has joined #ruby
10:46
miah has joined #ruby
10:46
cnsvc- has joined #ruby
10:46
eam has joined #ruby
10:46
justGhost has joined #ruby
10:46
_axx has joined #ruby
10:50
cahoots has joined #ruby
10:54
cahoots has quit [Ping timeout: 245 seconds]
10:59
gproto23 has quit [Read error: Connection reset by peer]
10:59
gproto23 has joined #ruby
11:25
cahoots has joined #ruby
11:30
cahoots has quit [Ping timeout: 250 seconds]
11:43
Tempesta has quit [Quit: See ya!]
11:52
Tempesta has joined #ruby
11:54
fef has quit [Ping timeout: 276 seconds]
11:58
gr33n7007h has quit [Quit: WeeChat 3.4]
12:00
bluedust has quit [Remote host closed the connection]
12:01
cahoots has joined #ruby
12:01
gr33n7007h has joined #ruby
12:05
cahoots has quit [Ping timeout: 250 seconds]
12:08
roadie has quit [Remote host closed the connection]
12:08
roadie has joined #ruby
12:17
Tomte has joined #ruby
12:24
fef has joined #ruby
12:25
cahoots has joined #ruby
12:30
cahoots has quit [Ping timeout: 240 seconds]
12:36
TheBrayn has quit [Quit: WeeChat 3.4]
12:55
donofrio has joined #ruby
12:56
cahoots has joined #ruby
12:59
bluedust has joined #ruby
13:02
cahoots has quit [Ping timeout: 250 seconds]
13:03
cahoots has joined #ruby
13:07
cahoots has quit [Ping timeout: 252 seconds]
13:10
roadie has quit [Remote host closed the connection]
13:11
roadie has joined #ruby
13:20
fredlinhares has joined #ruby
13:23
bhaak has quit [Ping timeout: 240 seconds]
13:29
bluedust has quit [Remote host closed the connection]
13:35
cahoots has joined #ruby
13:39
roadie has quit [Ping timeout: 252 seconds]
13:39
cahoots has quit [Ping timeout: 245 seconds]
13:40
cahoots has joined #ruby
13:44
cahoots has quit [Ping timeout: 245 seconds]
13:47
bluedust has joined #ruby
13:52
roshanavand has joined #ruby
14:02
Jonopoly has quit [Quit: WeeChat 3.0]
14:02
cahoots has joined #ruby
14:05
roadie has joined #ruby
14:07
cahoots has quit [Ping timeout: 256 seconds]
14:10
bhaak has joined #ruby
14:12
roadie has quit [Ping timeout: 256 seconds]
14:17
oxfuxxx has joined #ruby
14:18
roshanavand has quit [Remote host closed the connection]
14:18
roshanavand has joined #ruby
14:20
cahoots has joined #ruby
14:21
Tomte has quit [Ping timeout: 260 seconds]
14:24
cahoots has quit [Ping timeout: 245 seconds]
14:24
oxfuxxx has quit [Ping timeout: 256 seconds]
14:31
fredlinhares has quit [Read error: Connection reset by peer]
14:31
fredlinhares has joined #ruby
14:32
oxfuxxx has joined #ruby
14:37
fandre1986 has joined #ruby
15:00
bluedust_ has joined #ruby
15:03
<
mooff >
(a; b) if c? drake-ehh.jpg :)
15:03
<
mooff >
that's what i resort to atm!
15:03
oxfuxxx has quit [Ping timeout: 256 seconds]
15:04
bluedust has quit [Ping timeout: 260 seconds]
15:09
roadie has joined #ruby
15:09
oxfuxxx has joined #ruby
15:10
<
leah2 >
just use regular if :p
15:11
<
leah2 >
that said, i often want a logical implication operator somehow
15:11
<
leah2 >
it's just nicer than !a || b
15:15
cahoots has joined #ruby
15:19
cahoots has quit [Client Quit]
15:28
<
mooff >
to save someone else a Google: i think the intent there is a ? b : true :)
15:29
<
leah2 >
hm, another way to put it
15:29
* mooff
thanks that one StackOverflow explainer
15:31
<
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
15:31
<
leftylink >
but that actually looks all right
15:31
<
leftylink >
so I wish I would not have had to lose marks for that
15:34
<
mooff >
when sounds pretty useful in for
15:35
<
leah2 >
i also want while else :p but not like python
15:35
<
mooff >
have wanted rescue without begin in if/for/all kinds of blocks
15:36
<
mooff >
i think while else may be supported in Ruby
15:37
<
leah2 >
i also want a more granular rescue...
15:37
<
leah2 >
you should say which parts you want to catch
15:37
<
leah2 >
dunno any language that can do this properly
15:38
<
leah2 >
e.g. begin a; b; c; catch FooError => ... end
15:38
<
leah2 >
but you only want to catch FooError if b threw it
15:38
<
leah2 >
(and catch other stuff from other calls or so)
15:39
<
mooff >
how would you say you only want to catch FooError's from b?
15:39
<
leah2 >
well idk! :D
15:39
<
leah2 >
but i think many file not found exceptions or so are too wide
15:39
<
leah2 >
or argumenterror
15:39
<
leah2 >
lots of things can throw that
15:39
<
mooff >
idk either but i'd like to be able to inline rescue only certain types of errors
15:40
fredlinhares has quit [Read error: Connection reset by peer]
15:40
<
leah2 >
hard to parse i guess
15:41
<
mooff >
probably wouldn't fit with the existing syntax
15:41
<
leah2 >
File.open rescue Foo => ...
15:41
<
mooff >
yeah, it's hard to think what could be consistent
15:41
<
mooff >
and backwards compatible
15:41
<
leah2 >
hm, its not a hash literal tho
15:41
<
leah2 >
so could work
15:42
<
leah2 >
ah it's this damn pattern matching now :<
15:42
<
mooff >
{File.open rescue Foo => a}
15:42
<
mooff >
does that work atm? :P
15:43
<
mooff >
naw, need parens around the key
15:44
FetidToot has joined #ruby
15:46
fredlinhares has joined #ruby
16:09
looah is now known as llua
16:31
fandre1986 has quit [Quit: Connection closed]
16:31
bluedust_ has quit [Remote host closed the connection]
16:32
<
mooff >
equivalent to JavaScript generator functions
16:32
<
leah2 >
except continuations got dropped iirc?
16:32
roadie` has joined #ruby
16:35
roadie has quit [Ping timeout: 250 seconds]
16:41
fredlinhares has quit [Read error: Connection reset by peer]
16:41
fredlinhares has joined #ruby
16:56
<
mooff >
/usr/lib/x86_64-linux-gnu/ruby/2.7.0/continuation.so: warning: callcc is obsolete; use Fiber instead
16:59
ur5us has joined #ruby
16:59
fredlinhares has quit [Read error: Connection reset by peer]
16:59
fredlinhares has joined #ruby
17:05
bluedust has joined #ruby
17:12
oxfuxxx has quit [Ping timeout: 256 seconds]
17:19
oxfuxxx has joined #ruby
17:41
goldfish has joined #ruby
17:59
fef has quit [Ping timeout: 276 seconds]
18:02
___nick___ has joined #ruby
18:02
fredlinhares has quit [Read error: Connection reset by peer]
18:04
dostoyevsky2 has quit [Ping timeout: 256 seconds]
18:05
unyu has quit [Quit: brb]
18:07
unyu has joined #ruby
18:08
fredlinhares has joined #ruby
18:15
ule_ is now known as ule
18:15
ule has quit [Changing host]
18:15
ule has joined #ruby
18:25
ur5us has quit [Ping timeout: 250 seconds]
18:35
fredlinhares has quit [Read error: Connection reset by peer]
18:35
fredlinhares has joined #ruby
18:38
oxfuxxx has quit [Ping timeout: 256 seconds]
18:52
oxfuxxx has joined #ruby
18:53
___nick___ has joined #ruby
18:57
oxfuxxx has quit [Ping timeout: 260 seconds]
18:58
oxfuxxx has joined #ruby
19:05
unyu has quit [Quit: WeeChat 3.4]
19:26
Tomte has joined #ruby
19:29
unyu has joined #ruby
19:40
Guest43 has joined #ruby
19:41
Guest43 has quit [Client Quit]
19:42
CrazyEddy has quit [Ping timeout: 250 seconds]
19:44
CrazyEddy has joined #ruby
19:52
dostoyevsky2 has joined #ruby
19:59
exondation has quit [Ping timeout: 240 seconds]
20:03
oxfuxxx has quit [Remote host closed the connection]
20:10
exondation has joined #ruby
20:17
gproto23 has quit [Remote host closed the connection]
20:18
roadie` has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
20:22
Tomte has quit [Ping timeout: 240 seconds]
20:23
ur5us has joined #ruby
20:26
Tomte has joined #ruby
20:28
duds- has quit [Read error: Connection reset by peer]
20:32
duds- has joined #ruby
20:43
bluedust_ has joined #ruby
20:43
bluedus__ has joined #ruby
20:46
bluedust has quit [Ping timeout: 250 seconds]
20:47
bluedust_ has quit [Ping timeout: 250 seconds]
20:52
___nick___ has joined #ruby
21:01
exondation has quit [Ping timeout: 250 seconds]
21:04
___nick___ has quit [Ping timeout: 240 seconds]
21:11
fredlinhares has quit [Quit: WeeChat 3.4]
21:11
DenKn has quit [Quit: Reconnecting]
21:11
DenKn has joined #ruby
21:12
bluedus__ has quit [Remote host closed the connection]
21:32
roshanavand has quit [Ping timeout: 240 seconds]
21:39
oxfuxxx has joined #ruby
21:39
teclator has quit [Remote host closed the connection]
21:46
oxfuxxx has quit [Ping timeout: 240 seconds]
21:46
Tomte has quit [Read error: Connection reset by peer]
21:52
roshanavand has joined #ruby
21:53
oxfuxxx has joined #ruby
21:58
weaksauce has joined #ruby
22:03
danjo06 has joined #ruby
22:03
danjo0 has quit [Ping timeout: 256 seconds]
22:03
danjo06 is now known as danjo0
22:48
roshanavand has quit [Remote host closed the connection]
23:13
bluedust has joined #ruby
23:17
bluedust has quit [Ping timeout: 240 seconds]
23:26
gr33n7007h has quit [Quit: WeeChat 3.4]
23:29
exondation has joined #ruby
23:44
gr33n7007h has joined #ruby