00:03
<
postmodern >
is there documentation for the static dependencies one needs to install in order to compile static binaries?
00:05
<
FromGitter >
<Blacksmoke16> Just use the alpine docker image
00:05
<
postmodern >
trying to test something on my system (fedora), so tracking down the -static packages
00:07
<
jhass >
ultimately it depends on your program. just link dynamically once and run ldd on the result
00:07
<
FromGitter >
<Blacksmoke16> ofc only need some of those if you're using those features
00:08
<
postmodern >
got it down to -levent and -lcrypto, fedora probably put those somewhere weird
00:10
<
jhass >
crypto is openssl fwiw
00:11
<
postmodern >
looks like no one made a libevent-static package, bummer
00:40
<
postmodern >
is there a flag() macro function that returns a flag value (ex: -Dfoo=bar ... flag(:foo) # => "bar")?
00:46
<
FromGitter >
<tenebrousedge> ^ @postmodern
00:46
<
FromGitter >
<tenebrousedge> @Blacksmoke16 o/
00:51
<
FromGitter >
<Blacksmoke16> Hey
00:51
<
FromGitter >
<Blacksmoke16> Flags don't have values
00:51
<
FromGitter >
<Blacksmoke16> Prob want env vars
01:13
rocx1 has joined #crystal-lang
01:28
<
FromGitter >
<tenebrousedge> @Blacksmoke16 sqlite is weird
01:32
<
FromGitter >
<Blacksmoke16> apparently so :p
01:35
<
FromGitter >
<tenebrousedge> I had no idea that it was loosely typed before today
01:35
<
FromGitter >
<tenebrousedge> it took me a long time to figure out what exactly that meant
01:42
rocx1 has quit [Ping timeout: 260 seconds]
01:47
<
FromGitter >
<Blacksmoke16> dont use it too much so im deff not real familiar with it
01:49
DTZUZU has quit [Read error: Connection reset by peer]
01:51
DTZUZU has joined #crystal-lang
02:09
<
FromGitter >
<Blacksmoke16> TIL `getter? nilable : Bool` doesn't define an ivar too like `getter`
02:13
<
FromGitter >
<Blacksmoke16> nvm i does
02:13
<
FromGitter >
<Blacksmoke16> it*
02:38
deavmi has quit [Ping timeout: 272 seconds]
02:38
deavmi has joined #crystal-lang
02:40
HumanG33k has quit [Remote host closed the connection]
03:07
f1reflyylmao has joined #crystal-lang
03:08
f1refly has quit [Ping timeout: 260 seconds]
03:24
<
FromGitter >
<tenebrousedge> day is done. Bugs are squished. Food is cooked, and nommed. It's time for some vidya games
03:39
deavmi has quit [Ping timeout: 272 seconds]
03:42
deavmi has joined #crystal-lang
04:01
avane has joined #crystal-lang
04:54
wmoxam has joined #crystal-lang
05:11
postmodern has quit [Quit: Leaving]
07:11
<
oprypin >
straight-shoota: yay :> and good; maybe you'll spot some imperfection
10:17
<
FromGitter >
<asterite> Kaia Leahy: what are you playing?
12:22
_whitelogger has joined #crystal-lang
13:10
<
FromGitter >
<HertzDevil> the closest we have is `.each.with_index(1).select { |(w, i)| w.size == i }.map(&.first).to_a`...?
13:12
<
straight-shoota >
@HerzDevil, you didn't need to immediately close your PR. It's just my opinion. Maybe others may find it useful... =)
14:07
f1refly has joined #crystal-lang
14:07
f1reflyylmao has quit [Ping timeout: 272 seconds]
15:53
<
FromGitter >
<tenebrousedge> @asterite I'm replaying Torchlight II
15:54
<
FromGitter >
<tenebrousedge> tay, I think that's all the bugs in sqlite3 that need squished
16:07
deavmi has quit [Ping timeout: 256 seconds]
16:07
deavmi has joined #crystal-lang
16:27
deavmi has quit [Ping timeout: 272 seconds]
16:28
deavmi has joined #crystal-lang
16:32
deavmi has quit [Ping timeout: 240 seconds]
16:43
<
FromGitter >
<Blacksmoke16> oh boy this is a fun bug
16:43
<
FromGitter >
<tenebrousedge> o.o?
16:43
<
FromGitter >
<Blacksmoke16> 😆
16:44
<
FromGitter >
<tenebrousedge> so it's getting the wrong QueryParam ?
16:44
<
FromGitter >
<Blacksmoke16> no idea, the array isnt being created with it in it for some reason
16:44
<
FromGitter >
<tenebrousedge> the disappearing element is fun too
16:44
<
FromGitter >
<Blacksmoke16> ikr?
16:45
<
FromGitter >
<Blacksmoke16> oh interesting, the element comes back if i remove the `of ...` part
16:46
<
FromGitter >
<tenebrousedge> yeah are you sure about that syntax?
16:46
<
FromGitter >
<Blacksmoke16> yea otherwise it errors since its expecting the interface not an `Array(QueryParam)`
16:47
<
FromGitter >
<tenebrousedge> yeah but I expect to be able to do `[] of xxx` or `[param]` but I'm not sure about `[param] of xxx`
16:49
<
FromGitter >
<Blacksmoke16> remember kids, this is why you should avoid generic inheritance :p
16:50
<
FromGitter >
<tenebrousedge> that's pretty crazy
16:50
<
FromGitter >
<naqvis> yeah, language doesn't fully support
*co and contra variance*
16:50
<
FromGitter >
<tenebrousedge> you should have saner bugs
16:50
<
FromGitter >
<Blacksmoke16> holy shit check this out tho
16:51
<
FromGitter >
<naqvis> i guess you should be able to get above snippet working by explicitly casting `param` to parent type
16:51
<
FromGitter >
<Blacksmoke16> theres something in it, it just cant print it ha
16:51
<
FromGitter >
<Blacksmoke16> `arr.size # => 1` sorry
16:51
<
FromGitter >
<tenebrousedge> weeeeeeeeeiiiiird
16:51
<
FromGitter >
<tenebrousedge> pp bug?
16:52
<
FromGitter >
<Blacksmoke16> `puts arr.inspect` displays it
16:52
<
FromGitter >
<Blacksmoke16> i guess so
16:54
<
FromGitter >
<Blacksmoke16> which is
16:54
<
FromGitter >
<tenebrousedge> neat
16:54
<
FromGitter >
<RespiteSage> What's the output of `p! param.to_s`?
16:54
<
FromGitter >
<Blacksmoke16> the `i += 1`
16:54
<
FromGitter >
<Blacksmoke16> `param.to_s # => "Athena::Routing::Params::QueryParam(Int32 | Nil)(@name=\"foo\", @default=10, @incompatibilities=nil, @strict=true, @type=(Int32 | Nil), @has_default=true, @nilable=true, @key=\"foo\", @requirements=nil, @map=false)"`
16:54
<
FromGitter >
<Blacksmoke16> seems normal
16:55
<
FromGitter >
<RespiteSage> Yeah. Weird.
16:56
<
FromGitter >
<RespiteSage> Also, I just missed that line in the original code snippet... Oops.
17:00
<
FromGitter >
<RespiteSage> Wow, that simplified really well.
17:01
<
FromGitter >
<Blacksmoke16> indeed
17:02
<
FromGitter >
<RespiteSage> Seems like an issue with `pp` when printing `Array(T(String | U))`.
17:02
<
FromGitter >
<RespiteSage> At least, when T has the inheritance structure there.
17:03
<
FromGitter >
<Blacksmoke16> that seems to fix it :shrug:
17:04
<
FromGitter >
<Blacksmoke16> or maybe just move the ivar def for `default` and `type` to the children implementations, since those are the only things that its used for
17:04
<
FromGitter >
<RespiteSage> It just seems like it
*should* work.
17:05
<
FromGitter >
<Blacksmoke16> theres a lot of things that
*should* work but just dont in Crystal atm ha
17:05
<
FromGitter >
<Blacksmoke16> luckily theres usually a workaround/alternate solution to get around it for the time being
17:07
deavmi has joined #crystal-lang
17:07
<
FromGitter >
<naqvis> you can use modules but as i said above, you need to be explicit ⏎ `arr = [param.as(ParamInterfaceBase)] of ParamInterfaceBase` should work
17:09
<
FromGitter >
<naqvis> thing is, its mixin, not inheritance, so compiler require some hints (don't quote me on this), but that's my understanding :P
17:23
sagax has quit [Read error: Connection reset by peer]
17:28
<
FromGitter >
<Blacksmoke16> makes sense
17:48
<
FromGitter >
<Blacksmoke16> was able to get it to work by moving the generic to only the concrete type level
17:48
<
FromGitter >
<Blacksmoke16> not super clean but im okay with it for now i guess
18:13
sagax has joined #crystal-lang
20:22
sagax has quit [*.net *.split]
20:22
ua has quit [*.net *.split]
20:22
early has quit [*.net *.split]
20:25
sagax has joined #crystal-lang
20:25
ua has joined #crystal-lang
20:25
early has joined #crystal-lang
20:25
sagax has quit [Max SendQ exceeded]
20:25
FromGitter has quit [Ping timeout: 246 seconds]
20:26
FromGitter has joined #crystal-lang
20:26
iwq has quit [Ping timeout: 264 seconds]
20:27
bougyman has quit [Ping timeout: 264 seconds]
20:27
bougyman has joined #crystal-lang
20:28
iwq has joined #crystal-lang
20:50
sagax has joined #crystal-lang
22:33
<
FromGitter >
<tenebrousedge> cables within and without the desktop are tidied, at least as much as they're going to be without a full teardown
22:33
<
FromGitter >
<tenebrousedge> and it even boots! 😅
22:40
<
FromGitter >
<Blacksmoke16> 👏
22:55
hightower2 has joined #crystal-lang