00:00
hightower2 has quit [*.net *.split]
00:00
notzmv has quit [*.net *.split]
00:00
yxhuvud has quit [*.net *.split]
00:00
ua_ has quit [*.net *.split]
00:00
void09 has quit [*.net *.split]
00:00
olbat has quit [*.net *.split]
00:00
olbat has joined #crystal-lang
00:01
ua_ has joined #crystal-lang
00:01
olbat has quit [Changing host]
00:01
olbat has joined #crystal-lang
00:02
notzmv has joined #crystal-lang
00:02
yxhuvud has joined #crystal-lang
00:02
hightower2 has joined #crystal-lang
00:02
void09 has joined #crystal-lang
01:12
notzmv has quit [Ping timeout: 244 seconds]
03:22
notzmv has joined #crystal-lang
03:35
_ht has joined #crystal-lang
04:52
SamantazFox has joined #crystal-lang
05:00
_ht has quit [Remote host closed the connection]
05:27
ur5us has quit [Ping timeout: 244 seconds]
06:04
ur5us has joined #crystal-lang
07:55
wolfshappen has quit [Ping timeout: 248 seconds]
07:56
wolfshappen has joined #crystal-lang
08:00
wolfshappen has quit [Client Quit]
08:09
wolfshappen has joined #crystal-lang
08:51
ur5us has quit [Ping timeout: 255 seconds]
09:24
raph_ael has joined #crystal-lang
09:30
human_g33k has quit [Ping timeout: 248 seconds]
10:10
Vexatos has quit [Quit: Client Quit]
10:10
Stephie- has quit [Quit: Fuck this shit, I'm out!]
10:14
Stephie has joined #crystal-lang
10:15
Vexatos has joined #crystal-lang
10:34
jmdaemon has quit [Ping timeout: 268 seconds]
11:45
human_g33k has joined #crystal-lang
12:57
<
FromGitter >
<Blacksmoke16> o/
14:19
hightower3 has joined #crystal-lang
14:22
hightower2 has quit [Ping timeout: 252 seconds]
14:56
<
FromGitter >
<RespiteSage> Is there an easy way to determine if a `File` is at end-of-file?
14:57
<
FromGitter >
<Blacksmoke16> `file.peek.try &.empty?`?
14:58
<
FromGitter >
<RespiteSage> I'm deserializing a binary file that has a header and an unknown number of records (it's gridded, but some points may be missing).
14:58
<
FromGitter >
<RespiteSage> Yeah, that's probably the way to go. It's just weird that there's nothing clearer.
14:58
<
FromGitter >
<Blacksmoke16> or do something with `.pos`
14:58
<
FromGitter >
<Blacksmoke16> like if `file.pos == size_of_file` or something like that?
15:00
<
FromGitter >
<RespiteSage> Yeah, that was the other thing I was thinking. I think I'll go with the first one in case we ever decide on a way to send this data over a network (though we'll of course have to wrap it in something that can receive information about whether it's received everything).
15:02
<
FromGitter >
<RespiteSage> I'm checking issues to see if there's a reason why we don't have `File#eof?`.
15:06
<
FromGitter >
<RespiteSage> It seems like the answer is basically "it's inconsistent due to race conditions"
15:07
<
FromGitter >
<RespiteSage> @Blacksmoke16 Thanks for labelling it. :)
15:08
<
FromGitter >
<Blacksmoke16> 👍
15:11
_ht has joined #crystal-lang
15:31
<
raph_ael >
is there a working shell in crystal, like xonsh in python, that can help trying it on daily basis and scripting ? thanks
17:11
<
FromGitter >
<RespiteSage> Is there a better way to get a `Slice(T)` from an `Array(T)` than `arr.to_unsafe.to_slice(arr.size)`?
17:14
notzmv has quit [Ping timeout: 268 seconds]
17:16
<
riza >
not that i've found
17:17
<
FromGitter >
<RespiteSage> Good to know. Thanks!
18:42
jmdaemon has joined #crystal-lang
19:23
notzmv has joined #crystal-lang
19:41
<
FromGitter >
<RespiteSage> You can't do `typeof(non_constant_variable)` at compile-time, right?
20:26
_ht has quit [Remote host closed the connection]
20:54
<
FromGitter >
<Blacksmoke16> like in a macro?
21:22
ur5us has joined #crystal-lang
21:53
<
FromGitter >
<RespiteSage> Yeah, that's what I was thinking. But I thought that macros are evaluated too early.
22:26
<
FromGitter >
<Blacksmoke16> Either way, typeof doesn't work in macros
23:14
<
FromGitter >
<RespiteSage> Gotcha. Thanks!
23:50
Sankalp- has joined #crystal-lang
23:51
Sankalp has quit [Ping timeout: 268 seconds]
23:51
Sankalp- is now known as Sankalp