by VWWHFSfQ · 1y ago · 0 comments
I also do not see how having decades of legacy software is holding anybody back doing new stuff in C in a better way. New C code can be very nice.
Zig is still not 1.0, theres not much stability guarantees, making something like Frama-C, even tho it is possible is simply going to be soo much pain due to constant breakages as compared to something like C.
But it is not impossible and there have been demos of refinement type checkers https://github.com/ityonemo/clr
Beyond that, tools like antithesis https://antithesis.com/ exist that can be used for checking bugs. [ I dont have any experience with it. ]
Most of Zig's safety, or lack thereof, seems inherent to allowing manual memory management, and at least comparable to its "C replacement" peers (Odin, C3, etc).
Otherwise it is like getting Modula-2 from 1978, but with C like syntax, because curly bracket must be.