Skip to content
#small language model Open access

Memory Safety Where It Is Needed: Proof-Guided Runtime Checking in a Toolchain Small Enough to Read

Sep 2026 · Zenodo (CERN European Organization for Nuclear Research)
Logic, programming, and type systems

Abstract

Fil-C showed that C can be made memory-safe at run time by giving every pointer acapability and checking it on every access. We take its diagnostic ambitions and put themsomewhere else: in a compiler small enough for a person, or a language model, to hold inview at once, and with a different goal. Crust’s --mem-safe is a test-time tool rather thana deployment mitigation. The identical source builds with the flag for the test suite andwithout it for release, and the release binary carries no runtime at all.The difference in setting changes what is possible. Because the check is inserted by thecompiler on its own intermediate language, the compiler can also decide not to insert it.Three proof rules—redundancy by local value numbering, constant-offset bounds againsta statically known allocation, and loop-carried index ranges from a dominating guard—together with hoisting of the remaining shadow bookkeeping out of the loop, took a 2M-iteration array loop from 31× overhead under uniform instrumentation to 1.05×, with noruntime call left in the loop body. Fil-C cannot do this: its check is a per-pointer test withno whole-program view to prove anything away.Because the bounds live in a side table keyed by address rather than in the pointer,instrumented and uninstrumented translation units link freely. That is what makes a secondtier possible: --mem-safe=cpp checks only code lowered from the C++ subset and leavesalready-audited C at full speed, distinguishing the two by the file name on each IL command’ssource range.We then argue the larger point: that a memory-safety mechanism belongs in a toolchainthat can be modified and re-verified in the time a test run takes, and that a fork like Fil-C126,031 commits behind its upstream is not such a toolchain.

View source

Similar papers

#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Open access Feb 2018

Lean Internal Startups for Software Product Innovation in Large Companies: Enablers and Inhibitors

This study investigates how Lean internal startup facilitates software product innovation in large companies and identifies its enablers and inhibitors, and shows the potential of the method-in-action framework to investigate the Lean startup approach in non-startup context.

Henry Edison, Nina M. Smørsgård, Xiaofeng Wang et al. · 78 citations · ⚡6
#computer vision Conference Sep 2010

Exploring the Sources of Waste in Kanban Software Development Projects

The application of agile software methods and more recently the integration of Lean practices contribute to the trend of continuous improvement in the software industry. One such area warranting proper empirical evidence is a project’s operational efficiency when using the Kanban method. This short paper takes a new angle and explores waste in the Kanban-driven software development project context. A preliminary research model is presented for helping the consequent replication of the study. The results from the empirical analysis suggest Kanban can be an effective method in visualizing and organizing the current work, but does not prevent waste from creeping in, although the overall project outcome may be successful.

Marko Ikonen, Petri Kettunen, Nilay V. Oza et al. · 67 citations · ⚡9

Related blog posts

MIT News · Artificial Intelligence Sep 14, 2026

New method enables AI for safety-critical situations

The “HardFlow” algorithm could help generative AI models produce high-quality outputs that obey strict requirements when “pretty close” doesn’t cut it.

GPT-Lab Sep 10, 2026

Responsible AI Must Consider Its Afterlife

AI may appear weightless, but every model depends on physical infrastructure. To understand responsible AI, we need to look beyond algorithms and consider the entire lifecycle of the hardware behind them. The post Responsible AI Must Consider Its Afterlife appeared first on GPT-Lab.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.