ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.31.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
return0e has quit [Ping timeout: 250 seconds]
return0e has joined #crystal-lang
chachasmooth_ has joined #crystal-lang
chachasmooth has quit [Ping timeout: 250 seconds]
chachasmooth_ has quit [Quit: Quit]
chachasmooth has joined #crystal-lang
dwdv has quit [Ping timeout: 265 seconds]
f1refly has joined #crystal-lang
f1reflyylmao has quit [Ping timeout: 276 seconds]
_whitelogger has joined #crystal-lang
ht_ has joined #crystal-lang
ht_ has quit [Quit: ht_]
yukai has quit [Ping timeout: 246 seconds]
<FromGitter> <sclee15> Can a fiber shares variables in closure?
HumanGeek has quit [Ping timeout: 276 seconds]
HumanG33k has joined #crystal-lang
<FromGitter> <straight-shoota> @sclee15 Yes, but you need to be aware of issues when two fibers access it simultaneously (only relevant when running multithreaded). It's better to use channels to communicate state between fibers.
<repo> or wrap access in mutex.synchronize
<FromGitter> <sclee15> @straight-shoota @repo thank you.
<FromGitter> <yxhuvud> Yes, but you probably need to synchronize access if you plan to write to the variable.
<FromGitter> <yxhuvud> (sigh, was apparently not in synch :/)
Nekka has quit [Quit: zzz]
Nekka has joined #crystal-lang
hightower2 has joined #crystal-lang
<hightower3> What's the performance of mutexes? I remember from Ruby they had a non ignorable cost
alexherbo2 has joined #crystal-lang
dwdv has joined #crystal-lang
<FromGitter> <jgillich> https://play.crystal-lang.org/#/r/83h9 ⏎ First one works, second one doesn't. Is this a bug or expected behavior?
<hightower3> jgillich expected. The second is not passing a hash to a function but a block
<FromGitter> <jgillich> Ah that makes sense, thanks
<hightower3> (i.e. it is interpreted as Class.new() { block } )
HumanG33k has quit [Ping timeout: 265 seconds]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Excess Flood]
HumanG33k has joined #crystal-lang
DTZUZO has quit [Ping timeout: 250 seconds]
DTZUZO has joined #crystal-lang
<FromGitter> <sam0x17> anyone know of a good BST implementation in crystal? and/or something I can use to actively add to and remove from a generic sorted container?
<FromGitter> <sam0x17> nvm found what I need and more: https://github.com/jtomschroeder/crystalline
<FromGitter> <sam0x17> has `shards run` been added yet? so sick of doing `crystal run src/*.cr` and seeing it break when there are non-trivial library dependencies
<FromGitter> <Blacksmoke16> `shards build && ./bin/app` 😉
<FromGitter> <sam0x17> MEHH
<FromGitter> <sam0x17> lol
<FromGitter> <sam0x17> muahhahaha!!! ⏎ ⏎ ```alias shards_run='shards build || exit 1 && ./bin/*'``` [https://gitter.im/crystal-lang/crystal?at=5de135d3b065c6433c08edbf]
<FromGitter> <sam0x17> actually remove || exit 1 -- that only makes sense inside a script
return0e has quit [Read error: Connection reset by peer]
return0e has joined #crystal-lang
<FromGitter> <j8r> Anyone familiar with `pkg-config`
<FromGitter> <j8r> TL:DR: static linking is broken on Alpine edge when using XML
ht_ has joined #crystal-lang
<tleydxdy> ye, I had that
<tleydxdy> I had to add --link-flags "-lxml2 -llzma" to the build
ht_ has quit [Remote host closed the connection]
ht_ has joined #crystal-lang
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
sagax has quit [Ping timeout: 246 seconds]
<Yxhuvud> sam0x17: crystalline has lots of algorithms, but the implementations are not always the fastest around.
hightower2 has quit [Ping timeout: 276 seconds]
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
alexherbo2 has joined #crystal-lang
<FromGitter> <j8r> Thanks tleydxdy
<FromGitter> <eliasjpr> Why Epoch is not working https://play.crystal-lang.org/#/r/83u9
<FromGitter> <Blacksmoke16> It's to_unix now
sagax has joined #crystal-lang
<FromGitter> <eliasjpr> k
<FromGitter> <eliasjpr> 😅
ht_ has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 265 seconds]