logoalt Hacker News

creatoyesterday at 5:23 PM4 repliesview on HN

I don't know if they do this, but those conventions could be enforced by a tool.


Replies

JimmyBiscuityesterday at 6:09 PM

Theres C++ in military airplanes, they just cut out 90% of the features: https://www.stroustrup.com/JSF-AV-rules.pdf

And heres a nice video about it: https://youtu.be/Gv4sDL9Ljww?si=Z4riPMKAKcIKaU0s

dmazzoniyesterday at 7:20 PM

Yes, in WebKit, SaferCPP guidelines are enforced by a static analysis tool.

jjmarryesterday at 8:08 PM

My work bans raw new and delete, so we only use unique_ptr. It's not as memory safe as Rust's borrow checker but I've never seen a segfault.

concindsyesterday at 6:03 PM

Yes, they do this, and it's really not an unreasonable requirement.

show 1 reply