4 ms·
> the code base is now 100% (unsafe) Rust So the primary (or rather: only) reason for using Rust over C (memory safety) is out the window. > I’d like to share
by usrbinbash 1y ago
> the code base is now 100% (unsafe) Rust
So the primary (or rather: only) reason for using Rust over C (memory safety) is out the window.
> 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
And the codebase got bigger.
So yeah, as the author explains, hobby project, and kudos to that, but nothing that I will install on any box of mine any time soon.
Besides, applications like tmux would much rather be prime candidates for a rewrite in a garbage collected systems language (aka.; Go) than in Rust. tmux spends 99% of its time waiting for the user to hit a key, there is nothing performance critical in such an app that wouldn't be 100% adequately served by Go.
- MuffinFlavored 1y ago> but nothing that I will install on any box of mine any time soon. A little harsh. Rome wasn't built in a day.
- johnisgood 1y ago[flagged]
- tekkk 1y agoJust appalling. Someone publishes a post about their WIP project reaching an important milestone, and here comes the naysayers whining about the fact it's not finished yet. Did you even the article? He clearly states his aims to convert it to safe rust. And for the code size, he clearly hasn't needed to optimize it yet and I don't think you necessarily want to code golf codebase like this.
- usrbinbash 1y agoSince when is "Giving an honest opinion" considered "appalling"?
- tekkk 1y agoIf your "honest opinion" is just a take down without much thought behind it, you could just as well keep it to yourself is my opinion. If you want to provide criticism, please at least put a little effort to it. So simply referencing the article can't refute you.
- usrbinbash 1y ago> is my opinion And you are entitled to your opinion. As I am to mine.
- zozbot234 1y agoThe problem is that the "Introducing..." framing generally implies at least a worthwhile MVP, and OP doesn't have that just yet. If it was titled "A feasibility study towards rewriting tmux in Rust" I doubt anyone would've complained.
- tekkk 1y agoA fatal mistake he surely won't be making again.
- paddim8 1y agoThis is such a strange mindset. First of all, unsafe Rust is not comparable to C. It still has a lot of checks and balanced that C does not have. The author is also planning to make it more safe. And what do you mean "the primary reason"? The primary reason for this was to have fun. Let the man have fun. > but nothing that I will install on any box of mine any time soon Well, no one asked? I will never understand you chronically negative people that have to come in and whine about things that don't matter every time someone posts their fun little personal project that they made for fun. Have you tried being a little more positive? It makes life more enjoyable.