Reading Binary Data with Style: A Serialization Framework for C++17 - Tony Wasserka - CppCon 2019

Reading Binary Data with Style: A Serialization Framework for C++17 - Tony Wasserka - CppCon 2019

CppCon

4 года назад

21,710 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Brynjard Øvergård
Brynjard Øvergård - 02.02.2023 14:29

The bad thing with exceptions isn't necessarily that they're very resource intensive, or all the hidden cruft they generate, but it's simply a bad error handling model. It's very hard to reason what goes on, it creates hidden return paths that are invisible to even the most sophisticated tools (you basically have to run it to know what really happens), and this leads to badly handled error scenarios.
Also, it's often abused for regular control flow, which really muddies the water and very successfully turns even the simplest algorithms into an unreadable mess.

Ответить
Manish Naik
Manish Naik - 28.04.2021 02:26

Ideas worth sharing.

Ответить
TheMonyarm
TheMonyarm - 08.04.2021 10:05

Blobify is cool, unfortunately I won't be able to use it, as my code base is a fork of ScummVM, and uses ScummVM's file reading functions.

Ответить
Marti Nito
Marti Nito - 10.04.2020 06:27

Using the word "annotations" with the python construct example is really misleading. In pythons annotations are a well defined part of the language. Nice talk thou :)

Ответить
zahra mo
zahra mo - 19.10.2019 14:03

This approach seems very similar to using boost::spirit::x3 for parsing binary data. It also has a simila declarative syntax like the python examples and comes with binary parsers already included. Great talk though.

Ответить
Arthur Passos
Arthur Passos - 17.10.2019 15:42

I've been working on embedded software with C++ for two years and this library is something VERY useful and I'd certainly benefit from it. Unfortunately, our systems don't have enough resources to support exceptions :(.

Ответить