<FromGitter>
<incognitorobito> Hi all, I want to check if the type used to initialize my class is comparable β Would that just be T.is_a?(Comparable) or should I use responds_to just check that the methods I need are there?
<FromGitter>
<3n-k1> is there a crystal library for runtime-configured plugins, or do i have to load the so and grab a fn pointer manually?
duane has quit [Ping timeout: 246 seconds]
Andriamanitra has joined #crystal-lang
<Andriamanitra>
how do i check or is it even possible to check if ARGF got anything to read? ideally i would like both "cat input.txt | my_program" and "my_program input.txt" to do work on ARGF but "my_program" should do something else (maybe print a helpful message about usage)
<Andriamanitra>
the api docs don't really list the methods for ARGV object
<FromGitter>
<HertzDevil> `ARGV` is an `Array(String)`
<Andriamanitra>
ARGF i mean but i guess the same is true for argv too :p
<Andriamanitra>
oh i should be looking at IO methods?
<Andriamanitra>
got it, i'm stupid
<Andriamanitra>
(ok i read through the methods and source code in argf.cr, still can't figure it out, i guess i'll have to manage without helpful messages)
postmodern has quit [Quit: Leaving]
<FromGitter>
<3n-k1> event doesn't have that method, but the subclass does
<FromGitter>
<3n-k1> oh wait, ignore me
<FromGitter>
<3n-k1> i was scrolled way far up lol
sorcus has quit [Ping timeout: 264 seconds]
sorcus has joined #crystal-lang
sorcus has quit [Quit: WeeChat 2.9]
sorcus has joined #crystal-lang
<FromGitter>
<ImAHopelessDev_gitlab> hello
<FromGitter>
<ImAHopelessDev_gitlab> happy december first
<FromGitter>
<tenebrousedge> same atcha
<FromGitter>
<ImAHopelessDev_gitlab> just got off work, it's crystal time baby!!
<FromGitter>
<tenebrousedge> yay!
<FromGitter>
<tenebrousedge> π
<FromGitter>
<ImAHopelessDev_gitlab> :ruby:
<FromGitter>
<ImAHopelessDev_gitlab> π
<FromGitter>
<ImAHopelessDev_gitlab> opening up notepad++ with crystal code, and waiting on a doordash order for food. life can't get better
<FromGitter>
<tenebrousedge> spacevim :plus1:
<FromGitter>
<tenebrousedge> what noms are you nomming?
<FromGitter>
<ImAHopelessDev_gitlab> jack in the box. value fries and jumbo jack
<FromGitter>
<tenebrousedge> cool
<FromGitter>
<tenebrousedge> oh shit it's Advent of Code
<FromGitter>
<ImAHopelessDev_gitlab> ary on it
<erdnaxeli>
does people are doing it on crystal and share their solutions?
<FromGitter>
<Blacksmoke16> @incognitorobito no `is_a?` would be how you do it
<erdnaxeli>
it's always a good way to learn
<FromGitter>
<ImAHopelessDev_gitlab> learning? what's dat
<kevinsjoberg>
erdnaxeli: I was thinking of writing an optimised solution where I subtract one of the pairs, but I decided not to pursue it given how small the actual puzzle input was.
<erdnaxeli>
yep the input is really small
<kevinsjoberg>
@Dan-Do when did they release that? Just now? Look slick!
<FromGitter>
<RespiteSage> Is there a Crystal leaderboard for AoC?
<FromGitter>
<tenebrousedge> oh do we do leaderboards for AoC?
<FromGitter>
<RespiteSage> Who can say? :P It's my first year trying to do AoC as the puzzles come out. I thought there was a Crystal leaderboard or something last year, but I might be misremembering.
<erdnaxeli>
there can be private leaderboard, accessible with a code
<erdnaxeli>
we could do a crystal one and share the code here
<erdnaxeli>
IΒ don't know if there is a user count limit
Xeago_ has joined #crystal-lang
Xeago has quit [Read error: Connection reset by peer]