ChanServ changed the topic of #river to: river - a dynamic tiling Wayland compositor || https://codeberg.org/river/river || channel logs: https://libera.irclog.whitequark.org/river/
twelve has joined #river
palanix_ has joined #river
palanix has quit [Ping timeout: 272 seconds]
palanix_ is now known as palanix
palanix_ has joined #river
palanix has quit [Ping timeout: 265 seconds]
palanix_ is now known as palanix
haliucinas has quit [Quit: .]
haliucinas has joined #river
twelve has quit [Ping timeout: 245 seconds]
sentry has joined #river
Snetry has quit [Ping timeout: 248 seconds]
palanix_ has joined #river
palanix has quit [Ping timeout: 276 seconds]
palanix_ is now known as palanix
gera has quit [Quit: gera]
gera has joined #river
dagle has quit [Quit: WeeChat 4.6.3]
twelve has joined #river
twelve has quit [Remote host closed the connection]
d34db33f has quit [Remote host closed the connection]
pinpoxIRC has joined #river
palanix has quit [Ping timeout: 244 seconds]
palanix has joined #river
Ireozar has quit [Read error: Connection reset by peer]
Ireozar has joined #river
twelve has joined #river
palanix_ has joined #river
palanix has quit [Ping timeout: 248 seconds]
palanix_ is now known as palanix
flower_ has joined #river
eoli3n has quit [Remote host closed the connection]
haliucinas has quit [Quit: .]
haliucinas has joined #river
twelve has quit [Ping timeout: 276 seconds]
twelve has joined #river
fitrh has joined #river
eoli3n has joined #river
twelve has quit [Ping timeout: 252 seconds]
fitrh has quit [Ping timeout: 272 seconds]
fitrh has joined #river
fitrh has quit [Ping timeout: 272 seconds]
andyrtr has quit [Quit: ZNC 1.10.0 - https://znc.in]
andyrtr has joined #river
palanix_ has joined #river
palanix has quit [Ping timeout: 272 seconds]
palanix_ is now known as palanix
catman has joined #river
fitrh has joined #river
fitrh has quit [Remote host closed the connection]
fitrh has joined #river
Keeto has joined #river
fitrh has quit [Remote host closed the connection]
fitrh has joined #river
bitblt_ has joined #river
bitblt has quit [Ping timeout: 245 seconds]
bitblt_ is now known as bitblt
glenneth has left #river [ERC 5.6.1-git (IRC client for GNU Emacs 31.0.50)]
fitrh has quit [Remote host closed the connection]
glenneth has joined #river
Keeto has quit [Ping timeout: 252 seconds]
haliucinas has quit [Quit: .]
haliucinas has joined #river
Szadek727 has quit [Quit: off]
Szadek727 has joined #river
Keeto has joined #river
<leon-p> just went hunting for what I thought was a zig compilation because somehow a cursor_shape value was negative after getting it via inline else and @field(@tagName()). Turned out that struct was never initialized, which I missed because other members of it had default values set... fun :)
eoli3n has quit [Read error: Connection reset by peer]
Keeto has quit [Quit: Lost terminal]
<ifreund> leon-p: valgrind probably woulda caught it :P
kansei has joined #river
adamcstephens has quit [Remote host closed the connection]
adamcstephens has joined #river
<leon-p> ifreund: it actually didn't, linking with chicken messes up the debug info
<ifreund> :/
<leon-p> yeah, it makes debugging fun. Last week I had a hard time even noticing a bug, because chicken was catching the SIGSEGV raised by an assert and turning that into a runtime scheme error
<ifreund> weird
<ifreund> Debugging my janet stuff has been pretty easy so far
<ifreund> gdb works pretty much as expected
<ifreund> valgrind also worked great to get all the leaks sorted
<ifreund> apparently there's also debugging stuff implemented in Janet for debugging janet code but I haven't needed to learn how to use those yet
<ifreund> I must say, this single threaded cooperative multitasking stuff is very comfy
<ifreund> for example, I can just do this and spawn a process without a zombie and without blocking the event loop: https://codeberg.org/ifreund/rijan/src/commit/25938e0ded6d42763d455a0164c04b82098825e0/src/seat.janet#L21-L22
sentry has quit [Ping timeout: 245 seconds]
<leon-p> is that basically janets version of async?
<ifreund> yeah I think this is what people usually mean by async/await
Snetry has joined #river
<ifreund> cooperative multitasking is more precise though :D
<leon-p> in what way? I have never really done anything with async
<ifreund> leon-p: as I understand it, what janet does isn't really the same as javascript async await. There's no special syntax and no function coloring
<ifreund> janet the language has "asymmetric stackful coroutines" if I've got my terminology right
<ifreund> and the janet standard library uses this language feature to make a nice comfy event loop
<leon-p> my understanding of async has always been that it's usually just syntax sugar around event loops, especially w.r.t. events raised by your own code
<leon-p> scheme uses continuations for single-threaded multitasking, but I have not messed with the chicken version of it, only tried the guile fibres library
<ifreund> leon-p: that's pretty much what this is, janet even calls them fibers
<ifreund> continuations can be used to implement coroutines pretty trivially
palanix has quit [Ping timeout: 265 seconds]
kansei has quit [Quit: ZNC 1.10.1 - https://znc.in]
twelve has joined #river
palanix has joined #river
<pkap> any idea why this does not compile https://codeberg.org/pkap/river/src/commit/a6a8a4612ad6da4b57af2871f9865e91f49e8f62/river/Server.zig#L564 with "unable to resolve comptime value"
kansei has joined #river
<pkap> there's no comptime in these types as I understand it.
<ifreund> pkap: that * shouldn't be there
<ifreund> it's parsing the left hand side of that = as a type
<ifreund> and types must be comptime known
<pkap> ah yes of course. Well, it's late. Thanks ifreund
<ifreund> no problem!
<ifreund> the error message could probably be better
<pkap> Maybe soon done with the toplevel capture stuff. Even though it has to wait until the next wlroots release.
<ifreund> well, you can probably use it yourself even if it has to wait to get merged :D
Guest17 has joined #river
<pkap> Yes I totally will. But I also need this in order to use it for my use cases: https://github.com/emersion/xdg-desktop-portal-wlr/pull/329
Guest17 has quit [Client Quit]
<ifreund> pkap: I don't like redundant state, libwayland already stores a pointer to the event loop, why should river store a second one?
<pkap> Gotcha
<pkap> also this wouldn't help me. My problem is how to access the wl_server field in a static function (fn handleNewForeignToplevelCaptureRequest)
<pkap> it takes *wl.EventLoop as an argument.
flower_ has quit [Quit: Lost terminal]
Nosrep has quit [Remote host closed the connection]
Nosrep has joined #river