Rust never sleeps: How a programming language enables green tech initiatives

Gettyimages.com/ Flavio Coelho

The Rust programming language has the potential to lower the environmental impact and energy usage of data centers while also driving developers to write more secure applications, our commentator writes.

Environmental impact may not be anyone’s first reaction to the increased adoption of a programming language. Yet, the focus on environmental, social and governance (ESG) initiatives in business and government have prompted many in IT to consider how the Rust programming language can not only help in faster, more secure coding, but in greener products as well.

Rust is incrementally finding its way into the open-source Linux kernel. According to an April installment of the Google Security Blog, Android now supports the Rust programming language for developing the OS. Google also is evaluating Rust as a supported programming language for the Linux kernel.

For some developers and service providers, the environmental benefits of this growing acceptance are on a par with its more obvious programming benefits.

This tracks with the interest shown in ESG at both the federal and state government level (as well as in the private sector). At the state and local level, the concept is being implemented by adopting ESG goals within government operations and services, in new policies and regulations, and in decisions about government assets and liabilities.

The federal government also has taken an active interest ESG initiatives, as indicated by a White House Executive Order issued May 20, 2021, regarding climate-related financial risk.

“In this effort,” the order reads, “the Federal Government should lead by example by appropriately prioritizing federal investments and conducting prudent fiscal management.” Major federal agency procurements should “minimize the risk of climate change, including ... preference to bids and proposals from suppliers with a lower social cost of greenhouse gas emissions.”

So how does that tie in with a programming language? It starts with data centers.

In February Amazon published a blog titled, “Sustainability with Rust.” They noted that data centers are responsible for 200 terawatt hours of energy use per year worldwide – about 1% of all energy usage. And yet, they also showed that demand has remained essentially flat as far back as 2010, despite growth in cloud-based storage and compute capabilities over the same period.

Broad adoption of Rust could reduce energy consumption of compute demands by a conservatively estimated 50%, Amazon wrote. Rust delivers the energy efficiency of the C programming language, “without the risk of undefined behavior,” according to the blog. “We can cut energy use in half without losing the benefits of memory safety.”

That’s significant not only for a cloud services company like Amazon’s AWS, but for the many software businesses that use the cloud to deliver and maintain their products. It’s so important for AWS, in fact, that it equates the shared responsibility of energy efficiency with its similar shared responsibility approach to security.

“AWS customers are responsible for energy efficient choices in storage policies, software design, and compute utilization, while AWS owns efficiencies in hardware, utilization features, and cooling systems,” the Amazon blog explained.

From a contractor’s perspective, this is significant for a variety of reasons. Let’s be frank: Most defense technology contracting firms don’t really have an ESG story. By incorporating Rust into their products and services, these firms can get ahead of the White House mandate to give procurement preference to businesses that can demonstrate socially and environmentally conscious efforts.

For developers, the vector to ESG starts with speed. The cloud fiscal model is based on metered billing – companies pay for all their compute instances by the hour, which is what makes it preferable to building out a corporate server farm. With a metered billing system, if a company running software to process data 365 day a year could save five seconds or more by using a programming language like Rust, the savings quickly add up.

For smaller companies this transition is likely to make an almost immediate impact on their bottom line. For a company like ours, it may take 10 seconds to process a complex file in Python, or four seconds in Java. It may take a single second using Rust. So a company may be able to process 10 more files using Rust than with Python.

For larger companies, the advantage is even more eye-opening, especially from an environmental perspective. Not only do these companies realize the same type of advantage as explained above, that advantage also means less energy usage, and a smaller carbon footprint overall. For a company the size and scale of Amazon, with all of its data centers, less energy required to serve its clients means a significantly reduced level of carbon emissions.

Those benefits don’t even take into account the third way in which Rust will help the contracting industry, which is memory security, as Amazon alluded to earlier. Rust was designed not to allow programmers to create unsafe software. It is ranked every year as the most favored developer language.

But it's also ranked as one of the more difficult ones, because it forces developers to write secure software. It will not allow developers to create software with security, bugs, and exploits. No other programming language so far has ever tried to enforce that, even at that lowest level. So while it may take longer to develop software with Rust, it's inherently more secure.

All of this is to say that there is an important story to tell with Rust – not just from the perspective of better, faster, more secure and more affordable products, but from the point of view of more environmentally sound business practices as well. The effort put into using Rust to develop products will be more than offset by the business advantages it will deliver.


Dave Hirko is founder and principal of Zectonal. He can be reached at dave@zectonal.com

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.