<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
<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