RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.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
<mps> j8r: thanks for info, will look tomorrow, now I'm upgrading production server so don't have time for it
<FromGitter> <asterite> @aarongodin well, the current fiber will block until the http request finishes. That means that other fibers (that you spawn with `spawn`) can execute while the request is prepared
<FromGitter> <asterite> same with everything else: the fiber where the IO happens blocks, but in the meantime other fibers can run
<FromGitter> <dscottboggs_gitlab> So, I take it then that the `HTTP::Client.get` overloads with a block don't spawn by default?
<FromGitter> <dscottboggs_gitlab> might be something to consider doign
<FromGitter> <dscottboggs_gitlab> So, on the vein of @aarongodin's comments: If you do ⏎ ⏎ ```after the request ⏎ after yielding the fiber``` ⏎ ⏎ ...is there any way to asynchronously perform an HTTP request?? That seems kinda essential... [https://gitter.im/crystal-lang/crystal?at=5c71e5ca1f146304210da40a]
<FromGitter> <dscottboggs_gitlab> shit sorry for the wall of text I'll delete it and post it in the forum
<FromGitter> <dscottboggs_gitlab> @aarongodin https://forum.crystal-lang.org/t/asynchronous-http-requests/466
<FromGitter> <aarongodin> so as I understand it then, if I wanted to run two http requests simultaneously I would be responsible for spawning around each of them
<FromGitter> <dscottboggs_gitlab> ...yeah, apparently even that does not work :(
<FromGitter> <aarongodin> 👀
<FromGitter> <aarongodin> nice write up
<FromGitter> <dscottboggs_gitlab> thanks :)
<FromGitter> <dscottboggs_gitlab> I'm curious, what is the forum built on? Is there a forum engine in crystal yet?
<FromGitter> <fernandes> @dscottboggs_gitlab this is https://www.discourse.org/
<FromGitter> <dscottboggs_gitlab> "Managed forum hosting from $100/month" holy shit that's expensive
<FromGitter> <dscottboggs_gitlab> it's ruby?? how is it not slow??
<FromGitter> <dscottboggs_gitlab> it's rails!
<FromGitter> <fernandes> hi everyone, a question... I'm trying to use HTTP::Client to make a request that accepts gzip... but it's always printing the binary body... I've tried to use `Gzip::Reader`, but no success.. I've looked on specs, and nothing related to requesting a gzip... any idea? ⏎ ⏎ here is a gist showing an example: ⏎ ⏎ https://gist.github.com/fernandes/96c0835d67e305f88b10d7c19c308e98
<FromGitter> <dscottboggs_gitlab> @fernandes I was gonna say that you should do something like https://carc.in/#/r/6cjt but that doesn't seem to be working
<FromGitter> <fernandes> thanks, let me test here
<FromGitter> <fernandes> is retuning this error: body was nil!
<FromGitter> <fernandes> @body="\u001F\u008 but actually it isn't
<FromGitter> <fernandes> I'm just missing something here
<FromGitter> <fernandes> damm I'm so lazy hahah this is your else message
<FromGitter> <fernandes> so yeah, body is nil
<FromGitter> <proyb6> @dscottboggs_gitlab well, the popular dev.to site for programmer and Kickstarter crowd funding also use Rails
<FromGitter> <girng> @dscottboggs_gitlab Yeah, that pricing is nuts
<FromGitter> <girng> I was just curious: https://play.crystal-lang.org/#/r/6cmc/edit why is is the return value adding Unions to my Tuple literal?
<FromGitter> <girng> Example: At the end of the error code: `with types Int64, Tuple(Int64, Int64 | String, Int32 | Int64)`. It should be `Tuple(Int64, String, Int32)`?
<FromGitter> <girng> Hmm. Even when adding type restrictions, the unions still get added: https://play.crystal-lang.org/#/r/6cn5