<FromGitter>
<Blacksmoke16> yea i was using the github one versus the linux one
<FromGitter>
<Blacksmoke16> what should i do with `ENV LIBRARY_PATH=/bdwgc/.libs/`
<FromGitter>
<Blacksmoke16> the build image sets it to something different
<FromGitter>
<Blacksmoke16> or maybe i dont need it?
<FromGitter>
<Blacksmoke16> no i do
ur5us has joined #crystal-lang
livcd has quit [Ping timeout: 260 seconds]
<FromGitter>
<kinxer> @Blacksmoke16 Do you mind if I lift that `assert_error`code (with in-code attribution)?
<FromGitter>
<Blacksmoke16> Sure
<FromGitter>
<kinxer> Excellent. Thanks.
<FromGitter>
<Blacksmoke16> Wonder if you can use some of the test methods the compiler uses, probably be faster
<FromGitter>
<kinxer> I wouldn't mind that. In my case, I only have one macro `raise` to test, so the time isn't such a big deal.
gangstacat has joined #crystal-lang
<FromGitter>
<Blacksmoke16> yea, benefit of having it tested outweighs the extra 5sec or whatever it takes to run
<FromGitter>
<kinxer> Yeah, absolutely.
straight-shoota has quit [Ping timeout: 260 seconds]
<FromGitter>
<watzon> Lol nice work on `saline` @kinxer
<FromGitter>
<watzon> At least one good thing came out of that post
<FromGitter>
<kinxer> Lol. Thanks.
deavmi has quit [Read error: No route to host]
deavmi has joined #crystal-lang
<FromGitter>
<Blacksmoke16> are the tar files published somewhere for nightly builds?
<FromGitter>
<Blacksmoke16> iirc they're in circle build artifacts?
ur5us has left #crystal-lang ["Leaving"]
<FromGitter>
<watzon> Isn't there a method whereby you can use a constant to get around not knowing the type of a generic? For instance, in an initializer I have `@fields = {} of String => Field`, but `Field` is actually a generic type, so I need to provide a type to it.
<FromGitter>
<watzon> I've heard you can use a constant to kind of hack around it, but I've never actually seen it done
<FromGitter>
<Blacksmoke16> Use a parent type
<FromGitter>
<Blacksmoke16> Without a generic
<FromGitter>
<watzon> Like a type that `Field` extends?
<FromGitter>
<Blacksmoke16> Yea
<FromGitter>
<Blacksmoke16> Or a non generic module that your module includes
<FromGitter>
<wontruefree> is there a way to remove a type from a union type?
<FromGitter>
<Blacksmoke16> .as ?
<FromGitter>
<wontruefree> if I have a union type and I run compact removing Nils can I create a new union type that does not have Nil
<FromGitter>
<Blacksmoke16> Use non bang compact
<FromGitter>
<Blacksmoke16> Would need to create a new array without nil, which that would do
<FromGitter>
<watzon> Unfortunately it seems like the base class method won't work very well, unless I move everything that doesn't use the generic into that class
<FromGitter>
<Blacksmoke16> Oh?
<FromGitter>
<Blacksmoke16> Can't use the module approach?
<FromGitter>
<watzon> Crystal isn't able to accurately determine that a field exists
<FromGitter>
<watzon> I still have to try the module approach
<FromGitter>
<watzon> But I assume it will be the same issue
<FromGitter>
<watzon> Lol nvm
<FromGitter>
<watzon> It works, but the class approach doesn't. How weird.
<FromGitter>
<Blacksmoke16> 👍
<FromGitter>
<wontruefree> so there is no way'
<FromGitter>
<Blacksmoke16> im assuming `.as(Array(T))` doesnt work?
<FromGitter>
<Blacksmoke16> could try like `.map &.as(Int32)`
<FromGitter>
<wontruefree> well I want this for a method signature
<FromGitter>
<wontruefree> so how would you write the method signature of `Array.compact`
<FromGitter>
<watzon> Afaik there really isn't a way
<FromGitter>
<watzon> It might help to see the code you're working with though
zorp has quit [Ping timeout: 260 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
<FromGitter>
<Blacksmoke16> @jwaldrip ill look into it thanks
<FromGitter>
<jwaldrip> np
<FromGitter>
<eliasjpr> Hello everyone. Hope that everyone is doing well. ⏎ ⏎ Just wanted to shared a small OAuth2 Provider library for Crystal to implement OAuth2 Servers https://github.com/eliasjpr/authly
<FromGitter>
<eliasjpr> Please feel free to open an issue or contribute with a PR ⏎ Stay safe everyone
<raz>
yep looks great. the first time i look at the readme of an oauth lib and feel like i actually understand how it's meant to work
<FromGitter>
<jwoertink> If you call `GC.prof_stats.heap_size` is that the size in bytes for what's on the heap? Also, the heap is where classes go, right? (as opposed to the stack) I always get those two mixed up
<oprypin>
1. dunno 2. yes
<FromGitter>
<jwoertink> thanks
DTZUZU2 has quit [Ping timeout: 246 seconds]
DTZUZU2 has joined #crystal-lang
_ht has joined #crystal-lang
_ht has quit [Ping timeout: 264 seconds]
<FromGitter>
<Blacksmoke16> oprypin: seems option parser strips the `--` :/
<FromGitter>
<Blacksmoke16> i really dont want to manually parse ARGV, but think i might
<FromGitter>
<jwoertink> Is there anything that will return the path to where you run the crystal command? Like a `__FILE__` or `__DIR__` type thing but gives you the root of the project?
<FromGitter>
<jwoertink> oh, it's `Dir.current` that does what I wanted
<oprypin>
jwoertink, its the dir where you run your executable though
<FromGitter>
<jwoertink> right. That's what I wanted
<oprypin>
there's no root of the project. u might want __DIR__/../..
<FromGitter>
<jwoertink> yeah `Dir.current` gives me what I wanted
<FromGitter>
<watzon> Any idea what the simplest way would be to take a `Slice(UInt8)` and convert it to a `Slice(UInt32)`
<FromGitter>
<watzon> I imagine it would be something with `IO::ByteFormat`