Rust in Production at Tweede golf (podcast)

Folkert
Systems software engineer
Rust in Production at Tweede golf (podcast)
In February of 2024, I was invited by Matthias Endler of Corrode to join him on his podcast Rust in Production. We discussed how Tweede golf uses Rust in production, to ensure the safety and security of critical infrastructure software.

In particular, Matthias was interested in three topics.

Roc

Matthias wanted to know what kind of language Roc is and why we are using Rust to develop it.

"So Roc can actually compile and link and then run Hello World faster than Python can print it."

Jump right into our discussion of Rust in Roc at 3:56 min;

ntpd-rs

We also talked about what the Network Time Protocol is, at 25:48 min, and we dove into why Rust was a good choice for a modern implementationof it, at 39:18 min (and not just a rewrite).

"Rust is an obvious choice. We can guarantee that there are no memory safety problems. We get good performance. We use Tokio and Async to sort of handle all of that for us. So we don't need to do our own threading in the application at all. And of course Rust has amazing tooling in terms of testing, fuzzing."

This evaluation also touched on the more general benefits of Rust.

"I think the Rust compiler just gives us so much baseline security that we have less to worry about because out-of-bounds access will at least panic, right? It won't silently continue to run. It will actually sort of fail loudly. But then also, I think Rust has all of these other benefits; it is a modern language, it has good documentation, it has a good beginner experience, so we can onboard new people onto the project easily."

Critical infrastructure risks

Toward the end of the podcast, we discussed the real issue of legacy software in critical infrastructure being invisible as well as a potential risk, at 1:04:57.

"A lot of these vital sectors - critical domains, like energy, shipping, any form of transport - have a lot of this very dated software on very dated hardware. That is a major issue, a major risk."

The full episode

The full episode is an hour and twelve minutes (1h12m) of Rusty goodness, so there are far more details to dive into. Enjoy!

(our services)

Thinking of using Rust in production?

Get help from the experts!

  • reduce first-project risk
  • interop with existing code
  • train your team on the job

> Contact us

Stay up-to-date

Stay up-to-date with our work and blog posts?

Related articles

If one person at Tweede golf is a Rustacean, it’s definitely Wouter. Whether it’s about web, embedded, or even games: he tried it. And probably not just tried it, but prototyped, created, documented, presented, and nailed it. Just take a look at Wouter’s GitHub page[1]. He’s also engaged in the Rust community as an organizer of RustFest, member of the Dutch Rust foundation, and as maintainer of several open-source crates. He believes that Rust is well on its way to perfection.

August 14, 2020

Functional Rust? (4/5)

Lars started at Tweede golf about a year ago. We lured him in with the prospect of working on a cool embedded project in Rust. Since then he clocked a lot of Rust hours on it and on a research project we are running. Still, he manages to astound us with critical notes on Rust. Rightly so? Let's just say interviewing a functional programming purist like Lars gives us a lot of new perspectives around Rust.
July 31, 2020

Rust wide web (2/5)

Ruben has experience with a lot (and I mean a lot) of programming languages. When I asked which ones, he could name 21 off the top of his head. He loves experimenting with them, seeing what each can and can’t do. What makes a language unique? What can one language do better than the other? Why was Ruben the one to first evangelize Rust within Tweede golf? Let’s ask him!