News for hackers. Stuff that matters.
Re:Kaitai Struct: A new way to develop parsers for binary st... by secondcoming on Thursday March 17, 2022 @06:44PM (#30716691)
Interesting, but now you have to add in the possibility of having bugs in your YAML file. The YAML is probably less readable than the spec for the binary format itself.

Looking at the code-gen for utf8_string [0] and it's a case of 'thanks, but no thanks'

> std::unique_ptr<std::vector<std::unique_ptr<utf8_codepoint_t>>> m_codepoints;

This is a solution looking for a problem, but I bet it was fun to write.

[0] https://formats.kaitai.io/utf8_string/cpp_stl_11.html

Re:Kaitai Struct: A new way to develop parsers for binary st... by saagarjha on Thursday March 17, 2022 @08:07PM (#30717250)
Kaitai is usually used when dealing with blobs that have poorly defined or reverse engineered layout. It’s not particularly great at what you probably think it should be used for, which is why it seems strange to you n