<crystal-gh>
[crystal] Sija opened pull request #4179: Fix broken repo detection in docs (by yours truly) (master...followup-to-pr-4132) https://git.io/vSvfH
fenicks has left #crystal-lang [#crystal-lang]
<FromGitter>
<Zhomart> Hi, is it possible to check method signature using `responds_to?`, e.g. `MyClass.responds_to?(:read, Int32)`?
<FromGitter>
<Sija> nope, u can do `obj.responds_to?(:read) && (v = obj.read).is_a?(Int32)` though
<FromGitter>
<Zhomart> Omg finally fixed it. I was writing `def read(t : Int32.class | Nil.class) : Int32 | Nil`. ⏎ But correct version is `def read(t : Union(Int32 | Nil).class) : Int32 | Nil` :shipit:
<FromGitter>
<Sija> or `Int32?.class` :)
<FromGitter>
<Zhomart> Oh, I've several times seen people writing `::Union(Int32 | Nil)` instead of `Int32?`. I was thinking may be that is standard way of doing it..
<FromGitter>
<Sija> nope, it’s just longer
shadowshell has quit [Quit: Connection closed for inactivity]
<FromGitter>
<KCreate> Hey @faustinoaq! Great work! I'm really interested in loading dynamic libraries via crystal as well so I really appreciate your effort on that
akwiatkowski has joined #crystal-lang
Qchmqs has joined #crystal-lang
mark_66 has joined #crystal-lang
<FromGitter>
<bew> @sevk this is ruby code, you don't need a library to do ffi in Crystal, it's already in the language:
<crystal-gh>
[crystal] ysbaddaden closed pull request #4167: Fix: select generic ARM C bindings when target triple is armv6, armv7l, ... (master...fix-arm-target-triple) https://git.io/vyFBY
<txdv>
damn it
<txdv>
i already wrote hi an email on why shit is not working
<txdv>
i just clicked on the link tha appeared in google
<txdv>
turns out google is missing a dash!
<FromGitter>
<crisward> <txdv> Shove a redirect in there and problem solved.
<FromGitter>
<crisward> Nice article BTW, not looked at kemalyst, like to roll my own stuff too much. Interesting to see how they've solved similar problems though.
<txdv>
are you blazin your own rolled stuff?
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 240 seconds]
<FromGitter>
<sdogruyol> @crisward thanks for the article just seen it
<FromGitter>
<sdogruyol> where did you see the article
<RX14>
it contains description of go's goroutine memory model
<RX14>
and other interesting stuff too
<FromGitter>
<sdogruyol> thanks
<FromGitter>
<jwoertink> Has anyone had any issues with speed using `HTTP::Client.post`?
<FromGitter>
<jwoertink> I need to do some more benchmarking, but I have this ruby api that's running way faster than my crystal one (in release mode), but I'm not sure why just yet
<crystal-gh>
[crystal] bcardiff pushed 1 new commit to master: https://git.io/vSJUb
<crystal-gh>
crystal/master 3f183a6 Brian J. Cardiff: Fix crystal_repo matching...
<FromGitter>
<sdogruyol> uhm
<FromGitter>
<sdogruyol> @jwoertink are you using a single `HTTP::Client`
<RX14>
it looks like large-n fibers works, it's just 4x less memory efficient compared to go
<FromGitter>
<mverzilli> and if you search the issue tracker, you'll notice a lot of issues on the topic
akwiatkowski has quit [Ping timeout: 260 seconds]
<FromGitter>
<jwoertink> oh wow. Thanks @mverzilli! That makes sense then. I'm building out a little sample test right now to see if it really is crystal being weird, or if it's just me. (hoping it's me).
<FromGitter>
<jwoertink> I'll try using an IP too with this
<RX14>
I feel like trying out fibers with 64gb of ram...
bjz has joined #crystal-lang
<FromGitter>
<jwoertink> Well, my initial test shows that the call averages 450ms in Kemal, but only 200ms in Sinatra. I can't try using an IP because of the SSL cert.
<RX14>
wow, scaleway is cheap, 64gb ram vps for 1/5th the price of digitalocean...
<FromGitter>
<jwoertink> wow. I had never heard of them, but that is pretty decent