News for hackers. Stuff that matters.
Re:The Two Factions of C++ by bluGill on Monday November 25, 2024 @01:15PM (#42238568)
I have > 10 million lines of C++ that is not annotated. There are many projects much larger than mine. If you cannot automatically annotate the code there is no point in trying as you can't do it manually. If you can automate it why not just build that into the compiler and skip the syntax?
Re:The Two Factions of C++ by zozbot234 on Monday November 25, 2024 @03:07PM (#42239681)
> If you cannot automatically annotate the code there is no point in trying as you can't do it manually.

How can you know this without a "viral" analysis that tells you how much annotation is needed, and where? Perhaps the code factors out all the low-level, "memory unsafe" hacks to its own module, and that can be feasibly annotated. It's just not something we can know in advance.

Re:The Two Factions of C++ by usefulcat on Monday November 25, 2024 @04:11PM (#42240254)
> Perhaps the code factors out all the low-level, "memory unsafe" hacks to its own module, and that can be feasibly annotated.

While it is theoretically not impossible for that scenario to occur, I'd say it sounds wildly unlikely for anything that can be descried as 'old' code.