[kwlug-disc] On Rust
Mikalai Birukou
mb at 3nsoft.com
Thu Feb 26 11:28:48 EST 2026
The song: https://www.youtube.com/watch?v=04I_dPHFd7I
If you want it to be read and understood correctly by other devs, write
it in Rust.
I've personally talked and pleaded with devs and near-devs of
non-trivial projects like Tor to give me a helping hand to understand
their code, for me to use it, to add to it, on embedded level, on code
level. But people have no time. I get it. I try to read your properly
structured code, and it is still not helping me, your code's user.
NodeJS is a scary thing. It has NAPI, newer interface for pluggins that
should help me. Well, NAPI-RS, proper Rust style, released this past
August, makes it a breeze. If I have a silly WTF about particular
element, type system leads me to answers. Yet, higher-level macros allow
you to give me proper description of how something non-trivial ought to
be done, without you writing docs.
fuser is FUSE in Rust, makes it easy to understand things. Before
January, some places were number with flags in, and out, and reader/me
going WTF. You RTFM FUSE docs, and these were written by FUSE devs for
FUSE devs, not FUSE users, who haven't memorized Unix. In January,
Rust-style typing in args in and out of FUSE ops lets me read about
FUSE. This is ergonomics at work.
[side-note] Whether RTFM is an insult or not depends on comprehension of
M by others. And you don't control others. Hence, RTFM can be both
healthy and insulting without any malice. Such is the nuance of this
communication pattern. [/side-note]
deno_core is embedding of V8 done in ergonomic way. Gosh, looking back
at last two days, I think Rust saved me years of debugging, as I would
have put that thing with some state into that other thread. Oh, yes.
Easily years of debugging. And Rust system will lead me precisely to
point that "can't be moved" nudging my brain to find the sure passage
for this machine to run.
If you have something to tell the other, write it in Rust.
I get it. Your C++ runs on a machine. But I am not a machine. Yes, I am
not as smart as you are. I can fully grasp mental constructs that you
develop, only when expressed in Rust. You appreciate nuances. And I want
see them too. Write it in Rust.
More information about the kwlug-disc
mailing list