Kaitai: Describe the structure of data, not how you read or write it
1–10 of 66 posts
Re: Kaitai: Describe the structure of data, not how you read or write it
#2Re: Kaitai: Describe the structure of data, not how you read or write it
#3edit: i forgot to add - there is an issue for serialization on kaitai github repo for some time [1], with some interesting discussion around the implementation challenges
Re: Kaitai: Describe the structure of data, not how you read or write it
#4This is very interesting, but just curious, when would you use something like this versus, say, protobufs?
Re: Kaitai: Describe the structure of data, not how you read or write it
#5> Reading and writing binary formats is hard... Kaitai Struct tries to make this job easier...
Kaitai cannot write data back out. [1] This is a major limitation for me. It would be nice to use it as a mutation engine for fuzzing, but without being able to write it back out, it is mostly just beneficial for analysis.
Re: Kaitai: Describe the structure of data, not how you read or write it
#6This is very interesting, but just curious, when would you use something like this versus, say, protobufs?
Re: Kaitai: Describe the structure of data, not how you read or write it
#7I do love kaitai and recently contributed a grammar, but both the title and the copy talk about writing. > Reading and writing binary formats is hard... Kaitai Struct tries to make this job easier... Kaitai cannot write data back out. [1] This is a major limitation for me. It would be nice to use it as a mutation engine for fuzzing, but without being able to write it back out, it is mostly just beneficial for analysi…
Re: Kaitai: Describe the structure of data, not how you read or write it
#8This is very interesting, but just curious, when would you use something like this versus, say, protobufs?
I was playing with it a while back along with wasm and got it to decode all the individual opcodes (along with the rest of the file) but it turned out to be really, really slow in the generated python version. C++ probably has much better performance but I haven't actually tested the difference.
Re: Kaitai: Describe the structure of data, not how you read or write it
#9I do love kaitai and recently contributed a grammar, but both the title and the copy talk about writing. > Reading and writing binary formats is hard... Kaitai Struct tries to make this job easier... Kaitai cannot write data back out. [1] This is a major limitation for me. It would be nice to use it as a mutation engine for fuzzing, but without being able to write it back out, it is mostly just beneficial for analysi…
Re: Kaitai: Describe the structure of data, not how you read or write it
#10This is very interesting, but just curious, when would you use something like this versus, say, protobufs?
Essentially you start with the serialization format instead of starting with the deserialized data (or like how the title of this submission says, "describe the structure of data"). As such, you can somewhat describe protobufs [0] using Kaitai structs, but the converse is not necessarily true.
There's actually a section under their FAQ [1] with a more in-depth response to this.