The Absurdity of Error HandlingThe 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 | 6 月前3
Customizing Compilation Error MessagesCppCon 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 | 6 月前3
Modern C++ Error HandlingModern 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 | 6 月前3
Design patterns for error handling in C++ programs using parallel algorithms and executorsDesign patterns for error handling in C++ programs using parallel algorithms and executors Mark Hoemmen* mhoemmen@stellarscience.com CppCon 2020 * hoʊ’mən, or hœm’mən; he/himWho am I? • > 10 years 2017 • Started new job at Stellar Science in March Eschew raw pointersOutline • Parallelism makes error handling harder… • …C++ parallel algorithms and tasks specifically • Message Passing Interface (MPI): Responsiveness ILLIAC IV: the 1st massively parallel computer (image: Steve Jurvetson)Parallel hinders error handling • … because parallelism relaxes execution order – Deliberately, to improve performance0 码力 | 32 页 | 883.27 KB | 6 月前3
django cms 3.10.x Documentationcomponents are be missing, django CMS will be unable to run the cms check command and will simply raise an error instead. After each of the steps below run cms check to verify that you have resolved that item in render_model with hvad-translated fields (say {% render_model object 'translated_field' %} returns an error if the hvad-enabled object does not exists in the current language. As a workaround render_model_icon 'MyPlugin') for plugin in MyPlugin.objects.all(): ... do something ... You may end up with an error like django.db.utils.OperationalError: (1054, "Unknown column 'cms_cmsplugin.level' in 'field list'")0 码力 | 296 页 | 1.79 MB | 1 年前3
Django CMS 3.11.10 Documentationcomponents are be missing, django CMS will be unable to run the cms check command and will simply raise an error instead. After each of the steps below run cms check to verify that you have resolved that item in render_model with hvad-translated fields (say {% render_model object 'translated_field' %} returns an error if the hvad-enabled object does not exists in the current language. As a workaround render_model_icon 'myapp:index' %} or views that call (for example) reverse('myapp:index') will throw a NoReverseMatch error. Apphooks for non-namespaced applications If you are writing apphooks for third-party applications0 码力 | 493 页 | 1.44 MB | 6 月前0.03
django cms 4.1.x Documentationcomponents are be missing, django CMS will be unable to run the cms check command and will simply raise an error instead. After each of the steps below run cms check to verify that you have resolved that item in render_model with hvad-translated fields (say {% render_model object 'translated_field' %} returns an error if the hvad-enabled object does not exists in the current language. As a workaround render_model_icon 'myapp:index' %} or views that call (for example) reverse('myapp:index') will throw a NoReverseMatch error. Apphooks for non-namespaced applications If you are writing apphooks for third-party applications0 码力 | 357 页 | 1.99 MB | 1 年前3
django cms 4.1.1 Documentation
components are be missing, django CMS will be unable to run the cms check command and will simply raise an error instead. After each of the steps below run cms check to verify that you have resolved that item in render_model with hvad-translated fields (say {% render_model object 'translated_field' %} returns an error if the hvad-enabled object does not exists in the current language. As a workaround render_model_icon 'myapp:index' %} or views that call (for example) reverse('myapp:index') will throw a NoReverseMatch error. Apphooks for non-namespaced applications If you are writing apphooks for third-party applications0 码力 | 361 页 | 2.00 MB | 1 年前3
Django CMS 4.1.x Documentationcomponents are be missing, django CMS will be unable to run the cms check command and will simply raise an error instead. After each of the steps below run cms check to verify that you have resolved that item in render_model with hvad-translated fields (say {% render_model object 'translated_field' %} returns an error if the hvad-enabled object does not exists in the current language. As a workaround render_model_icon 'myapp:index' %} or views that call (for example) reverse('myapp:index') will throw a NoReverseMatch error. Apphooks for non-namespaced applications If you are writing apphooks for third-party applications0 码力 | 518 页 | 1.66 MB | 6 月前3
Django CMS 3.9.x Documentationcomponents are be missing, django CMS will be unable to run the cms check command and will simply raise an error instead. After each of the steps below run cms check to verify that you have resolved that item in render_model with hvad-translated fields (say {% render_model object 'translated_field' %} returns an error if the hvad-enabled object does not exists in the current language. As a workaround render_model_icon 'MyPlugin') for plugin in MyPlugin.objects.all(): ... do something ... You may end up with an error like django.db.utils.OperationalError: (1054, "Unknown column 'cms_cmsplugin.level' in 'field list'")0 码力 | 417 页 | 1.68 MB | 6 月前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













