Blog
Benchmarks, comparisons with other libraries, and the stories behind the projects I work on. Every TypeScript example is type-checked when the site builds. Subscribe with the RSS feed.
- A cached Nx run took almost 3 minutes. Now it takes 40 seconds
With every task in leyman cached, nx run-many -t verify still took 2m 22s to 2m 54s. Most of it was Nx copying finished tasks' results into native code on every hashing pass. The fix is in Nx 24.0.4.
- nx-lifecycle: dependency injection for Nx task pipelines
Making Rust a supported language in leyman took five new Nx targets. With nx-lifecycle that was five lines of config; written by hand, 86 dependsOn entries across every existing target.
- One library, several languages, held to one set of test vectors
genever, populate-files and generated-signature now have Go implementations. Each port runs expected values the TypeScript implementation computed once, including which error a bad schema fails with and where.
- How narrow are generated TypeScript types? Six JSON Schema generators compared
genever, json-schema-to-typescript, quicktype, json-schema-to-zod, json-schema-to-ts and TypeBox, given the same schema every night, with each generated type checked against valid values, invalid values and reads.