00:00
nvmd has quit [Quit: Later nerds.]
00:20
cole-h has quit [Quit: Goodbye]
00:21
cole-h has joined #zig
00:29
cole-h has quit [Ping timeout: 260 seconds]
00:30
g_w1 has joined #zig
00:44
ur5us has quit [Ping timeout: 240 seconds]
00:46
g-w1 has joined #zig
00:50
g-w1 has quit [Quit: WeeChat 2.3]
00:50
g-w1 has joined #zig
00:54
skrzyp has joined #zig
01:03
skrzyp has quit [Read error: Connection reset by peer]
01:11
zippoh` has joined #zig
01:13
zippoh has quit [Ping timeout: 272 seconds]
01:17
ur5us has joined #zig
01:25
marler8997_ has joined #zig
01:25
marler8997 has quit [Read error: Connection reset by peer]
01:25
g-w1 has quit [Quit: WeeChat 2.3]
01:26
g-w1 has joined #zig
01:46
zandery has joined #zig
02:14
gert_ has quit [Quit: WeeChat 2.9]
02:22
markmm has quit [Remote host closed the connection]
02:23
zandery has quit [Ping timeout: 245 seconds]
02:41
_whitelogger has joined #zig
03:45
Prince213 has joined #zig
03:48
Prince213 has left #zig [#zig]
04:03
marnix has joined #zig
04:04
marnix has quit [Read error: Connection reset by peer]
04:05
mmohammadi981266 has joined #zig
04:05
marnix has joined #zig
04:06
zippoh` has quit [Ping timeout: 260 seconds]
04:07
kristoff_it1 has quit [Ping timeout: 260 seconds]
04:20
cr1901_modern1 has quit [Quit: Leaving.]
04:21
cr1901_modern has joined #zig
04:23
mmohammadi981266 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
04:26
Prince213 has joined #zig
04:31
CodeSpelunker has joined #zig
04:41
waleee-cl has quit [Quit: Connection closed for inactivity]
05:06
CodeSpelunker has quit [Quit: CodeSpelunker]
05:06
ur5us has quit [Ping timeout: 240 seconds]
05:08
frett27 has joined #zig
05:23
haliucinas has quit [Ping timeout: 246 seconds]
05:39
<
daurnimator >
u0jQx9gPyrYg: also `git stash show -p`
05:39
<
daurnimator >
also `git reset -p`
06:11
a_chou has joined #zig
06:14
cole-h has joined #zig
06:16
a_chou has quit [Remote host closed the connection]
06:30
dermetfan has joined #zig
06:31
Astolfo` has joined #zig
06:35
ifreund_ has quit [Quit: killed]
06:35
juanfra__ has quit [Quit: killed]
06:35
alva has quit [Quit: killed]
06:35
bfredl has quit [Quit: killed]
06:35
aterius has quit [Quit: killed]
06:35
deltamaniac[m] has quit [Quit: killed]
06:35
return0e[m] has quit [Quit: killed]
06:35
fengb has quit [Quit: killed]
06:35
Nypsie[m] has quit [Quit: killed]
06:35
BaroqueLarouche has quit [Quit: killed]
06:35
alexnask[m] has quit [Quit: killed]
06:35
Snektron has quit [Quit: killed]
06:35
Bastian[m] has quit [Quit: killed]
06:35
Prince213 has quit [Remote host closed the connection]
06:35
radgeRayden has joined #zig
06:40
haliucinas has joined #zig
06:41
deltamaniac[m] has joined #zig
06:43
radgeRayden_ has joined #zig
06:43
osa1 has joined #zig
06:43
radgeRayden has quit [Ping timeout: 272 seconds]
06:46
mmohammadi981266 has joined #zig
06:49
bfredl has joined #zig
06:49
alexnask[m] has joined #zig
06:49
return0e[m] has joined #zig
06:49
alva has joined #zig
06:49
ifreund_ has joined #zig
06:49
aterius has joined #zig
06:49
juanfra__ has joined #zig
06:49
Bastian[m] has joined #zig
06:49
BaroqueLarouche has joined #zig
06:49
Snektron has joined #zig
06:49
fengb has joined #zig
06:49
Nypsie[m] has joined #zig
06:53
dermetfan has quit [Ping timeout: 272 seconds]
07:01
decentpenguin has quit [Read error: Connection reset by peer]
07:05
decentpenguin has joined #zig
07:35
_whitelogger has joined #zig
07:36
Snektron has joined #zig
07:38
tracernz has joined #zig
08:14
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
08:15
miha has joined #zig
08:15
cole-h has quit [Ping timeout: 260 seconds]
08:24
ur5us has joined #zig
08:44
<
ifreund >
git restore -p
08:50
ur5us has quit [Ping timeout: 260 seconds]
08:56
<
Michcioperz >
the worst part of `git restore` is when you go back to a device that doesn't have a recent version of git on it
08:57
<
ifreund >
idk why I started using it, I still never use git switch
08:58
<
Michcioperz >
i use both and zsh doesn't autocomplete them for me and it's awful
09:26
guan has quit [Ping timeout: 260 seconds]
09:28
guan has joined #zig
09:44
marnix has quit [Ping timeout: 240 seconds]
09:45
marnix has joined #zig
09:48
Astolfo` has quit [Remote host closed the connection]
09:48
Astolfo` has joined #zig
09:54
Kingsquee has quit []
11:10
marnix has quit [Remote host closed the connection]
11:10
marnix has joined #zig
11:11
<
ifreund >
what are the semantics of a pointer to a zero length array?
11:13
dermetfan has joined #zig
11:18
dermetfan has quit [Remote host closed the connection]
11:19
dermetfan has joined #zig
11:30
kristoff_it1 has joined #zig
11:57
xackus has joined #zig
12:15
dermetfan has quit [Ping timeout: 272 seconds]
12:32
dermetfan has joined #zig
13:11
waleee-cl has joined #zig
13:24
msingle has joined #zig
13:25
layneson has joined #zig
13:34
xackus has quit [Read error: Connection reset by peer]
13:35
xackus has joined #zig
14:03
mmohammadi981266 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
14:12
Akuli has joined #zig
14:13
Astolfo` has quit [Quit: Astolfo`]
14:15
frett27 has quit [Ping timeout: 258 seconds]
14:26
supercoven has joined #zig
14:26
supercoven has quit [Max SendQ exceeded]
14:26
supercoven has joined #zig
14:34
miha has quit [Ping timeout: 240 seconds]
14:34
supercoven has quit [Ping timeout: 260 seconds]
14:57
osa1 has quit [Quit: osa1]
14:58
hnOsmium0001 has joined #zig
14:58
osa1 has joined #zig
15:00
<
ifreund >
tdeo: My scanner's now far enough along that I wanted to implement hello-wayland and I immediately hit the dependency loop in xdg-shell
15:01
<
ifreund >
have you looked at fixing this yet? I may give it a go if not
15:01
<
ifreund >
also is there an issue for it? I couldn't find one
15:01
<
tdeo >
i looked for a bit but didn't think of anything
15:01
<
tdeo >
there is an issue, sec
15:02
<
ifreund >
that's a low number
15:02
<
tdeo >
you could have an ugly initGlobalState() function which patches the interface stuff in
15:02
<
tdeo >
as a workaround
15:03
<
tdeo >
it's pretty terrible though
15:03
<
ifreund >
that sounds aweful
15:03
<
ifreund >
I think I'll bash my head against stage1 a bit first
15:04
<
tdeo >
i'll happily answer any questions that i can help with while i'm here
15:04
<
tdeo >
seemed hard to find people to do that with stage1
15:05
<
ifreund >
appreciate it
15:06
<
ifreund >
is there anything that's not in ir.cpp?
15:07
<
tdeo >
analyze.cpp/ir.cpp/codegen.cpp are the main files
15:07
<
tdeo >
codegen.cpp does most of the llvm stuff but analyze.cpp also creates some llvm types
15:08
<
ifreund >
I guess one way to get started would be to make a simple test case and step through it with gdb
15:09
<
tdeo >
i like to break on add_node_error and go up the stack
15:11
tane has joined #zig
15:11
<
tdeo >
i think `const x: *const u8 = @ptrCast(*const u8, &x);` would pass with this working, which is kinda neat
15:12
<
tdeo >
seems like the simplest case
15:14
<
ifreund >
heh, that's weird but I like it
15:51
cole-h has joined #zig
16:19
decentpenguin has quit [Quit: ZNC crashed or something]
16:26
miha has joined #zig
16:31
decentpenguin has joined #zig
16:55
layneson has quit [Ping timeout: 260 seconds]
17:11
decentpenguin has quit [Quit: ZNC crashed or something]
17:26
pjz has joined #zig
17:33
decentpenguin has joined #zig
17:47
miha_ has joined #zig
17:47
miha has quit [Ping timeout: 264 seconds]
17:53
LanceThePants has quit [Read error: Connection reset by peer]
17:55
sawzall has joined #zig
18:07
frett27 has joined #zig
18:12
osa1 has quit [Remote host closed the connection]
18:13
miha has joined #zig
18:14
miha_ has quit [Ping timeout: 256 seconds]
18:32
heitzmann has joined #zig
19:10
THFKA4 has quit [Quit: WeeChat 2.4]
19:13
<
g-w1 >
r¹HD"áъâñ8LH!ãxw.JäóyLÓü=ï¬(ÓKD+J¥R=Ü2æ
¥~í{¼¸ÁWìÌ-lm¢Í ¶6ôUg¢õĭõÄmáËÝ~·ô?Ø'P9ærN,î̒«Ôõ02օ}£¨w ý>Åé¥lDEèC£v5ÓP|æúòXüÞñ)öÖ×I[þ
19:13
<
g-w1 >
ºZÐC©ö£ԩÑ-¶ë«՛c³|>µ
19:13
<
g-w1 >
p±»ÁD¢2$Ù®³B§Uö´ñ2zoÎ(v=IEND®B`
19:14
<
leeward >
Indeed. Well said.
19:14
<
g-w1 >
sorry about that
19:14
* pixelherodev
will now spend thirty minutes attempting to decrypt that encoded message
19:14
<
leeward >
Hah, right, you're actually going to spend the next 7 hours on it. We know.
19:15
<
pixelherodev >
lolnope
19:15
qeeg has quit [Remote host closed the connection]
19:15
qeeg has joined #zig
19:17
<
pjz >
but you'll decrypt it using zig, right? :)
19:22
<
ifreund >
I'm happy that my font handled that
19:22
<
pixelherodev >
mine didn't :P
19:22
<
pixelherodev >
g-w1: dare I ask what that was?
19:23
Sahnvour has joined #zig
19:29
<
g-w1 >
i tried to paste an image into a different server to see what would happen and then the terminal interpreted it as escape codes, switched to zig and pasted it. I have learned my lesson. lol. pixelherodev
19:30
<
ifreund >
so it really was random binary
19:30
<
ifreund >
idk how i didn't get any unicode fallback boxes then
19:31
<
leeward >
Your font is fancier than mine. I got oodles.
19:32
<
radgeRayden_ >
maybe it just skipped all the obviously invalid codes, then you'd only see squares for valid codes that don't exist in your font
19:48
tdc has joined #zig
19:53
<
radgeRayden_ >
mine doesn't have the spaces
19:59
wilsonk has quit [Ping timeout: 260 seconds]
20:02
ur5us has joined #zig
20:14
wilsonk has joined #zig
20:17
wootehfoot has joined #zig
20:31
wootehfoot has quit [Quit: Leaving]
20:33
<
u0jQx9gPyrYg >
i get a 'LLVM ERROR: Unsupported library call operation!' during zig build. but no other info, how can i debug this?
20:33
wilsonk has quit [Ping timeout: 240 seconds]
20:36
wootehfoot has joined #zig
20:39
<
tdeo >
u0jQx9gPyrYg: are you doing stuff with non-power-of-two ints?
20:39
tdc has quit [Ping timeout: 240 seconds]
20:41
<
u0jQx9gPyrYg >
like with u7? no, but i do use a few u256
20:41
kristoff_it1 has quit [Ping timeout: 260 seconds]
20:46
a_chou has joined #zig
20:48
decentpenguin has quit [Quit: ZNC crashed or something]
20:49
<
ifreund >
well, you can always pull out gdb
20:49
wilsonk has joined #zig
20:51
miha has quit [Quit: Konversation terminated!]
20:52
<
tdeo >
u0jQx9gPyrYg: yeah it's probably the u256 actually
20:52
<
tdeo >
even power-of-two but big things are affected
20:52
<
tdeo >
i'll find the issue
20:52
<
tdeo >
ttps://github.com/ziglang/zig/issues/1534
20:59
<
pixelherodev >
I think >u128 is worse than non-power-of-two
20:59
<
pixelherodev >
e.g. u7 usually gets extended to u8 by LLVM, whereas u256 just fails
20:59
<
tdeo >
yeah that was the wrong thing to ask, non-power-of-two is broken in packed structs not for library calls
21:04
marnix has quit [Ping timeout: 256 seconds]
21:15
<
u0jQx9gPyrYg >
actually i do a ` const CreateReq = packed struct {op: ReqType, id: u256, alpha: u256};
21:15
<
ifreund >
hah, mixing u256 and packed structs, wcgw
21:26
a_chou has quit [Ping timeout: 240 seconds]
21:28
a_chou has joined #zig
21:31
decentpenguin has joined #zig
21:37
wootehfoot has quit [Read error: Connection reset by peer]
21:38
<
ifreund >
man stage1 is kind hard to do anything with, I hate C++
21:42
* pixelherodev
nods in complete agreement
21:42
<
pixelherodev >
I need to get some other stuff done today and tomorrow, and then rush ahead with some of next week's work to buy some time, then I'm dumping at least ten hours into CBE next week.
21:43
<
ifreund >
thing is, I want #131 before 0.7.0 so my wayland scanner is actually useful
21:44
<
pixelherodev >
ifreund: you could cheat for that
21:44
<
pixelherodev >
tweak translate-c instead ;)
21:44
<
pixelherodev >
... wait
21:44
<
pixelherodev >
Are you generating from C?
21:44
<
pixelherodev >
Or from XML?
21:44
<
pixelherodev >
Generating Zig, right?
21:44
<
pixelherodev >
Just generate `@as` in there for now
21:44
<
pixelherodev >
That'll get you going for 0.7, and then you can clean it up for, hopefully, 0.8
21:45
dermetfan has quit [Ping timeout: 260 seconds]
21:47
radgeRayden_ has quit [Ping timeout: 246 seconds]
21:48
radgeRayden has joined #zig
21:51
<
ifreund >
I don't think that works?
21:51
<
ifreund >
the problem is recursive dependencies of globals
21:53
radgeRayden has quit [Ping timeout: 272 seconds]
21:54
<
pixelherodev >
wait, what?
21:54
<
pixelherodev >
#131, you said?
21:54
<
pixelherodev >
oh oops
21:54
<
pixelherodev >
I was looking at #137
21:54
* pixelherodev
facepalms
21:58
tane has quit [Quit: Leaving]
22:01
Akuli has quit [Quit: Leaving]
22:12
a_chou has quit [Ping timeout: 240 seconds]
22:29
manikawnth has joined #zig
22:33
<
tdeo >
ifreund: that function seems to only have to do with debug info at least
22:33
<
tdeo >
but maybe "actual" means non-debug-info
22:33
<
manikawnth >
Hi, Can't 1 bit integers be type coerced to bool? `@as(bool, var_u1)` ?
22:34
<
tdeo >
wait, that doesn't sound like it exists
22:34
<
ifreund >
tdeo: mostly just confused by the comment there, as zig has global variables :D
22:34
<
u0jQx9gPyrYg >
so you say, packed structs and u256 doesnt mix? :/ i wanted to unpack a thing sent over the network.
22:35
<
tdeo >
nah, packed structs are just generally buggy and so are ints larger than 128 bits
22:35
<
tdeo >
but nothing specifically about them together i think
22:36
<
ifreund >
yeah i think you're likely just hitting u256 bugs, packed structs should work fine with nice power of two stuff
22:37
<
tdeo >
so any ideas on fixing 131 ifreund?
22:38
<
ifreund >
not really yet :/ I've spent a couple hours reading through stage1 and gaining understanding of how things work
22:38
<
ifreund >
zig's laziness makes things a little complicated
22:38
<
ifreund >
probably need to do the same thing rust did, but I don't see how to implement it yet
22:40
<
tdeo >
i find it pretty weird that this seems so niche that only wayland users cared about it for rust and now zig
22:41
manikawnth has quit [Remote host closed the connection]
22:41
<
ifreund >
you only really run into it if you have some complex interlocking global constants
22:41
<
ifreund >
which doesn't usually come up in non-generated code
22:46
a_chou has joined #zig
22:48
<
ifreund >
I'm off to bed now, don't feel like I've made much progress on #131 today but I now have some vague ideas as to how stage1 works at least
22:56
xackus has quit [Ping timeout: 264 seconds]
23:04
ur5us has quit [Ping timeout: 260 seconds]
23:06
earnestly has quit [Ping timeout: 272 seconds]
23:11
ur5us has joined #zig
23:15
decentpenguin has quit [Quit: ZNC crashed or something]
23:28
a_chou has quit [Remote host closed the connection]
23:28
a_chou has joined #zig
23:29
hazeycode has joined #zig
23:31
decentpenguin has joined #zig
23:37
decentpenguin has quit [Quit: ZNC crashed or something]
23:43
frett27_ has joined #zig
23:44
msingle has quit [Ping timeout: 240 seconds]
23:44
hazeycode has quit [Remote host closed the connection]
23:45
frett27 has quit [Ping timeout: 240 seconds]