Presentation: From Rocks to Rust: Our C to Rust Paradigm Shift

Track: Leading Edge Backend Languages

Location: Windsor, 5th flr.

Duration: 1:40pm - 2:30pm

Day of week: Monday

Level: Intermediate

Share this on:

What You’ll Learn

  1. Hear Metaswitch’s story of moving from a C legacy system to Rust.

  2. Listen why Rust is a good fit for microservices and fast-delivery systems.

  3. Find out what are some of the preconceptions people have about Rust, and how it compares to Go.

Abstract

A leader in cloud native communications software, Metaswitch has recently chosen Rust as its preferred language. Fine and dandy on the face of it, but what has that actually been like for a developer working ‘on the coal face’?

I studied the history of geology prior to working for Metaswitch, and this background has informed my perspective as a relatively new developer transitioning from more traditional languages like C to the world of Rust. I explain how the paradigm shift our developers have experienced is akin that of the nineteenth-century geologists who were suddenly faced with the idea that the world was vastly older than they had previously thought. I discuss the reasons why Metaswitch chose Rust, and what it’s been like for our development teams getting to grips with this language.

Question: 

Tell me about the work that you're doing today.

Answer: 

We're working on bringing to cloud an existing project for one of our clients. It involves a lot of work with products that are quite old, 20 years old, that were written in C, and we're turning a lot of these old products into microservices, containerising them, looking to get the whole system up and working in the cloud for our client, which involves a lot of cool interfacing with new languages like Rust, trying to build these wrappers on our own products to enable easier RESTful HTTP interfaces. It's quite an exciting mix of the old stuff that we used to do with a lot of new groundbreaking stuff that we're trying to be pioneers for.

Question: 

Are you writing microservices with Rust?

Answer: 

Yes, some of our new microservices that are part of this project are written in Rust.

Question: 

What's the motivation for the talk?

Answer: 

We want to evangelize Rust as a company. We made the decision to move to Rust as our preferred programming language going forward. So it's in our best interest that people do the same thing. But we’re not just motivated for own gain! - we genuinely do think that Rust is a great language and that we've got a lot of benefits from using it. We want other people to be able to take advantage of these benefits as well.

Question: 

Who's the main person you have in mind when you're talking?

Answer: 

It's a mix. I'd be looking at talking at the developer level to people who might benefit from writing their products in this language and the gains that can be made there. But also at a higher level, the more senior folk who would be responsible for making the decision to adopt Rust as their go-to programming language. I want to reach out to that decision-making level, but also to the day-to-day developer who has to deal with that decision.

Question: 

What do you say to developers that might say, Rust is an awesome language but it has a huge learning curve. If you're going to be writing microservices why not use something more opinionated and simple like Go?

Answer: 

I think that's a very legitimate concern and it is something that I directly address in my presentation. The short answer is, yes, Rust has a learning curve. This is something the community has acknowledged and is already taking steps to mitigate. If you pick up Rust now compared to a year ago it's already much simpler and easier to get to grips with. In terms of Go being simpler and perhaps more lightweight and easier to get started with, yes, I think that might be true but there are limitations to Go. A notable one is that Go needs a garbage collector whereas Rust doesn't have that. For the extremely fast high-level processing that we need to do as part of telecoms, Rust was definitely a better fit for us. And there are other factors too that I address.

Question: 

What do you want someone who comes to your talk to leave with?

Answer: 

I want them to leave feeling that Rust is a viable choice for them to make. I want to address some of the preconceptions people might have about Go versus Rust in terms of ease of use and suitability for these kinds of projects involving microservices and high-processing, fast delivery. I want people to come away intrigued, and seeing Rust as a not just a novelty but as something that can work for them and be a good fit.

Speaker: Esther Momcilovic

Software Engineer at Metaswitch Networks

After a past life as a PhD historian, Esther now works as a software engineer at Metaswitch, a leading cloud native communications software company. She works on Metaswitch’s mobile messaging technology, and has recently been focussing on containers, microservices, new languages like Rust, and slightly-less-new languages like C. In her spare time she enjoys coxing for her local rowing club, and running half marathons while thinking this would all go much faster if she was in a boat.

Find Esther Momcilovic at

Tracks

Monday, 5 March

Tuesday, 6 March

Wednesday, 7 March