ChanServ changed the topic of #zig to: zig programming language | https://ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
nvmd has quit [Quit: Later nerds.]
cole-h has quit [Quit: Goodbye]
cole-h has joined #zig
cole-h has quit [Ping timeout: 260 seconds]
g_w1 has joined #zig
g_w1 has quit [Quit: The Lounge - https://thelounge.chat]
ur5us has quit [Ping timeout: 240 seconds]
g-w1 has joined #zig
g-w1 has quit [Quit: WeeChat 2.3]
g-w1 has joined #zig
skrzyp has joined #zig
skrzyp has quit [Read error: Connection reset by peer]
zippoh` has joined #zig
zippoh has quit [Ping timeout: 272 seconds]
ur5us has joined #zig
marler8997_ has joined #zig
marler8997 has quit [Read error: Connection reset by peer]
g-w1 has quit [Quit: WeeChat 2.3]
g-w1 has joined #zig
zandery has joined #zig
gert_ has quit [Quit: WeeChat 2.9]
markmm has quit [Remote host closed the connection]
zandery has quit [Ping timeout: 245 seconds]
_whitelogger has joined #zig
Prince213 has joined #zig
Prince213 has left #zig [#zig]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
mmohammadi981266 has joined #zig
marnix has joined #zig
zippoh` has quit [Ping timeout: 260 seconds]
kristoff_it1 has quit [Ping timeout: 260 seconds]
cr1901_modern1 has quit [Quit: Leaving.]
cr1901_modern has joined #zig
mmohammadi981266 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
Prince213 has joined #zig
CodeSpelunker has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
CodeSpelunker has quit [Quit: CodeSpelunker]
ur5us has quit [Ping timeout: 240 seconds]
frett27 has joined #zig
haliucinas has quit [Ping timeout: 246 seconds]
<daurnimator> u0jQx9gPyrYg: also `git stash show -p`
<daurnimator> also `git reset -p`
a_chou has joined #zig
cole-h has joined #zig
a_chou has quit [Remote host closed the connection]
dermetfan has joined #zig
Astolfo` has joined #zig
ifreund_ has quit [Quit: killed]
juanfra__ has quit [Quit: killed]
alva has quit [Quit: killed]
bfredl has quit [Quit: killed]
aterius has quit [Quit: killed]
deltamaniac[m] has quit [Quit: killed]
return0e[m] has quit [Quit: killed]
fengb has quit [Quit: killed]
Nypsie[m] has quit [Quit: killed]
BaroqueLarouche has quit [Quit: killed]
alexnask[m] has quit [Quit: killed]
Snektron has quit [Quit: killed]
Bastian[m] has quit [Quit: killed]
Prince213 has quit [Remote host closed the connection]
radgeRayden has joined #zig
haliucinas has joined #zig
deltamaniac[m] has joined #zig
radgeRayden_ has joined #zig
osa1 has joined #zig
radgeRayden has quit [Ping timeout: 272 seconds]
mmohammadi981266 has joined #zig
bfredl has joined #zig
alexnask[m] has joined #zig
return0e[m] has joined #zig
alva has joined #zig
ifreund_ has joined #zig
aterius has joined #zig
juanfra__ has joined #zig
Bastian[m] has joined #zig
BaroqueLarouche has joined #zig
Snektron has joined #zig
fengb has joined #zig
Nypsie[m] has joined #zig
dermetfan has quit [Ping timeout: 272 seconds]
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #zig
_whitelogger has joined #zig
Snektron has joined #zig
tracernz has joined #zig
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
miha has joined #zig
cole-h has quit [Ping timeout: 260 seconds]
ur5us has joined #zig
<ifreund> git restore -p
ur5us has quit [Ping timeout: 260 seconds]
<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
<ifreund> true
<ifreund> idk why I started using it, I still never use git switch
<Michcioperz> i use both and zsh doesn't autocomplete them for me and it's awful
guan has quit [Ping timeout: 260 seconds]
guan has joined #zig
marnix has quit [Ping timeout: 240 seconds]
marnix has joined #zig
Astolfo` has quit [Remote host closed the connection]
Astolfo` has joined #zig
Kingsquee has quit []
marnix has quit [Remote host closed the connection]
marnix has joined #zig
<ifreund> what are the semantics of a pointer to a zero length array?
dermetfan has joined #zig
dermetfan has quit [Remote host closed the connection]
dermetfan has joined #zig
kristoff_it1 has joined #zig
xackus has joined #zig
dermetfan has quit [Ping timeout: 272 seconds]
dermetfan has joined #zig
waleee-cl has joined #zig
msingle has joined #zig
layneson has joined #zig
xackus has quit [Read error: Connection reset by peer]
xackus has joined #zig
mmohammadi981266 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
Akuli has joined #zig
Astolfo` has quit [Quit: Astolfo`]
frett27 has quit [Ping timeout: 258 seconds]
supercoven has joined #zig
supercoven has quit [Max SendQ exceeded]
supercoven has joined #zig
miha has quit [Ping timeout: 240 seconds]
supercoven has quit [Ping timeout: 260 seconds]
osa1 has quit [Quit: osa1]
hnOsmium0001 has joined #zig
osa1 has joined #zig
<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
<tdeo> yeah :(
<ifreund> have you looked at fixing this yet? I may give it a go if not
<ifreund> also is there an issue for it? I couldn't find one
<tdeo> i looked for a bit but didn't think of anything
<tdeo> there is an issue, sec
<ifreund> that's a low number
<tdeo> you could have an ugly initGlobalState() function which patches the interface stuff in
<tdeo> as a workaround
<tdeo> it's pretty terrible though
<ifreund> that sounds aweful
<ifreund> I think I'll bash my head against stage1 a bit first
<tdeo> i'll happily answer any questions that i can help with while i'm here
<tdeo> seemed hard to find people to do that with stage1
<ifreund> appreciate it
<tdeo> https://github.com/rust-lang/rust/pull/26630 will probably help as a reference
<ifreund> is there anything that's not in ir.cpp?
<tdeo> analyze.cpp/ir.cpp/codegen.cpp are the main files
<tdeo> codegen.cpp does most of the llvm stuff but analyze.cpp also creates some llvm types
<ifreund> cool
<ifreund> I guess one way to get started would be to make a simple test case and step through it with gdb
<tdeo> i like to break on add_node_error and go up the stack
tane has joined #zig
<tdeo> i think `const x: *const u8 = @ptrCast(*const u8, &x);` would pass with this working, which is kinda neat
<tdeo> seems like the simplest case
<ifreund> heh, that's weird but I like it
cole-h has joined #zig
heitzmann has quit [Quit: The Lounge - https://thelounge.chat]
decentpenguin has quit [Quit: ZNC crashed or something]
miha has joined #zig
decentpenguin has joined #zig
layneson has quit [Ping timeout: 260 seconds]
decentpenguin has quit [Quit: ZNC crashed or something]
pjz has joined #zig
decentpenguin has joined #zig
miha_ has joined #zig
miha has quit [Ping timeout: 264 seconds]
LanceThePants has quit [Read error: Connection reset by peer]
sawzall has joined #zig
frett27 has joined #zig
osa1 has quit [Remote host closed the connection]
miha has joined #zig
miha_ has quit [Ping timeout: 256 seconds]
heitzmann has joined #zig
THFKA4 has quit [Quit: WeeChat 2.4]
<g-w1> r¹‘H„D"áъâñ8™LH!Žãxw.•JäóyLÓü€=ï¬(ӆKD+J¥R=Ü2慥~í{‰ž¼¸ÁWìÌ-“lm¢Í ¶6ôUg‡¢õĭõÄmáËÝ~Š·ô?Ø'P9ærŒN,î̒«Ôõ02օ}•£¨w ý>Åé¥lDEèC£Œv5ÓP|æúòœXüÞñ)öÖ×I[þ
<g-w1> ºZÐC©ö£ԩƒÑ-¶‡ë«՛c³|>µ
<g-w1> p±»ÁD¢2$Ù®³•B§Uö´ñ2zoÎ(v”=IEND®B`‚
<leeward> Indeed. Well said.
<g-w1> sorry about that
<leeward> :P
* pixelherodev will now spend thirty minutes attempting to decrypt that encoded message
<pixelherodev> /s
<leeward> Hah, right, you're actually going to spend the next 7 hours on it. We know.
<pixelherodev> lolnope
qeeg has quit [Remote host closed the connection]
qeeg has joined #zig
<pjz> but you'll decrypt it using zig, right? :)
<ifreund> I'm happy that my font handled that
<pixelherodev> mine didn't :P
<pixelherodev> g-w1: dare I ask what that was?
Sahnvour has joined #zig
<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
<pixelherodev> heh
<ifreund> so it really was random binary
<ifreund> idk how i didn't get any unicode fallback boxes then
<leeward> Your font is fancier than mine. I got oodles.
<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
tdc has joined #zig
<ifreund> judge for yourself if you like: https://paste.rs/SjD.png
<radgeRayden_> mine doesn't have the spaces
wilsonk has quit [Ping timeout: 260 seconds]
ur5us has joined #zig
wilsonk has joined #zig
wootehfoot has joined #zig
wootehfoot has quit [Quit: Leaving]
<u0jQx9gPyrYg> i get a 'LLVM ERROR: Unsupported library call operation!' during zig build. but no other info, how can i debug this?
wilsonk has quit [Ping timeout: 240 seconds]
wootehfoot has joined #zig
<tdeo> u0jQx9gPyrYg: are you doing stuff with non-power-of-two ints?
tdc has quit [Ping timeout: 240 seconds]
<u0jQx9gPyrYg> like with u7? no, but i do use a few u256
kristoff_it1 has quit [Ping timeout: 260 seconds]
a_chou has joined #zig
decentpenguin has quit [Quit: ZNC crashed or something]
<ifreund> well, you can always pull out gdb
wilsonk has joined #zig
miha has quit [Quit: Konversation terminated!]
<tdeo> u0jQx9gPyrYg: yeah it's probably the u256 actually
<tdeo> even power-of-two but big things are affected
<tdeo> i'll find the issue
<tdeo> ttps://github.com/ziglang/zig/issues/1534
<pixelherodev> I think >u128 is worse than non-power-of-two
<pixelherodev> e.g. u7 usually gets extended to u8 by LLVM, whereas u256 just fails
<tdeo> yeah that was the wrong thing to ask, non-power-of-two is broken in packed structs not for library calls
marnix has quit [Ping timeout: 256 seconds]
<u0jQx9gPyrYg> actually i do a ` const CreateReq = packed struct {op: ReqType, id: u256, alpha: u256};
<ifreund> hah, mixing u256 and packed structs, wcgw
a_chou has quit [Ping timeout: 240 seconds]
a_chou has joined #zig
decentpenguin has joined #zig
<pixelherodev> Oof
wootehfoot has quit [Read error: Connection reset by peer]
<ifreund> man stage1 is kind hard to do anything with, I hate C++
* pixelherodev nods in complete agreement
<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.
<ifreund> thing is, I want #131 before 0.7.0 so my wayland scanner is actually useful
<pixelherodev> ifreund: you could cheat for that
<pixelherodev> tweak translate-c instead ;)
<pixelherodev> ... wait
<ifreund> huh?
<pixelherodev> Are you generating from C?
<pixelherodev> Or from XML?
<ifreund> xml
<pixelherodev> Generating Zig, right?
<pixelherodev> Just generate `@as` in there for now
<pixelherodev> That'll get you going for 0.7, and then you can clean it up for, hopefully, 0.8
dermetfan has quit [Ping timeout: 260 seconds]
radgeRayden_ has quit [Ping timeout: 246 seconds]
radgeRayden has joined #zig
<ifreund> I don't think that works?
<ifreund> the problem is recursive dependencies of globals
radgeRayden has quit [Ping timeout: 272 seconds]
<pixelherodev> wait, what?
<pixelherodev> #131, you said?
<pixelherodev> oh oops
<pixelherodev> I was looking at #137
* pixelherodev facepalms
<ifreund> heh
tane has quit [Quit: Leaving]
Akuli has quit [Quit: Leaving]
a_chou has quit [Ping timeout: 240 seconds]
manikawnth has joined #zig
<tdeo> ifreund: that function seems to only have to do with debug info at least
<tdeo> but maybe "actual" means non-debug-info
<manikawnth> Hi, Can't 1 bit integers be type coerced to bool? `@as(bool, var_u1)` ?
<tdeo> @intToBool
<tdeo> wait, that doesn't sound like it exists
<ifreund> no
<ifreund> foo == 1
<ifreund> tdeo: mostly just confused by the comment there, as zig has global variables :D
<u0jQx9gPyrYg> so you say, packed structs and u256 doesnt mix? :/ i wanted to unpack a thing sent over the network.
<tdeo> nah, packed structs are just generally buggy and so are ints larger than 128 bits
<tdeo> but nothing specifically about them together i think
<ifreund> yeah i think you're likely just hitting u256 bugs, packed structs should work fine with nice power of two stuff
<tdeo> so any ideas on fixing 131 ifreund?
<ifreund> not really yet :/ I've spent a couple hours reading through stage1 and gaining understanding of how things work
<ifreund> zig's laziness makes things a little complicated
<ifreund> probably need to do the same thing rust did, but I don't see how to implement it yet
<tdeo> i find it pretty weird that this seems so niche that only wayland users cared about it for rust and now zig
<ifreund> heh
manikawnth has quit [Remote host closed the connection]
<ifreund> you only really run into it if you have some complex interlocking global constants
<ifreund> which doesn't usually come up in non-generated code
a_chou has joined #zig
<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
xackus has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 260 seconds]
earnestly has quit [Ping timeout: 272 seconds]
ur5us has joined #zig
decentpenguin has quit [Quit: ZNC crashed or something]
a_chou has quit [Remote host closed the connection]
a_chou has joined #zig
hazeycode has joined #zig
decentpenguin has joined #zig
decentpenguin has quit [Quit: ZNC crashed or something]
frett27_ has joined #zig
msingle has quit [Ping timeout: 240 seconds]
hazeycode has quit [Remote host closed the connection]
frett27 has quit [Ping timeout: 240 seconds]