Kangrejos 2025 Interview: Tathagata Roy, Semantic code edits with CoccinelleForRust

Rust Programming Language
2,751 views •

At Kangrejos 2025 in Oviedo, Spain, the Rust Project Content Team talks with Tathagata Roy, Coccinelle for Rust. Tathagata describes that Linux needs to make complex semantic-aware changes across the entire repository, something that standard text replacement methods such as regular expressions are not suited for. Coccinelle is a tool built for this kind of work, and Tathagata describes its younger Rust-specific cousin that he built. Topics include: • Linux codebase structure, and the need to update drivers when the core API changes • What is semantic patching and how it works • Coccinelle for Rust: why it exists, how it's built, its place in the ecosystem • Leveraging Python scripts for complex AST-level transformations • What's next for the project Links mentioned: Coccinelle (for C, the original): https://gitlab.inria.fr/coccinelle/coccinelle Coccinelle for Rust: https://gitlab.inria.fr/coccinelle/coccinelleforrust Tathagata's Kangrejos 2025 workshop: https://gitlab.inria.fr/coccinelle/coccinelleforrust/-/blob/main/talks/kangrejos25.pdf Interview conducted by Tomáš Šedovič on behalf of the Rust Project Content Team.

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close