Rust isn’t as popular as Java, JavaScript or Python, but it’s become a critical language for building systems like the Linux kernel, Windows, Chrome, and Android. AWS was an early supporter of Rust and is a founding member of the Rust Foundation, and has an ongoing Rust recruitment drive. SEE: Web developer or CTO, which tech jobs have the fastest growing salaries? Rust helps developers avoid a host of memory-related flaws common to C/C++, which ultimately cost organizations in security updates. The language got its most high-profile support when Microsoft revealed it was experimenting with it for Windows, chiefly to dodge memory bugs. Datacenters make up 1% of the world’s energy consumption, amounting to about 200 terawatt hours of energy a day, and the programming languages used can also impact energy consumption. “It’s not a surprise that C and Rust are more efficient than other languages. What is shocking is the magnitude of the difference. Broad adoption of C and Rust could reduce energy consumption of compute by 50% – even with a conservative estimate,” says Miller, pointing to a study showing the relative energy efficiency of languages, from C to Google’s Go, Lua, Python, Ruby and old Fortran. “Rust delivers the energy efficiency of C without the risk of undefined behavior. We can cut energy use in half without losing the benefits of memory safety,” says Miller. She points to the performance of an app by cybersecurity firm Tenable that was previously written in JavaScript but is now written in Rust. The Rust app trounces JavaScript in CPU performance, cutting latency by half and CPU usage by 75%, and memory usage by 95%. Popular messaging app Discord also moved to Rust after initially being built on Python, Google’s Go, and Elixir. “Because Go is a garbage collection (GC) language, as objects are created and released, every so often, the garbage collector needs to stop execution of the program and run a garbage collection pass,” explains Miller. SEE: Tech salaries just hit record highs. So why do IT staff still feel underpaid? Rewriting that service in Rust enabled that service to be 10 times faster and much reduced latencies, translating to fewer servers and as a result, less energy. “Rust isn’t the first efficient language. C has been around for a long time, but Rust is the first mainstream programming language that is efficient without sacrificing safety. 70% of all high severity security vulnerabilities written with C and C++ are due to memory unsafety, and Rust gives you efficiency without feeling like you’re playing with fire,” says Miller. However, for all the good news, Rust isn’t without some drawbacks, most noteably that it’s hard to learn. It takes experienced engineers 3-6 months of study, supported by access to subject matter experts, to become productive with Rust, Miller and Lerche note. “Some engineers have likened learning Rust to learning to eat your vegetables, and while many of them love it once they are productive, a lot of engineers are deciding against learning it or abandoning the effort before they become productive. The potential impact of Rust on sustainability and security will only materialize if we turn the broccoli into a brownie.”