<unshadow>
I started working on a MUD (multiplayer text based game) in Crystal, the git is here (license MIT) https://github.com/bararchy/legacy_of_man if it's someones cup of tea you are more then invited to join :)
<FromGitter>
<codenoid> @FromIRC thanks unshadow, i can learn from your code ;)
<unshadow>
XD you welcome, though I would not take my code as somekind of a learning meterial haha I'm not so sure how great it is in this point of the project
sz0 has quit [Quit: Connection closed for inactivity]
Ven is now known as Guest63917
Guest63917 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 260 seconds]
unshadow has quit [Quit: leaving]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j2k has joined #crystal-lang
Qchmqs has quit [Ping timeout: 268 seconds]
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<bew> yahooo archlinux crystal official package update to 0.21.1 yesterday, and finally to 0.22.0 today :smiley:
<BlaXpirit>
yay
<FromGitter>
<eliasjpr> :tada:
A124 has quit [Ping timeout: 240 seconds]
unshadow has joined #crystal-lang
<unshadow>
I saw in an issue that IO.select is non-blocking, how would I block until socket is readable ?
<RX14>
unshadow, read from it
<RX14>
what are you trying to do
<unshadow>
Yeha, what if it returns nothing, but it's only because the underlaying read is buffering ? as in , I usually IO.select(socket, nil ,nil , timeout) and I know that if timeout is reached, there is not data in the socket, else, It returns and I read from it
<RX14>
so you want a read timeout?
<RX14>
you need an example of what you want to do
<unshadow>
Yeha, also, what's the point of the Timeout in select if it just returns imidiatlly because all IO is non-blocking in Crystal ? XD
<unshadow>
RX14: I'll pastebin it
A124 has joined #crystal-lang
<RX14>
IO.select shouldn't return immediately...
<RX14>
IO.select is broken
<RX14>
don't use it ever
<FromGitter>
<sdogruyol> lol
<RX14>
IO.select shouldn't ever be used, you can always do it with fibers and channels
<unshadow>
The point is buffer from a socket, if I dont know how much to read, so buffer until no data is avilable
<unshadow>
as in, socket not readable
<RX14>
when you say socket not readable
<RX14>
EOF?
<RX14>
you want to read data until no data is sent for 5 seconds? Why on earth would you want that?
<unshadow>
Well, let's say you don't know how much data is supposed to be sent , and you buffer large data (gigas) , it might have network stutters because of long destination , etc..
<RX14>
what problem are you trying to solve here
<RX14>
more generally
<unshadow>
RX14: TBH while talking about it I might got a better idea on how to handle that XD testing and will share, it might explain better what I'm trying to achive
A124 has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #crystal-lang
<FromGitter>
<schoening> I love the trackpad on the mbp omfg! Does 2 finger right click work on linux diatros
<FromGitter>
<schoening> Distros * coz I might install Linux for dev stuff
<FromGitter>
<bew> all is configurable
<Papierkorb>
isn't "2 finger rightclick" been a feature of almost any notebook in the last decade?
<Papierkorb>
hasn't*
<RX14>
natural scrolling, two finger scrolling, and two finger rightclick work on my trashy linux laptop from 2009
<RX14>
all it needs is a synaptics touchpad and it'll work
<FromGitter>
<schoening> Ive used the ThinkPad nipple for the last year so idk. And that ThinkPad was from 2010. This 2012 mbp is blowing my mind LOL
Ven has joined #crystal-lang
Ven is now known as Guest13374
<FromGitter>
<schoening> Ok ty. Sorry for the off topic question. But this is my favorite dev chat lol . Learning tons here ^^
<FromGitter>
<sdogruyol> it's ok .9
<FromGitter>
<sdogruyol> :)
<RX14>
as I said before, off-topic is fine as long as the chat is quiet
Guest13374 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
balduin has joined #crystal-lang
A124 has joined #crystal-lang
Kug3lis has joined #crystal-lang
bjz has joined #crystal-lang
ssvb has quit [Ping timeout: 246 seconds]
ssvb has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
mayhew has joined #crystal-lang
<FromGitter>
<Sija> mhhh, I loved tickling thinkpad clit… :saxophone:
<FromGitter>
<Sija> for any1 interested: Crystal docs for Dash (https://kapeli.com/dash) just got updated to the newest API version (v0.22.0)
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
mayhew has quit [Remote host closed the connection]
unshadow has quit [Ping timeout: 260 seconds]
unshadow has joined #crystal-lang
<FromGitter>
<schoening> Where can I read about 0.22 changes?