"fringe platforms which can't even run a Rust compiler"
"fringe platforms which can't even run a Rust compiler"
Posted Feb 14, 2021 0:20 UTC (Sun) by sthibaul (✭ supporter ✭, #54477)In reply to: "fringe platforms which can't even run a Rust compiler" by Cyberax
Parent article: Python cryptography, Rust, and Gentoo
Yes, but that still doesn't magically collapse all the typedefs. With just socket.h that produces 500 lines of C, that a C compiler and scripts shared by *all* ports would much better grok than doing seds by hand.
> For example, Rust has special definitions to navigate the socket headers (these are macros in C, not functions).
Ok, but that's only a very tiny part of the Posix interface.
> C also doesn't specify the error returns.
You mean the set of errors that a function may return? Yes, and a kernel never makes such a promise as the exact set of errors it might ever return in the coming decades.
> > Why Rust?
> Because it's safer than C and faster to write.
Let me rephrase: why Rust in particular? And not the myriad of other languages that have been invented by mankind?
> > Really, that's exactly the point: it looks like Rust people want to bring the whole world into Rust, and not bother with the rest of the world that isn't Rust.
> Honestly, that would be a great outcome for the world.
So that's exactly what I wrote in another comment: so much for the free software dream, if you're free to use any language, as long as it is Rust.
