Thread 105790093 - /g/ [Archived: 543 hours ago]

Anonymous
7/3/2025, 6:18:46 PM No.105790093
tmux
tmux
md5: 600886d7f700cb3af3eb87635868ba4a🔍
tmux has been rewritten in 100% unsafe Rust.

https://richardscollin.github.io/tmux-rs/
Replies: >>105790131 >>105790150 >>105790182 >>105790228 >>105790401 >>105790682 >>105792059 >>105792171 >>105792175 >>105792314 >>105792975 >>105793495
Anonymous
7/3/2025, 6:23:03 PM No.105790131
1735056411313052
1735056411313052
md5: e6b4ce5eeb24b7684323c6056e61225b🔍
>>105790093 (OP)
Anonymous
7/3/2025, 6:25:23 PM No.105790150
>>105790093 (OP)
Usecase for reinventing the wheel?
Replies: >>105790157 >>105790200
Anonymous
7/3/2025, 6:26:04 PM No.105790157
>>105790150
>Usecase for reinventing the wheel?
"It’s a hobby project. Like gardening, but with more segfaults."
Anonymous
7/3/2025, 6:27:43 PM No.105790182
file
file
md5: 10aba366884ff9bebe1245d2915403a0🔍
>>105790093 (OP)
unemployed activities
Anonymous
7/3/2025, 6:29:25 PM No.105790200
17515601029541311609882648427510
17515601029541311609882648427510
md5: 9e52ff3c09f60af84113e1f47ac5bb86🔍
>>105790150
to make it rusty :)
Anonymous
7/3/2025, 6:32:19 PM No.105790228
>>105790093 (OP)
So another project whose codebase nobody understands and therefore nobody can work on. And even if someone with experience in tmux's codebase was willing to work on it, they can't because it's written in a meme language. Isn't that great.
Replies: >>105790244
Anonymous
7/3/2025, 6:33:38 PM No.105790244
1726355272910038
1726355272910038
md5: fb720ae52c5c987b302ae91ef778f0c4🔍
>>105790228
>So another project-
* another [hobby] project.
Replies: >>105790250
Anonymous
7/3/2025, 6:34:32 PM No.105790250
>>105790244
Indeed. It's a clear sign of mental illness.
Anonymous
7/3/2025, 6:44:10 PM No.105790338
Screenshot 2025-07-03 at 09-43-50 Introducing tmux-rs tmux-rs
Rust somehow manages to be uglier than C++.
Replies: >>105790350 >>105790363 >>105790399
Anonymous
7/3/2025, 6:45:18 PM No.105790350
>>105790338
Just look at this shit.
90 as libc::c_int
instead of
(int)90 or int(90).
Just disgusting.
Replies: >>105790373 >>105790399
Anonymous
7/3/2025, 6:45:49 PM No.105790363
>>105790338
C2Rust generates "function over form" code, but yes. Average Rust code is still ugly.
Anonymous
7/3/2025, 6:46:48 PM No.105790373
>>105790350
>b-but one-chan, libc::c_int is not the same thing as Rust int
Don't care, not a tranny, not going to use Rust, go away.
Replies: >>105790399
Anonymous
7/3/2025, 6:49:43 PM No.105790397
So just don't use it nigga
Anonymous
7/3/2025, 6:50:21 PM No.105790399
>>105790373
>>105790350
>>105790338
C#gger here, why can't we have a nice looking language like c# but with C powers?
Replies: >>105790495 >>105790544
Anonymous
7/3/2025, 6:50:30 PM No.105790401
>>105790093 (OP)
I can only read C code, i don't understand this. What was the point of rewriting a working tool?
Replies: >>105790412
Anonymous
7/3/2025, 6:51:38 PM No.105790412
>>105790401
>What was the point of rewriting a working tool?
For fun.
Replies: >>105790435
Anonymous
7/3/2025, 6:53:47 PM No.105790435
>>105790412
Well Richard it was fun you say, but isn't the whole purpose of rust the safety meme?
Replies: >>105790454
Anonymous
7/3/2025, 6:55:43 PM No.105790454
>>105790435
oy vey stop with the anti semitism
Replies: >>105790619
Anonymous
7/3/2025, 6:56:21 PM No.105790458
Repro steps for use-after-free:
>Create a new window
>Close the window

https://github.com/richardscollin/tmux-rs/issues/9
Anonymous
7/3/2025, 6:59:39 PM No.105790495
>>105790399
Fucking this
Also checked
Anonymous
7/3/2025, 7:03:28 PM No.105790544
>>105790399
You can.
Rust deviated from C to make it intentionally obtuse and obfuscated.
Devs are using c2rust, messing with it, and intentionally preventing rust2c’ing it back. Rust2c is somewhat mythical to begin with.
It’s done to launder and steal existing C code, change the licence to MIT, and propritarize it… similar to generational AI’s primary purpose—laundering IP.
It also plays on the thoughts among immature developers that:
- more is better
- new is always better
- the cult members love me unconditionally

But, you realize the untruths of those statements only after you’ve grown up.
Replies: >>105790598 >>105790619 >>105790651 >>105790891
Anonymous
7/3/2025, 7:07:37 PM No.105790598
>>105790544
i dont get why would somebody need rust for memory management if as far as i know C has dependancies to manage memory in different ways including the rust method if not wrong.
Replies: >>105790619 >>105790891
Anonymous
7/3/2025, 7:09:17 PM No.105790619
>>105790454
kekolino, why such violence. I m just curious, I know nothing about rust. Are you gonna improve it? One thing that triggers me is the syntax of tmux and the lack of some obvious things like moving panes up and down or was it left and right, perhaps I should write my own.

>>105790598
Everyone that has used C for some time can manage the memory without extra tools. It's simple.

>>105790544
MIT license is a problem, I don't want to live in that world.
Anonymous
7/3/2025, 7:12:06 PM No.105790651
>>105790544
The license cleaning process is the only thing I like about the Rust religious movement.
Not touching GPL shit as a dev in 2k25.
Replies: >>105790891
Anonymous
7/3/2025, 7:15:01 PM No.105790682
>>105790093 (OP)
As long as it doesn't replace the original tmux it's fine. "Tech" youtubers will start shilling this one version though.
Replies: >>105792102
Anonymous
7/3/2025, 7:34:42 PM No.105790891
>>105790544
Me, again.
I also looked at this kid’s githu… um.. myspace page. It’s clear he’s generating “churn social credits” by fucking with stuff on his github.

>>105790651
Yes, the good thing about it is you can rust2c it back. Also, there is *some* chance rust might actually caught some errors and fixed them.
Although that’s highly unlikely.
If they were “made safe” algorithmically in rust, when it’s translated back to C, it will have benefited from rust’s checker, and the rust code can be discarded.
This is because modern developers don’t (1) test code, and (2) don’t know—or care to know—about things like valgrind.

>>105790598
> rust for memory management
Most bugs in C++ can be eliminated simply by using std::string. As a C/C++ developer for 35 years or so, I’ve pretty much stopped using the heap… you lots of code out there that just beat the shit out of the heap, like they’re effectively malloc()ing individual ints all over the place (without necessarily knowing it).
They should probably visit the lisp general and get educated.
Replies: >>105790984
Anonymous
7/3/2025, 7:42:39 PM No.105790984
>>105790891
Well I wish C versions of programs would become available with a better license, but how does this even work and what does it achieve?
>If they were “made safe” algorithmically in rust, when it’s translated back to C, it will have benefited from rust’s checker, and the rust code can be discarded.
Like, why would you do this instead of just compiling the Rust code directly? I don't imagine code transpiled from Rust to C would have too many benefits.
Replies: >>105792715
Anonymous
7/3/2025, 9:25:05 PM No.105792025
>AI tools
:tabclose
Anonymous
7/3/2025, 9:28:16 PM No.105792059
>>105790093 (OP)
>100% automatically transpiled by c2rust(TM)
kek, all the idiots who learned Rust must be fuming, why would anyone hire a Rust troon, if its all automated anyway?
They don't do anything new, they just rewrite existing stuff, and AI can do that just fine.
Anonymous
7/3/2025, 9:33:23 PM No.105792102
>>105790682
The original tmux is a RedHat(TM) (subsidiary of IBM) replacement of GNU screen.
RedHat claimed that screen isn't developed anymore, when they switched RHEL8 to it. Nowadays screen development is faster than tmux.
Replies: >>105792239
Anonymous
7/3/2025, 9:39:36 PM No.105792171
n5yycycgpu6f1
n5yycycgpu6f1
md5: b0b784e46dbf34988bb57858bc2909fd🔍
>>105790093 (OP)
Anonymous
7/3/2025, 9:39:55 PM No.105792175
>>105790093 (OP)
isn't this a trademark infringement? just because you make an alternative you not allowed to use the name of the original product
Anonymous
7/3/2025, 9:46:15 PM No.105792239
>>105792102
contrarian post, almost everyone switched to tmux ages ago. screen isn't completely dead but it has way fewer features unless you need it support for old weird shit.
quit trying so hard to fit in friend
Replies: >>105792325
Anonymous
7/3/2025, 9:55:14 PM No.105792314
1722148740898
1722148740898
md5: 829ddc90f91076c1a9a89487a2358d6e🔍
>>105790093 (OP)
>laughs in zellij
Replies: >>105792826
Anonymous
7/3/2025, 9:56:29 PM No.105792325
>>105792239
his stipulation about tmux's history is not even fact-adjacent.
i hope that was his point, and he is not your average /g/eet /pol/tard.
Anonymous
7/3/2025, 10:35:02 PM No.105792715
>>105790984
> of just compiling the Rust code directly
I’ll use this as a further argument to forget about the unnecessary transpile to rust altogether, and just (continue) compiling in C.

A lot of rust code is littered with unsafe anyway.

All the rust “benefits” are theoretical, anyway.
When you look at sudo-rs, for example, it’s not clear anything was fixed.

The rather immense amount of work to remove all the unsafes is mostly “fixing” things that are not actual problems, and things that should have been found (and were found in ancient C code bases) by testing.

If you wanted to do something useful, innovative, novel and new, it would make a lot more sense to write in rust. Not ancient C code.

But nobody wants to do that, because it’s hard.

Just like cops don’t want to bother arresting real criminals, the national guard would rather go up against a bunch of local unarmed karens, and the NSA finds it easier to surveil domestically.
Anonymous
7/3/2025, 10:49:06 PM No.105792826
>>105792314
I like mtm. Gnu screen is also good. 90% tmux functionality is useless to me
Anonymous
7/3/2025, 11:00:30 PM No.105792924
Cbros.. rust trannies captured even more of our territory
Anonymous
7/3/2025, 11:08:39 PM No.105792975
>>105790093 (OP)
Nice CV padding scam
Anonymous
7/4/2025, 12:19:41 AM No.105793495
>>105790093 (OP)
>Every shitty window manager will be rewritten in rust
KEK you realize the employed people are laughing behind your back right?