‹ BackHN Continuity

Thread

Nvidia announces native GPU programming in Rust

970 points · 404 comments · nonmaskable

  1. jacobgorm · · focus · HN ↗
    I strongly dislike CUDA. Once you have allowed that proprietary cr*p into your C++ codebase, it is very hard to get rid, and you end up with code that is either tied to a single vendor or an #ifdef hell, probably both.

    The best way to program GPUs is face up to the reality that they are not the same machine as the CPU, write your kernels in separate files, and launch them manually, like in Metal, OpenCL, and D3D12, etc. These days we even have DSLs like Triton that make kernel writing much more ergonomic than anything you would hope to achieve in Rust.

    1. tombert · · focus · HN ↗
      > I strongly dislike CUDA. Once you have allowed that proprietary cr*p

      Genuine question...why not just type "crap"? It's not even that much of a curse, but I've never really understood the point of self-censorship. If you don't want to curse then you could just use a non-curse word.

      1. jimbob45 · · focus · HN ↗
        His kids were probably watching him type over his shoulder and he didn’t want to hear, “Daddy, what does crap mean?”
        1. tombert · · focus · HN ↗
          I am arguing that they would ask that anyway.

          I guess I never understood censorship when it’s plainly obvious what you’re censoring. Anyone who can read will clearly know that it said “crap”, so I don’t see how it’s fundamentally different than just saying the word. You still put the word into my brain.

        2. Cthulhu_ · · focus · HN ↗
          "Daddy, what does cr*p mean?" Kids aren't stupid and this self-censorship isn't protecting anyone from anything.

          (if a platform is serious about Bad Words for whatever reason (moral?) they would also forbid character replacements; ultimately it's the intent, not the word itself, that they try to steer with rules like that)

        3. xxs · · focus · HN ↗
          I'd consider that a joke - but also zero issue using any words talking in front of kids. You might wish to explain them anyways.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.