|
|
Subscribe / Log in / New account

Cancer?

Cancer?

Posted Feb 17, 2025 7:38 UTC (Mon) by smurf (subscriber, #17840)
In reply to: Cancer? by LtWorf
Parent article: Resistance to Rust abstractions for DMA mapping

The awkward moment when you reply before thinking about what you're replying to, and then realize that you completely missed the point its author was making (or, apparently, trying to make)?

For the record, I didn't miss that line at all. I merely disagree, rather vehemently in fact, with your "C is easier" point. Because it definitely isn't. Not by the time you need to use nontrivial interfaces … like the rest of the Linux kernel, which I assume is still the context of this discussion.

C (and even more so, assembly) is not at all explicit in the sense that the interfaces to existing code are full of implied assumptions you need to adhere to, otherwise your code is buggy and will crash on you (or randomly corrupt your users' RAM, who knows). By contrast, in well-written Rust interfaces most of those cannot-be-stated-in-C-much-less-assembler assumptions are right there and the *compiler* will *tell* you if you violate them.


to post comments

Cancer?

Posted Feb 17, 2025 8:12 UTC (Mon) by LtWorf (subscriber, #124958) [Link]

???

You keep talking about kernel and it was referred to user space. Since I even spoke about distributing and dependencies, which are very different on the kernel… That's because the comment I was replying to was wondering why would anyone still use C in general.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds