One of the signs I have noticed for good designs is that people reach the same c...

@david_chisnall@infosec.exchange

One of the signs I have noticed for good designs is that people reach the same concepts from quite different use cases.

When the CHERI project started, Robert Watson had done Capsicum and found that compartmentalising libraries was hard because libraries wanted to share memory. Adding hardware to do this was the next project. Simon Moore was interested in building hardware memory protection systems that scaled linearly with the number of protection domains (unlike MMUs). Peter G Neumann wanted to see if the ideas from capability systems could be efficiently applied in the hardware in a way that aligned with how modern hardware worked.

I had been working on end-user programming environments that could interoperate with existing low-level code without the low-level code being able to crash the user’s code.

We had all reached similar starting points. As we evolved the ideas, we also noticed that object-granularity memory safety for existing C/C++ had a set of requirements that could be addressed from the same set of primitives. The abstractions in CHERI met all of these requirements.

The same is true for the region abstraction in Verona. I wanted a language-level abstraction for different trust domains in a program. In particular, I wanted something data-centric, since prior code-centric models had all proven difficult to use. Matthew Parkinson wanted to be able to plug in different memory management policies (tracing GC, reference counting [with or without cycle detection], arena allocation, type-stable manual memory management, and so on) without needing global synchronisation. Sylvan Clebsch wanted to be able to do a Pony-style send of an entire object graph without an O(n) trace of the sent object graph, while still allowing arbitrary shapes of object graph (including cycles). And, again, the core ideas that we needed for all of these turned out to have so much overlap that the same abstraction let you implement them all.

Part of this is that, if you already meet the requirements for a bunch of seemingly unrelated use cases, you probably meet the requirements for more that you haven’t thought of yet.