Anyone have a "should you rewrite it in Rust" flowchart?
It's not a flowchart, but I'm in the process of rewriting a node app in rust at the moment. I'll probably blog about the process when I'm done.
@alexbuzzbee Q: "Do you know why Rust will make this particular program better?" N: "Then don't rewrite it in Rust" Y: "Q:Does this program really *need* to be made better?" N: "Then don't rewrite it in Rust" Y:"OK then, Rust here we come!"
@alexbuzzbee I didn't have one handy, so I threw one together quick for you. Hope it helps.
@alexbuzzbee In all seriousness, though, I'm looking forwards to see if anyone has some serious answers! I have a few projects that I'm on the fence about, and it would be nice to see other people's opinions on the subject.
From an independent observer's POV:
Is it written in C? Yes -> Rewrite in Rust
Is it a system/low level library? Yes -> Probably re-write in Rust
Otherwise -> Maybe rewrite in Rust
@alexbuzzbee I suggest keeping working code as-is, but start adding new code in Rust. That's strategically safer than a full rewrite from scratch, and you can eventually refactor non-Rust parts down to nothing.
@alexbuzzbee Idk if it exists, but would be interesting indeed. From what I know, rust works best when you need safe fine-grain, low-level optimization, performance and/or parallelism.
I was reading the following today morning which was interesting: https://www.mercurial-scm.org/wiki/OxidationPlan
@RemindMe in 3 days.
⏰* REMINDER *⏰
@alexbuzzbee Idk if it exists, but would be teresting indeed. From what I know, rust works best when you need safe fine-grain, low-level optimization, performance and/or parallelism.
I was reading the following to morning which was interesting: https://www.mercurial-scm.org/wiki/OxidationPlan
im trying to extend it &&
the current implementation is in C/C++ &&
(im running into memory issues all over the codebase ||
the code is in need of a rewrite anyway) &&
(a large portion of contributors would be willing to switch to rust ||
many new contributers would be interested in a rust port)
Fosstodon is a Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.