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
hightower3 has joined #crystal-lang
ur5us_ has quit [Ping timeout: 260 seconds]
ur5us_ has joined #crystal-lang
<FromGitter> <Yam76> sorry if this is the wrong place for this, but does anybody know that status of multithreading/true parallelism?
<FromGitter> <Blacksmoke16> it exists but is behind a compiler flag
<FromGitter> <Blacksmoke16> `-Dpreview_mt`
<FromGitter> <Yam76> Thanks for the response. Any idea of how far along it is? I had a hard time telling its progress from the Issues.
<FromGitter> <Blacksmoke16> it's in a useable state, but most of the stdlib isn't thread safe
<FromGitter> <Blacksmoke16> so depending on your exact use case, it could work fine, or not
<FromGitter> <Yam76> Awesome, thank you for the help.
<FromGitter> <grkek> Hi @jrei:matrix.org I am quite busy, didn't have time to come here, its good to see familiar faces
ur5us_ has quit [Ping timeout: 252 seconds]
hightower3 has quit [Ping timeout: 265 seconds]
ur5us_ has joined #crystal-lang
notzmv has quit [Read error: Connection reset by peer]
ur5us_ has quit [Ping timeout: 268 seconds]
deavmi has quit [Quit: No Ping reply in 180 seconds.]
deavmi has joined #crystal-lang
hightower2 has joined #crystal-lang
<hightower2> Hey let's say I have a loop that should block trying to read from 2 IOs (whichever has something first). What's the optimal way to do this?
<hightower2> ah yes, I was wondering where the docs were :) Thanks
<jhass[m]> spawning two read loops that push to a common queue in seperate threads or ractors should also work I guess
<hightower2> yeah in the meantime I went with two loops, definitely better design
<hightower2> (in this case at least, since what I want to do with the data that is read is also different)
mps has joined #crystal-lang
SamantazFox has quit [Ping timeout: 268 seconds]
notzmv has joined #crystal-lang
<riza> is there a way to specify a SNI hostname on an OpenSSL::SSL::Context?
<riza> the closest thing I see is https://github.com/crystal-lang/crystal/blob/6d9a1d583/src/openssl/ssl/context.cr#L86-L101 -- which is used when OpenSSL::SSL::Socket::Client.new contains a hostname, but I don't see any way that functionality is exposed
<riza> there are a few issuses where people mention SNI but nothing seems to have been contributed to actually unwind the problem
hightower2 has quit [Ping timeout: 260 seconds]
ur5us_ has joined #crystal-lang
SamantazFox has joined #crystal-lang
ur5us_ has quit [Ping timeout: 260 seconds]
ur5us_ has joined #crystal-lang
ur5us_ has quit [Quit: Leaving]
ur5us has joined #crystal-lang
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
SamantazFox has quit [Ping timeout: 252 seconds]