Skip to content

Use the grid module that Vex generates for the strategy grid - #1

Merged
mark1russell7 merged 2 commits into
mainfrom
vex/grid-module
Oct 17, 2026
Merged

mark1russell7 merged 2 commits into
mainfrom
vex/grid-module

Conversation

@mark1russell7

Copy link
Copy Markdown
Owner

The strategy grid calls a standalone ES module that @mark1russell7/vex-compiler generates from the Vex program of the strategy (packages/pilots/src/ireko-grid.ts in mark1russell7/vex). The module has no import of Vex.

  • The rectangles are bit-exact with the old code: the tests and the golden SVGs pass.
  • The engine benchmark is at parity.
  • The core stays under its size limit of 15 kB.

Regenerate the module with npx tsx scripts/ireko-module.ts grid <file> in packages/pilots of the Vex repository.

🤖 Generated with Claude Code

mark1russell7 and others added 2 commits October 16, 2026 00:21
The strategy grid gives its offsets from grid.generated.js, a standalone
module that the Vex compiler makes from the pilot program of Vex
(packages/pilots/scripts/ireko-grid.ts). The module has no import, and a
property test in Vex compares it with the old code of ireko, with the same
bits. The tests and the golden SVG files pass, and the core is 14.94 kB.

The trees of 111 nodes are about 2.2 times slower in the benchmark, so
this branch waits for a faster printer of Vex.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new module has statements and loops. A width of a column and a
height of a row come from a map of the groups, and the start of a
column or a row is a binary search on the prefixes. The benchmarks of
the engine hold, and the core is 14.97 kB of 15 kB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mark1russell7
mark1russell7 merged commit dee1dcf into main Oct 17, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
github-pages — dee1dcfe Deployed Oct 17, 2026 by mark1russell7 via deploy #18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant