ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
irc_user has joined #crystal-lang
notzmv has joined #crystal-lang
notzmv has quit [Ping timeout: 244 seconds]
irc_user has quit [Quit: Connection closed for inactivity]
wolfshappen has quit [*.net *.split]
jrayhawk has quit [*.net *.split]
mikko has quit [*.net *.split]
mikko has joined #crystal-lang
jrayhawk has joined #crystal-lang
wolfshappen has joined #crystal-lang
Sankalp has quit [Ping timeout: 272 seconds]
wolfshappen has quit [Max SendQ exceeded]
wolfshappen has joined #crystal-lang
Sankalp has joined #crystal-lang
notzmv has joined #crystal-lang
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp has joined #crystal-lang
hightower2 has quit [Ping timeout: 272 seconds]
hightower2 has joined #crystal-lang
analogsalad has joined #crystal-lang
notzmv has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 272 seconds]
notzmv has joined #crystal-lang
hightower2 has joined #crystal-lang
_ht has joined #crystal-lang
notzmv has quit [Ping timeout: 244 seconds]
analogsalad has quit [Quit: bye]
_ht has quit [Read error: Connection reset by peer]
_ht has joined #crystal-lang
<FromGitter> <analogsalad:matrix.org> I was browsing invidious today and this caught my attention: ⏎ ⏎ https://github.com/iv-org/invidious/blob/master/src/invidious.cr#L332
<FromGitter> <analogsalad:matrix.org> The syntax looks like a macro definition but it's not in a macro
<FromGitter> <analogsalad:matrix.org> Can anyone explain that syntax?
<FromGitter> <Blacksmoke16> macro code doesnt have to be solely within `macro`
<FromGitter> <Blacksmoke16> can do stuff wherever
<FromGitter> <analogsalad:matrix.org> I see. Is it idiomatic to have macro code like this at the top level?
<FromGitter> <analogsalad:matrix.org> I need to stop procrastinating and get to the macro chapter on your book already.
<FromGitter> <Blacksmoke16> id say there are valid reasons to yes. what that logic is ofc depends on what you're wanting to do
<FromGitter> <analogsalad:matrix.org> I see, so here they are doing something like if it's headless mode, don't register all these routes.
<FromGitter> <Blacksmoke16> it's checking for a build flag. so if you did like `crystal build -Dapi_only app.cr`, it would exclude all the HTML/UI routes
<FromGitter> <analogsalad:matrix.org> Gotcha, it's neat.
<FromGitter> <dscottboggs:matrix.org> what am i doing wrong (https://carc.in/#/r/dfz0)
<FromGitter> <Blacksmoke16> *everything* :S
<FromGitter> <dscottboggs:matrix.org> oh god
<FromGitter> <Blacksmoke16> hmm
<FromGitter> <dscottboggs:matrix.org> ```@[AnTest] ⏎ @a : Int32``` ⏎ ⏎ Isn't that how you annotate an ivar? [https://gitter.im/crystal-lang/crystal?at=62d06fa9ab6b634f7320a79b]
<FromGitter> <Blacksmoke16> sure is yea
<FromGitter> <dscottboggs:matrix.org> so why's it an unexpected token?
<FromGitter> <Blacksmoke16> oh
<FromGitter> <Blacksmoke16> your macro loop there is generating `puts @[AnTest(test: 123)], a, Int32`
<FromGitter> <Blacksmoke16> its not valid syntax at runtime like that
<FromGitter> <dscottboggs:matrix.org> OHHHH
<FromGitter> <dscottboggs:matrix.org> lol ok thanks
<FromGitter> <Blacksmoke16> can prob just call `.stringify` on it
<FromGitter> <dscottboggs:matrix.org> yup that worked
_ht has quit [Remote host closed the connection]
cameronr has joined #crystal-lang
cameronr has quit [Ping timeout: 272 seconds]
cameronr has joined #crystal-lang
<cameronr> what is the current best practice method of installing Crystal on a Raspberry Pi?
hightower3 has joined #crystal-lang
<cameronr> Normally I'd use Docker, but there's no ARM image available. And asdf doesn't seem to play well with the Pi either
<cameronr> installing through asdf rather
hightower2 has quit [Ping timeout: 240 seconds]
cameronr has quit [Remote host closed the connection]
cameronr has joined #crystal-lang
cameronr has quit [Ping timeout: 240 seconds]
notzmv has joined #crystal-lang
jmdaemon has joined #crystal-lang