Urgent.News

What's breaking now, across thousands of outlets.

Tech

Valen's Memory Safety: A New Kind of Borrow Checking

This post explores Valen's new flexible borrow checker, which aims to address memory safety challenges with a more relaxed approach compared to Rust's borrow checking. The focus is on Valen's more permissive borrow checker, its capabilities, and the underlying concepts.

Valen's method is based on the Group Borrowing proposal, designed by friend Nick Smith. It revolves around the idea that the compiler keeps track of where a reference points, using that information to ensure programs are memory-safe. However, Group Borrowing faced initial setbacks, as it was initially designed for Mojo but couldn't gain traction. Undeterred, Valen spent months refining the concept and published a post the previous year, hoping to inspire other languages to adopt this approach.

The main advantage of Group Borrowing is that it provides memory safety without any runtime cost. It catches use-after-free errors at compile time, offering greater flexibility than previous methods. For instance, it can handle patterns that are typically challenging for borrow checkers, including those found in C++ code. Valen's approach resolves a fundamental conflict between borrow checking and other methods, allowing for a more flexible and powerful memory safety system.

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

Also reported by 1 other outlet

Read the original at verdagon.dev →

More in Tech

Hackers use security cameras to track troops, military targets in Israel, Ukraine - report

One incident highlighted in the investigation involved a poultry farmer in northern Israel who discovered that the language settings on a camera overlooking his chicken coop had changed to Arabic.

  • National Cyber Directorate warns of camera vulnerabilities during June 2025 Israel-Iran conflict.
  • Russia and Ukraine exploit compromised surveillance systems for battlefield intelligence.

More from Sunday 11 October →