|
|
Subscribe / Log in / New account

DNF 3: better performance and a move to C++

DNF 3: better performance and a move to C++

Posted Mar 29, 2018 5:37 UTC (Thu) by roc (subscriber, #30627)
In reply to: DNF 3: better performance and a move to C++ by ncm
Parent article: DNF 3: better performance and a move to C++

In Rust debug builds integer overflow triggers a panic.

Sticking to "modern C++" does not necessarily avoid safety issues. Sometimes it makes them worse. See https://github.com/isocpp/CppCoreGuidelines/issues/1038 for example.


to post comments

DNF 3: better performance and a move to C++

Posted Mar 29, 2018 22:21 UTC (Thu) by k8to (guest, #15413) [Link]

It seems like a shame that arranging for behavior on overflow is so obscure in C and C++ programming circles, still. If C++ developers regularly arranged for known behavior and decided on policy for it, a whole class of bugs would be removed in that environment.

Certainly Rust having a sane default that is well-known is a significant improvement.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds