<FromGitter>
<paulcsmith> I've been working on some screencasts and an app to host them. I've only got 2 up. More coming soon. Starting with some simple ones and will add some more complex topics soonish :) https://www.crystalmastery.io/episodes
<FromGitter>
<paulcsmith> I've got a few more recorded that need some pretty heavy editing still 🙃
<FromGitter>
<bew> From a method you can use `def meth(cls : T.class) forall T` then use `T` in your macro
<FromGitter>
<bew> Sorry, in your method
<FromGitter>
<bew> From the macro, you can convert a `Path` to a `TypeNode` using `Path#resolve`
<renzhi>
hi, is there a more precise way to calculate memory consumption of an object? All I can think of now is taking GC.stats.total_bytes before and after, what's a better way?
<FromGitter>
<icyleaf> @bew Thanks, let me try it
<FromGitter>
<bew> @renzhi there is `sizeof` to get the size of an object, but it won't get the memory usage of an array or an hash for example
<FromGitter>
<bew> to get a precise memory consumption of the object, you'll have to implement something yourself
<renzhi>
I'm trying to figure out the size of built-in types, and add up when compare with more complex object, but things do not add up quite right :)
<renzhi>
I'll think about it more. thx
<FromGitter>
<icyleaf> @bew works, many thanks
<FromGitter>
<bew> and it probably won't be generic enough :/ it might be interesting to have sth good in stdlib though
<FromGitter>
<bew> @icyleaf nice! have fun ;)
<renzhi>
that's what I think, it would be nice to have something generic and precise in stdlib. It would help with profiling and planning
<FromGitter>
<bew> you forgot `.class` in the method sigature
<FromGitter>
<icyleaf> > .< sorry
<FromGitter>
<bew> ^^
<FromGitter>
<icyleaf> It is my new working with configuration support JSON/YAML/dotenv format, and also mapping to struct support, have nice try: https://github.com/icyleaf/totem
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #crystal-lang
avdi has quit [Ping timeout: 276 seconds]
Majost has quit [Ping timeout: 276 seconds]
confact has quit [Ping timeout: 276 seconds]
avdi has joined #crystal-lang
confact has joined #crystal-lang
Majost has joined #crystal-lang
confact has quit [Changing host]
confact has joined #crystal-lang
confact has joined #crystal-lang
cyberarm has quit [Ping timeout: 260 seconds]
cyberarm has joined #crystal-lang
rohitpaulk has joined #crystal-lang
moei has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
akaiiro has quit [Remote host closed the connection]
<FromGitter>
<hugoabonizio> this is awesome @paulcsmith 🎉
<FromGitter>
<paulcsmith> Thanks :D
<FromGitter>
<paulcsmith> Forgot to mention you can view the source code at https://github.com/paulcsmith/crystal-mastery. It's a pretty simple CRUD app with auth but maybe someone finds it useful
<FromGitter>
<robacarp> Are there two classes named Example?
akaiiro has quit [Remote host closed the connection]
<FromGitter>
<fridgerator> Has anyone had issues connecting services using docker links? Im getting `Socket::Error: No address found for redis:6379 over TCP` where `redis` is a linked service
<FromGitter>
<fridgerator> I saw this in Rancher when deploying, but I can replicate this locally
<FromGitter>
<fridgerator> If I use a local Dockerfile then the link works, but once I switch to using an image pulled from docker hub then I see that error
akaiiro has joined #crystal-lang
<FromGitter>
<paulcsmith> @robacarp Try adding `::` to the type retriction to make sure it is using the one you expect. Maybe there is more than one and it isn't resolving correctly
<FromGitter>
<paulcsmith> Either way I would think that seems like a bug since if it is resolving to a different type than it is printing out, that is also a problem :P
<FromGitter>
<fridgerator> nvmd, I think its related to how sidekiq.cr does its environment variables
rohitpaulk has joined #crystal-lang
<FromGitter>
<fridgerator> seems like there is some weirdness going on with hostname resolution
Jenz has joined #crystal-lang
wontruefree has joined #crystal-lang
alex`` has quit [Ping timeout: 240 seconds]
<robacarp>
https://www.youtube.com/watch?v=SUD9rj0rRxg interspersed amidst the specifics about Rails is a lot of great general advice about contributing and managing open source projects
rohitpaulk has quit [Ping timeout: 264 seconds]
hightower3 has quit [Ping timeout: 276 seconds]
hightower3 has joined #crystal-lang
Jenz has quit [Quit: leaving]
Groogy has joined #crystal-lang
Excureo has joined #crystal-lang
rohitpaulk has joined #crystal-lang
alex`` has joined #crystal-lang
Jenz has joined #crystal-lang
shalmezad has quit [Quit: Leaving]
Jenz has quit [Quit: Lost terminal]
Jenz has joined #crystal-lang
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang
wontruefree has quit [Client Quit]
wontruefree has joined #crystal-lang
duane has quit [Ping timeout: 240 seconds]
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
Jenz has quit [Ping timeout: 260 seconds]
moei has joined #crystal-lang
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang
wontruef_ has joined #crystal-lang
wontruefree has quit [Ping timeout: 244 seconds]
hightower3 is now known as hightower4
<hightower4>
Hey is there a way for HTTP handlers to automatically execute one after another, or a call to call_next is always explicitly needed?
<FromGitter>
<fridgerator> AFAIK if you dont call `call_next` then the request stops there
wontruef_ has quit [Quit: bye]
<FromGitter>
<straight-shoota> yes, a handler has to explicitly forward the context to the next one
wontruefree has joined #crystal-lang
johndescs_ has joined #crystal-lang
johndescs has quit [Ping timeout: 240 seconds]
johndescs_ is now known as johndescs
wontruefree has quit [Quit: this is not the client you are looking for]