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

Sebastian Scholz

๐Ÿ‘ค Speaker
485 total appearances

Appearances Over Time

Podcast Appearances

Rust in Production
Gama Space with Sebastian Scholz

And then I like to make sure that

Rust in Production
Gama Space with Sebastian Scholz

We use the type system to its full extent and to encode any preconditions, as I said, into these types.

Rust in Production
Gama Space with Sebastian Scholz

It's kind of like if you have a precondition for using a value that can't be zero, in Rust, you have the non-zero type.

Rust in Production
Gama Space with Sebastian Scholz

So Rust itself uses a lot of these types for preconditions as well.

Rust in Production
Gama Space with Sebastian Scholz

Same with the C string, a string that has to be zero, null by terminated.

Rust in Production
Gama Space with Sebastian Scholz

So Rust itself gives us a lot of these ideas as well.

Rust in Production
Gama Space with Sebastian Scholz

And so when I examine code, I'm just trying to think of all of these different invariants that need to hold true for a specific code.

Rust in Production
Gama Space with Sebastian Scholz

I'm trying to find them out and make sure that they're expressed as much as possible.

Rust in Production
Gama Space with Sebastian Scholz

Are you a friend of debug assertions?

Rust in Production
Gama Space with Sebastian Scholz

Well, I mean, we use them extensively as well, but only in places where we can't guarantee something just with the type system.

Rust in Production
Gama Space with Sebastian Scholz

I mean, there's always certain things that you can't guarantee at compile time, especially if you're

Rust in Production
Gama Space with Sebastian Scholz

Some of these things you just can't do with just the type system.

Rust in Production
Gama Space with Sebastian Scholz

For example?

Rust in Production
Gama Space with Sebastian Scholz

Some of the runtime state that can't be known at compile time, we, for example, have our own heap.

Rust in Production
Gama Space with Sebastian Scholz

And so the idea of a heap is that you have a bunch of memory available and you at runtime allocate things out of that heap as needed.

Rust in Production
Gama Space with Sebastian Scholz

You can never kind of really be sure how much you allocate just from looking at your code because it depends on timing.

Rust in Production
Gama Space with Sebastian Scholz

It depends on when certain pieces of code need certain amount of memories.

Rust in Production
Gama Space with Sebastian Scholz

And so for those kind of