ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Crystal 0.24.2 | Fund Crystal's development: | GH: | Docs: | API: | Gitter:
Creatornator has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
heaven31415 has quit [Ping timeout: 265 seconds]
snsei has joined #crystal-lang
txdv has quit [Ping timeout: 276 seconds]
rohitpaulk has joined #crystal-lang
txdv has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
Creatornator has quit [Quit: Textual IRC Client:]
<FromGitter> <faustinoaq> Hey remembering these comments (, do Haskell works in a similar way, I mean, Haskell can create an standalone executable, but also can be compiled and executed in Haskell runtime 😅
<FromGitter> <aisrael> Yes but you need a PhD in CS before you can understand monads.
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
<FromGitter> <faustinoaq> Nah 😄
<FromGitter> <faustinoaq> Haskell is pure functional but is not that hard to understand 😉
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 276 seconds]
snsei_ has quit [Remote host closed the connection]
ryan_ford has joined #crystal-lang
<FromGitter> <bew> @mlobl you don't need to take a tuple as arguments, you can directly pass the arguments: `def walk(d = @root, &block : String, Array(String), Array(String) ->)` and simply call it as: ` d.path, dirs, files`
Yxhvd has joined #crystal-lang
Yxhuvud has quit [*.net *.split]
Groogy has quit [*.net *.split]
bazaar_ has quit [*.net *.split]
bazaar has joined #crystal-lang
Groogy has joined #crystal-lang
alex`` has joined #crystal-lang
DTZUZO has quit [Ping timeout: 248 seconds]
<FromGitter> <ryankshah> @yxhuvud Sorry for the late reply to what you said about `<<<` and `>>>`. You said you are missing these, is there going to be an implementation for them in the near future?
<FromGitter> <ryankshah> Or is there a way I can achieve the same effect at this moment?
<Groogy> Morning!
<Groogy> <<< and >>> are unsigned bitshift operators right? (never seen before)
That_Guy_Anon has joined #crystal-lang
<FromGitter> <yxhuvud> No, arithmetic vs logical shift. One of them doesn't exist as it is the same as the other variant in the same direction
hightower has joined #crystal-lang
<Groogy> ah
remix2000 has quit [Quit: The Lounge -]
remix2000 has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<FromGitter> <bararchy> So, it seems there is something which "should never be nil" but apperently can be in the `HTTP::Client` ⏎ ⏎ ```code paste, see link``` []
<FromGitter> <aisrael> @ryankshah Shouldn't it be rather easy to define, e.g., arithmetic left shift in terms of `<<` and masking using `&` and `|`?
<FromGitter> <ryankshah> @yxhuvud example?
<FromGitter> <ryankshah> @aisrael Yeah it should be easy enough, but it just makes the code a bit more untidy compared to having the operator
rohitpaulk has quit [Ping timeout: 276 seconds]
heaven31415 has joined #crystal-lang
<FromGitter> <petoem> i looked at the crystal source and llvm doc, there is ashr and lshr ⏎ based on the method `unsafe_shr`, I found this weird line: ⏎ if it is a signed number it does arithmetic shift right and if not it does logical shift?
Papierkorb has joined #crystal-lang
heaven31415 has quit [Quit: - Chat comfortably. Anywhere.]
Papierkorb has left #crystal-lang ["Konversation terminated!"]
<FromGitter> <ryankshah> Oh right so it takes into account the operations of both arithmetic and logical shift based on that precondition?
<FromGitter> <codenoid> morning
<FromGitter> <petoem> @ryankshah as far as i can tell, `>>` does arithmetic shift for signed numbers ⏎ for unsigned numbers `>>` does logical ⏎ `<<` does a normal left shift
<FromGitter> <aisrael> ☝️ I did a quick test and, yes, it does look like `>>` preserves the sign bit / performs an arithmetic shift right.
<FromGitter> <Jens0512> How can I use unix pipes like ``` ⏎ ls | my_crystal_prog ⏎ ⏎ `````` []
<FromGitter> <Jens0512> (I mean, how do I implement it in crystal)
<FromGitter> <Jens0512> Wait, is that was `ARGF` is?
<FromGitter> <Jens0512> Never understood what `ARGF` is..
<FromGitter> <Jens0512> Oh it is, haha, sorry for the intruition, now im out, see ya