‹ 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. xbmcuser · · focus · HN ↗
        * is used to give emphasis and show that they are using the word as curse word rather just calling it bad
        1. lsofzz · · focus · HN ↗
          like for example, c*nt?
          1. kbenson · · focus · HN ↗
            Maybe more like p**p, as in "that cunt p**ped in my yard"?

            I'll admit, it never once occurred to me that people might be using censored characters to provide more emphasis that a word is a swear, but I guess it does indeed do that, at least to the writer. Whether that comes across to the reader, and whether the writer cares that their intention was understood... I'm not so sure.

            1. fc417fc802 · · focus · HN ↗
              What about ^#%& as was traditional in newspaper comics strips?
              1. kbenson · · focus · HN ↗
                I interpreted that as indicating something was swearing without actually swearing. So, identifying something as swearing that isn't actually swearing.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.