←back to thread

Introducing tmux-rs

(richardscollin.github.io)
857 points Jtsummers | 1 comments | | HN request time: 0.238s | source
Show context
echelon ◴[] No.44456424[source]
I wonder if the tmux maintainers would be interested in switching to this?

Transitioning more software from C to Rust is a great idea.

replies(5): >>44456588 #>>44456671 #>>44456845 #>>44457370 #>>44457456 #
yjftsjthsd-h ◴[] No.44457370[source]
My understanding is that tmux is primarily an OpenBSD project, and rust isn't a good fit for them (for reasons that summarize to portability problems), so it is extremely unlikely. Also, this is a hobby project that currently is all unsafe, so there's not even any particular point. (EDIT: Of course, as it gets rewritten the latter point is likely to diminish)
replies(1): >>44459316 #
zozbot234 ◴[] No.44459316[source]
> rust isn't a good fit for them (for reasons that summarize to portability problems)

These problems are largely solved now that there's a working transpiler from Rust to C - https://github.com/FractalFir/rustc_codegen_clr

replies(1): >>44459780 #
1. yjftsjthsd-h ◴[] No.44459780[source]
> This project is still early in its developement. Bugs, crashes and miscompilations are expected. DO NOT USE IT FOR ANYTHING SERIOUS.

> rustc_codegen_clr is only tested on Linux x86_64, with the CoreCLR runtime (more commonly known as simply the .NET runtime), on .NET 8. It should work on other platforms, but it is not guaranteed.

I guess it could eventually be an option, but today it looks more like a neat tech demo.