• @Cypher
    link
    34 hours ago

    Hellwig has some excellent points and people are up in arms solely because he’s not giving the green light for the shiny new toy.

    Keep the wrappers in your code instead of making life painful for others

    This is a perfectly valid approach, anyone claiming he’s resistant for no reason has never tried maintaining a multi language code base.

    If you want to use something that’s not C, be that assembly or Rust, you write to C interfaces and deal with the impedance mismatch yourself as far as I’m concerned.

    Again an entirely reasonable approach. There is precedence for this approach in the kernel/dma and I see no reason to change this now, unless a full kernel/dma rewrite to Rust were to occur.

    • @[email protected]
      link
      fedilink
      219 minutes ago

      What they are asking is not to change the c code to suit rust, but to leave the C code as is, and have a single Rust-written wrapper that links into the C DMA code so that other Rust drivers can link into the wrapper. Additionally, said wrapper is not to be maintained by Hellwig, but by the maintainers of the drivers that will use the wrapper, so without overhead for Hellwig.

      He is not asking to not make his work harder, he’s explicitly asking to make it harder for rust drivers to use DMA.