Get the latest tech news
Lessons learned from a successful Rust rewrite
Published on 2024-10-30 Discussions: /r/rust, /r/programming I have written about my on-going rewrite-it-to-Rust effort at work: 1, 2, 3. And now it's finished.
And the C++ code will often ignore some errors that the Rust compiler forces the developer to handle, which is a good thing, but also makes the codebase slightly bigger. Additionally, all of the aforementioned issues about cleaning up resources would have been instantly fixed by using an arena allocator, which is not at all idiomatic in Rust and does not integrate with the standard library (even though there are crates for it). I initially considered using Zig or Odin for this rewrite, but I really did not want to use a pre v1.0 language for an enterprise production codebase (and I anticipated that it would be hard to convince other engineers and managers).
Or read this on Hacker News