# Canonical backs project to auto-translate large C codebases into safe Rust

Original title: Canonical Backs New Project to Translate Large C Codebases into Safe Rust

> Hacker News story 49374162 · language: en · submitted 2026-08-20
> Web version: https://zeli.app/story/49374162
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 39 · by [datakan](<https://news.ycombinator.com/user?id=datakan>) · 💬 45
[original](<https://linuxiac.com/canonical-backs-new-project-to-translate-large-c-codebases-into-safe-rust/>) · [HN discussion](<https://news.ycombinator.com/item?id=49374162>)

## Summary

Canonical is partnering with the University of Bristol on a three-year research project to build a platform that automatically translates large C codebases into safe, idiomatic Rust. The hybrid 'neurosymbolic' approach combines machine learning with program analysis and formal methods. AppArmor and snap-confine will serve as real-world case studies, but Canonical says they are not being rewritten in Rust now.

## Key quote

> Current source-to-source translators only address part of the problem.

## HN discussion (45 comments)

### [kayo_20211030](<https://news.ycombinator.com/item?id=49374805>)

> I have no particular religious preference for a language. One uses what one feels is appropriate.
>
> But, let's say this effort is a complete success. What's next?
>
> Can all the maintainers of the c codebase move over to maintaining (forward) the Rust codebase. Surely there'll be some friction, and losses to friction.
>
> What about deployments, monitoring, support and trouble-shooting? Are the teams that perform those functions now capable of performing those functions in the future? It seems to me that the here-to-there for functional, evolving and reliable systems in the real world has been elided and become simply "a player to be named later".

### [childintime](<https://news.ycombinator.com/item?id=49377264>)

> The Darpa Tractor project looks to achieve the same:
>
> https://news.ycombinator.com/item?id=41110269
>
> Just a few weeks back it was judged as unlikely to succeed. Now Canonical want to get in.

### [qew16t](<https://news.ycombinator.com/item?id=49375472>)

> Great stuff. Instead of asking and funding the C developers of the respective projects for a port, they go for license washing and stealing.

### [djoldman](<https://news.ycombinator.com/item?id=49374943>)

> Not the same as:
>
> https://github.com/uutils/coreutils
>
> Although I could see them benefitting.

### [dgan](<https://news.ycombinator.com/item?id=49375397>)

> can it be done? C codebase are obviously missing the lifetime information, type-generic arguments are just void*, in/out arguments aren't explicit... or at least, the information is scattered across the codebase, and might be inconsistent. a "safe rust" might not be even possible

---

## Cite

- Page: https://zeli.app/story/49374162
- Date: 2026-08-20
- Source: linuxiac.com (https://linuxiac.com/canonical-backs-new-project-to-translate-large-c-codebases-into-safe-rust/)
- Hacker News: https://news.ycombinator.com/item?id=49374162

## Other languages

- zh: https://zeli.app/zh/story/49374162 · markdown: https://zeli.app/zh/story/49374162.md
