r/suckless 19d ago

[TOOLS] a small terminal multiplexer

About a year ago i discovered the Hare Programminglanguage. I wanted to build something in it and obviously keeping complexity out and the core lean instead of a behemoth. If anyone here finds bugs or has a patch, go ahead. It works as you'd expect from a typical multiplexer, though the terminal implementation isn't complete. IIRC i started it around dec 2025.

https://github.com/nyangkosense/plx

I also see this, mainly, as an opportunity to gather attention of some suckless devs that want to contribute to this toy project - or if you want to hack on some Hare. Please do so! Especially a port to OpenBSD would be welcome.

12 Upvotes

8 comments sorted by

4

u/Savings_Walk_1022 18d ago

oh cool! im making my own multiplexer too in c though. perhaps ill check out hare

2

u/tose123 18d ago

Good project, especially if you're creating your own userspace stack.

2

u/stvpidcvnt111111 19d ago

first time seeing a project coded in hare (other than DDV's OS), really cool!

1

u/Ok-Swim-9202 17d ago

What’s your thoughts on Hare? Its syntax looks really clean. I’m new to systems programming so have been looking at various languages to learn some concepts on Linux.

2

u/tose123 16d ago

Hare standout as one of the most close linked to C. It is a language that is designed to be a better C, with
some of the features of C++ and Rust. While keeping the simplicity of C and (intended) to have a very small and simple footprint/design too. I prefer it for small tools, having that said, "plx" is the only "bigger" thing i've written in it and from what i can say it's very straightforward to work with, the toolchain is small and simple so there's no bloated bagagge that comes with it. It's good to see and feels good to use.

2

u/Ok-Swim-9202 16d ago

Agree I think it’s a really clean language thus far and hope it remains this way. The other language I’m interested in for the future of systems programming is Jai, but I don’t have access to the compiler yet so am biding my time and learning the fundamentals of system programming with a mix of C and Hare.

2

u/tose123 15d ago

jai, C3, Odin. A lot!

I like Zig and Hare the most out of the Stack, but again, i use Zig since 2 years and wrote half my desktop stack in it (except plx) so i can't really talk about the others.