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

So if we request a piece of memory, but we don't have any more, for example, like this, there has to be still debug assertions.

Rust in Production
Gama Space with Sebastian Scholz

And in fact, Rust itself brings a lot of debug assertions as well.

Rust in Production
Gama Space with Sebastian Scholz

Every time you access an array, for example, or a slice,

Rust in Production
Gama Space with Sebastian Scholz

You have debug assertions that make sure that you don't go over any of the limits in memory.

Rust in Production
Gama Space with Sebastian Scholz

And that's one of the strong systems of Rust as well, right?

Rust in Production
Gama Space with Sebastian Scholz

That's the memory safety.

Rust in Production
Gama Space with Sebastian Scholz

All of these checks at runtime as well.

Rust in Production
Gama Space with Sebastian Scholz

Of course, you can disable them.

Rust in Production
Gama Space with Sebastian Scholz

But for us, it's a trade-off of size versus security.

Rust in Production
Gama Space with Sebastian Scholz

And for the Gamma Alpha project, at least, we were able to leave debug assertions on.

Rust in Production
Gama Space with Sebastian Scholz

Because that's another part of the space industry.

Rust in Production
Gama Space with Sebastian Scholz

Usually you work with hardware that is not like your modern laptops and computers where you have basically unlimited memory and space.

Rust in Production
Gama Space with Sebastian Scholz

No, our programs need to fit in tiny flash memories.

Rust in Production
Gama Space with Sebastian Scholz

And so removing debug assertions can be one of the ways where you can have more actual code, but with a smaller size.

Rust in Production
Gama Space with Sebastian Scholz

And by tiny, you mean how large?

Rust in Production
Gama Space with Sebastian Scholz

I think like a couple hundred kilobytes.

Rust in Production
Gama Space with Sebastian Scholz

Oh, wow.

Rust in Production
Gama Space with Sebastian Scholz

It kind of depends.

Rust in Production
Gama Space with Sebastian Scholz

I mean, for the Alpha satellite, we had, I think, so the processor itself had an integrated flash memory of 256 kilobytes.

Rust in Production
Gama Space with Sebastian Scholz

And then we had an external chip with, I think, an additional one megabyte of flash, if I'm not mistaken.