ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.21.1 | 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
<FromGitter> <redcodefinal> Oh ok. Interesting
<RX14> it's a limitation due to the binary format
<RX14> nil can typically be assigned to Foo | Nil
<FromGitter> <redcodefinal> That's interesting I'll be sure to keep that i mind when using Union types.
<RX14> but Generic(Nil) can't be assigned to Generic(Foo | Nil)
<RX14> thats the difference
<RX14> thats a rough rule of thumb
<RX14> it's a pain but you sometimes have to map(&.as(Foo | Bar)) to get things to work
<RX14> this does change the binary format in memory
<RX14> which is why it'a not automagic
<FromGitter> <redcodefinal> Good to know, ty for the wisdom. I have an interesting issue with Crystal's need to fill every property, getter, setter with a value in initialize. https://play.crystal-lang.org/#/r/1u8w ⏎ If I instantiate `@blocks` in a method called by initialize it is not a happy camper. Compared to this which works? https://play.crystal-lang.org/#/r/1u8x
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
olek_poz has joined #crystal-lang
Guest93082 has joined #crystal-lang
olek_poz has quit [Ping timeout: 260 seconds]
Guest93082 has quit [Remote host closed the connection]
postmodern[m] has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
minus has quit [Quit: Bye]
minus has joined #crystal-lang
<BlaXpirit> redcodefinal, yes, this is the expected, documented behavior
<BlaXpirit> assignment only counts as initialization in initialize method
<BlaXpirit> do `@blocks = make_blocks`
olek_poz has joined #crystal-lang
Raimondi has quit [Read error: Connection reset by peer]
Raimondi has joined #crystal-lang
Qchmqs has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0p0pr37 has joined #crystal-lang
p0p0pr37 has quit [Remote host closed the connection]
p0p0pr37 has joined #crystal-lang
p0p0pr37 has joined #crystal-lang
p0p0pr37_ has joined #crystal-lang
p0p0pr37_ has joined #crystal-lang
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
olek_poz has quit [Ping timeout: 245 seconds]
sandelius has joined #crystal-lang
<sandelius> Great new website!
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olek_poz has joined #crystal-lang
<FromGitter> <picatz> I also like the new website.
<FromGitter> <picatz> It makes everything so *crystal clear*
<FromGitter> <fridgerator> i see what you did there
<jhass> PSA: carc.in is down after it lost network while I tried to dump its DB
<jhass> the VM host is so fucked so I'm currently moving the image to another one
Qchmqs has quit [Ping timeout: 255 seconds]
Ven has joined #crystal-lang
Ven is now known as Guest99305
Guest99305 has quit [Client Quit]
<crystal-gh> [crystal] spalladino opened pull request #4260: Add OpenSSL:DigestIO to wrap an IO while calculating a digest (master...feature/digest_io) https://git.io/vSKJP
<FromGitter> <KCreate> @jhass thanks for informing
olek_poz has quit [Ping timeout: 260 seconds]
<FromGitter> <KCreate> Is the documentation for Slice#move_from (https://crystal-lang.org/api/master/Slice.html#move_from%28source%3Aself%29-instance-method) wrong?
<FromGitter> <KCreate> Is says it truncates the other slice if it doesn't fit, but it throws an IndexError instead...
<jhass> carc.in should be back once DNS expires for you
<jhass> yeah it looks like it's just wrong
<jhass> RX14: you remember anything about that?
<RX14> hmm?
<RX14> oh
<RX14> @KCreate can you give an example?
<RX14> yeah the docs are just wrong here
<RX14> looks like I changed one but not the other
<RX14> oops
<FromGitter> <picatz> lol :P
<jhass> awesome, so I can't manage to get past the captcha at https://developers.google.com/speed/public-dns/cache
<jhass> I'd totally love truncating variants of these btw
<RX14> looks alike a bug
<RX14> if it was a real captcha failure the "i'm not a robot" box would never tick
<FromGitter> <KCreate> I'll open an issue about it
<RX14> "recaptcha failure" just is wrong
<jhass> yeah, it seems to be on ultra high mode too though
olek_poz has joined #crystal-lang
<RX14> well carc.in works for me
<RX14> soo
<FromGitter> <KCreate> yea for me too
<jhass> :)
<jhass> should be a tad faster too now
<RX14> gives me flashbacks of that time where I disabled (actually my account got suspended) cloudflare but forgot to change my DNSSEC
<RX14> everything was working 100% for me
<jhass> next step is rebuilding it on a 64 bit host
<RX14> but everyone kept saying my site was down
<RX14> and I was so confused
<jhass> haha
<RX14> because I had forgotten I even had DNSSEC on
<jhass> I wish cloudflare would push dane more
<FromGitter> <KCreate> Opened an issue for the Slice thing: https://github.com/crystal-lang/crystal/issues/4262
<RX14> wow it's 22C? in early april?
<RX14> what happened to english weather
<FromGitter> <KCreate> 22C in switzerland too :)
<jhass> yeah we had like 23-24 last weekend in berlin and 18-20 again today
<RX14> i've not worn a jumper this month...
<jhass> well wednesday or thursday we were down to like 10 or 8
<RX14> jhass, might want to chip in usecase for truncation here: https://github.com/crystal-lang/crystal/issues/4262
<jhass> granted not using those methods specifically but probably could benefit from it
<jhass> but I think it shows that there are usecases for truncating versions in general
sandelius has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vSKmy
<crystal-gh> crystal/master 3eef15a Ary Borenszweig: IO:::Sized: don't peek underlying IO if read_remaining is zero. Fixes #4261
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<RX14> there have been commits with both ::: and : as namespace seperators today
<FromGitter> <sdogruyol> lol
<RX14> maybe eventually the formatter will get so strict it'll format commit messages :)
<FromGitter> <sdogruyol> wow no
<FromGitter> <sdogruyol> not by default
<RX14> jhass, is that IO wrapper meant to replace multiple times...
<RX14> wait never mind
<RX14> jhass, that gist looks good
<jhass> I mean to argue to case of truncating methods for Slice :P
<jhass> but thanks
<RX14> oh
<RX14> well
<RX14> i like having loads of stream wrappers
<RX14> maybe we'll come up with a netter syntax some day for composing them in-line
<FromGitter> <sdogruyol> what's that supposed to mean
<RX14> some sort of pipelined builder instead of
<RX14> io = IO::Foo.new(io, opt: true)
<RX14> io = IO::Bar.new(io, bar: "foo")
<RX14> etc...
<FromGitter> <sdogruyol> oh i see
<RX14> having a lot of the operations rubyists are used to on String be available on IO is cool
<RX14> cut by size, replace, cut by delimiter
<FromGitter> <sdogruyol> well Rubyists are not used to that kind of operations :P
<FromGitter> <sdogruyol> they just used `String`
<FromGitter> <sdogruyol> not even `StringIO`
<FromGitter> <sdogruyol> lol
<FromGitter> <picatz> Can confirm I only use `String` lol
<FromGitter> <sdogruyol> that's a Rubyist for sure :P
<RX14> using String isn't quite so nice with 4GiB of data :)
<FromGitter> <sdogruyol> yeah that's why parsing csv e.g is really slow in Ruby for people using String :D
<FromGitter> <picatz> ¯\_(ツ)_/¯
olek_poz has quit [Ping timeout: 255 seconds]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]