this post was submitted on 29 Jul 2025
112 points (98.3% liked)
Open Source
39552 readers
277 users here now
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Useful Links
- Open Source Initiative
- Free Software Foundation
- Electronic Frontier Foundation
- Software Freedom Conservancy
- It's FOSS
- Android FOSS Apps Megathread
Rules
- Posts must be relevant to the open source ideology
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
- !libre_culture@lemmy.ml
- !libre_software@lemmy.ml
- !libre_hardware@lemmy.ml
- !linux@lemmy.ml
- !technology@lemmy.ml
Community icon from opensource.org, but we are not affiliated with them.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Speaking of suckless, does anyone know of a Wayland-compatible window manager, similar to DWM, preferably written in Rust or C (but not C++).
Seems like a fun thing to tinker with to learn how window managers work.
By the way what do you dislike C++? I've been getting into lower levels of programming as of late and were unsure about the language to pick. Is it just the OOP stuff?
Thanks for asking. It's partly OOP, but more than that, C++ is just rife with footguns and is basically unreadable for me.
I think C is much more readable and I find imperative/procedural programming to be much more delightful and readable.
Rust is my absolute favorite though, because it removes the footguns of most lower-level langs while being just as performant. The only trade-off is that you need to understand the borrow checker, but working with it becomes substantially easier over time and saves an ungodly amount of headaches. You can also write something that very closely approximates OOP, without the most of the footguns (like inheritance, until you get into more advanced stuff like trait objects, anyway).
Trying things out with an ESP32 and i might opt for Rust after reading what you have wrote. There also seems to be enough resources to do that. I started using C++ as the Arduino IDE has decided that for me more or less. I suspect setting up a local development environment is also easier with Rust. (?!) I at least had problem Setting up C++ in VSCodium.
Don't like OOP as the next guy but sometimes its the right tool i feel like and i do have that case right now. So its great that Rust seems to have that as well to some extent. Actually as Rust is so much more readable i kinda expected to give up on some control but that doesn't seem to be the case. :)
I've been eyeing dwl for quite some time which is like 3k lines of c excluding deps, but don't have the time to jump ship. So can't tell how stable it is.
This is perfect! Thanks!