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

  Рет қаралды 8,237

Rust Nation UK

Rust Nation UK

Күн бұрын

We often talk about how Rust enables anyone to build software that is safe, fast, and concurrent. And, we frequently highlight all of the incredible tools from the compiler to cargo to an ever-growing suite of associated projects that aid the developer. Here, I'd like to talk about how all of this translates into productive teams that run leaner, deliver faster, and spend less in ongoing maintenance than ones working with legacy native systems languages.

Пікірлер: 32
@Kane0123
@Kane0123 2 ай бұрын
Kotlin mentioned.
@tui3264
@tui3264 2 ай бұрын
Lars please go to Nvidia Next and make them use Rust
@RenderingUser
@RenderingUser Ай бұрын
and force them to open source it
@mskiptr
@mskiptr Ай бұрын
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 Ай бұрын
@@RenderingUser I doubt they will do that as they are market leader
@Alberto_Cavalcante
@Alberto_Cavalcante Ай бұрын
Good Talk. Missed a proper comparison with Go though
@marcelofernandes6501
@marcelofernandes6501 Ай бұрын
Google has a lot of very old legacy C++ code. I assume that's not true for Rust given that it's a new language and adoption at Google has been a recent thing. So it's not clear to me if he is comparing productivity on very old C++ codebases full of legacy and history, with new codebases written in Rust. Because those would be two completely different dragons.
@stzi7691
@stzi7691 Ай бұрын
I thought something along those lines, but Lars also mentioned that the code once re-written in Rust is easier to maintain with the language. I think that would be my main point about it. I have written some C++ for a couple of years and looked into Rust. Rust has more orthogonal concepts and also not the huge historic payload C++ has. For instance algebraic data types and optionals are a powerful feature that allows software to be built like lego brickstones on top of each other. You can easily add concepts or erase them without breaking too much of the rest of your code. With some effort you can also do this in C, but it is very much harder. You cannot use the chassis, you have to wield it first. But doubly-linked lists are for sure easily understandable in C 😊.
@claytonstangeland
@claytonstangeland Ай бұрын
Is he comparing new development in go to a rewrite in rust?
@jacksonbourne
@jacksonbourne Ай бұрын
sure seems like it lol
@jeffreyvanderstoep4937
@jeffreyvanderstoep4937 Ай бұрын
He's comparing rewrites in C++ with rewrites in Rust.
@zactron1997
@zactron1997 2 ай бұрын
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.
@Ic3Q4
@Ic3Q4 Ай бұрын
Now i wish there'd be a company in switzerland i could work for with rust ngl
@mskiptr
@mskiptr Ай бұрын
"Go Forth" lmao
@nickjunes
@nickjunes Ай бұрын
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 Ай бұрын
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 Ай бұрын
The point is you can fearlessly refactor it with compiler making sure you don't break anything (logic errors may exist obviously)
@nickjunes
@nickjunes Ай бұрын
@@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 Ай бұрын
@@joaodiasconde thanks.
@DavidSchmitt
@DavidSchmitt Ай бұрын
​@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 2 ай бұрын
powerpoint is so small
@Quarkss
@Quarkss Ай бұрын
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 Ай бұрын
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 Ай бұрын
@@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
@theboomerperspective2478
@theboomerperspective2478 2 ай бұрын
If only they were not obsessed with C++ and made it actually productive and readable. And stand on it's own and not just C++ "competitor".
@anonymousalexander6005
@anonymousalexander6005 Ай бұрын
That's the thing, it's more of a competitor to Go/Java/C# than people think, Zig is the real competitor to C and C++. Rust provides a toolset that can be significantly different and more high level than C/C++ and still maintain performance and low level capabilities. That's a reason Linux allowed Rust and not C++, because even with RAII, C++ cannot be compared with GO or Java. The "problem" is that C/C++ has been basically the only way to write performant applications even when it's not a great fit in level of abstraction or toolset, and now that Rust exists, people believe it's encroaching upon the problem domain C/C++ has largely been undeservingly dominant in.
@khai96x
@khai96x Ай бұрын
@@anonymousalexander6005 Being as productive as Go/Java/C# doesn't stop Rust from competing with C/C++. Rust is a zero-cost ahead-of-time no-runtime language that compiles to lowest level, same as C and C++. While the type system and other language features make Rust more high-level than Go and Java, and almost as equal as Haskell.
@RobertFletcherOBE
@RobertFletcherOBE Ай бұрын
@@anonymousalexander6005 C/C++ deserved to be dominant because they were the best. rewriting history is silly. maybe we have something better now, which is awesome. That doesn't suddenly mean C/C++ were bad choices in the older landscape.
@shadamethyst1258
@shadamethyst1258 Ай бұрын
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 Ай бұрын
avatar checks out.
@nextlifeonearth
@nextlifeonearth Ай бұрын
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.
Moving beyond Arc˂Mutex˂T˃˃ - Katharina Fey
1:00:10
Rust Nation UK
Рет қаралды 11 М.
Build with Naz - Rust testing deep dive
1:12:04
developerlife․com
Рет қаралды 131
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 12 МЛН
Why Rust is NOT a Passing Fad...
8:54
Travis Media
Рет қаралды 25 М.
Living with Rust Long-Term - Jon Gjengset
33:42
Rust Nation UK
Рет қаралды 14 М.
Nikita Lapkov - Type-safe and fault-tolerant mesh services with Rust
30:22
Modern Languages Don't Help Solve Hard Problems (Jonathan Blow)
6:45
Tricks of the Trait: Enabling Ergonomic Extractors - Rob Ede
31:52
Rust Nation UK
Рет қаралды 7 М.
Tim McNamara - Unwrapping unsafe
33:03
Rust Nation UK
Рет қаралды 2,7 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 3,3 МЛН
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 1,6 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 18 МЛН
Apple watch hidden camera
0:34
_vector_
Рет қаралды 54 МЛН