| ▲ | Stroustroup: We need better performance testing [pdf](open-std.org) |
| 17 points by signa11 5 days ago | 9 comments |
| |
|
| ▲ | lcvw a day ago | parent | next [-] |
| I feel like he is missing the boat here. C++ is on a path to dying as a language because of a lack of safety features, and he’s talking about zero cost abstractions. Exceptions cause massive compiler issues and are hardly zero cost anyway, I don’t know how he can compare them at all to std::expected. Also anyone who has worked in an exception heavy codebase can attest to the fact that they do not lead to simpler code. I have worked with C++ almost every day for a decade now, and I’ll be sad to see it go. This is not what the thought leaders should be focusing on at all. If you’re unhappy with std:: expected just don’t use it? Why can’t we focus on fixing the thousands of security vulnerabilities that cause real harm and money and endless developer time to try to work around. |
| |
| ▲ | on_the_train a day ago | parent | next [-] | | All this recent safety talk is so strange to me, also a decade-long cpp dev. I read all this drama and worries, but that never relates to worries I experienced with the language. I've only ever seen safety issues with absurdly bad and old code that would never go past static analysis anyways, let alone a code review. Real issues for my peers and myself are things like the thirst for reflections, the thirst for throwing out old garbage. Certain gripes with language details like initialization, the way a few things have been implemented etc. I genuinely feel puzzled by the topics of all these cpp posts. Is everyone coding ultra low level with tooling from 1999? | | |
| ▲ | pjmlp 19 hours ago | parent | next [-] | | Unit tests and code review are the exception, not the rule. One thing that has changed is that nowadays software is everywhere, cyberattacks as well, with corporations and goverments putting numbers into the dollars that get burned in developer salaries, fixing CVEs, rolling out updates, downtimes caused by bug fixes, insurance claims, insurance premiums, lawsuits, malfunction software which consultancies have to fix free of charge,..... | |
| ▲ | lcvw 13 hours ago | parent | prev | next [-] | | I see safety issues all the time, even from mid level and seniorish devs who are not 100% familiar with cpp. I think it really depends on your codebase. Things like parsers tend to explode when you first put them in a fuzzer. | |
| ▲ | majikaja 21 hours ago | parent | prev [-] | | Maybe the focus is cheaper junior devs? |
| |
| ▲ | zevets a day ago | parent | prev | next [-] | | I want to use std::expected because I want clear, explicit error handling, not performance. There is a time and place for performance optimized code - but usually where the hot loop is well known, and its a tiny minority of the program. | |
| ▲ | jitl a day ago | parent | prev [-] | | Well theres been like 3 C++ drama posts in the last 2 weeks detailing that the standards committee is definitely not heading towards a comprehensive safety solution. They have “profiles” which is a nothingburger, and they’re sticking to it. |
|
|
| ▲ | drewcoo a day ago | parent | prev | next [-] |
| I agree that we need better performance testing but I tend to see it as a top-down or an operations-in problem. Performance work from the bottom up, from low-level code constructs seems like the kind of work I've seen XKCD or even Dilbert cartoons about. That is the path of premature optimization and bike shedding. I'd love to see the industry do some kind of compositional service-level perf work. I'd love something like a contract testing view or perf, so that I can see how changes in a single part of the system will affect over-all SLAs. The tooling we have now seems to be of the form where if we want system perf, we need the big, expensive, kludgy full systems running for perf tests. And that kind of thing slows down dev velocity. I hope someone from SmartBear reads this is knows the right tech to acquire to accomplish this (give me Pact/PactFlow but for perf!). |
|
| ▲ | a day ago | parent | prev [-] |
| [deleted] |