techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.8K
active users

#kaitai

0 posts0 participants0 posts today

First spec meeting of the year successful. Many more to come on the road to 1.0, but we've actually started defining a ground truth using #kaitai.

First milestone will be implementing the version handshake routine: github.com/rabbitControl/RCP/b

Remote Control Protocol. Contribute to rabbitControl/RCP development by creating an account on GitHub.
GitHubRCP/Flow.md at 1.0 · rabbitControl/RCPRemote Control Protocol. Contribute to rabbitControl/RCP development by creating an account on GitHub.
Continued thread

For a #Kaitai example, I did a partial KSY YAML file to describe and parse DPX files (image format used in the cinema industry): github.com/robin-francois/dpx-

Using this YAML file, I generated a parser and discovered that a lot of DPX were not exactly following the specs, and that I was actually getting more metadata than existing metadata extraction tools.

Kaitai Struct YAML file to handle DPX files. Contribute to robin-francois/dpx-kaitai-struct development by creating an account on GitHub.
GitHubGitHub - robin-francois/dpx-kaitai-struct: Kaitai Struct YAML file to handle DPX filesKaitai Struct YAML file to handle DPX files. Contribute to robin-francois/dpx-kaitai-struct development by creating an account on GitHub.
Continued thread

Another tool that I am trying to use more: #Kaitai Struct.

This is a tool to generate parsers for binaries/files. You describe the structure of the file format in YAML, and then you can generate parsing libraries for a variety of programming languages.

For me, this is most probably a good tool to document a file format or a filesystem.

There is also a web IDE to help you write your YAML Kaitai description: ide.kaitai.io/

Link to the project website: kaitai.io/

ide.kaitai.ioKaitai Web IDE

I used Kaitai Struct to help in my development of python-pickle.rb, a full Ruby implementation of the Python Pickle serialization format (versions 0-5). Although, Kaitai's documentation and example code only explains the structure of the file format, I still had to read the messy Python source code for pickle.py in order to understand how to process certain opcodes. It's still worth checking out if you're writing a file format parser/writer or serializer/deserializer library.
#kaitai #kaitaistruct #fileformats #ruby #pickle

formats.kaitai.ioFile Format Gallery for Kaitai StructKaitai Struct is a formal language for binary format specification that can be compiled into parser code

Shattering the eyeglass: Using Kaitai Structs to dissect the eyeglass’ contents

exponentialdecay.co.uk/blog/sh

A decade later I revisit the Eyeglass training format to dissect its contents. I though about a couple of approaches to doing this and landed on looking at part of it manually a la #digipres research and then using #kaitai to illustrate the principles further. Hopefully it is of interest to some! #FileFormats

@file_formats

exponentialdecay.co.ukShattering the eyeglass: Using Kaitai Structs to dissect the eyeglass’ contents – ross spencer :: exponentialdecay [-dot-] co [-dot-] uk :: blog

Publishing again some "unfinished" work.

I'm a big fan of Kaitai and I have made a KSY file that allows to parse #DPX files with #Kaitai.

Can be used with their Web IDE or to generate parsers in various languages.

This is unfinished but already quite advanced: github.com/robin-francois/dpx-

I will try to document a bit more the repo but no promises.

Kaitai Struct YAML file to handle DPX files. Contribute to robin-francois/dpx-kaitai-struct development by creating an account on GitHub.
GitHubGitHub - robin-francois/dpx-kaitai-struct: Kaitai Struct YAML file to handle DPX filesKaitai Struct YAML file to handle DPX files. Contribute to robin-francois/dpx-kaitai-struct development by creating an account on GitHub.