Urgent.News

What's breaking now, across thousands of outlets.

Tech

Verus proves Rust correct for all inputs. Code review still can't define "correct."

Amazon shipped a blog post on Verus, their Rust verifier used in Firecracker and AWS Lambda. Verus doesn't review your code. It proves it: annotated functions get checked against a mathematical spec for every possible input, mechanically, no model in the loop. Correctness stops being a judgment call and becomes a pass/fail. I keep coming back to that because it's the sharpest version of the gap…

Amazon unveiled Verus, a Rust verifier used in Firecracker and AWS Lambda, through a blog post. Unlike traditional code reviews, Verus doesn't evaluate code; it mathematically verifies annotated functions against a specification for every potential input. This shifts correctness from a subjective judgment to a definitive pass or fail.

The author emphasizes the importance of this distinction, noting that a reviewer, be it human or model, still grapples with the question of whether a code diff is correct. There is no universal verifier for this, only spec verifiers, compiler checks, type checkers, and test suites, none of which fully encapsulate the meaning of correctness in real-world codebases.

Similar challenges arise in the realm of reinforcement learning, where models like a 4B model were trained to generate PostgreSQL query plans that outperformed Postgres's default by 44.7% in join-heavy queries. The model's success hinges on a verifiable reward - execution time - which allows it to improve systematically. In contrast, code review lacks such clear, quantifiable metrics, making it a challenging area for AI intervention.

The author concludes that the key to improving autonomous code review lies in reducing the unverifiable aspects of the task, such as moving from "does a human think it's right" to "the tool proved it matches the spec." This shift would enable AI and RL models to better assist in the review process.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

What `rsync -avz --delete` Actually Does

A lot of people paste rsync -avz --delete into a deploy script and move on without ever unpacking what each letter means. It works, so there's rarely a reason to stop and ask.

Architecting Battery-Efficient Geofencing for Automated Sound Profiles

It was the middle of a Friday afternoon prayer session at the local masjid. The room was heavy with silence, a collective stillness that felt almost fragile.

  • GeofencingClient used for efficient monitoring in Android
  • ForegroundService combined with GeofencingClient to avoid system interference
  • AudioManager settings stored in Room database for persistence

More from Friday 18 September →