• TootSweet@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Right? It’s in the kernel and everything now. Linus likes it. Linus hates everything. HOW MUCH ARE THEY PAYING HIM?

      • Anna@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I’m pretty sure Linus dissed on RUST, but then again he disses on everything and everyone.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Did he actually say that he likes it? My impression was that it’s not his comfort zone, but he recognizes that for the vast majority of young programmers, C is not their comfort zone. And so, if they don’t hop on this Rust train, the Linux kernel is going to look like a COBOL project in a not too distant future. It does not happen very often that a programming language capable of implementing kernels gains wide-spread adoption.

        • Possibly linux@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          The problem is that both Rust and Go are huge. The compiled binaries are bigger and the compilers themselves and slower and more resource intensive. The current benefit to C is that is lean and compiles quickly.

          • Zangoose@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Rust is only huge because it doesn’t have an ABI. If you had an ABI (and didn’t have to compile every single dependency into the binary) the binary sizes would probably drop a lot to the point where they’re only slightly bigger than a C counterpart

            Edit: I don’t know if Go has an ABI but they also include a runtime garbage collector in their binaries so that probably has something to do with it.

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I’ll never touch Rust.

      I hate the syntax and cargo too much for that. If that means that I’ll never write mission critical, low level code, so be it.

    • kekmacska@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      the author of C++ said that C gives you many opportunities to shoot yourself in the leg. You have a much less chance for this to happen with C++, but when it does, you will blow your whole lower body off

      • Valmond@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Yeah C++ is a bazooka, C is like the death of 1000 paper cuts.

        The paper cuts are all poisonous and kills you anyway.

        • kekmacska@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          I haven’t used either, but compiled a lot of C source code and they compiled or could be adjusted easier even for someone who barely knows what printf, fopen, or #include are

          • Possibly linux@lemmy.zip
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            The thing with C is that you probaby won’t know you messed it up. It happens silently as memory gets corrupted.

            Modern compilers are much more advanced but you still can overwrite stuff in memory with other stuff

  • z3rOR0ne@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Girl, I will wear whatever socks you want, but… pulls out my own gun. We’re reading this damn book instead.

  • 𝕸𝖔𝖘𝖘@infosec.pub
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Put the gun away and throw that cpp book in the bin, fool. I brought The Linux Kernel Programming Guide, which is in C, and my own socks, which are wool. Now let’s gets crackin.

      • 𝕸𝖔𝖘𝖘@infosec.pub
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Never touched rust, so I don’t understand the hype. I’m not arguing against it, mind you, but I’m gathering, more and more, that it’s worth a look. Maybe I’ll look into it after work.

        • snekmuffin@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          even all of that hype about memory safety and borrow checker you keep hearing aside, the actual coolest thing about Rust is how it does Traits instead of classes and that you can bind arbitrary data to enums

    • interdimensionalmeme@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Here’s what we’re gonna do. We’re going to do the equivalent of x11 application network transparency but with wayland.

      Kind of like streaming a desktop with sunshine, but on an app by app basis.

      Also we’re gonna make a client that work for it on android, windows and in a browser.

      Then I’m going to fuck you in the ass