The Absurdity of Error Handling
The Absurdity of Error Handling: Finding a Purpose for Errors in Safety-Critical SYCL Erik Tomusk CppCon 2023 October 5, 2023© 2023 Codeplay Software Ltd. Codeplay Corporate Slide 2© 2023 Codeplay explicitly stated© 2023 Codeplay Software Ltd. Outline • Definition of Safety • Definition of Error Handling • Case Study • Why is this Important? • Is it Really so bad? • What does this mean for execution time (in mainstream compilers) 17Definition of Error Handling 18© 2023 Codeplay Software Ltd. Definition of Error Handling • Exceptions and error codes are sometimes used for reporting or information0 码力 | 43 页 | 1.39 MB | 5 月前3Customizing Compilation Error Messages
CppCon 2024 Customizing Compilation Error Messages Formatting a Compile-Time String During Substitution Failure Patrick Roberts, P.E. Principal Software Engineer 1CppCon 2024 What problem does solve? 2CppCon 2024 3CppCon 2024 4CppCon 2024 5CppCon 2024 6 Guidelines for a helpful error message Where is the error? ✅ What is wrong? ✅ How can it be fixed? ❌CppCon 2024 7CppCon 2024 8CppCon 2024 90 码力 | 12 页 | 1.47 MB | 5 月前3Modern C++ Error Handling
Modern C++ Handling Phil Nash Error2018 2019series disappointments of a (total) Part 1int parse_int(std::string_view number)// TODO: +, -, digit separators? int acc = 0; for(char c first_digit = false; } return ParseStatus::Numeric; } 42 42 (starts with an int) Error: x42 is not an int test("42"); test("42x"); test("x42"); [[nodiscard]] void test(std::string_view int)”, i); break; case ParseStatus::NonNumeric: std::println(“Error: {} is not an int", str); break; } }int parse_int(std::string_view number) {0 码力 | 66 页 | 36.65 MB | 5 月前3Creating a Sender/Receiver HTTP Server
TechAtBloomberg.com © 2024 Bloomberg Finance L.P. All rights reserved. • Create a basic HTTP server. • Allow a single-threaded server handling multiple clients. • Use the sender/receiver asynchronous work consist of accepting incoming client connections. • Each client processes requests until an error is received. Basic DesignTechAtBloomberg.com © 2024 Bloomberg Finance L.P. All rights reserved. std::execution (sender/receiver): http://wg21.link/p2300 • https://github.com/NVIDIA/stdexec.git • https://github.com/beman-project/execution26 • Sender/receiver networking: http://wg21.link/p2762 • Implementation:0 码力 | 8 页 | 2.19 MB | 5 月前3Apache HTTP Server Documentation Version 2.4
Apache HTTP Server Documentation Version 2.4 Apache Software Foundation March 21, 2018 ii About The PDF Documentation Licensed to the Apache Software Foundation (ASF) under one or more contributor compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to LATEX version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.4/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 1125 页 | 4.15 MB | 1 年前3Apache HTTP Server Documentation Version 2.4
Apache HTTP Server Documentation Version 2.4 Apache Software Foundation February 3, 2014 ii About The PDF Documentation Licensed to the Apache Software Foundation (ASF) under one or more contributor compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to LATEX version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.4/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 1031 页 | 3.23 MB | 1 年前3Apache HTTP Server Documentation Version 2.4
Apache HTTP Server Documentation Version 2.4 Apache Software Foundation October 3, 2017 ii About The PDF Documentation Licensed to the Apache Software Foundation (ASF) under one or more contributor compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to LATEX version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.4/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 1111 页 | 4.11 MB | 1 年前3Apache HTTP Server Documentation Version 2.4
Apache HTTP Server Documentation Version 2.4 Apache Software Foundation March 13, 2014 ii About The PDF Documentation Licensed to the Apache Software Foundation (ASF) under one or more contributor compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to LATEX version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.4/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 1031 页 | 3.23 MB | 1 年前3Apache HTTP Server Documentation Version 2.0
Apache HTTP Server Documentation Version 2.0 Apache Software Foundation February 3, 2014 ii About The PDF Documentation Copyright c⃝2013 The Apache Software Foundation Licensed under the Apache License compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to LATEX version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.0/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 682 页 | 2.05 MB | 1 年前3Apache HTTP Server Documentation Version 2.2
Apache HTTP Server Documentation Version 2.2 Apache Software Foundation January 15, 2017 ii About The PDF Documentation Copyright c⃝2015 The Apache Software Foundation Licensed under the Apache License compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to LATEX version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.2/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 805 页 | 2.51 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100