Hacker News new | ask | show | jobs
by brundolf 1191 days ago
> In this case I wasn't attempting a rewrite per se, just trying to understand a C codebase plagued with memory safety issues

I think this is your problem; to my understanding it's not really the point of the project. The resulting code is meant to be something you can gradually refactor, not something that's immediately better or more understandable. Even if a given piece of code is harder to refactor, it's still important on a large pre-existing project to be able to immediately switch over to the new toolchain all at once, without having to manually refactor/rewrite all of the code all at once

1 comments

Well, the hope was that maybe the work to get the transpiled code to the state where I could do some borrow-checking might somehow be less than just having at the C itself directly, but yeah, no cigar back them at least.

And I wanted an excuse to play around with rust some more :D