00:07
soveran has joined #crystal-lang
00:08
bjz has joined #crystal-lang
00:13
soveran has quit [Ping timeout: 260 seconds]
00:28
ozra has quit [Ping timeout: 276 seconds]
00:49
jokke has quit [Quit: WeeChat 1.5]
00:50
jokke has joined #crystal-lang
01:01
pawnbox has joined #crystal-lang
01:06
pawnbox has quit [Ping timeout: 276 seconds]
01:09
soveran has joined #crystal-lang
01:13
soveran has quit [Ping timeout: 260 seconds]
02:02
Philpax has joined #crystal-lang
02:39
Philpax has quit [Ping timeout: 240 seconds]
03:01
NeverDie has joined #crystal-lang
03:10
soveran has joined #crystal-lang
03:16
soveran has quit [Ping timeout: 276 seconds]
03:28
pawnbox has joined #crystal-lang
03:28
A124 has quit [Quit: '']
03:30
A124 has joined #crystal-lang
03:33
pawnbox has quit [Ping timeout: 276 seconds]
03:49
pawnbox has joined #crystal-lang
03:53
pawnbox has quit [Ping timeout: 244 seconds]
04:12
soveran has joined #crystal-lang
04:12
soveran has joined #crystal-lang
04:12
soveran has quit [Changing host]
04:17
soveran has quit [Ping timeout: 260 seconds]
05:05
Philpax has joined #crystal-lang
05:42
pawnbox has joined #crystal-lang
05:47
pawnbox has quit [Ping timeout: 250 seconds]
05:50
trapped has joined #crystal-lang
05:52
emancu has joined #crystal-lang
05:53
trapped has quit [Read error: Connection reset by peer]
05:54
trapped has joined #crystal-lang
05:59
trapped has quit [Read error: Connection reset by peer]
06:00
trapped has joined #crystal-lang
06:30
emancu has quit [Remote host closed the connection]
06:34
bjz_ has joined #crystal-lang
06:34
bjz has quit [Ping timeout: 244 seconds]
07:16
soveran has joined #crystal-lang
07:20
bjz_ has quit [Ping timeout: 246 seconds]
07:20
soveran has quit [Ping timeout: 244 seconds]
07:20
bjz has joined #crystal-lang
07:30
pawnbox has joined #crystal-lang
07:34
pawnbox has quit [Ping timeout: 252 seconds]
07:35
bjz_ has joined #crystal-lang
07:36
bjz has quit [Ping timeout: 276 seconds]
08:11
pawnbox has joined #crystal-lang
08:15
pawnbox has quit [Ping timeout: 246 seconds]
08:32
pawnbox has joined #crystal-lang
08:36
pawnbox has quit [Ping timeout: 260 seconds]
09:12
pawnbox has joined #crystal-lang
09:13
<
jhass >
pawnbox: Run hello of which instance?
09:15
soveran has joined #crystal-lang
09:17
pawnbox has quit [Ping timeout: 260 seconds]
09:20
pawnbox has joined #crystal-lang
09:48
Philpax has quit [Quit: Leaving]
09:51
Philpax has joined #crystal-lang
10:39
TheLemonMan has joined #crystal-lang
10:52
tombruijn has joined #crystal-lang
10:59
trapped has quit [Read error: Connection reset by peer]
11:00
trapped has joined #crystal-lang
11:00
trapped has quit [Read error: Connection reset by peer]
11:01
trapped has joined #crystal-lang
11:08
bjz_ has quit [Ping timeout: 276 seconds]
11:11
bjz has joined #crystal-lang
11:14
soveran has quit [Remote host closed the connection]
11:29
bjz_ has joined #crystal-lang
11:29
bjz has quit [Ping timeout: 246 seconds]
11:47
soveran has joined #crystal-lang
11:53
tombruijn has quit [Quit: Leaving]
11:57
jokke has quit [Quit: WeeChat 1.5]
11:57
jokke has joined #crystal-lang
11:58
jokke has quit [Remote host closed the connection]
11:58
<
pawnbox >
Ok I got the previous question wrong. What I need is to store an array of all the instances of a generic class. Since I can't have class var for a generic class, I had to go this way.
11:58
jokke has joined #crystal-lang
12:01
<
jhass >
probably a limitation of the current language
12:02
<
jhass >
until we can have parameterless generics in type declarations
12:04
<
pawnbox >
jhass: There is kind of a similar issue in mocks.
12:20
jokke has quit [Remote host closed the connection]
12:20
jokke has joined #crystal-lang
12:23
jokke has quit [Remote host closed the connection]
12:24
jokke has joined #crystal-lang
12:24
|2701 has joined #crystal-lang
12:31
soveran has quit [Remote host closed the connection]
12:34
emancu has joined #crystal-lang
12:58
soveran has joined #crystal-lang
13:13
ozra has joined #crystal-lang
13:26
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
13:28
bjz has joined #crystal-lang
13:32
emancu has quit [Remote host closed the connection]
13:34
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
13:34
rolha has joined #crystal-lang
13:34
bjz has joined #crystal-lang
13:48
emancu has joined #crystal-lang
14:07
rolha has quit [Ping timeout: 260 seconds]
14:10
rolha has joined #crystal-lang
14:22
Philpax has quit [Ping timeout: 252 seconds]
14:41
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:54
Ven has joined #crystal-lang
15:07
ozra has quit [Ping timeout: 244 seconds]
15:08
ozra has joined #crystal-lang
15:09
ome has joined #crystal-lang
15:23
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
15:46
<
emancu >
I would like to know if the GC frees the memory by consumed by first named tuple in the following code:
15:46
<
emancu >
a = {test: 4}
15:46
<
emancu >
a = {this: "is a new one", overrides: true}
15:48
<
jhass >
emancu: named tuples are allocated on the stack
15:49
<
emancu >
hmm so if I do that code inside a class
15:49
<
emancu >
it will remain forever
15:49
<
jhass >
you can see the size of your class with crystal tool hierarchy
15:51
<
emancu >
jhass: thanks for the tip! I also would like the code generated after extracting all the macros. Can I do that?
15:52
<
jhass >
is crystal tool browser still a thing? it does that to some degree, but it didn't display much toplevel code last time I checked
15:52
<
jhass >
there's the {{debug()}} macro call, but that only shows the current expansion, not recursively
16:13
buggs has quit [Quit: WeeChat 1.4]
16:13
buggs has joined #crystal-lang
16:20
emancu has quit [Read error: Connection reset by peer]
16:20
emancu has joined #crystal-lang
16:20
emancu_ has joined #crystal-lang
16:25
emancu has quit [Ping timeout: 276 seconds]
16:34
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:37
<
emancu_ >
jhass: do you know how to create an empty NamedTuple ?
16:37
<
emancu_ >
reading the docs I see NamedTuple.new => {}
16:37
<
emancu_ >
but it doesn't work :/
16:38
<
jhass >
mh, Ary might've updated it too eagerly
16:39
<
jhass >
iirc there was something with it requiring an unreleased compiler feature
16:41
<
jhass >
emancu_: yeah, works in HEAD
16:41
<
emancu_ >
can't create instance of generic class NamedTuple(T) without specifying its type vars
16:41
<
emancu_ >
i need to wait then
16:42
<
asterite >
yes, it'll be possible in 0.18.0. It couldn't be done in 0.17.0 because in that version double splat was introduced too
16:42
<
asterite >
so there was no way to write new(**args)
16:42
<
BlaXpirit >
fun with bootstrapping
16:51
pawnbox has quit [Remote host closed the connection]
16:55
pawnbox has joined #crystal-lang
16:56
<
emancu_ >
asterite: how can I instantiate a NamedTuple without the syntaxSugar {named: "tuple"} ?
16:59
jokke has quit [Remote host closed the connection]
17:00
jokke has joined #crystal-lang
17:09
<
jhass >
emancu_: NamedTuple.new(named: "tuple")
17:11
Raimondi has quit [*.net *.split]
17:11
Raimondi has joined #crystal-lang
17:27
<
emancu_ >
jhass: i was expecting something like NamedTuple.new([[:named, "tuple"]]) =(
17:29
<
jhass >
emancu_: That would need to heavily special case NamedTuple.new in the compiler and even then only work with the literal directly passed to it
17:29
<
jhass >
so I don't quite see the point
17:39
ome has quit [Quit: Connection closed for inactivity]
17:40
<
emancu_ >
jhass: that's clever and I think it is just what I want
17:40
<
emancu_ >
you are a genius
17:41
Ven has joined #crystal-lang
17:44
<
BlaXpirit >
inb4 "oh, it doesn't work on a non-literal array"
17:48
triangles has joined #crystal-lang
17:51
emancu_ has quit [Read error: Connection reset by peer]
17:54
emancu has joined #crystal-lang
18:16
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:16
TheLemonMan has joined #crystal-lang
18:52
emancu has quit [Read error: Connection reset by peer]
18:54
emancu has joined #crystal-lang
19:22
emancu has quit [Read error: Connection reset by peer]
19:23
emancu has joined #crystal-lang
19:27
emancu has quit [Read error: Connection reset by peer]
19:38
emancu has joined #crystal-lang
19:48
pawnbox has quit [Remote host closed the connection]
19:57
Ven has joined #crystal-lang
20:02
Ven has quit [Ping timeout: 240 seconds]
20:21
emancu has quit [Read error: Connection reset by peer]
20:25
soveran has quit [Remote host closed the connection]
20:30
emancu has joined #crystal-lang
20:36
sp4rrow has joined #crystal-lang
20:40
trapped has quit [Ping timeout: 244 seconds]
20:42
sp4rrow has quit [Ping timeout: 264 seconds]
20:51
sp4rrow has joined #crystal-lang
21:11
mgarciaisaia has joined #crystal-lang
21:11
mgarciaisaia has left #crystal-lang [#crystal-lang]
21:42
sp4rrow_ has joined #crystal-lang
21:42
sp4rrow has quit [Ping timeout: 260 seconds]
21:52
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
22:01
Philpax has joined #crystal-lang
22:05
ryanw-se has joined #crystal-lang
22:27
sp4rrow_ has quit [Quit: The Internet needs a break and I need a cookie]
22:42
Philpax has quit [Ping timeout: 252 seconds]
22:48
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:54
emancu has quit [Remote host closed the connection]
22:56
<
crystal-gh >
crystal/master 1a2ec57 Ary Borenszweig: Merge branch 'release/0.17'
23:00
sp4rrow has joined #crystal-lang
23:06
bjz has joined #crystal-lang
23:10
emancu has joined #crystal-lang
23:13
bjz has quit [Ping timeout: 276 seconds]
23:14
emancu has quit [Ping timeout: 240 seconds]
23:42
<
crystal-gh >
crystal/master 1ce3c18 Ary Borenszweig: Merge branch 'release/0.17'
23:46
pawnbox has joined #crystal-lang
23:48
matp has quit [Remote host closed the connection]
23:48
matp has joined #crystal-lang
23:51
pawnbox has quit [Ping timeout: 260 seconds]