55
submitted 6 days ago by buh@hexbear.net to c/technology@hexbear.net

it's joever for Cniles (I am one of them 😔)

you are viewing a single comment's thread
view the rest of the comments
[-] Zvyozdochka@hexbear.net 25 points 6 days ago* (last edited 6 days ago)

This sounds cool in theory, but would be extremely hard to pull off in any kind of meaningful fashion I think simply because Rust is just too different from C. You can probably make something to very roughly "transpile" C to Rust, but the Rust code that is generated probably wouldn't be good and will probably be a pain to work with simply because it'd end up being a mess and at that point, if you're going to have to end up refactoring a ton of generated code, you may as well just rewrite it yourself so it is actually half decent code.

[-] DefinitelyNotAPhone@hexbear.net 12 points 6 days ago

Also considering that a lot of this C code is going to be extremely critical code pathways, like making sure your banks don't collapse and your energy plants don't blow up, the major pain paths for migrating to another language are going to be rigorously testing every last path through it, not rewriting it.

[-] Speaker@hexbear.net 7 points 6 days ago* (last edited 6 days ago)

Your bank runs on COBOL and your energy plants run on one of a family of PLC (programmable logic controller) languages. Most of the critical path in your day-to-day that runs C is the gaping security hole that is the internet.

this post was submitted on 17 Sep 2024
55 points (100.0% liked)

technology

23194 readers
57 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS