02:38
irc_user has joined #crystal-lang
04:37
notzmv has joined #crystal-lang
04:54
notzmv has quit [Ping timeout: 244 seconds]
05:18
irc_user has quit [Quit: Connection closed for inactivity]
06:14
wolfshappen has quit [*.net *.split]
06:14
jrayhawk has quit [*.net *.split]
06:14
mikko has quit [*.net *.split]
06:17
mikko has joined #crystal-lang
06:17
jrayhawk has joined #crystal-lang
06:17
wolfshappen has joined #crystal-lang
06:18
Sankalp has quit [Ping timeout: 272 seconds]
06:18
wolfshappen has quit [Max SendQ exceeded]
06:18
wolfshappen has joined #crystal-lang
06:31
Sankalp has joined #crystal-lang
07:04
notzmv has joined #crystal-lang
08:15
Sankalp has quit [Ping timeout: 268 seconds]
08:21
Sankalp has joined #crystal-lang
10:12
hightower2 has quit [Ping timeout: 272 seconds]
11:24
hightower2 has joined #crystal-lang
11:42
analogsalad has joined #crystal-lang
11:59
notzmv has quit [Remote host closed the connection]
12:17
hightower2 has quit [Ping timeout: 240 seconds]
12:23
jmdaemon has quit [Ping timeout: 272 seconds]
12:24
notzmv has joined #crystal-lang
13:47
hightower2 has joined #crystal-lang
18:04
_ht has joined #crystal-lang
18:21
notzmv has quit [Ping timeout: 244 seconds]
18:43
analogsalad has quit [Quit: bye]
18:52
_ht has quit [Read error: Connection reset by peer]
19:07
_ht has joined #crystal-lang
19:15
<
FromGitter >
<analogsalad:matrix.org> The syntax looks like a macro definition but it's not in a macro
19:16
<
FromGitter >
<analogsalad:matrix.org> Can anyone explain that syntax?
19:16
<
FromGitter >
<Blacksmoke16> macro code doesnt have to be solely within `macro`
19:16
<
FromGitter >
<Blacksmoke16> can do stuff wherever
19:17
<
FromGitter >
<analogsalad:matrix.org> I see. Is it idiomatic to have macro code like this at the top level?
19:18
<
FromGitter >
<analogsalad:matrix.org> I need to stop procrastinating and get to the macro chapter on your book already.
19:19
<
FromGitter >
<Blacksmoke16> id say there are valid reasons to yes. what that logic is ofc depends on what you're wanting to do
19:21
<
FromGitter >
<analogsalad:matrix.org> I see, so here they are doing something like if it's headless mode, don't register all these routes.
19:22
<
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
19:23
<
FromGitter >
<analogsalad:matrix.org> Gotcha, it's neat.
19:32
<
FromGitter >
<Blacksmoke16>
*everything* :S
19:33
<
FromGitter >
<dscottboggs:matrix.org> oh god
19:33
<
FromGitter >
<Blacksmoke16> hmm
19:34
<
FromGitter >
<Blacksmoke16> sure is yea
19:34
<
FromGitter >
<dscottboggs:matrix.org> so why's it an unexpected token?
19:34
<
FromGitter >
<Blacksmoke16> oh
19:35
<
FromGitter >
<Blacksmoke16> your macro loop there is generating `puts @[AnTest(test: 123)], a, Int32`
19:35
<
FromGitter >
<Blacksmoke16> its not valid syntax at runtime like that
19:35
<
FromGitter >
<dscottboggs:matrix.org> OHHHH
19:35
<
FromGitter >
<dscottboggs:matrix.org> lol ok thanks
19:35
<
FromGitter >
<Blacksmoke16> can prob just call `.stringify` on it
19:36
<
FromGitter >
<dscottboggs:matrix.org> yup that worked
20:03
_ht has quit [Remote host closed the connection]
20:11
cameronr has joined #crystal-lang
20:23
cameronr has quit [Ping timeout: 272 seconds]
21:43
cameronr has joined #crystal-lang
21:43
<
cameronr >
what is the current best practice method of installing Crystal on a Raspberry Pi?
21:43
hightower3 has joined #crystal-lang
21:45
<
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
21:45
<
cameronr >
installing through asdf rather
21:46
hightower2 has quit [Ping timeout: 240 seconds]
22:04
cameronr has quit [Remote host closed the connection]
22:06
cameronr has joined #crystal-lang
22:11
cameronr has quit [Ping timeout: 240 seconds]
22:29
notzmv has joined #crystal-lang
23:06
jmdaemon has joined #crystal-lang