Comment Re:hiring, huh (Score 0) 198
To be fair, you can probably cross-compile C to Rust, if you make the target "unsafe" and disregard performance.
First, methodically translating from one high level language to another is transpile, not cross-compile. Second, there is no "unsafe" target. Third, DARPA has been working on it for a long time already, their endgame is to have it create safe rust. Fourth, every time you open your mouth about Rust you just prove more and more that you know even less about it than you think you do, yet somehow you've convinced yourself that you're qualified to make broad statements like this.
C++? I do not think so. Rust has a very non-standard and limited OO model. Good for systems coding, not good for porting C++ to it.
Get rid of inheritance, replace it with pure composition, and you'll have successfully removed C++'s non-standard and broken OO model from your already bad C++ code. Then porting to rust will depend on what version of C++ your code was originally written in, assuming the whole thing was written against just one version, which is a bad assumption to make with code that old. That in turn is made worse by the fact that every 7 years or so the latest C++ dialect becomes in many ways unintelligible from two dialects before it. Either way, in the process you're going to find places where your C++ code was already unsound if not completely broken in a way that nobody had yet discovered. You're going to have to fix it, often doing stuff like adding checks for conditions (such as bounds checks or invalid states) that had previously occurred to nobody, and had it not been for rustc pointing them out and refusing to compile, you may never have found them until after they were already exploited.