Re:Ask HN: Please Review My Metalanguage
by noduerme on Thursday February 09, 2023 @05:39AM
(#34722066)
Lord. I still have whole books I laid out in QuarkXPress for commercial printing that I can't open. Reverse engineering the file format was not something that had occurred to me.
Re:Ask HN: Please Review My Metalanguage
by fjfaase on Thursday February 09, 2023 @09:59AM
(#34724910)
I have made the code available on GitHub, The code was developed on Windows and makes use of some Windows specific functions. But I think that dependency can be removed.
Re:Ask HN: Please Review My Metalanguage
by aeneasmackenzie on Thursday February 09, 2023 @09:40AM
(#34724571)
Unity asset files killed my attempt at a comprehensive binary encoding format spec language. There’s a header containing a list of block pointers. The blocks are compressed and the (several) files are sequential. Typically the first file is a resource containing a block of metadata describing object type formats, then object references keyed to the specified formats. The objects can have transparent references (PPtrs) to other objects in the resource file, or other files in the asset, or other files or objects in in other asset files. One asset file usually contains the master list of what object is in what file.
None of this is a true blocker, but your format has to contain sigma types and at that point you’re just writing a parser normally.
Links: https://www.iwriteiam.nl/Ha_BFF.html https://www.iwriteiam.nl/Ha_HTCABFF.html https://www.iwriteiam.nl/D0205.html#13MMF