News for hackers. Stuff that matters.
Re:Kaitai Struct: A new way to develop parsers for binary st... by andrewingram on Friday March 18, 2022 @06:30AM (#30720445)
For my Mario Maker 2 level viewer, I used binrw in Rust (compiled to wasm) to parse the level data, it was quite a nice experience, very declarative.

Lib: https://github.com/jam1garner/binrw

Example level (a little slow to load): https://www.smm2-viewer.com/courses/BMV-CN5-4DG

Re:Kaitai Struct: A new way to develop parsers for binary st... by echelon on Friday March 18, 2022 @06:44AM (#30720525)
This is fantastically cool, Andrew!

That you reverse engineered Nintendo's API and data model, that you built a lovely and retro visualizer, that you made it a social tool. The technical details. Rust. Wasm.

Everything about this rocks.

Keep it up!

Re:Kaitai Struct: A new way to develop parsers for binary st... by andrewingram on Friday March 18, 2022 @06:48AM (#30720548)
Thanks!

I can't claim credit for the API and reverse engineering of the data model (https://github.com/0Liam/smm2-documentation), standing on the shoulder of giants here. But the original level viewer was a windows app which I couldn't use (there are since a handful of web ports of it); it seemed like an opportunity to learn a few technologies (Rust, WASM). There were a lot of interesting problems, i'll do a proper write-up one day.