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

แชร์
ฝัง

ความคิดเห็น • 29

  • @Kane0123
    @Kane0123 7 หลายเดือนก่อน +26

    Kotlin mentioned.

  • @tui3264
    @tui3264 7 หลายเดือนก่อน +45

    Lars please go to Nvidia Next and make them use Rust

    • @RenderingUser
      @RenderingUser 7 หลายเดือนก่อน +13

      and force them to open source it

    • @mskiptr
      @mskiptr 7 หลายเดือนก่อน

      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 7 หลายเดือนก่อน +5

    Good Talk. Missed a proper comparison with Go though

  • @zactron1997
    @zactron1997 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน +8

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

    • @jacksonbourne
      @jacksonbourne 7 หลายเดือนก่อน +4

      sure seems like it lol

    • @jeffreyvanderstoep4937
      @jeffreyvanderstoep4937 6 หลายเดือนก่อน +7

      He's comparing rewrites in C++ with rewrites in Rust.

  • @mskiptr
    @mskiptr 7 หลายเดือนก่อน +3

    "Go Forth" lmao

  • @arya_bakh
    @arya_bakh 7 หลายเดือนก่อน +6

    powerpoint is so small

  • @nickjunes
    @nickjunes 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน +1

      @@joaodiasconde thanks.

    • @DavidSchmitt
      @DavidSchmitt 7 หลายเดือนก่อน +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?

  • @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 7 หลายเดือนก่อน +16

    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 7 หลายเดือนก่อน +3

      avatar checks out.

    • @nextlifeonearth
      @nextlifeonearth 6 หลายเดือนก่อน

      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.