## +23
## The Absurdity of Error Handling: Finding a Purpose for Errors in Safety-Critical SYCL
## ERIK TOMUSK
## codeplay $ ^{®} $
Enabling AI & HPC To Be Open, Safe & Accessible To All
personal capacity, unless explicitly stated
## Outline
• Definition of Safety
• Definition of Error Handling
• Case Study
• Why is this Important?
• Is it Really so bad?
• What does this mean for SYCL of Error Handling
## Definition of Error Handling
Error: An unintended occurrence
• Various means to communicate the presence of an error
• Error codes; C++ exceptions; std::unexpected
Error Handling:
## +24
## Modern C++ Error Handling
## PHIL NASH
## 20 24 September 15 - 20
## Modern C++ Error Handling
Phil Nash

## ## Option(al) Is Not a Failure
## 2018
@phil_nash
## the Dawn of a New Error
## 2019
## Part 1
## a Series (total) of disappointments
int parse_int(std::string_view number)
## -
int parse_int(std::string_view return out;
}
if(first_digit)
throw std::runtime_error(
std::format("{}" is not a number, number));
else
throw std::runtime_error(
std::format("{}" has non-numeric
# Message Handling
# with Boolean Algebra

Ben Deane / CppCon / 2024-09-16
## Alternative Title
"The Unreasonable Effectiveness of Boolean Algebra in Software Design, Showing the Particular Application of a Message Handling Library, with an Excursion into the Roots of Programming"
## Frontmatter
No AI/LLM was used • SVG diagrams for resolution-independence
## What this talk is about
The workings of a message-handling library.
• How messages and the fields in them are specified.
• Efficiently identifying (with
## for handling second screen experience of european tv show
## About us
Key Qualifications
• 12+ years' experience with development and operations
• Automating everything
• Been handling Kubernetes
the interesting stuff happens. But there are also plenty of exciting things happening on the error handling flow, too. Although not universally loved/used, exceptions are a powerful mechanism of maneuvering crash. We'll poke into these mechanisms and see how we can leverage them in our application error handling. Did I mention threads? Routing exceptions between threads... oh my!
## S
Advanced Installer stuff happens
## Exceptional C++
But there are also plenty of exciting things happening on the error handling flow, too
## Exceptional C++
Although not universally loved, exceptions are a powerful mechanism
correct about Angular 2 Error Handling?
A - This is done by including the ReactJS catch library and then using the catch function.
B - The catch function contains a link to the Error Handler function.
C
stdout attached, exit with an error
var stdout_file = try std.io.getStdOut();
// If this program encounters pipe failure when printing to stdout,
// with an error.
try stdout_file.write("Hello };
}
};
Doc comments are only allowed in certain places; eventually, it will become a compile error have a doc comment in an unexpected place, such as in the middle of an expression, or just before optional_value);
// error union
var number_or_error: error!i32 = error.ArgNotFound;
warn("\nerror union 1\ntype: {}
\nvalue: {}
@typeName(@typeOf(number_or_error)), number_or_error);
number_or_error = 1234;
warn("\nerror