jsbuffer — The Compiler Rewrites Itself
Five years after mff, Victor rebuilt the entire serialization stack from scratch in TypeScript. No C, no native bindings, the most ambitious code generation yet.
6 posts
Five years after mff, Victor rebuilt the entire serialization stack from scratch in TypeScript. No C, no native bindings, the most ambitious code generation yet.
Victor's other serialization library doesn't use schemas at all. Hand it any JavaScript object and it encodes it to binary. The opposite approach, built at the same time.
Victor's serialization framework wraps btc's C parser in TypeScript and adds the code generator that was missing from every earlier project. btc was never standalone.
Victor's 2017 serialization library parses the same kind of schema that btc parses in C. The JavaScript version came first. The C port came after.
Victor's 2018 compiler parses a custom schema language in pure C. The same technique from vdom-raw, now with malloc and -Werror.
Victor's 2017 router doesn't use path-to-regexp. It reads routes byte by byte, the way his 2016 compiler reads expressions. The technique transferred. The framework didn't.