Follow

Anyone have a "should you rewrite it in Rust" flowchart?

Responses of Start -> Yes or Start -> No will be ignored.

@alexbuzzbee

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.

@codesections @alexbuzzbee alternatively I can offer "should you rewrite in Rust" -> "no". Just write the new stuff in Rust.

@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.

@alexbuzzbee

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 sure thing

(Should you rewrite it in rust?)---->(yes)

@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: mercurial-scm.org/wiki/Oxidati

@RemindMe in 3 days.

@ashwinvis @alexbuzzbee

I'll try to remind you then!
Your reminder receipt is: 259

Reply to this with !until to get updates on your reminder!
Reply to this with !cancel to cancel your reminder.

@ashwinvis @alexbuzzbee

⏰* 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: mercurial-scm.org/wiki/Oxidati
in .

Re: verge.info.tm/posts/0b6b25a8-1…

@cy @alexbuzzbee No masochism in C? I don't think that chart is correct.

I'd prefer my whipping upfront rather than a sneak whipping five years after putting things into production on a billion machines.

@alexbuzzbee
working draft:
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)

Sign in to participate in the conversation
Fosstodon

Fosstodon is a Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.