Slashdot

News for nerds, stuff that matters

Rust in Android: More Memory Safety, Fewer Revisions, Fewer Rollbacks, Shorter Reviews

Android's security team published a blog post this week about their experience using Rust. Its title? "Move fast and fix things."



Last year, we wrote about why a memory safety strategy that focuses on vulnerability prevention in new code quickly yields durable and compounding gains. This year we look at how this approach isn't just fixing things, but helping us move faster.

The 2025 data continues to validate the approach, with memory safety vulnerabilities falling below 20% of total vulnerabilities for the first time. We adopted Rust for its security and are seeing a 1000x reduction in memory safety vulnerability density compared to Android's C and C++ code. But the biggest surprise was Rust's impact on software delivery. With Rust changes having a 4x lower rollback rate and spending 25% less time in code review, the safer path is now also the faster one... Data shows that Rust code requires fewer revisions. This trend has been consistent since 2023. Rust changes of a similar size need about 20% fewer revisions than their C++ counterparts... In a self-reported survey from 2022, Google software engineers reported that Rust is both easier to review and more likely to be correct. The hard data on rollback rates and review times validates those impressions.

Historically, security improvements often came at a cost. More security meant more process, slower performance, or delayed features, forcing trade-offs between security and other product goals. The shift to Rust is different: we are significantly improving security and key development efficiency and product stability metrics.

With Rust support now mature for building Android system services and libraries, we are focused on bringing its security and productivity advantages elsewhere. Android's 6.12 Linux kernel is our first kernel with Rust support enabled and our first production Rust driver. More exciting projects are underway, such as our ongoing collaboration with Arm and Collabora on a Rust-based kernel-mode GPU driver. [They've also been deploying Rust in firmware for years, and Rust "is ensuring memory safety from the ground up in several security-critical Google applications," including Chromium's parsers for PNG, JSON, and web fonts.]

2025 was the first year more lines of Rust code were added to Android than lines of C++ code...

Read more of this story at Slashdot.

Some Americans Are Trying to Heat Their Homes With Bitcoin Mining

An anonymous reader shared this report from CNBC:

[T]he computing power of crypto mining generates a lot of
heat, most which just ends up vented into the air. According to
digital assets brokerage, K33, the bitcoin mining industry generates about 100 TWh of heat annually — enough to heat all of
Finland.This energy waste within a very energy-intense
industry is leading entrepreneurs to look for ways to repurpose
the heat for homes, offices, or other locations, especially in colder
weather months.

During a frigid snap earlier this year, The
New York Times reviewed HeatTrio, a $900 space heater that also
doubles as a bitcoin mining rig. Others use the heat from their own
in-home cryptocurrency mining to spread warmth throughout their
house. "I've seen bitcoin rigs running quietly in attics, with
the heat they generate rerouted through the home's ventilation
system to offset heating costs. It's a clever use of what would
otherwise be wasted energy," said Jill Ford, CEO of Bitford
Digital, a sustainable bitcoin mining company based in Dallas...
"Same price as heating the house, but the perk is that you are
mining bitcoin," Ford said...

The crypto-heated future may be unfolding in the town of Challis,
Idaho, where Cade Peterson's company, Softwarm, is repurposing
bitcoin heat to ward off the winter. Several shops and businesses in
town are experimenting with Softwarm's rigs to mine and heat. At TC
Car, Truck and RV Wash, Peterson says, the owner was spending $25 a
day to heat his wash bays to melt snow and warm up the water.
"Traditional heaters would consume energy with no returns. They
installed bitcoin miners and it produces more money in bitcoin than
it costs to run," Peterson said. Meanwhile, an industrial concrete
company is offsetting its $1,000 a month bill to heat its
2,500-gallon water tank by heating it with bitcoin. Peterson has
heated his own home for two-and-a-half years using bitcoin mining
equipment and believes that heat will power almost everything in the
future. "You will go to Home Depot in a few years and buy a water
heater with a data port on it and your water will be heated with
bitcoin," Peterson said.

Derek Mohr, clinical associate professor at the University of
Rochester Simon School of Business, remains skeptical.

Bitcoin mining is so specialized now that a home computer, or even
network of home computers, would have almost zero chance of being
helpful in mining a block of bitcoin, according to Mohr, with mining
farms use of specialized chips that are created to mine bitcoin much
faster than a home computer... "The bitcoin heat devices I have
seen appear to be simple space heaters that use your own electricity
to heat the room..."

CNBC also spoke to Andrew Sobko, founder of Argentum AI (which is
building a marketplace for sharing computing power), who says the
idea makes the most sense in larger settings. "We're working
with partners who are already redirecting compute heat into building
heating systems and even agricultural greenhouse warming. That's
where the economics and environmental benefits make real sense.
Instead of trying to move the heat physically, you move the compute
closer to where that heat provides value."

Read more of this story at Slashdot.

Communist Jara en extreemrechtse Kast gaan uitmaken wie de nieuwe president van Chili wordt

In de exitpolls van de zondag gehouden eerste ronde van de Chileense presidentsverkiezingen gaat Jeanette Jara, de kandidaat van verenigd links, aan kop. Op 14 december neemt zij het in de tweede ronde op tegen de extreemrechtse José Antonio Kast.

QC RSS

The Official QC RSS Feed

Taint One, Taint The Other

could be both a ponzi scheme AND a sex cult

Fokke & Sukke

F & S

The Register

Biting the hand that feeds IT — Enterprise Technology News and Analysis

Jaguar Land Rover hack cost India's Tata Motors around $2.4 billion and counting

PLUS: Active noise cancellation for entire rooms; More trouble for SK telecom; The Wiggles apologize for bad batteries; and more

Asia In Brief  India’s Tata Motors, owner of Jaguar Land Rover, has revealed the cyberattack that shut down production in the UK has so far cost it around £1.8 billion ($2.35 billion).…

Can't You Hear Me Crying?

Thomas Hawk posted a photo:

Can't You Hear Me Crying?

Danger, Love and Money

Thomas Hawk posted a photo:

Danger, Love and Money

Phone Booths” April 2024, Kudanshita.

mikeleonardvisualarts posted a photo:

Phone Booths” April 2024, Kudanshita.

Phone Booths” April 2024, Kudanshita.

mikeleonardvisualarts has added a photo to the pool:

Phone Booths” April 2024, Kudanshita.