Kubefeeds Team A dedicated and highly skilled team at Kubefeeds, driven by a passion for Kubernetes and Cloud-Native technologies, delivering innovative solutions with expertise and enthusiasm.

Big Moments in Rust 2024

3 min read

year wrapup illustratiojn

The Rust project’s headline goal for the year has been the development of a new edition of Rust. Editions create points in the project’s life cycle that allow new keywords to be added to the language, additions to the standard library and other changes to be made. This is “the largest edition since Rust 2015,” according to a post on The Rust Blog.

Most of the changes are subtle, yet significant improvements in the language. Programmers will find the language easier to use. One big change is that creating a direct reference to shared global variables that are open for write access  — Rust calls these “mutable statics” —  is now impossible. Until now, permitting references has been a hidden source of undefined behavior in the language.

One of the features that I’m most excited about is generators. So far, there’s just been a gen keyword into the language. The work to pull generators into stable Rust can now begin in earnest. (Generators already exist in the so-called “nightly” compiler, which does not provide stability guarantees.)

Many More People Are Using the Language

One metric that’s useful to track is the number of installs of the official Rust extension for Visual Studio Code extension, rust-analyzer, has. The number currently stands at 4.15 million. That’s up from 2.66 million at the start of the year.

Screenshot of the Visual Studio Marketplace page for rust-analyzer, showing 4,148,456 installs of the extension.

People Shipped Excellent Products

To start, Tiny Glade was released. This diorama builder game has proven to be remarkably successful, and the big news from the Rust community was that the game was written entirely in the language.

Screencap from the gameplay trailer from Future Games Show at Gamescom 2023.

On the more serious side, Rust’s advantages are beginning to show themselves with writing software libraries. A Rust implementation of the PNG image file format now outperforms its traditional C-written counterparts. This is due to the fact that the Rust language provides cross-platform support for SIMD instructions. People writing C libraries need to manually provide implementations for every target architecture.

Image processing is not one-off. Rustls, a Rust-based implementation of TLS security that underpins HTTPS, is now faster than BoringSSL and OpenSSL. The nonprofit that is funding that work, the Internet Safety Research Group (ISRG) started with Let’s Encrypt and is now making strides in improving all aspects of Internet infrastructure. This has included fundamentals like timekeep between computers and now an implementation of a memory-safe, high-performance reverse proxy called River. This seeks to challenge NGINX’s dominance in that space.

One thing to look out for in the future is the newly launched Trifecta Tech Foundation. They have a fork of the Rust compiler that can generate an executable that performs compression and decompression that’s 14% faster than what the standard compiler produces. Expect these performance improvements to diffuse into the mainline over time. Rust’s blazingly fast and is going to get hotter.

Confidence In the Language Is Growing

Last March at the Rust Nation UK conference, Lars Bergstrom revealed that “Rust teams at Google are as productive as ones using Go, and more than twice as productive as teams using C++

The Compiler Is Getting Smarter in Every Release

For me, the 1.79 release was one of the most impactful. Many of my teaching examples, that explained why the borrow checker is needed, stopped working because the borrow checker got smarter. That is, the example code refused to compile — the borrow checker was being overly strict.

People Are Getting Ambitious

The US Government’s defense research agency DARPA announced the TRACTOR program to create tools to translate unsafe C to safe Rust. The intent is to rapidly speed up large-scale rewriting systems written in memory unsafe languages, then port them to Rust.

The Safety-Critical Rust Consortium was announced in June, aimed at bringing Rust to critical industries. This a major step towards seeing Rust within cars, trains and planes.

In February, Google announced a $1M grant to the Rust Foundation to support initiatives to improve inter-operability of Rust and C++. This grant spawned the wider Interop Initiative, which has seen the emergence C++/Rust Interoperability Problem Statement. Bridging C++ and Rust will mean that it will be much easier for Rust projects to extend existing code bases.

Amazon Web Services and the Rust Foundation have decided to embark on a project to formally verify the standard library. They’ve created an awards scheme for verifying parts of the standard library, with a hope that this will enable new tools and techniques to emerge and eventually the entire standard library’s correctness will be formally verified. The standard library today contains thousands of uses of the unsafe keyword. While the community is confident that those uses are correct, that correctness is not guaranteed. Formal verification will change that.

The Community Is Getting Stronger

2024 was pleasantly devoid of the “Rust drama” that’s plagued previous years. Indeed, new communications channels emerged.

The Rust Foundation hosted the marquee event for the community, RustConf. While this may seem like a fairly insignificant achievement, the conference has been a flashpoint of disagreement and hostility over recent years.

Many conferences and events focused on the language have appeared. Major events are now regularly occurring all over Europe. It’s particularly encouraging to see financial support for areas of disadvantage, such as Rustaceans Kenya.

The year 2024 also saw a revitalization of the podcast scene. There is now a rich collection of podcasts offering differing perspectives, interviews and formats.


For more on the biggest news in programming languages from 2024, check out Darryl K. Taft’s report, “Language Wars 2024: Python Leads, Java Maintains, Rust Rises.

The post Big Moments in Rust 2024 appeared first on The New Stack.

Kubefeeds Team A dedicated and highly skilled team at Kubefeeds, driven by a passion for Kubernetes and Cloud-Native technologies, delivering innovative solutions with expertise and enthusiasm.