Which form of Rust parallelism did you choose? I’ve read that the old one sucks.
Certainly Rust is different beast than C.
Code converted from C to Rust seems much more voluminous. Perhaps it’s easier to maintain if you know Rust well?
I cannot believe at first that Rust is ever more performant than C, as C could be made parallel and seems more barebones. One of the languages that CUDA can be used with is C, so I suspect that C may beat Rust in the world of computation for now? And Rust continues to evolve, I suspect, as C could.
The author states:
> My overall feeling is that if I could spend infinite time and effort, my C programs would be as fast or faster than Rust, because theoretically there's nothing C can't do that Rust can. But in practice C has less abstractions, primitive standard library, dreadful dependency situation, and I just don't have the time to reinvent the wheel, optimally, every time.
So, I think for now: C is faster, even in parallel. But Rust could be nicer to use than C in many respects, so it may be worthwhile to consider it for large applications.
That which we state definitively may be subjective, though.
I used to read and believe this. After all, clarity is important.
Since then I’ve realized that our brains are like lenses; learning to code re-wires your brain to read code, which is different than other types of data, similar to the way that reading a book is a different interface than examining a room; just as we may choose to read certain authors or subjects, or may not think of the same things when examining a room, we may choose to see code in styles or certain languages, or may consider value in clarity of code or in its function.
I value clarity, but upon considering the room again, the first dimension is function, next clarity. This doesn’t subdue clarity to a trivial role, but clarity is a third order to maintainability, which is second order to executability.
Over time, those lenses may not be as agile as before, though we expect them to be. Text is blurred, and we may struggle to hold the glasses at a distance to read a certain part of the code clearly. It no longer makes sense, and that which employs us sees other value.
Are you just noting specifics, or was it your experience that there was less Rust required for a full C to Rust conversion?