01:04
ur5us has quit [Ping timeout: 252 seconds]
01:38
ur5us has joined #crystal-lang
04:22
ur5us has quit [Remote host closed the connection]
04:22
ur5us has joined #crystal-lang
04:44
postmodern has joined #crystal-lang
05:36
nopc0de_ has joined #crystal-lang
05:39
nopcOde has quit [Ping timeout: 252 seconds]
05:49
ur5us has quit [Ping timeout: 240 seconds]
05:54
postmodern has quit [Remote host closed the connection]
08:22
yxhuvud has quit [Read error: Connection reset by peer]
08:22
yxhuvud has joined #crystal-lang
09:35
<
FromGitter >
<HertzDevil> if you don't want to do the include then it needs `responds_to?` with argument types or traits
09:35
<
FromGitter >
<HertzDevil> (or concepts, as they're called in c++)
09:42
<
hightower2 >
Oh right.. although then one also needs to leave the type completely unspecified. Ok, thanks.
10:24
Guest82 has joined #crystal-lang
10:25
Guest82 has quit [Client Quit]
11:45
pusewic|away has quit []
11:46
pusewic|away has joined #crystal-lang
12:53
<
FromGitter >
<Blacksmoke16> the easiest solution is to just not do it :P
12:53
<
FromGitter >
<Blacksmoke16> otherwise, you can kinda replicate it via a `case` over the method name, and calls it
12:54
<
FromGitter >
<HertzDevil> it's still viable if there are no overloads like in ruby
12:55
<
FromGitter >
<HertzDevil> and no argument restrictions
15:05
<
SamantazFox_ >
Hello there!
15:06
<
SamantazFox_ >
Just to be sure: Crystal by default is single threaded, right?
15:06
<
FromGitter >
<jfontan:matrix.org> right
15:08
<
SamantazFox_ >
Ok, thanks
15:09
<
SamantazFox_ >
So idk how one person is having multiple threads listed in htop
15:09
<
SamantazFox_ >
doesn't makes sense
15:10
<
FromGitter >
<Blacksmoke16> are they using `fork`?
15:16
<
SamantazFox_ >
They use the same code as we do, and the same systemd file
15:29
<
FromGitter >
<asterite> The GC runs multiple threads
15:30
<
FromGitter >
<asterite> (if I remember correctly)
15:30
<
FromGitter >
<jfontan:matrix.org> is there also a IO thread?
15:31
<
FromGitter >
<asterite> I don't think so
15:31
<
FromGitter >
<jfontan:matrix.org> 👍️
15:44
<
SamantazFox_ >
asterite: the GC only uses MT if `preview_mt` flag is passed
15:45
<
FromGitter >
<Blacksmoke16> 🤔 are you sure?
15:45
<
yxhuvud >
Uh, I'm not certain the GC cares about preview_mt at all
15:45
<
SamantazFox_ >
just checked the code
15:45
<
yxhuvud >
could it be some lifecycle issue? Like your restart functionality perhaps doesn't kill the original or something?
15:46
<
yxhuvud >
that lock is not doing what you think. It locks accesses to the gc from other crystal code, but the gc can still be multithreaded beneath it
15:49
<
FromGitter >
<asterite> 100% sure it's the GC. Try a small program that does `GC.collect; gets` then sample it (in mac osx you can do it in the Activity Monitor, I don't know for other systems)
15:53
<
SamantazFox_ >
asterite: GG
15:53
<
SamantazFox_ >
it's that
15:56
<
SamantazFox_ >
thanks :)
15:57
<
FromGitter >
<asterite> Cool! 🎉
17:19
watzon has joined #crystal-lang
17:22
watzon has quit [Client Quit]
17:23
watzon has joined #crystal-lang
17:32
watzon has joined #crystal-lang
17:33
elf_fortrez has joined #crystal-lang
17:49
elf_fortrez has quit [Ping timeout: 256 seconds]
19:28
kevinsjoberg has quit []
19:29
kevinsjoberg has joined #crystal-lang
20:49
Guest71 has joined #crystal-lang
21:09
ur5us has joined #crystal-lang
21:53
Guest71 has quit [Ping timeout: 256 seconds]
22:37
ur5us has quit [Remote host closed the connection]
22:38
nopcOde has joined #crystal-lang
22:38
ur5us has joined #crystal-lang
22:41
nopc0de_ has quit [Ping timeout: 252 seconds]
22:50
nopc0de_ has joined #crystal-lang
22:53
nopcOde has quit [Ping timeout: 244 seconds]
23:28
ur5us has quit [Ping timeout: 252 seconds]