<crystal-gh>
[crystal] asterite opened pull request #6024: Don't automatically virtualize two types in the same hierarchy, unless one is deeper than the other (master...feature/dont_virtualize) https://git.io/vp4k5
<FromGitter>
<bew> @asterite is cleaning the issues/pr, people subscribed to the repo who are currently sleeping will have a long morning ^^
<FromGitter>
<bew> @asterite why interface with the linker? the `lib` nodes already gives you the informations needed no? (#5992)
kurko_ has quit [Read error: Connection reset by peer]
kurko_ has joined #crystal-lang
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<FromGitter>
<girng> @j8r i just woke up! i'm back!
bhh has quit [Quit: not here right now...]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
guilleiguaran has joined #crystal-lang
rcdchen has joined #crystal-lang
rcdchen has quit [Client Quit]
<FromGitter>
<girng> i had the weirdest dream about crystal lol
<FromGitter>
<girng> long story short, in highschool there was this really cute girl named Cadey. in my dream, she helped me with `from_json`, but i kept telling her i know how to use it
<FromGitter>
<girng> then, i woke up :D
<FromGitter>
<asterite> bew lib just gets the lib name, like xml, or sqlite, not the path to the shared library. That's the linkers job
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<FromGitter>
<bew> yes, that's what the issue is about iirc, get the list of libs (not their path) used by a crystal program to compile. I think the compile know them as it has to tell the linker what to link, no?
Yxhuvud has quit [Client Quit]
Yxhuvud has joined #crystal-lang
bhh has joined #crystal-lang
That_Guy_Anon1 has joined #crystal-lang
bhh has quit [Client Quit]
bhh has joined #crystal-lang
That_Guy_Anon has quit [Ping timeout: 265 seconds]
<FromGitter>
<Blacksmoke16> is there a crystal version of ruby dig?
<FromGitter>
<Blacksmoke16> also is there a reason why String doesnt include the Indexable methods?
bhh has quit [Quit: not here right now...]
bhh has joined #crystal-lang
bhh has quit [Client Quit]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<FromGitter>
<asterite> bew but sometimes I lib just uses `pkgconfig` or some other command, I'm not sure what you'd like in the output in that case
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
<FromGitter>
<Blacksmoke16> again im ok with the nils, more so just curious
<FromGitter>
<bew> well, that's the output of pretty printing the object, this will always show all ivars, regardless of there value
<FromGitter>
<bew> with JSON.mapping you can specify the default value of an ivar if it's not given in the json, if you need a specific value when it's not given
<FromGitter>
<Blacksmoke16> ah good call
<FromGitter>
<Blacksmoke16> does crystal have a version of ruby's dig?
<FromGitter>
<Blacksmoke16> was looking for one but i didnt see it so going to assume no
<FromGitter>
<Blacksmoke16> oh, well that answers that
<FromGitter>
<Blacksmoke16> my use case was dynamically traversing thru a hash without knowing the keys
<FromGitter>
<bew> why do you need that?
<FromGitter>
<Blacksmoke16> have a workaround in the $ref converter i made so is all good
<FromGitter>
<Blacksmoke16> since the ref is the path to the correct object
<FromGitter>
<Blacksmoke16> i need to parse the path out of the $ref string and navigate to correct obj
<FromGitter>
<bew> if you have the path to the correct object, you have the keys, no?
<FromGitter>
<Blacksmoke16> i have the keys yes but for each ref they could be diff so cant just hardcode it
<FromGitter>
<Blacksmoke16> and/or deeper/higher in the structure
<FromGitter>
<bew> ok now I understand your converter, that's nice! (I just don't know what `ROOT` is, also: you don't need to fo `not_nil!` on the pull parser; and `str =` is useless)
<FromGitter>
<Blacksmoke16> ROOT is the full json doc
<FromGitter>
<Blacksmoke16> i.e. it represents the # which represents the root of the json structure
<FromGitter>
<bew> but how can this be a constant?
<FromGitter>
<bew> what's that function supposed to do?
<FromGitter>
<Blacksmoke16> converts strings like `"/v1/alliances/{alliance_id}/contacts/"` into `"alliances_alliance_contacts"`
<FromGitter>
<Blacksmoke16> looking back it would have prob been easier to just take `"get_alliances_alliance_id_contacts"` and remove the get_ and _id and get same result...
<Yxhuvud>
faustinoaq: hmm, speedof.me reports me as 200 down/70 up, when other reporting tools show both at above 900Mbps.
<Yxhuvud>
jwoertink: Yeah, same
<faustinoaq>
@jwoertink speettest is even slower for me
<FromGitter>
<jwoertink> oh crazy. I guess it just depends on the location of the server doing the test.
<faustinoaq>
I think so
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter>
<jwoertink> Does fast.com work for you?
<faustinoaq>
@jwoertink Yep, it says 9.8mbs, I guess I just need a faster connection, I will try to find one later ;-)
<FromGitter>
<j8r> Just see that slow.com redirects to fast.com lol :-)
<faustinoaq>
lol
<FromGitter>
<jwoertink> lol
<FromGitter>
<jwoertink> Internet connections just suck. I have a fiber line and I'm only pulling down 200 right now. :(
<faustinoaq>
@jwoertink 200 is pretty fast for me lol
<FromGitter>
<jwoertink> Oh yeah, for sure. It's still a great speed in general. It's just the whole bit of if I only get a small portion of what I pay for, can I just only pay for that small portion? lol
<FromGitter>
<jwoertink> On a side note, anyone here know why that websocket handshake commit got reverted?
<FromGitter>
<sdogruyol> @jwoertink broke master
<FromGitter>
<sdogruyol> Needs an update for the new http server interface //cc @straight-shoota
<FromGitter>
<jwoertink> ah. Ok
<FromGitter>
<jwoertink> Just like my favorite show
<FromGitter>
<girng> i have a main rescue for `handle_connection`, but then, if they do catch an error, it then runs a couple methods. for example, if someone disconnected/sent bad info to the game server, the rescue would catch that. then do "handle_game_leave", and handle_game_chat". just to make sure other players who are in a chat room know, that this player disconnected
<FromGitter>
<girng> so it's really important those methods get executed, so putting them on separate fibers would be ok right?
<FromGitter>
<girng> when the fiber returns nothing, it'll get free'd up?
<FromGitter>
<girng> so i don't have to worry about managing em right
illy_ has joined #crystal-lang
illy_ is now known as _illy_
<FromGitter>
<bararchy> @asterite thanks for all the hard work :)
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter>
<yorci> there is any torrent tracker shard?
<FromGitter>
<yorci> looks like not but it will be helpful for build one, thanks @bew
rohitpaulk has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
<FromGitter>
<drum445> gn
rohitpaulk has quit [Ping timeout: 264 seconds]
andrewzah has quit [Quit: ""]
<FromGitter>
<girng> is it normal behavior to call special/important methods in their own fiber
faustinoaq has quit [Quit: IRC client terminated!]
<crystal-gh>
[crystal] asterite opened pull request #6029: Let spec be_a be a macro again (master...bug/5729-spec-be_a-regression) https://git.io/vp4QM