Pilates — pure-TypeScript layout engine inspired by Ink's space #959
zhijiewong
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Vadim and Ink community,
Heads-up that I've published Pilates 2.0 this week — a pure-TypeScript flex layout engine validated cell-for-cell against
Yoga across 33 oracle fixtures and a structural-differential fuzzer. It's positioned as an unbundled alternative to the
Ink+Yoga stack rather than a drop-in Ink replacement; lots of folks still ship production CLIs on Ink and that's the right
call.
You might find the structural-mutation result interesting: across the 9 scenarios in my bench suite, the pure-TS engine
runs ahead of WASM Yoga on each — including the structural-mutation workload (append + remove a row per frame) Yoga led on
by ~5× until last week. That flipped to a ~1.7× Pilates win once I replaced the cumulative-sum main-axis position rule with
a linear recurrence and folded default-valued style inputs out of the grammar.
Not asking for anything — just a courtesy note since the project sits in territory you've shaped for years. Repo:
https://github.com/pilatesjs/pilates
Happy to chat about layout semantics, fuzzer setup, or the algorithm changes if it's useful to you. Either way: thanks for
Ink, it set the bar I was aiming at.
Zhijie Wang
zhijiewang.com
Beta Was this translation helpful? Give feedback.
All reactions