RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.0 | 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
thews has quit [Ping timeout: 245 seconds]
thews has joined #crystal-lang
DTZUZO has joined #crystal-lang
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZO has joined #crystal-lang
_whitelogger has joined #crystal-lang
rohitpaulk has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #crystal-lang
ashirase has quit [Ping timeout: 272 seconds]
ashirase has joined #crystal-lang
gangstacat has quit [Quit: Ĝis!]
<FromGitter> <bew> @wontruefree that talk you shared about c++/llvm/lisp for molecular metaprogramming is sooo awesome, thank you :D
<FromGitter> <ljuti> @Blacksmoke16 As you said, setting calculated fields from the JSON data and then making sure that the input adheres to a certain set of rules, like a specification
<FromGitter> <proyb6> I have a curiously about extracting part of data from a text file that preserves layout
<FromGitter> <proyb6> I always see most of the ruby solutions is to read lines by lines horizontally or match string from 1st part to 2nd part in horizontally
Yxhuvud has quit [Ping timeout: 260 seconds]
<FromGitter> <proyb6> Are there a way to match string "vertically" especially like Japanese?
<FromGitter> <proyb6> .lines to become .vlines
Jenz has joined #crystal-lang
<Jenz> I remember there was released a book on crystal, but I can't seem to find it again?
Groogy has joined #crystal-lang
gangstacat has joined #crystal-lang
<Groogy> Yo! o/
* Jenz o/
<Jenz> brb
Yxhuvud has joined #crystal-lang
<Jenz> Hey crystal devs, (or anyone that knows,) what's the current big thing going on in crystal now? Apart for windows support
Yxhuvud has quit [Ping timeout: 276 seconds]
Jenz has left #crystal-lang [#crystal-lang]
ua_ has quit [Ping timeout: 268 seconds]
silmanduin has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter> <vlazar> probably completing planned arithmetic changes https://github.com/crystal-lang/crystal/pull/6223
<FromGitter> <vlazar> and preparations for parallelism like recently landed https://github.com/crystal-lang/crystal/pull/6897
pabs has quit [Ping timeout: 252 seconds]
Yxhuvud has joined #crystal-lang
<FromGitter> <j8r> @proyb6 a text file is a list of bytes. You can at n bytes to n bytes in the file. Reading lines by lines means having \n (and/or \r) as a delimiter. Reading horizontaly will need to make an Array of Strings, then taking the first char of each element in the Array, then the second etc
<FromGitter> <j8r> that's very ineficient
<FromGitter> <j8r> or else you parse the file, and each char of a line is appended in an array of Strings
<FromGitter> <j8r> @proyb6 https://carc.in/#/r/5k6g
pabs has joined #crystal-lang
return0e has quit [Ping timeout: 252 seconds]
<FromGitter> <proyb6> @j8r Nice code, will give a look, appreciate
return0e has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
akaiiro has joined #crystal-lang
pabs has quit [Ping timeout: 240 seconds]
pabs has joined #crystal-lang
ua has joined #crystal-lang
<FromGitter> <vladfaust> Hey, is it possible to have optional block for a method? E.g. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5bf1ab3580652945c380de8b]
<FromGitter> <vladfaust> Or how can I check if this call has a block
<FromGitter> <vladfaust> Alright, thanks
<FromGitter> <vladfaust> Got my +1
<FromGitter> <j8r> I'm searching how to create a method to check the type of a variable? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5bf1acd6ddad8777ef8423db]
<FromGitter> <j8r> This doesn't work :(
<oprypin> what is the point of this, just delete the method
<oprypin> nvm
<FromGitter> <j8r> for now I use a macro
<FromGitter> <j8r> Or maybe I can use generics
<FromGitter> <vladfaust> `T` equals to `Class` in runtime
<FromGitter> <vladfaust> So it will fail
<FromGitter> <vladfaust> Macro would work
<FromGitter> <j8r> like ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5bf1ade580652945c380ee73]
<oprypin> `%value` not `_value`
<FromGitter> <Blacksmoke16> why do you need? doesnt `is_a?` do that already?
<FromGitter> <j8r> I'll do this check a lot
<FromGitter> <j8r> this is to avoid boilerplate
pabs has quit [Ping timeout: 244 seconds]
<FromGitter> <Blacksmoke16> fair enough
<oprypin> macro is better here anyway
silmanduin has quit [Quit: WeeChat 2.3]
akaiiro has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<hightower2> Hey, what's the state of HTTP/2 support? I see ysbaddaden/http2 shard, but trying to run it on 0.27 gives "undefined constant Scheduler"
<coderobe> Scheduler is probably Crystal::Scheduler now
<hightower2> coderobe, indeed, that plus some minor fix got it to compile
<hightower2> thanks
<FromGitter> <raydf> Hello everyone. I'm trying to make sure about the Union types. I have this case: ⏎ https://play.crystal-lang.org/#/r/5k9i ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5bf1b404951402310a6a0cef]
<FromGitter> <raydf> Any ideas of this is possible?
<coderobe> What do you mean by that?
<coderobe> You can push any of the types in the PGValue union to the array
<FromGitter> <raydf> But JSON:Any.raw is returning a JSON::Any class
<FromGitter> <raydf> the full union type not the underlying primitive
<FromGitter> <raydf> that play repl gives the error: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5bf1b5124bad337eb9fd25f3]
<coderobe> Int64 is not part of your union
<coderobe> for one
<coderobe> This becomes a runtime error when your json object contains anything other than your PGValue though, which it can
<coderobe> so be aware
<coderobe> raydf: ^
Jenz has joined #crystal-lang
* Jenz o/
<FromGitter> <raydf> thx @coderobe
<FromGitter> <raydf> Does anyone know how are int64 handled in will/pg shard?
<FromGitter> <Blacksmoke16> should just be bigint
Jenz has quit [Ping timeout: 260 seconds]
<FromGitter> <raydf> just reading the decoder from pg, it looks it can handle bigint but the PGValue alias doesn't have it inside.
<FromGitter> <Blacksmoke16> try `DB::Any`
<FromGitter> <Blacksmoke16> instead of the PG alias
<FromGitter> <raydf> where is DB::Any located?
<FromGitter> <raydf> Nice
<FromGitter> <raydf> thx @Blacksmoke16
<FromGitter> <Blacksmoke16> np
akaiiro has joined #crystal-lang
relyks has joined #crystal-lang
relyks has quit [Client Quit]
relyks has joined #crystal-lang
relyks has quit [Client Quit]
akaiiro has quit [Ping timeout: 252 seconds]
Jenz has joined #crystal-lang
daemonwrangler has quit [Quit: ZNC 1.6.5 - http://znc.in]
daemonwrangler has joined #crystal-lang
akaiiro has joined #crystal-lang
<Jenz> RX14, you here?
<RX14> depends who's asking :P
<Jenz> No-one special, I just wondered how you're doing
<RX14> im busy
<RX14> but doing fine
* Jenz :)
hightower2 has quit [Ping timeout: 244 seconds]
<FromGitter> <ljuti> Any good examples of libs/apps that handle HTTP::Server inside the lib/app?
<FromGitter> <ljuti> I’m looking at Kemal RN, but any other good examples to learn from ?
return0e has quit []
akaiiro has quit [Remote host closed the connection]
return0e has joined #crystal-lang
DTZUZO has quit [Ping timeout: 252 seconds]
Jenz has quit [Ping timeout: 268 seconds]
<jokke> router.cr maybe?
asterite has quit [Ping timeout: 245 seconds]
jhass has quit [Ping timeout: 264 seconds]
asterite has joined #crystal-lang
jhass has joined #crystal-lang
DTZUZO has joined #crystal-lang
asterite has quit [Quit: Bye]
jhass has quit [Quit: Bye]
asterite has joined #crystal-lang