oddio icon indicating copy to clipboard operation
oddio copied to clipboard

Safer primitives for controlled signals

Open Ralith opened this issue 4 years ago • 0 comments

Right now, defining a controlled signal always involves unsafe shared memory handling. We should explore ways to leverage the type system to reduce the hazards here, ideally without forcing additional layers of indirection. Maybe a pattern for safe inline shared-memory primitives could be developed based on newtyped references with private constructors and projection?

Ralith avatar Jun 16 '21 20:06 Ralith