RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.24.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
codenoid has quit [Ping timeout: 256 seconds]
codenoid has joined #crystal-lang
<FromGitter> <aisrael> @watzon (A bit late but) Have you tried Cossack? It has middleware
<watzon> I actually haven't heard of Cossack. I may try it
<codenoid> hi, what shutdown `LibC::SHUT_RD` used for ?, in src/socket.cr
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qard has joined #crystal-lang
qard has quit [Client Quit]
<FromGitter> <chris-baynes> @faustinoaq ah, that would work, thanks!
qard has joined #crystal-lang
<FromGitter> <bew> @codenoid it's used internally to close the reading for a given socket via `SOcket#close_read`, no idea when you could need this kind of behavior though
<crystal-gh> [crystal] chris-baynes opened pull request #5736: Add copy method to record macro. (master...add_record_copy) https://git.io/vAzfi
hightower2 has quit [Ping timeout: 264 seconds]
qard has quit [Quit: qard]
A124 has quit [Ping timeout: 264 seconds]
A124 has joined #crystal-lang
sz0 has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
ome has joined #crystal-lang
codenoid has quit [Ping timeout: 240 seconds]
codenoid has joined #crystal-lang
<watzon> Is there a crystal version of `module_fuction` or a way to make all module methods static without doing `self.` on all of them?
codenoid has quit [Quit: i sleep in my keyboard]
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter> <bew> `extend self` iirc
<watzon> That's the one. Thanks. For some reason I was trying `include self`, but that doesn't work haha.
ome has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] bew opened pull request #5737: Fix parser block arg newline (master...fix-parser-block-arg-newline) https://git.io/vAzGs
maattdd_ has joined #crystal-lang
maattdd_ has quit [Ping timeout: 240 seconds]
alex`` has joined #crystal-lang
lacour has quit [Quit: Leaving]
bijan_ has joined #crystal-lang
bijan_ is now known as bijan_awaaaay
flaviodesousa has joined #crystal-lang
<elisaado> Hey, how do I need to structure my app?
<elisaado> What belongs in src/appname.cr and what belongs in src/appname?
flaviodesousa has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<FromGitter> <ezrast> @elisaado Convention is that each class or module has its own file, so top-level code for `module AppName` goes in appname.cr and code for `class AppName::Widget` goes in appname/widget.cr
<FromGitter> <ezrast> but it doesn't always make sense to organize code that way for every program, and the compiler won't care if you do something else
hightower2 has joined #crystal-lang
_whitelogger has joined #crystal-lang
maattdd_ has joined #crystal-lang
<FromGitter> <sptorin_twitter> Bug or I missing something? ⏎ This print line not UTF8, not readable: ⏎ ⏎ ```File.each_line("file.txt", encoding = "CP1251") do |line| ⏎ puts line ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5a8e98400202dc012e6c3841]
maattdd_ has quit [Ping timeout: 264 seconds]
bijan_awaaaay has quit [Quit: System has gone to sleep. ZZZzzz…]
rohitpaulk has joined #crystal-lang
cpt_yossarian has joined #crystal-lang
cpt_yossarian has joined #crystal-lang
Yxhuvud has quit [Ping timeout: 264 seconds]
woodruffw has quit [Ping timeout: 264 seconds]
Yxhuvud has joined #crystal-lang
<elisaado> ezrast: I see, thank you!
tliff_ has joined #crystal-lang
foca_ has joined #crystal-lang
Yxhvd has joined #crystal-lang
pracabor has joined #crystal-lang
badeball_ has joined #crystal-lang
olbat__ has joined #crystal-lang
foca has quit [Ping timeout: 264 seconds]
robacarp has quit [Ping timeout: 264 seconds]
tliff has quit [Ping timeout: 264 seconds]
badeball has quit [Ping timeout: 264 seconds]
Yxhuvud has quit [Ping timeout: 264 seconds]
olbat has quit [Ping timeout: 264 seconds]
foca_ is now known as foca
maattdd_ has joined #crystal-lang
hightower has joined #crystal-lang
hightower3 has quit [Ping timeout: 255 seconds]
hightower2 has quit [Ping timeout: 268 seconds]
tliff_ is now known as tliff
maattdd_ has quit [Ping timeout: 252 seconds]
maattdd_ has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
thi_ has quit [Ping timeout: 255 seconds]
thi_ has joined #crystal-lang
rohitpaulk has joined #crystal-lang
shalmezad has joined #crystal-lang
alex`` has quit [Ping timeout: 276 seconds]
rohitpaulk has quit [Ping timeout: 248 seconds]
alex`` has joined #crystal-lang
Papierkorb has joined #crystal-lang
alex`` has quit [Client Quit]
alex`` has joined #crystal-lang
Papierkorb has left #crystal-lang ["Konversation terminated!"]
rohitpaulk has joined #crystal-lang
thi_ has quit [Ping timeout: 255 seconds]
thi_ has joined #crystal-lang
<FromGitter> <PlayLights_twitter> Has anyone tried to compile with link flags on heroku? On my Mac the flags are passed correctly but not in heroku
<FromGitter> <plainas> Can't find this in the manual... how do I declare an empty hash of String to Int32
<FromGitter> <PlayLights_twitter> @plainas ` {} of String => Int32` ?
<FromGitter> <plainas> Thank you
<FromGitter> <PlayLights_twitter> @sptorin_twitter maybe because you are opening with the CP1251 encoding?
bijan_ has joined #crystal-lang
<FromGitter> <j8r> @plainas For me this syntax `Hash(String, Int32).new` is more clear, as you wish
<FromGitter> <plainas> thank you... ok apologies for so many basic questions, here's another one. what's a crystalesque way of sorting a set by value?
<FromGitter> <j8r> in addition of "crystal-lang", you can also search for Ruby Q&A on the internet, often ithe code won't run as is but will gives you the way to resolve your problem
duane has joined #crystal-lang
<FromGitter> <plainas> yeah, I usually do that. I am finding that sorting is one case where there are significative differences
<FromGitter> <plainas> and of course, in type definitions and anotations
bijan_ is now known as bijan_awaaaay
bijan_awaaaay is now known as bijan_
<FromGitter> <r00ster91> is there no inbuilt way in crystal to convert an integer (for example a 12) to normal words? how you speak it. (in this case its "twelve")
<FromGitter> <j8r> haha no, you will need to build a library for.
bijan_ is now known as bijan_awaaaay
qard has joined #crystal-lang
<FromGitter> <PlayLights_twitter> Is this normal guys?
<FromGitter> <PlayLights_twitter> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a8eea88e4ff28713ab1deb3]
<FromGitter> <PlayLights_twitter> I tried to static compiled a program
<FromGitter> <PlayLights_twitter> ```code paste, see link```
<FromGitter> <PlayLights_twitter> Looks like is because `-lrt` is not at the end
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 252 seconds]
<FromGitter> <jwaldrip> Any word on the release schedule for Crystal?
<FromGitter> <jwaldrip> Seems like things have stalled again.
bijan_awaaaay is now known as bijan_
bijan_ is now known as bijan_awaaaay
ua has quit [Ping timeout: 256 seconds]
ua has joined #crystal-lang
bijan_awaaaay is now known as bijan_
bijan_ has quit [Quit: Shutting Down Interwebs...Done.]
duane has quit [Ping timeout: 240 seconds]
rohitpaulk has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
devil_tux has joined #crystal-lang
<devil_tux> hey, what is supposed way to compare String.split(x)? It usually returns whole string if no split is found.
<devil_tux> okay, .includes seems to work fine;
elisaado has quit [Ping timeout: 256 seconds]
elisaado has joined #crystal-lang
maattdd_ has quit [Ping timeout: 256 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
<FromGitter> <Sija> @straight-shoota I concur, I’ll keep an eye for that, thanks!
rohitpaulk has quit [Ping timeout: 264 seconds]
<FromGitter> <Sija> new release would be just JIT
DTZUZU has joined #crystal-lang
duane has joined #crystal-lang
rohitpaulk has joined #crystal-lang
duane has quit [Ping timeout: 240 seconds]
codenoid has joined #crystal-lang
duane has joined #crystal-lang
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qard has joined #crystal-lang
sz0 has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
duane has quit [Ping timeout: 268 seconds]
duane has joined #crystal-lang
shalmezad has quit [Quit: Leaving]
codenoid has quit [Quit: i sleep in my keyboard]
sz0 has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] felixbuenemann opened pull request #5740: Extend XML::Reader with more LibXML methods (master...extend-xml-reader) https://git.io/vA2Tj
devil_tux has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
arthur has joined #crystal-lang
duane has quit [Ping timeout: 264 seconds]