ifreund changed the topic of #river to: river - a dynamic tiling wayland compositor - https://github.com/ifreund/river - channel logs: https://freenode.irclog.whitequark.org/river/
lyhokia has joined #river
lyhokia has quit [Ping timeout: 240 seconds]
lyhokia has joined #river
lyhokia has quit [Ping timeout: 240 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
leon-p has joined #river
gspe has joined #river
<novakane[m]> oh your PR is merged in zig, nice work, that's a good thing on the road of river first release :)
maringuu has quit [Ping timeout: 250 seconds]
maringuu has joined #river
waffle_ethics has quit [Read error: Connection reset by peer]
waffle_ethics has joined #river
<novakane[m]> btw is there a lot of breaking changes in river moving to zig 0.8?
yyp has joined #river
<ifreund> not a ton, mostly just some minor std changes
<ifreund> language changes have been pretty light as the focus has been on the self hosted compiler
<novakane[m]> alright cool
<ifreund> there is new std.fmt API that will be very nice to use in zig-wayland
<ifreund> that's probably the biggest thing I want to change
<ifreund> also need to update zig-wlroots to *not* use sentinel-terminated arrays in some places (e.g. output name) and instead use a normal array with std.mem.sliceTo()
<novakane[m]> I didn't follow what's std.fmt was useful for, the scanner I guess
<ifreund> yep, the scanner does a lot of formatting and is currently super messy
<novakane[m]> but I saw the other PR it looks like a great addition
<ifreund> for the fmt stuff, see the test cases in this PR: https://github.com/ziglang/zig/pull/6411
<ifreund> I also intend to move the casing handling to the new std.fmt.Formatter() pattern
<novakane[m]> ah thanks that's what I was looking for
<ifreund> which would be a great contributor friendly issue if anyone wants to tackle it :P
<novakane[m]> well I'm interested in all 'easy' contribution where I can write more zig :P
<ifreund> someone's already done the work to update zig-wayland to 0.8.0 for the breaking changes: https://github.com/ifreund/zig-wayland/pull/20
<ifreund> so if you wanted to get started before zig 0.8.0 releases in 2-3 weeks you could :D
<novakane[m]> well time to learn std.fmt then :P
<ifreund> nice, the test cases are usually the best way to see how everything works
<novakane[m]> yeah I love zig but I can't wait to have a proper doc
<ifreund> at the end I think it should look like writer.print("{[foobar]}blah blah{[barfoo]}\n", .{snakeCase(foobar), titleCase(barfoo)});
<ifreund> where snakeCase() and titleCase() return std.fmt.Formatter() types
<ifreund> see std.fmt.fmtSliceHexLower() for an example of that
<ifreund> oops, that example was wrong, should be writer.print("{[foobar]}blah blah{[barfoo]}\n", .{.foobar = snakeCase(foobar), .barfoo = titleCase(barfoo)});
<novakane[m]> alright thanks I'll look into it
<novakane[m]> so should I start from the zig-wayland PR for Zig 0.8?
<ifreund> Yeah you can start off that branch. I can also move it to a branch in the zig-wayland repo
<ifreund> I'll do that, will be less of a headache to work with
<novakane[m]> yeah thanks
<ifreund> novakane[m]: alright, the next-zig branch of zig-wayland builds and passes all tests on zig master, you should be good to go
<ifreund> let me know if you run into any issues
<novakane[m]> ifreund: nice, thank you
yyp has quit [Remote host closed the connection]
leon-p has quit [Ping timeout: 265 seconds]
leon-p has joined #river
waleee-cl has joined #river
gspe has quit [Quit: gspe]
gspe has joined #river
yyp has joined #river
waleee-cl has quit [Quit: Connection closed for inactivity]
yyp has quit [Remote host closed the connection]
leon-p has quit [Quit: leaving]
waleee-cl has joined #river
gspe has quit [Quit: gspe]