@danghica@JustDeezGuy That would be a nightmare. Simple deductive verification of functional algorithms without heap manipulation or concurrency is already difficult for many CS students.
@mrnickzh@LukasHozda You can have a TOCTOU race condition even when every individual access is synchronized. And you can have a data race (e.g. two threads unsynchronized writing the same constant) without causing a race condition.
@espie_openbsd@MalwareTechBlog I know, and this makes feedback from Google Zero and other (relatively) trustworthy counterparts much more valuable, right?
It’s a problem of signal-to-noise ratio.
Btw, this is why I said ‘those who _actually_ find vulnerabilities.
@StokeWillie After reading this SO link and your replies, I am convinced C++ is a disgrace among programming languages. Yeah, "all of them are not fully compliant to the standard", why? The root cause lies in C++ itself if you really care about standard compliance so much (while I don’t).
@dcolascione@bouguereau_stan One capability in the function signature can be unnamed (only a type) or named (a type plus a name). The latter is essentially an extra parameter you wanted (with extra checking). It’s inconvenient to give code examples here, so you can just check out Effekt, Koka and Scala3.
@dcolascione@bouguereau_stan 2. I don’t think ambient authority (with static types) is always bad, in PL or OS. Implicitly depending on something from context is actually good (under certain cases).
3. The two filesystems issue is easily solved by passing two capabilities to the function.
(2/2)
@dcolascione@bouguereau_stan What about the combination of dynamic scopes, static types, effects as implicit capabilities? That should solve most problems.
1. Local reasoning is still there. You have to put typed "capabilities" in function signatures. They are just implicit context parameters.
(1/2)
@LukasHozda Oh no, I just checked out the Microsoft docs and it seems that Windows 11 Home doesn’t have this feature (while Windows 11 Pro/Enterprise do). That’s a major deployment blocker.