00:00
<
scientes >
I kinda like @cast, because it simplifies the grammar
00:00
<
scientes >
in #1757
00:02
<
hryx >
same here, I like @cast. I think the thing holding it back (if I remember) is seeing it in action in real code, e.g. the standard library
00:03
ntgg has joined #zig
00:10
kristoff_it has joined #zig
00:15
kristoff_it has quit [Ping timeout: 245 seconds]
00:35
<
andrewrk >
hryx, how about @as ? same thing, just 2 fewer characters
00:37
<
hryx >
I'm down with @as
00:37
<
hryx >
I do like me some fewer characters
00:39
<
hryx >
actually it's nice avoiding the word "cast" because C folks may assume you can do lossy conversion with it
00:43
<
scientes >
oh wow buster was released
00:43
marijnfs has quit [Quit: WeeChat 2.4]
00:44
<
emekankurumeh[m] >
what's buster?
00:44
<
scientes >
Debian 10
00:45
<
emekankurumeh[m] >
i would prefer an infix style cast but, @as is fine
00:52
<
Tetralux >
Try saying that five times fast... at-as
00:54
<
emekankurumeh[m] >
how hard would implenting @reify be?
00:59
<
emekankurumeh[m] >
i'm considering doing a poc implementation to explore some ideas in zig
01:01
kristoff_it has joined #zig
01:01
<
hryx >
having @reify would be truly epic. I would play with implementing codegen-less Protobuf compilation :D
01:03
<
emekankurumeh[m] >
with @reify I think distinct types could be done in userland
01:04
<
andrewrk >
oh my god I can do `zig translate-c windows.h -target x86_64-windows --library c` on linux now
01:05
kristoff_it has quit [Ping timeout: 248 seconds]
01:06
<
emekankurumeh[m] >
I kinda wish translate c output wasn't so "busy"
01:12
<
emekankurumeh[m] >
like if I include windows.h I get thousands of lines of unrelated definitions
01:23
<
ntgg >
is there a function in std to parse a string to a number?
01:25
<
emekankurumeh[m] >
std.fmt.parseInt
01:31
mikdusan has joined #zig
01:52
marijnfs has joined #zig
01:55
marijnfs__ has quit [Ping timeout: 245 seconds]
02:12
kristoff_it has joined #zig
02:15
laaron- has quit [Remote host closed the connection]
02:17
kristoff_it has quit [Ping timeout: 248 seconds]
02:19
laaron has joined #zig
02:35
ntgg has quit [Ping timeout: 248 seconds]
02:46
laaron- has joined #zig
03:23
kristoff_it has joined #zig
03:28
kristoff_it has quit [Ping timeout: 272 seconds]
03:54
laaron has joined #zig
03:57
laaron has quit [Client Quit]
03:58
laaron has joined #zig
04:00
laaron has quit [Client Quit]
04:02
laaron has joined #zig
04:03
laaron has quit [Remote host closed the connection]
04:06
laaron has joined #zig
04:10
<
daurnimator >
fgenesis: I just tested on an instance of irssi and I don't get a notification for it. I think it might be somethign you've configured?
04:10
<
fgenesis >
last time i've touched that config was 10 years ago :B
04:10
laaron has quit [Client Quit]
04:10
<
fgenesis >
i don't think so but whatev, don't mind me
04:11
<
daurnimator >
fgenesis: could you list your highlights?
04:11
<
fgenesis >
hat do you mean
04:11
laaron has joined #zig
04:13
laaron has quit [Remote host closed the connection]
04:16
laaron has joined #zig
04:17
<
daurnimator >
fgenesis: what is the output of `/hilight`
04:17
<
fgenesis >
daurnimator: just my nick, nothing else
04:17
<
fgenesis >
and it's not an
*actual* hilight when the bot does its thing... more like a sneaky BEL in teh background
04:27
ltr- has quit [Quit: leaving]
04:35
kristoff_it has joined #zig
04:37
<
daurnimator >
fgenesis: what is your `beep_msg_level`?
04:40
kristoff_it has quit [Ping timeout: 244 seconds]
04:48
<
daurnimator >
hryx: indeed @reigy would be awesome for things like protobuf
04:48
<
daurnimator >
*reify
04:48
<
daurnimator >
andrewrk: I'm happy with @as
04:56
_whitelogger has joined #zig
05:05
kristoff_it has joined #zig
05:10
kristoff_it has quit [Ping timeout: 272 seconds]
05:26
kristoff_it has joined #zig
05:30
kristoff_it has quit [Ping timeout: 246 seconds]
05:46
kristoff_it has joined #zig
05:48
MH026 has quit [Remote host closed the connection]
05:50
kristoff_it has quit [Ping timeout: 248 seconds]
05:53
rjtobin has quit [Ping timeout: 248 seconds]
06:23
<
torque >
why does the bot send the link title as a notification instead of a standard message anyway
06:24
<
torque >
(and why does it prepend the nick of the person who linked it)
06:33
nrdmn has joined #zig
06:57
<
nrdmn >
good morning! is someone here working with uefi?
06:57
kristoff_it has joined #zig
07:02
kristoff_it has quit [Ping timeout: 268 seconds]
07:29
_whitelogger has joined #zig
07:38
kristoff_it has joined #zig
07:43
kristoff_it has quit [Ping timeout: 246 seconds]
07:53
<
daurnimator >
torque: 1. because someone (in another channel) asked for it to be a notification so that it wouldn't stand out as much. 2. so that you know who's link it was (can get confusing if two people send a link at once).
07:54
<
torque >
that's weird because in general notifications stand out more imo
07:54
<
daurnimator >
seems to depend on client
07:58
kristoff_it has joined #zig
08:03
kristoff_it has quit [Ping timeout: 268 seconds]
08:25
brakmic has joined #zig
08:30
brakmic_ has joined #zig
08:33
brakmic has quit [Ping timeout: 272 seconds]
08:41
_whitelogger has joined #zig
08:49
kristoff_it has joined #zig
08:54
kristoff_it has quit [Ping timeout: 258 seconds]
09:12
lunamn has quit [Ping timeout: 268 seconds]
09:14
lunamn has joined #zig
09:16
MH026 has joined #zig
09:20
kristoff_it has joined #zig
09:21
sammich has quit [Ping timeout: 248 seconds]
09:24
kristoff_it has quit [Ping timeout: 245 seconds]
09:49
kristoff_it has joined #zig
09:54
laaron has joined #zig
10:20
jjido has joined #zig
10:25
marijnfs_ has joined #zig
10:42
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:48
kristoff_it has quit [Ping timeout: 245 seconds]
10:50
jjido has joined #zig
11:01
brakmic_ has quit [Read error: Connection reset by peer]
11:01
brakmic has joined #zig
11:25
kristoff_it has joined #zig
11:29
kristoff_it has quit [Ping timeout: 245 seconds]
11:39
nifker has joined #zig
11:39
nifker was banned on #zig by ChanServ [*!*@x5d835268.dyn.telefonica.de]
11:39
nifker was kicked from #zig by ChanServ [Banned: disrespect !T 1w]
11:48
marijnfs_ has quit [Ping timeout: 252 seconds]
11:50
marijnfs_ has joined #zig
11:59
_whitelogger has joined #zig
12:16
noonien has joined #zig
12:41
ntgg has joined #zig
12:41
Tetralux has quit [Ping timeout: 268 seconds]
12:52
Tetralux_ has joined #zig
12:53
avoidr has quit [Remote host closed the connection]
12:55
Tetralux_ has quit [Client Quit]
12:58
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:03
jjido has joined #zig
13:06
marijnfs_ has quit [Ping timeout: 268 seconds]
13:06
marijnfs_ has joined #zig
13:08
fsateler has quit [Ping timeout: 244 seconds]
13:10
fsateler has joined #zig
13:12
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:14
Ichorio has joined #zig
13:15
very-mediocre has joined #zig
13:17
avoidr has joined #zig
13:17
ntgg has quit [Ping timeout: 245 seconds]
13:26
tgschultz has joined #zig
13:27
kristoff_it has joined #zig
13:30
jjido has joined #zig
13:31
jjido has quit [Client Quit]
13:31
kristoff_it has quit [Ping timeout: 246 seconds]
13:34
jjido has joined #zig
13:40
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:47
jjido has joined #zig
13:47
brakmic has quit [Read error: Connection reset by peer]
13:48
brakmic has joined #zig
14:16
very-mediocre has quit [Read error: Connection reset by peer]
14:29
_whitelogger has joined #zig
14:38
kristoff_it has joined #zig
14:43
kristoff_it has quit [Ping timeout: 245 seconds]
14:47
Akuli has joined #zig
14:59
MH026 has quit [Remote host closed the connection]
15:17
very-mediocre has joined #zig
15:30
andersfr has joined #zig
15:32
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:46
laaron has joined #zig
15:50
kristoff_it has joined #zig
15:55
kristoff_it has quit [Ping timeout: 272 seconds]
15:57
marijnfs_ has quit [Ping timeout: 246 seconds]
16:02
jjido has joined #zig
16:03
andersfr has quit [Remote host closed the connection]
16:10
kristoff_it has joined #zig
16:15
kristoff_it has quit [Ping timeout: 258 seconds]
16:15
very-mediocre has quit [Read error: Connection reset by peer]
16:16
very-mediocre has joined #zig
16:41
kristoff_it has joined #zig
16:45
kristoff_it has quit [Ping timeout: 248 seconds]
17:16
Tetralux has joined #zig
17:16
very-mediocre has quit [Read error: Connection reset by peer]
17:29
laaron has quit [Remote host closed the connection]
17:32
laaron has joined #zig
17:32
kristoff_it has joined #zig
17:36
kristoff_it has quit [Ping timeout: 245 seconds]
17:41
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:56
donpdonp has quit [Remote host closed the connection]
18:12
kristoff_it has joined #zig
18:13
marijnfs_ has joined #zig
18:15
ntgg has joined #zig
18:16
very-mediocre has joined #zig
18:17
kristoff_it has quit [Ping timeout: 244 seconds]
18:18
huuskes has joined #zig
18:19
<
ntgg >
essentially it's only running part of a block of code, sometimes
18:19
<
ntgg >
there is also a chance there is something wrong with my logic, but I can't figure out what that would be
18:20
<
ntgg >
also line 25 should have a ';' at the end
18:25
<
Tetralux >
Wait - the for loop should have a ';' after it??
18:29
<
emekankurumeh[m] >
no?
18:29
<
Tetralux >
I mean - that's what on L25 no?
18:30
<
Tetralux >
Well no - it's the if right
18:30
<
Tetralux >
But still
18:30
<
Tetralux >
Still shouldn't need it.
18:41
<
ntgg >
If I don't have it there is a compiler error
18:41
<
ntgg >
compile error
18:43
<
Tetralux >
That seems wrong.
18:44
<
ntgg >
It's because i'm doing `for (..) thing;`
18:44
<
ntgg >
not `for (..) { thing; }`
18:45
<
ntgg >
the thing is just the if statement
18:48
<
Tetralux >
that sounds like a bug report to me xD
18:49
<
Tetralux >
to me, thats no different than the seicolon here: for (...) {};
18:49
MajorLag has joined #zig
18:52
tgschultz has quit [Ping timeout: 268 seconds]
18:52
MajorLag is now known as tgschultz
18:53
kristoff_it has joined #zig
18:58
kristoff_it has quit [Ping timeout: 272 seconds]
19:00
<
ntgg >
The relevant code would be in main.zig and game_state.zig
19:06
<
via >
i don't feel like EAGAIN should be unreachable in write(). aside from the possibility of nonblocking being set on it, it sometimes happens without that. it seems to be reproducable by just pegging stderr with writes
19:06
<
via >
if it returned an error, i could just deal with it
19:09
<
ntgg >
by the way, figured out the issue
19:10
<
ntgg >
I needed to return State {.Playing = PlayingState.init(..) } instead of just the PlayingState.init(..);
19:10
<
ntgg >
this seems like a compiler bug, especially since it worked sometimes
19:16
very-mediocre has quit [Read error: Connection reset by peer]
19:18
very-mediocre has joined #zig
19:22
avoidr has quit [Quit: leaving]
19:24
avoidr has joined #zig
19:27
Akuli has quit [Quit: Leaving]
19:29
rjtobin has joined #zig
19:32
marijnfs_ has quit [Ping timeout: 252 seconds]
19:34
marijnfs_ has joined #zig
19:48
ntgg has quit [Ping timeout: 268 seconds]
19:49
laaron- has joined #zig
19:54
kristoff_it has joined #zig
19:59
kristoff_it has quit [Ping timeout: 244 seconds]
20:04
ntgg has joined #zig
20:16
very-mediocre has quit [Read error: Connection reset by peer]
20:18
very-mediocre has joined #zig
20:18
jjido has joined #zig
20:18
very-mediocre has quit [Client Quit]
20:18
andersfr has joined #zig
20:19
brakmic has quit []
20:20
ntgg has quit [Ping timeout: 248 seconds]
20:22
andersfr has quit [Client Quit]
20:25
Tetralux has quit [Ping timeout: 268 seconds]
20:33
andrewrk has quit [Ping timeout: 246 seconds]
21:00
Tetralux has joined #zig
21:06
kristoff_it has joined #zig
21:07
Ichorio has quit [Ping timeout: 250 seconds]
21:10
kristoff_it has quit [Ping timeout: 258 seconds]
21:12
andrewrk has joined #zig
21:29
<
emekankurumeh[m] >
`zig fmt` is randomly truncating my files
21:34
<
emekankurumeh[m] >
i found the issue: i had `async pub` instead of `pub async` i don't think that should cause zig fmt to delete my entire file
21:38
Sahnvour has joined #zig
21:40
<
Tetralux >
That.. seems like the exact reason I don't use fmt tools xD
21:43
<
emekankurumeh[m] >
andrewrk: is SegmentedList thread-safe?
21:57
kristoff_it has joined #zig
22:01
kristoff_it has quit [Ping timeout: 248 seconds]
22:09
<
hspak >
is there a way to convert [4]u8 to a u32?
22:10
<
Tetralux >
Maybe mem.readInt and friends?
22:10
ltriant has joined #zig
22:11
<
hspak >
I'll try that, thanks
22:12
<
Tetralux >
Specifically: const v = mem.readIntNative(u32, array);
22:13
<
Tetralux >
There's also writeIntNative for the opposite operation.
22:14
<
hspak >
I'm seeing > expected type '*const [4]u8', found '[]u8' -- do I need another cast op to make it happy? I'm passing in a slice, e.g foo[1..5]
22:15
<
emekankurumeh[m] >
try mem.readIntSlice
22:15
<
Tetralux >
If you have a slice, there's: mem.readIntSliceNative(type, slice) T
22:16
<
Tetralux >
It asserts you have at least the number of bytes needed at runtime.
22:17
<
hspak >
woot, that worked, thanks Tetralux
22:17
kristoff_it has joined #zig
22:19
marijnfs_ has quit [Ping timeout: 246 seconds]
22:22
kristoff_it has quit [Ping timeout: 258 seconds]
22:50
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:08
mikdusan has quit [Quit: WeeChat 2.3]
23:29
ltriant has quit [Ping timeout: 268 seconds]
23:39
ntgg has joined #zig
23:44
ltriant has joined #zig
23:50
ntgg has quit [Ping timeout: 248 seconds]
23:56
mikdusan has joined #zig