• Richards: Introducing tmux-rs

    From LWN.net@86:200/23 to All on Fri Jul 4 06:40:07 2025

    Collin Richards has announced version
    0.0.1 of tmux-rs, a port of the tmux terminal multiplexer
    to Rust.

    For the [past] 6 months or so I've been quietly porting tmux from C to
    Rust. I've recently reached a big milestone: the code base is now 100%
    (unsafe) Rust. I'd like to share the process of porting the original
    codebase from ~67,000 lines of C code to ~81,000 lines of Rust
    (excluding comments and empty lines). You might be asking: why did you
    rewrite tmux in Rust? And yeah, I don't really have a good
    reason. It's a hobby project. Like gardening, but with more segfaults.

    Richards says that the next goal for the project is to convert it
    to safe Rust. It is currently "not very difficult to get it to
    crash", but he wanted to share the project with other Rust fans
    now. The project is available on
    GitHub.

    https://lwn.net/Articles/1028583/
    --- SBBSecho 3.28-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (86:200/23)