Lars Bergstrom - Beyond Safety and Speed: How Rust Fuels Team Productivity

Поділитися
Вставка
  • Опубліковано 20 жов 2024

КОМЕНТАРІ • 29

  • @Kane0123
    @Kane0123 6 місяців тому +26

    Kotlin mentioned.

  • @tui3264
    @tui3264 6 місяців тому +45

    Lars please go to Nvidia Next and make them use Rust

    • @RenderingUser
      @RenderingUser 6 місяців тому +13

      and force them to open source it

    • @mskiptr
      @mskiptr 6 місяців тому

      No. We need them to have more memory safety bugs in the firmware so that we can exploit them and RIIR on our own

    • @tui3264
      @tui3264 6 місяців тому +1

      @@RenderingUser I doubt they will do that as they are market leader

  • @Alberto_Cavalcante
    @Alberto_Cavalcante 6 місяців тому +5

    Good Talk. Missed a proper comparison with Go though

  • @zactron1997
    @zactron1997 6 місяців тому +20

    A really interesting trend I've noticed is even people who hate Rust far prefer other people write in it if they need fo work together. It's all well and good to have some other language (C, Python, Zig, Java, anything) that you might be faster in, hut your 20% extra productivity is immediately lost in how you work with other people.
    And when you consider that you from fhe future is a different person, Rust becomes a complete no-brainer.

  • @claytonstangeland
    @claytonstangeland 6 місяців тому +8

    Is he comparing new development in go to a rewrite in rust?

  • @mskiptr
    @mskiptr 6 місяців тому +3

    "Go Forth" lmao

  • @nickjunes
    @nickjunes 6 місяців тому +5

    How does writing in Rust help with not having to update the code? It's not clear from this video that there is any maintenance gain other than saying the code is just easier to understand which is highly subjective. Libraries will change. APIs will change. Hardware will change, so why would your rust code require less updates?

    • @brukts3361
      @brukts3361 6 місяців тому +13

      There are quite a few angles to answer this from. It all comes from the strong type guarantees.
      Having a strong type system with low-cost enums and exhaustive branching means you can get compile-time guarantees about whether you've properly changed all the places that would need to know about this new update. I don't write modern C++, so I can't speak on it too much, but my understanding is that it lets you make changes not backed by strong type signatures, so you can have what feels like "dynamic typing" of enumerated values. You can add a new option, but you don't need to exhaustively handle this new enum case in different parts of your code.

    • @joaodiasconde
      @joaodiasconde 6 місяців тому +11

      The point is you can fearlessly refactor it with compiler making sure you don't break anything (logic errors may exist obviously)

    • @nickjunes
      @nickjunes 6 місяців тому +1

      @@brukts3361 Thanks. Interestingly I reached out to the creator of the video and he snarkily refused to answer me. I appreciate not everyone in the Rust community is like him.

    • @nickjunes
      @nickjunes 6 місяців тому +1

      @@joaodiasconde thanks.

    • @DavidSchmitt
      @DavidSchmitt 6 місяців тому +7

      ​@nickjunes well, you are putting words in his mouth that he never said (he did not say rust code needs fewer updates, his main point was that rust code is cheaper to update). So what do you expect?

  • @arya_bakh
    @arya_bakh 6 місяців тому +6

    powerpoint is so small

  • @Quarkss
    @Quarkss 6 місяців тому +3

    So like is Rust just the best shit ever invented or what… I’ve made a few loaders and a PE parser as my first rust projects and like I’m not convinced this is the savior language.. performs the same, if not slower than my c code… and takes 10x longer to complete due to its insanely freaky deaky syntax and the base language it self outside of third party crates is extremely bland… I don’t even think you can natively interact with Windows process using rust without installing another crate lmao

    • @ClearerThanMud
      @ClearerThanMud 6 місяців тому +1

      It sounds like you consider having a bunch of stuff in the std library a good thing. There are good arguments against that, no?

    • @Quarkss
      @Quarkss 6 місяців тому +1

      @@ClearerThanMud a bunch of stuff in the std? You mean having a native way to interact with the OS without installing third party crates, then yes.. I want that

  • @rinket7779
    @rinket7779 2 місяці тому +1

    lol, in the case of the C++ code you're using a low-level API (poll() syscall directly) yet, in teh Rust you're using high-level APIs that wrap all that. Comparing these two is idiotic.
    That is NOT idiomatic C++ - that looks and smells like C code. Not C++.
    There's plenty of high-level wrappers for this in c++ yet you use low-level C-style code. Nice one.

    • @NotherPleb
      @NotherPleb 2 місяці тому +1

      Your critic is targeted at whoever wrote that code, but that's just valid and common C++ code (unfortunately? still, we don't know the reason it's that way)
      I'd also add that in Rust the main abstraction to poll is made by the async runtimes which C++ lacks, what C++ abstraction do you have in mind?

    • @rinket7779
      @rinket7779 2 місяці тому

      @@NotherPleb asio is the main one and it has decent async abstractions.
      C++26 is getting senders/receivers as an async abstraction together with co-routines. Async in modern C++ is really nice.You can already use it in C++23 via the reference implementation.

    • @rinket7779
      @rinket7779 2 місяці тому

      @@NotherPleb asio

  • @shadamethyst1258
    @shadamethyst1258 6 місяців тому +15

    You seem to have successfully anɡered people on the internet, seeinɡ as you ɡot ThePrimeaɡen to speculate on your comparison methods without watchinɡ a sinɡle second of your ɡreat talk :p

    • @RobertFletcherOBE
      @RobertFletcherOBE 6 місяців тому +3

      avatar checks out.

    • @nextlifeonearth
      @nextlifeonearth 5 місяців тому

      Theprimagen still wasn't wrong though.
      It's all anecdotal still. Fresh rewrite of a legacy codebase is easier to read? Shock.
      You could rewrite that in c++ and people would say the same thing, the language had less to do with the readability. Probably the skill issue of colleagues.