#
#asahi · 2025-08-17 16:39
bgtlover[mds]Calandracas_: yeah, but I'm hard pressed to think there's no such thing for c++, I find the tower pattern extremely useful. In fact, the odilia screenreader is written around that, it's so easy to reason about program state and the state of the accessibility API with regards to odilia nowadays
#asahi · 2025-08-17 16:38
Calandracas_because the author is a c++ acolyte
#asahi · 2025-08-17 16:37
bgtlover[mds]Calandracas_: umm, then why don't they write hyprland in python? they could do that with wasm too for example, especially if they use something like the tower crate to architect their code around, so then every event or whatever the compositor reacts to would be routed through the pluggin layer, before it reaches the program itself
#asahi · 2025-08-17 16:35
Calandracas_Which i guess if it was lua, only api exposed functions could be overwritten
#asahi · 2025-08-17 16:34
Calandracas_but another part of the problem is that they want plugins to be capable of overwriting arbitrairy functions
#asahi · 2025-08-17 16:33
Calandracas_neovim does this whole thing right
#asahi · 2025-08-17 16:33
bgtlover[mds]points at wasm
#asahi · 2025-08-17 16:33
ari've tried twice, and returned to loading bits of ruby/lua
#asahi · 2025-08-17 16:32
arruntime loadable executable binary plugins are somewhat difficult to get right
#asahi · 2025-08-17 16:32
Calandracas_the problem is that their plugin mechanism is not a good design
#asahi · 2025-08-17 16:31
bgtlover[mds]I mean sure, for that specific case, maybe, maybe not, but if the issue with libc_malloc is that it's slow, there are good rust wrapped memory allocators which are faster
#asahi · 2025-08-17 16:30
bgtlover[mds]ar: yeah umm, that's false
#asahi · 2025-08-17 16:29
chaos_princess^quote from above
#asahi · 2025-08-17 16:29
chaos_princess>>>Fisrt, it relies on writing an object file at a predictable path in /tmp and reading it back later.
#asahi · 2025-08-17 16:29
bgtlover[mds]those are already in ram for most cases, the hell?
#asahi · 2025-08-17 16:29
ar[x] doubt
#asahi · 2025-08-17 16:29
ar> Rust would also not have fixed this, we'd be writing the same thing, just in an unsafe{} block.
#asahi · 2025-08-17 16:28
bgtlover[mds]chaos_princess: in...what? I'm done
#asahi · 2025-08-17 16:26
Calandracas_goes back into hiding
#asahi · 2025-08-17 16:25
chaos_princessyou aren't supposed to admit that, come on :P
#asahi · 2025-08-17 16:24
Calandracas_i just have them saved for every time this discussion comes up
#asahi · 2025-08-17 16:24
Calandracas_ah i hadn't actually read those in a while lol
#asahi · 2025-08-17 16:24
chaos_princessin your 2nd link
#asahi · 2025-08-17 16:23
Calandracas_shit i did not know that
#asahi · 2025-08-17 16:23
chaos_princessi think it is a "i am 14 and this is my first linux rice" levels of cool.
#asahi · 2025-08-17 16:23
chaos_princessthe fact where it relies on mmaping files in tmpfs
#asahi · 2025-08-17 16:23
Calandracas_chaos_princess, what worst part? the bit where you cant even free all the memory?
#asahi · 2025-08-17 16:22
j`eyshame cos it looks cool
#asahi · 2025-08-17 16:22
Calandracas_ https://blog.vaxry.net/articles/2024-own-malloc
#asahi · 2025-08-17 16:22
Calandracas_ https://www.openwall.com/lists/oss-security/2024/04/28/3
#asahi · 2025-08-17 16:22
Calandracas_ https://refi64.social/@refi64/112391542371394313
#asahi · 2025-08-17 16:22
Calandracas_these are good reads:
#asahi · 2025-08-17 16:21
chaos_princessCalandracas_: and you haven't even told about the worst part of their malloc :P
#asahi · 2025-08-17 16:20
chaos_princessit is only macos that hard-forces W^X.
#asahi · 2025-08-17 16:19
Calandracas_gcc needs it, for example
#asahi · 2025-08-17 16:19
Calandracas_^
#asahi · 2025-08-17 16:19
j`eybgtlover[mds]: there is, but the software can ask for read/write/exec pages
#asahi · 2025-08-17 16:19
Calandracas_hyprland considered harmful
#asahi · 2025-08-17 16:18
bgtlover[mds]Calandracas_: ok, that's done it. I don't care what features it has, hyprland is a security hazard
#asahi · 2025-08-17 16:18
bgtlover[mds]Calandracas_: whoe what? does m1 even allow that? I thought there's a hardware level distinction between read/exec pages and write pages, or am I wrong?
#asahi · 2025-08-17 16:16
Calandracas_decided to implement their own malloc
#asahi · 2025-08-17 16:15
Calandracas_required executable stack because its plugin mechanism uses trampolines
#asahi · 2025-08-17 16:15
Calandracas_and +1 to the hyprland antirecomendation. Even putting the political stuff aside, there's some really dubious design patterns with security implications
#asahi · 2025-08-17 16:11
Calandracas_Seti_, sway is (mostly) backwards compatible with i3, you can usually use an unmodified i3 config file in sway, and sway uses the i3 IPC protocol
#asahi · 2025-08-17 14:22
bgtlover[mds]hmm, I should try that with the mate desktop, because it seemns that their wayland progress is stagnating
#asahi · 2025-08-17 14:20
chaos_princessthat + a few other bits to make compositors work better. i haven't looked deeper, just know that it is a thing that exist
#asahi · 2025-08-17 14:19
bgtlover[mds]<chaos_princess> "it is a thing that allows..." <- is that xwayland in rootfull mode?
#asahi · 2025-08-17 14:19
bgtlover[mds]<chaos_princess> "pretty much. i think there is..." <- well yeah, hyprland's creator is like stuff that's not x86 is not real and can't hurt you, why would you ask? also he's an intitled asshole and a bigot, so I'm not surprised y'all don't recommend hyperland tbh
#asahi · 2025-08-17 14:17
Seti_hyprland, the only time i've snubbed software over a dubious maintainer haha
#asahi · 2025-08-17 14:15
Seti_I'll go with sway i think

plus ›