News for hackers. Stuff that matters.
Re:Translating Quake 3 into Rust by bluejekyll on Tuesday January 07, 2020 @11:43AM (#21981625)
Maybe. Though there might be lowish hanging fruit that could potentially recognize arrays that could be translated to slices, and heap based allocations using pointer traversal that could be converted to Vec instead.

The real issue with doing that isn’t imo, going to Rust, it’s understanding what still needs to be addressable in C. For example, a self-contained application has no external ABI dependencies, and so could assume everything that references that slice must only need to be Rust. A library on the other-hand might still need to present a C ABI.

There are no comments on this comment yet.