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
ua_ has quit [Excess Flood]
ua_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 252 seconds]
fifr[m] has joined #crystal-lang
sevvie_ has quit [Quit: leaving]
ur5us_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 256 seconds]
ur5us_ has joined #crystal-lang
jhass[m] has joined #crystal-lang
notzmv has quit [Ping timeout: 248 seconds]
ur5us_ has quit [Ping timeout: 256 seconds]
ur5us_ has joined #crystal-lang
ua_ has quit [Ping timeout: 248 seconds]
ua_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 256 seconds]
ua_ has quit [Quit: Leaving]
hightower2 has joined #crystal-lang
human_g33k has quit [Ping timeout: 268 seconds]
human_g33k has joined #crystal-lang
elf_fortrez has joined #crystal-lang
elf_fortrez has quit [Quit: Client closed]
<FromGitter> <sclee15> Hello. Can I ask one question? Suppose I have a fiber that runs expensive blocking function call. Under that situation, are other running fibers can be blocked too? (single core situation)
<FromGitter> <Blacksmoke16> is the main fiber blocked via a sleep or channel/receive?
<yxhuvud> sclee15: Yes. You can use Fiber.yield (sometimes, it is somewhat expensive) to give some time to other fibers.
<yxhuvud> though it depends, not all operations that seems to be blocking is. For example, reading from a socket will block that fiber, potentially for a long time, but will let crystal do other things
<FromGitter> <sclee15> how can reading from socket allows some cpu time for other thread?
<FromGitter> <sclee15> i mean other fiber?
<yxhuvud> it is based on libevent (which in turn is based on a syscall called epoll) that allows that.
<FromGitter> <sclee15> then I dont have to worry about a expensive sql query in a fiber..
<yxhuvud> right.
<FromGitter> <sclee15> oh. right. thank you. @yxhubud and @szabgab
SamantazFox has quit [Ping timeout: 268 seconds]
<riza> what order does crystal read files in a glob-require? is it just whateven Dir[] reads them in?
<FromGitter> <Blacksmoke16> prob abc
<riza> what about leading numbers?
<FromGitter> <Blacksmoke16> do a `ls -l` would prob be that order
<riza> yeah, that's what I figured it would be :D thanks
<straight-shoota> Not, it's not just the order that the file system reports
<straight-shoota> That's unreliable
<riza> hhhhhhhmmmmmmm
<FromGitter> <Blacksmoke16> fwiw id advise against using glob requires
<FromGitter> <Blacksmoke16> esp when files may depend on files earlier/later
<riza> does that sort take into account numbers, ro is it sorting based on (essentially) ascii table
<FromGitter> <jrei:matrix.org> I agree 💯 with @beta-ziliani about thr errors. We have type safety, but miss error safety now :/
<FromGitter> <jrei:matrix.org> I did experiment a bit in the past https://github.com/j8r/error.cr
<FromGitter> <jrei:matrix.org> Using exceptions are convenient, like not having to deal with types. But it can backslash (and will) at runtime
<FromGitter> <MrSorcus> https://github.com/uuid6/prototypes/ - who want create prototype in Crystal? 😸
<FromGitter> <jrei:matrix.org> There are also UUIDv7 and UUIDv8
<FromGitter> <suskeyhose:matrix.org> is that you johnny, or just someone else who loves kung fury just a little too much? :P
<FromGitter> <MrSorcus> @jrei:matrix.org yeap.
<FromGitter> <jrei:matrix.org> srasu (https://matrix.to/#/@suskeyhose:matrix.org) not johnny haha. Good catch, that's Hackerman. I like the movie, and some people said I was like Hackerman - hence the image
ur5us_ has joined #crystal-lang
<FromGitter> <suskeyhose:matrix.org> Ah, fair. Johnny is a contributor to one of my repos and he always has various hackerman avatars
Guest48 has joined #crystal-lang
Guest48 has quit [Client Quit]
delucks has quit [Ping timeout: 258 seconds]
ur5us_ has quit [Ping timeout: 272 seconds]
ur5us_ has joined #crystal-lang
delucks has joined #crystal-lang
ur5us_ has quit [Ping timeout: 272 seconds]
ua_ has joined #crystal-lang
hightower2 has quit [Ping timeout: 248 seconds]
fifr_ has joined #crystal-lang
fifr has quit [Quit: ZNC 1.8.2 - https://znc.in]