ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us has quit [Ping timeout: 252 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
postmodern has joined #crystal-lang
nopc0de_ has joined #crystal-lang
nopcOde has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 240 seconds]
postmodern has quit [Remote host closed the connection]
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #crystal-lang
<hightower2> Hey if anyone has comments on questions mentioned in https://play.crystal-lang.org/#/r/buxo , please share. Thanks.
<FromGitter> <HertzDevil> if you don't want to do the include then it needs `responds_to?` with argument types or traits
<FromGitter> <HertzDevil> (or concepts, as they're called in c++)
<hightower2> Oh right.. although then one also needs to leave the type completely unspecified. Ok, thanks.
Guest82 has joined #crystal-lang
Guest82 has quit [Client Quit]
pusewic|away has quit []
pusewic|away has joined #crystal-lang
<FromGitter> <nanobowers> Was looking at the wiki here: https://github.com/crystal-lang/crystal/wiki/Metaprogramming-Help#how-to-mimic-send-using-records-and-generated-lookup-tables ⏎ and it's a stub that says "Sample code + explanation". 😆 Anyone know where i might find an example of this
<FromGitter> <Blacksmoke16> the easiest solution is to just not do it :P
<FromGitter> <Blacksmoke16> otherwise, you can kinda replicate it via a `case` over the method name, and calls it
<FromGitter> <HertzDevil> it's still viable if there are no overloads like in ruby
<FromGitter> <HertzDevil> and no argument restrictions
<SamantazFox_> Hello there!
<SamantazFox_> Just to be sure: Crystal by default is single threaded, right?
<FromGitter> <jfontan:matrix.org> right
<SamantazFox_> Ok, thanks
<SamantazFox_> So idk how one person is having multiple threads listed in htop
<SamantazFox_> doesn't makes sense
<FromGitter> <Blacksmoke16> are they using `fork`?
<SamantazFox_> No
<SamantazFox_> They use the same code as we do, and the same systemd file
<FromGitter> <asterite> The GC runs multiple threads
<FromGitter> <asterite> (if I remember correctly)
<FromGitter> <jfontan:matrix.org> is there also a IO thread?
<FromGitter> <asterite> I don't think so
<FromGitter> <jfontan:matrix.org> 👍️
<SamantazFox_> asterite: the GC only uses MT if `preview_mt` flag is passed
<FromGitter> <Blacksmoke16> 🤔 are you sure?
<yxhuvud> Uh, I'm not certain the GC cares about preview_mt at all
<SamantazFox_> just checked the code
<yxhuvud> could it be some lifecycle issue? Like your restart functionality perhaps doesn't kill the original or something?
<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
<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)
<SamantazFox_> asterite: GG
<SamantazFox_> it's that
<SamantazFox_> thanks :)
<FromGitter> <asterite> Cool! 🎉
watzon has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
watzon has joined #crystal-lang
watzon has quit [Client Quit]
watzon has joined #crystal-lang
watzon has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
watzon has joined #crystal-lang
elf_fortrez has joined #crystal-lang
elf_fortrez has quit [Ping timeout: 256 seconds]
kevinsjoberg has quit []
kevinsjoberg has joined #crystal-lang
Guest71 has joined #crystal-lang
ur5us has joined #crystal-lang
Guest71 has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
nopcOde has joined #crystal-lang
ur5us has joined #crystal-lang
nopc0de_ has quit [Ping timeout: 252 seconds]
nopc0de_ has joined #crystal-lang
nopcOde has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 252 seconds]