@mark1russell7/vex 0.17.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/build/index.d.ts +529 -125
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2573 -374
- package/build/index.js.map +1 -1
- package/package.json +5 -4
- package/src/builder.ts +75 -16
- package/src/constructs.ts +31 -0
- package/src/deps.ts +7 -1
- package/src/document.ts +18 -4
- package/src/domain.ts +128 -5
- package/src/error-text.ts +114 -0
- package/src/evaluate.ts +272 -87
- package/src/fix.ts +46 -0
- package/src/index.ts +6 -0
- package/src/ir.ts +64 -6
- package/src/json.ts +10 -1
- package/src/kernel.ts +126 -10
- package/src/limit-error.ts +14 -0
- package/src/list.ts +48 -2
- package/src/monotone.ts +259 -0
- package/src/plan.ts +11 -5
- package/src/sheet.ts +30 -19
- package/src/size.ts +1104 -0
- package/src/steps.ts +83 -0
- package/src/trace.ts +2 -0
- package/src/write.ts +18 -7
package/README.md
CHANGED
|
@@ -78,6 +78,12 @@ plan.run({ space: space.array([{ n: 2 }]), origin: "0" }); // => { ok: true, val
|
|
|
78
78
|
|
|
79
79
|
Vex keeps what is its own: the typed domains, the spaces, the moves and the axes, the closure compiler, the loop compiler and the sheets.
|
|
80
80
|
|
|
81
|
+
## Speed
|
|
82
|
+
|
|
83
|
+
A program of this package runs in the interpreter (tier 1). In CI, the interpreter takes approximately 17 to 21 times the time of hand-written loops for the nearest other box. For a step of the Game of Life, it takes approximately 38 to 41 times.
|
|
84
|
+
|
|
85
|
+
For speed, compile the program with [`@mark1russell7/vex-compiler`](https://www.npmjs.com/package/@mark1russell7/vex-compiler). Its tier 2 takes 1.2 to 1.7 times the time of the same loops, with the results of the interpreter. The speed gates in `packages/core/bench/gate.ts` and `packages/compiler/bench/gate.ts` give each limit and the runs that set it.
|
|
86
|
+
|
|
81
87
|
## Related packages
|
|
82
88
|
|
|
83
89
|
- [`@mark1russell7/vex-domains`](https://www.npmjs.com/package/@mark1russell7/vex-domains): 2D vectors, colors, angles, numbers and booleans
|