Menu
Sign In Search Podcasts Libraries Charts People & Topics Add Podcast API Blog Pricing

Gergely Orosz

๐Ÿ‘ค Speaker
738 total appearances

Appearances Over Time

Podcast Appearances

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

Yeah, and I guess there's also things like, can you forget to initialize a variable in Rust?

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

It doesn't allow you, right?

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

Yeah, and I guess the things with checking the format of incoming JSON, it also forces you to do that.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

And again, yeah, so it helps you avoid errors.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

And there's this thing which, again, I learned just very recently thanks to you as we're talking ahead of this, is the switch statement, right?

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

So in almost every language, you have a switch for an enum and you handle cases and then you might have a default or everything else.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

And sometimes you forget one of them is not a big deal or maybe it's a big deal.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

But in Rust, you cannot do that either, right?

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

I get a sense that the language designers have thought really hard of what are ways that typically go wrong in a lot of other programming languages, and they just try to fix it through the compiler.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

The documentation example is the one where I'm still like, wow.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

It happens all the time.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

You have a comment, example or not, and then it gets out of sync, and we always complain about this, and we don't know how to fix it.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

I know I've been complaining for a decade plus,

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

Rust is the first language where I hear an actual solution, even if it's not a perfect one.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

And we've had the pitch from TypeScript or similar languages.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

What about the pitch from C++?

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

Let's talk about memory safety.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

Okay.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

And then an attacker who figures this out could populate something there, eventually get that code somehow executed or configuration read, and then boom.

The Pragmatic Engineer
Why Rust is different, with Alice Ryhl

That's a root user.