mblocks - A Multi-Threaded Status Monitor for dwm

October 21, 2022 at 12:07 AM, by Mehdi
programming rust status monitor dwm

I recently wanted to take a look at the Rust programming language which seemed to me interesting at first glance. Its most appealing features are that it does not have a garbage collector (in contrast to Java), it does not leave memory management to the developper (in contrast to C and C++), and it iss compiled (in contrast to Python). To efficiently manage memory, it follows two concepts named Borrowing and Ownership. In terms of performance (execution speed), it comes at no cost comparing to C and C++. In addition, Rust packs many interesting features: an amazing compiler (I've never seen such a compiler), you can do all sorts of programming with it (including object-oriented), and has a package (crate) manager, a very predictable syntax, a good documentation and a nice community.

That being said, I wanted to learn Rust, so I spent some time reading The Book!. Then, I quickly wanted to practice. Since I use the dwm window manager, I was not satified with the status monitors out there. Thus, I found this opportunity of practicing Rust by developping mblocks, a multi-threaded memory-safe and efficient status monitor. mblocks is now published in my gitlab.