cereal
Kaitai Struct
cereal | Kaitai Struct | |
---|---|---|
13 | 44 | |
3,996 | 3,839 | |
0.7% | 1.1% | |
1.3 | 7.5 | |
2 months ago | 19 days ago | |
C++ | Shell | |
BSD 3-clause "New" or "Revised" License | GPL-3.0-or-later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cereal
- Ser20, a C++20 fork of cereal
-
Added reflection to C++ just to make my game work.
I'd stick with cereal for serialization
- Cereal Pack - a C++ schema serialization library
- Is there any good binary serializer & deserializer for C / C++?
-
Pataro II: Pataro Harder
Today I'm back to working on Pataro, the roguelike built on libtcod that made up much of my Hacktoberfest efforts. I had been assigned to an issue requesting the addition of serialization and deserialization, but unfortunately ran out of time and wasn't able to finish the former or start the latter. I ran into issues with Cereal, and had a hard time figuring out the structure of the program and how to go about implementing serialization for all the relevant components. At the end of that attempt I mentioned that if I were to try again I'd start by testing out Cereal separately and getting a handle on that before trying to implement it in Pataro - so that's what I'm doing today.
-
Hacktoberfest 5
I am once again working on Pataro today, and I've succeeded in clearing up some issues and creating new ones. I've been stuck on an issue where Visual Studio was raising errors in the portion of the code where I call the cereal archive on some types, but was able to clear up that issue by moving the save function definitions out of their respective headers and into the corresponding .cpp files. Examining this repo and its use of cereal again, I was able to get a bit clearer of an idea of how it's implemented, and I included just about every relevant cereal header I could find to try and avoid any issues like the previous one popping up again (with the intention of later removing whichever I can to avoid redundant inclusions).
-
Hacktoberfest 4
On the Pataro front, I've started looking at other examples of people using cereal for their games. It seems to be a popular choice for roguelike games like this, so hopefully I can figure out both the syntax problems I'm facing, as well as logical ones like how the program should be structured to have all the necessary data properly serialized and deserialized.
-
Hacktoberfest 3
Progress on one front but roadblocks on another. After my post yesterday outlining my plans to add serialization to Pataro I ran into some issues with calling the archive class in cereal wherein the call wouldn't go through due to an incorrect number of arguments. This happened with both vector and size_t data members, and I'm still investigating why.
-
Binary serialization library for at least C++17?
This is the simplest serialization library I saw. You only need to add one method to your class and you can stream it to desired archive. It supports binary as well as json, XML and others. https://github.com/USCiLab/cereal
- Google Protobuf vs JSON vs [insert candidate here]
Kaitai Struct
- Reverse-engineering an encrypted IoT protocol
-
Parsing an Undocumented File Format
- ImHex [2], which has a pattern language [3] which allows parsing, and it seems more powerful than what Kaitai offers. I stumbled upon some limitations with it but it was still useful.
[1]: https://kaitai.io/
- Kaitai Struct – a declarative language used to describe binary data structures
-
HTTPie Desktop: cross-platform API testing client for humans
Beautiful. Didn't know something like this exists. Reminds me of Katai[0]
[0]. https://kaitai.io/
-
Hacking the LG Monitor's EDID
An EDID override like this would be helpful for macOS as well, where the monitors swapping around after standby is a real annoyance [0] [1]
EDID rewrites are 99% of the time blocked by the monitor firmware: https://notes.alinpanaitiu.com/Decoding-monitor-EDID-on-macO...
By the way, one helpful tool that helped me navigate the EDID dump was Kaitai Struct [2]. It shows a side by side view with the hex view and the EDID structure, and it highlights the hex values in real time as you navigate the structure. Unfortunately [3] it doesn't support the extension blocks that the author needs.
[0] https://notes.alinpanaitiu.com/Weird-monitor-bugs
[1] https://forums.macrumors.com/threads/external-displays-swapp...
[2] https://kaitai.io/
[3] https://github.com/kaitai-io/edid.ksy
- Kaitai Struct: new way to develop parsers for binary structures
-
Fq: Jq for Binary Formats
Kaitai Struct might be a good choice for that: https://kaitai.io/
-
Ingesting, parsing and making sense of device log data
For binary log format, there's the excellent Kaitai Struct frameworks, that make it very easy to generate parsers from a declarative schema
-
What is this tool? More info in comments
kaitai
-
Visual Programming with Elixir: Learning to Write Binary Parsers (2019)
https://kaitai.io/
Worth a look if you are writing binary parsers.
What are some alternatives?
Protobuf - Protocol Buffers - Google's data interchange format
Boost.Serialization - Boost.org serialization module
csvkit - A suite of utilities for converting to and working with CSV, the king of tabular file formats.
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
Camelot - A Python library to extract tabular data from PDFs
MessagePack - MessagePack implementation for C and C++ / msgpack.org[C/C++]
tablib - Python Module for Tabular Datasets in XLS, CSV, JSON, YAML, &c.
Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
PDFMiner - Python PDF Parser (Not actively maintained). Check out pdfminer.six.
Bitsery - Your binary serialization library
PyYAML