News for hackers. Stuff that matters.
Re:C++26 Disapproved by uecker on Wednesday November 04, 2026 @02:06AM (#50362304)
C and formal verification is an awesome combination. I tried cmbc on some toy programs, it it fully automatically proved memory safety and all assertions. But for larger programs one has to split up with a contract-like facility.

Can you tell us more how you use cbmc with macros? I am also exploring such tools.

I also wonder what feature from C++ you miss in C?

Re:C++26 Disapproved by Surac on Wednesday November 04, 2026 @02:46AM (#50362515)
Well i you ask me i miss namespaces and functions i could put into struct and enum types
Re:C++26 Disapproved by nanolith on Wednesday November 04, 2026 @04:03PM (#50371487)
I did a talk on this at BSDCan 2026:

https://www.bsdcan.org/2026/timetable/timetable-Model-Checki...

That link has the slides and some example code. There's also a live stream on YouTube.

Regarding features I miss from C++, I like the concept of generics. I don't like the implementation in C++. I also find C's _Generic facility to be limited, especially when building containers that perform hygienic type erasure. This feature isn't enough for me to go back to C++ on its own, but it is something I'm exploring in a new language I'm writing.

Re:C++26 Disapproved by uecker on Thursday November 05, 2026 @01:05PM (#50382239)
Thank you!