ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.0 | Fund Crystal's development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
greengriminal has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <codenoid> sup
<FromGitter> <codenoid> when i use HTTP::Get, can i get total time of loaded response data ?
greengriminal has joined #crystal-lang
hightower2 has quit [Ping timeout: 240 seconds]
bjz has joined #crystal-lang
AckZ has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax has joined #crystal-lang
bjz has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
onionhammer1 has quit [Ping timeout: 240 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <codenoid> anybody know how to sync our local folder with other computer via ssh/ sublime text, i've tried use https://github.com/tnhu/SimpleSync , but is not work
bjz has joined #crystal-lang
onionhammer1 has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
Disrecollection has joined #crystal-lang
<FromGitter> <johnjansen> @codenoid RSync ???
_whitelogger has joined #crystal-lang
<FromGitter> <codenoid> how ?, i cant found any tutorial about it :(
hako has joined #crystal-lang
baweaver_away is now known as baweaver
<FromGitter> <codenoid> i'll try ,, https://github.com/bcharbonnier/SublimeFileSync
hako has quit [Read error: Connection reset by peer]
hako has joined #crystal-lang
hako has quit [Ping timeout: 255 seconds]
hako has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower4 has quit [Ping timeout: 268 seconds]
hightower2 has joined #crystal-lang
hako_ has joined #crystal-lang
hako has quit [Read error: Connection reset by peer]
hako_ has quit [Ping timeout: 276 seconds]
hako_ has joined #crystal-lang
Disrecollection has quit [Quit: Leaving.]
hako_ has quit [Ping timeout: 240 seconds]
nobilik has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <faustinoaq> > how did you configured it? ⏎ > Completion works? ⏎ ⏎ @bew Scry doen't support completion yet, but I'm thinking that Cracker (https://github.com/TechMagister/cracker) could be embed inside Scry. ⏎ ... [https://gitter.im/crystal-lang/crystal?at=59575c60329651f46e40293a]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Raimondii has joined #crystal-lang
bjz has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
<FromGitter> <akzhan> @faustinoaq I can’t push scry binary to github :) just tried `git config --global http.postBuffer 524288000` with no changes.
<FromGitter> <akzhan> So I’ll send email
red_menace has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 248 seconds]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 260 seconds]
<hightower2> Hey help me with this one:
<hightower2> I have Range(Int32, Int32), and on this class/struct I need to define a new method
<hightower2> How do I do that?
bjz has joined #crystal-lang
bjz_ has quit [Ping timeout: 260 seconds]
<hightower2> Got it, I was just missing a "include Comparable(...)" line. My working code is https://play.crystal-lang.org/#/r/2a7j
Dreamer3 has quit [Quit: Leaving...]
<oprypin> hightower2, it's not a good practice to extend standard classes. what are you looking to achieve?
<oprypin> and it's done badly as well
<hightower2> Great, would welcome a better approach (code-wise)
<oprypin> approach to what?
<hightower2> The code (the "done badly" part you mentioned)
<hightower2> As for extending standard classes,
<oprypin> well i would like to tell you how to NOT extend standard classes
<oprypin> but ok
<hightower2> Yes, I am about to address that part, the first part above is just code-related
<oprypin> so i'm looking at https://crystal-lang.org/api/master/Range.html and its definition
<hightower2> Regarding extension of standard classes, well, how to do it then? My wish is exactly to add those additional methods to those classes, and if I go to subclass them (to extend my own classes rather than standard ones), I may run into the issue of not being able to subclass, like I ran into with struct Time
<oprypin> why do you want to make Ranges comparable to Int32
<oprypin> like... you could do this but it's still terrible https://play.crystal-lang.org/#/r/2a7r
<oprypin> because we pick out one of the two types arbitrarily. it's unnatural.
<hightower2> oprypin, actually, you are right, I don't need it. What I need actually is to make Int32=== Range behave the same as Range=== Int32, instead of invoking the default implementation of ===, which is ==, which in turn relies on <=>.
<hightower2> But I can't seem to override === properly, and I keep getting the default one which calls ==
<oprypin> hightower2, no but you don't actually need that. what do you need?
A124 has quit [Ping timeout: 240 seconds]
<hightower2> I would like for Int=== Range to call Range.includes?( Int), but I can't find the right way to override ===
A124 has joined #crystal-lang
A124 has quit [Client Quit]
<oprypin> Range === Int not good enough?
<hightower2> I need the === operator to always do the right thing, without me having to check what's a and b in a===b
<hightower2> But I may be onto the place where I need to do it
<FromGitter> <straight-shoota> The case equality operator is by design only on-directional. It makes sens to ask "does an Int32 represent a member of a Range" but not "does a Range represent a member of an Int32". The naming as `===` is misleading as it suggests it would be some special case of the equality operator "==" which is by design bi-directional.
A124 has joined #crystal-lang
<hightower2> Yes, I agree of course with the general statement
<hightower2> Figured it out, had a mistake somewhere which was leading the code into going in using <=>, which wasn't needed
<hightower2> Thanks for the discussion, it helped a lot.
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <krypton97> How can I use crystal as an interpreter?
<FromGitter> <krypton97> I heard that it could be used this way as well
<Papierkorb> You can't.
Qchmqs__ has joined #crystal-lang
<FromGitter> <akzhan> you can retry repl (crystal-ice), or use llvm-jit, but both cases - you cant modify classes/structs etc.
hightower2 has quit [Ping timeout: 240 seconds]
<FromGitter> <akzhan> And llvm-jitting not yet implemented.
hightower2 has joined #crystal-lang
Nephos has joined #crystal-lang
<Nephos> Hello !
<Nephos> I've a question about macro:
<Nephos> How can I declare a macro in a macro ?
<Nephos> (something like https://play.crystal-lang.org/#/r/2a8b )
bjz has joined #crystal-lang
<Nephos> (I've a working but dirty example: https://play.crystal-lang.org/#/r/2a8d)
Qchmqs_ has joined #crystal-lang
Qchmqs__ has quit [Ping timeout: 248 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
<oprypin> Nephos, that's how it's done though. i was even surprised it worked.
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 248 seconds]
<Nephos> Oh
<Nephos> There is no better way ?
<Nephos> (I was surprise too)
<oprypin> no better way
<oprypin> well, you can drop one backslash but not both
<crystal-gh> [crystal] MakeNowJust opened pull request #4652: Introduce '--show-backtrace' to show backtrace on compile error (master...feature/crystal/show-backtrace) https://git.io/vQRxK
fenicks has joined #crystal-lang
hightower2 has quit [Ping timeout: 248 seconds]
hightower2 has joined #crystal-lang
<FromGitter> <rishavs> hi. is there a graphql client for crystal that i can use with Kemal?
<FromGitter> <straight-shoota> http://crystalshards.xyz/?filter=graphql
<FromGitter> <rishavs> thnaks
Nouv has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest79326
Guest79326 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
miketheman has quit [Quit: ZNC - http://znc.in]
Ven_ has joined #crystal-lang
miketheman has joined #crystal-lang
Nouv has quit [Ping timeout: 248 seconds]
<crystal-gh> [crystal] MakeNowJust closed pull request #4652: Introduce '--show-backtrace' to show backtrace on compile error (master...feature/crystal/show-backtrace) https://git.io/vQRxK
Nouv has joined #crystal-lang
<crystal-gh> [crystal] akzhan opened pull request #4653: Math.frexp(value : BigFloat) has native implementation. (master...bigfloat-frexp) https://git.io/vQ0eO
<crystal-gh> [crystal] MakeNowJust closed pull request #4646: String: rename `split` without separator to `words` (master...fix/string/split-without-separator-ranames-words) https://git.io/vQBwt
Qchmqs_ has quit [Quit: Konversation terminated!]
<FromGitter> <faustinoaq> @akzhan Thanks you!
<FromGitter> <faustinoaq> @akzhan Thanks you!
bjz has joined #crystal-lang
bjz_ has quit [Ping timeout: 260 seconds]
Nouv has quit [Ping timeout: 255 seconds]
greengriminal has joined #crystal-lang
Nouv has joined #crystal-lang
<hightower2> Hey folks, whis is this little snippet not working? https://play.crystal-lang.org/#/r/2a8x
<oprypin> hightower2, Array(Bool | Nil) is not and is not a subclass of Array(Nil)
<oprypin> hightower2, working code https://play.crystal-lang.org/#/r/2a8z
<oprypin> unfortunately array literals imply a type right away
<oprypin> which gives me an idea
Nouv has quit [Quit: Nouv]
<oprypin> to generalize #2995 to any literals
<hightower2> Awesome, thanks oprypin
Nephos has quit [Ping timeout: 260 seconds]
Philpax_ has quit [Ping timeout: 255 seconds]
bjz has quit [Quit: Textual IRC Client: www.textualapp.com]
<hightower2> Crystal is wonderful
<crystal-gh> [crystal] MakeNowJust opened pull request #4654: Format: refactor 'asm' formatting (master...fix/crystal-format/4625-asm-refactor) https://git.io/vQ0Jm
bjz has joined #crystal-lang
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nouv has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #4655: Fix '--release' flag place in man page's example (master...fix/man/crystal-build-release) https://git.io/vQ0Ur
<FromGitter> <schoening> crystal 2.2 not working with kemal?
<FromGitter> <schoening> I got a "discovered a bug, please create issue" message
<FromGitter> <bew> 1) 22 ? or 2.23 ?
<FromGitter> <bew> 1) 22 or 0.23 ? ><
Nouv_ has joined #crystal-lang
Nouv has quit [Ping timeout: 255 seconds]
<FromGitter> <sdogruyol> @schoening it should work
<FromGitter> <sdogruyol> @highttower2 yeah!
<FromGitter> <schoening> 1) 3 I mean lol sorry
<FromGitter> <sdogruyol> what's not working
<FromGitter> <sdogruyol> i've successfully compiled Kemal and passed all the specs
bjz has quit [Quit: Textual IRC Client: www.textualapp.com]
bjz has joined #crystal-lang
<FromGitter> <schoening> Ok thats odd. Works fine now. Sorry about that. I got a "too many files open" kind of error previously.
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
AckZ has quit []
Nouv_ has quit [Quit: Nouv_]
Ven has joined #crystal-lang
Ven is now known as Guest28990
Guest28990 has quit [Client Quit]
<FromGitter> <sdogruyol> does Crystal do escape analysis?
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <sdogruyol> Hey everyone i just released Kemal 0.20.0 with Crystal 0.23.0 support https://twitter.com/crystalkemal/status/881231750906740738
thews has quit [Ping timeout: 255 seconds]
thews has joined #crystal-lang
thews has joined #crystal-lang
thews has quit [Changing host]
madgoat has joined #crystal-lang
<hightower2> You da man man :)
madgoat has left #crystal-lang [#crystal-lang]
<FromGitter> <sdogruyol> Thanks :)
greengriminal has joined #crystal-lang
bmcginty has quit [Ping timeout: 260 seconds]
bmcginty has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
<FromGitter> <krypton97> What's Ruby's Devise equivalent in crystal?
<oprypin> you want Flexible authentication solution for Rails with Warden in crystal?
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xiljin has quit [Quit: ...]
onionhammer1 has quit [Ping timeout: 260 seconds]
Ven has joined #crystal-lang
Ven is now known as Guest98263
Guest98263 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang