ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.32.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
alexherbo26 has joined #crystal-lang
alex`` has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo26 is now known as alexherbo2
alex`` has joined #crystal-lang
_ht has quit [Ping timeout: 272 seconds]
_ht has joined #crystal-lang
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
<FromGitter> <636f7374> @wontruefree No i mean i know ysbaddaden has been working hard to make http2 available as soon as possible.
<FromGitter> <636f7374> But, I took a look at the source code, which is a bit tricky, let alone `http3` (`QUIC`).
<FromGitter> <636f7374> I haven't started researching `http2`, the `http3` project has been launched.
<FromGitter> <636f7374> `MITMProxy` already supports `http2`, it doesn't seem to support `http3`?
<FromGitter> <636f7374> TCP Fast Open (`TFO`) feature may break `HTTP::Client`, `HTTP::Server`? I see `Golang` seems to have experienced these.
<FromGitter> <636f7374> Golang#4842 https://github.com/golang/go/issues/4842
<FromGitter> <636f7374> `http3` (`QUIC`) implementation on Haskell looks interesting. 😋 https://github.com/kazu-yamamoto/quic
alex`` has quit [Quit: WeeChat 2.7]
<FromGitter> <636f7374> Actually what I said is double meaning, I also want to say: No one wants to implement `http3` like `ysbaddaden` (implement http2 (https://github.com/ysbaddaden/http2))?
_ht has quit [Ping timeout: 252 seconds]
_ht has joined #crystal-lang
_ht has quit [Remote host closed the connection]
Liothen has quit [*.net *.split]
dannyAAM has quit [*.net *.split]
Yxhuvud has quit [*.net *.split]
asterite has quit [*.net *.split]
jhass has quit [*.net *.split]
oprypin has quit [*.net *.split]
ternarysolo has quit [Ping timeout: 245 seconds]
beepdog has quit [Ping timeout: 246 seconds]
olbat[m] has quit [Ping timeout: 252 seconds]
oprypin has joined #crystal-lang
asterite has joined #crystal-lang
Yxhuvud has joined #crystal-lang
jhass has joined #crystal-lang
Liothen has joined #crystal-lang
dannyAAM has joined #crystal-lang
ur5us_ has joined #crystal-lang
dom96 has quit [Ping timeout: 268 seconds]
dom96 has joined #crystal-lang
ur5us__ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 248 seconds]
_whitelogger has joined #crystal-lang
<ua_> why is there no File#readline :(
<ua_> its actually useful when processing big files you know
<ua_> so you dont have to keep gigabytes of stuff in memory?
<ua_> read_line
<ua_> inherited from IO
<ua_> jesus
<ua_> im starting to wonder if just moving to python/cython is not much better choice
<ua_> than from ruby to crystal
<FromGitter> <yxhuvud> ua: there is also `each_line`
ur5us__ has quit [Ping timeout: 268 seconds]
<repo> ua_: how come?
<repo> because crystal is too similar to ruby without being actually compatible?
<repo> ua_: ruby has grown organically for many many years and is full of aliases and method namings, that were adapted from perl and such. IMO it's totally understandable if crystal doesn't want to load itself with that baggage, and implement things in a way it deems best.
<ua_> ruby syntax similarity is biggest selling point of crystal, that and speed, but if one has to check every single thing because its actually different then one might just as well go to use more mature languages that are different all the wa
<ua_> way
<repo> yes, fair point. but crystal _has_ similar syntax to ruby. It just hasn't a necessary similar stdlib. but that's also not advertised
<repo> *necessarily
<repo> i really like the object orientedness and syntax of both ruby and crystal which is why for me the switch to crystal was obvious.
<repo> on the other hand even though i was a ruby dev for 4+ years and i still have to look up docs for many ruby stdlib methods
<repo> -and
<ua_> i was under the impression that method names fall under the syntax part
<ua_> but ok
<repo> of course not
<ua_> still kinda feels like false advertising
<ua_> syntax but not stdlib should be more emphasized lol
<repo> well.. it is fairly similar still
<repo> chances are stuff just works
<repo> you don't have that with a lot of languages
<repo> but i do understand your frustration
<repo> devdocs is your friend :)
ternarysolo has joined #crystal-lang
beepdog has joined #crystal-lang
olbat[m] has joined #crystal-lang
erdnaxeli has joined #crystal-lang
duane has joined #crystal-lang
<FromGitter> <alex-lairan> Hi guy's ! :) ⏎ ⏎ I have troubles with this Warning : ⏎ ⏎ ```code paste, see link``` ... [https://gitter.im/crystal-lang/crystal?at=5e29a6fa44c076313cd14bb0]
<FromGitter> <Blacksmoke16> The type that implements that method must declare the return type
<FromGitter> <Blacksmoke16> Also, the docs are pretty clear IMO
<FromGitter> <Blacksmoke16> > Have a syntax similar to Ruby (but compatibility with it is not a goal)
<FromGitter> <Blacksmoke16> Just because the syntax is similar doesn't mean it's a clone
<FromGitter> <alex-lairan> I don't understand, forall worked in previous versions
<FromGitter> <Blacksmoke16> Oh sorry, diff warning
<FromGitter> <Blacksmoke16> Could try just removing the type restrictions, since if you're not actually using U in the method it's essentially the same as not having one
duane has quit [Ping timeout: 240 seconds]
<FromGitter> <alex-lairan> So specifying return type on Crystal 0.32+ is not recommanded ?
<FromGitter> <Blacksmoke16> No, might be a bug related to forall as the return type
_whitelogger has joined #crystal-lang
<sorcus> Crystal doesn't have rotate method for Slice?
<FromGitter> <lebogan> Trying to install amber on Ubuntu. ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ got an error about resolving db (~> 0.7.0 ~>0.8.0). Did I miss something? [https://gitter.im/crystal-lang/crystal?at=5e29c557e177666195b677d7]
<FromGitter> <straight-shoota> @lebogan Probably an issue with version restrictions. Amber and its dependencies want different releases of `db`. You might manually edit the version in `shard.yml` to fix this.
<FromGitter> <lebogan> Okay, I'll give it a shot. Thanks
Human_G33k has joined #crystal-lang
<FromGitter> <lebogan> @straight-shoota , after commenting and uncommenting db stuff, it seems like micrate is the culprit. I tried 0.3.0, 0.4.0, 0.5.0. Without it the make works. Hmmm
<FromGitter> <lebogan> @straight-shoota I changed the db version in my local lib/micrate and make worked. shards update still doesn't. Should I be concerned?
duane has joined #crystal-lang
_ht has joined #crystal-lang
duane has quit [Read error: Connection reset by peer]
duane__ has joined #crystal-lang
duane__ has quit [Ping timeout: 268 seconds]
duane has joined #crystal-lang
<FromGitter> <grkek> @Blacksmoke16 would you mind checking out the PR
<FromGitter> <Blacksmoke16> Can when I get home tomorrow night, am out of town for a bit
_ht has quit [Ping timeout: 246 seconds]
_ht has joined #crystal-lang
adam12 has quit [Changing host]
adam12 has joined #crystal-lang
duane has quit [Ping timeout: 268 seconds]
alex` has joined #crystal-lang
alex` is now known as Guest92241
Guest92241 is now known as alex``
duane has joined #crystal-lang
sagax has quit [Read error: Connection reset by peer]
sagax has joined #crystal-lang
<FromGitter> <jwoertink> Question if there's a way to do this. You know when you have a method that returns `Thing?`, then you do `if thing`, and inside that if branch, the compiler knows that it exists? I have a method I'm passing the `thing` in to `if check(thing)`, and in my if branch I have to do `thing = thing.as(Thing)` or call` not_nil!`.
<FromGitter> <jwoertink> Is there another way to do this?
<FromGitter> <tenebrousedge> `try`
<FromGitter> <jwoertink> Right, but I'd have to do it several times.
<FromGitter> <jwoertink> I mean a way to tell the crystal that inside that branch, the object isn't nil without doing the variable reassignment
<FromGitter> <tenebrousedge> `try` or `not_nil!` or nested `if`s are kinda what you have to work with
<FromGitter> <tenebrousedge> at least at runtime
<FromGitter> <tenebrousedge> what are you trying to do?
<FromGitter> <jwoertink> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5e2a0b85f85dba0aab02448b]
<FromGitter> <jwoertink> That's what I have currently which is cool and all, but I had to change it
<FromGitter> <jwoertink> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5e2a0bb3cd53a80aac13515f]
<FromGitter> <jwoertink> but now I have this
<FromGitter> <jwoertink> I guess I could do `if thing && check(thing)` 🤔
<FromGitter> <jwoertink> yeah, I'll do that. Thanks!
<FromGitter> <tenebrousedge> :plus1:
_ht has quit [*.net *.split]
dom96 has quit [*.net *.split]
lvmbdv has quit [*.net *.split]
livcd has quit [*.net *.split]
Flipez has quit [*.net *.split]
coderobe has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
lvmbdv has joined #crystal-lang
dostoyevsky has joined #crystal-lang
<FromGitter> <tenebrousedge> Kai wrote a codewars kata https://www.codewars.com/kata/5e29d57ac6b9af00333abd19 ⏎ It's sorta derivative, but still good
duane has quit [Ping timeout: 268 seconds]
_ht has joined #crystal-lang
coderobe has joined #crystal-lang
Flipez has joined #crystal-lang
dom96 has joined #crystal-lang
ht_ has joined #crystal-lang
_ht has quit [Remote host closed the connection]
ht_ is now known as _ht
_ht has quit [Quit: _ht]
HumanGeek has joined #crystal-lang
Human_G33k has quit [Ping timeout: 260 seconds]
HumanG33k has quit [Ping timeout: 260 seconds]
HumanG33k has joined #crystal-lang
<raz> why did the homepage motto change btw? 'fast as C, slick as ruby" was great.
blackbeard420 has quit [Quit: ZNC 1.7.5 - https://znc.in]
hpyc9 has quit [Quit: ZNC 1.7.5 - https://znc.in]
<raz> "a language for humans and computers" sounds like placeholder text
<raz> like duh, who else would it be for ¯\_(ツ)_/¯
<FromGitter> <tenebrousedge> I would imagine that the speed claims were arguable, and the similarity to Ruby equally so
<raz> yes! that's part of what made it great
<raz> plenty publicity from kids getting their panties in a knot over it on reddit and hn
<FromGitter> <tenebrousedge> personally, I don't approve of trolling, for any purpose
blackbeard420 has joined #crystal-lang
<raz> nothing trolly about, it's the best one-line summary i've heard (and still give!) up to this day
hpyc9 has joined #crystal-lang
<raz> i certainly don't say... "uh yea..um.. so, it's a language for humans and also for computers"
return0e has joined #crystal-lang
Seich has joined #crystal-lang