Re:Pragmatic Bare Metal Rust
by steveklabnik on Tuesday May 19, 2015 @07:14PM
(#9573749)
> Some utility to assist bulk conversion from C to Rust would be nice
One of the problems with this is that Rust's guarnatees usually really affect your design. I'd imagine that a bulk C -> Rust translator would have to use `unsafe` all over the place.
Doesn't mean that it wouldn't be useful, but I wonder if slowly replacing APIs bit by bit isn't a better approach overall.
Re:Pragmatic Bare Metal Rust
by coldpie on Wednesday May 20, 2015 @09:05AM
(#9576021)
Yeah, the ease and mostly-cost-free nature of C-Rust interop is a really big selling point, as you can pretty much just drop Rust in piecemeal to replace your legacy libraries.
One of the problems with this is that Rust's guarnatees usually really affect your design. I'd imagine that a bulk C -> Rust translator would have to use `unsafe` all over the place.
Doesn't mean that it wouldn't be useful, but I wonder if slowly replacing APIs bit by bit isn't a better approach overall.