lawspec 0.17.0 → 0.17.1
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/CHANGELOG.md +27 -0
- package/README.md +3 -3
- package/bin/lawspec.mjs +1 -1
- package/build.json +17 -15
- package/core.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.17.1
|
|
4
|
+
|
|
5
|
+
### Faster compilation
|
|
6
|
+
|
|
7
|
+
- The compiler reuses work for whatever did not change. A compiler instance
|
|
8
|
+
(one `createCompiler()`, one wasm instance or one process) compiles,
|
|
9
|
+
discharges and plans a set of sources once for every method and target, plans
|
|
10
|
+
each law again only when it or the program's types, declarations, contracts
|
|
11
|
+
or definitions changed, and emits each unit again only when it, its laws or
|
|
12
|
+
that interface changed. Results are identical to a full compile.
|
|
13
|
+
- `lawspec examples` and other multi-target runs compile once instead of once
|
|
14
|
+
per target: generating every bundled example for all eight targets takes
|
|
15
|
+
about 105 seconds instead of about 270.
|
|
16
|
+
- A single compile is faster too: kind lookups use a map instead of scanning
|
|
17
|
+
every type in the program, boundary candidates are deduplicated in
|
|
18
|
+
`n log n`, and long failure messages are split by bisection. Compiling all
|
|
19
|
+
bundled examples together takes a quarter less time.
|
|
20
|
+
|
|
21
|
+
### Incremental local checks
|
|
22
|
+
|
|
23
|
+
- `lawspec-dev ci` records passing results by content. Acceptance suites key
|
|
24
|
+
each run by the generated project and everything else its tests read, so a
|
|
25
|
+
compiler change that leaves a target's output unchanged skips that target's
|
|
26
|
+
native tests. Core steps key by the repository files they read.
|
|
27
|
+
- `lawspec-dev ci --fresh` (`make ci-fresh`) runs every step, and releases use
|
|
28
|
+
it. See [CONTRIBUTING](CONTRIBUTING.md#checks).
|
|
29
|
+
|
|
3
30
|
## 0.17.0
|
|
4
31
|
|
|
5
32
|
### Collections
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Node 22+ and the selected target's build tools are required. No Haskell
|
|
|
30
30
|
toolchain is needed. The reference platforms are macOS and Linux.
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
npm install --save-dev lawspec@0.17.
|
|
33
|
+
npm install --save-dev lawspec@0.17.1
|
|
34
34
|
npx lawspec --version
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -40,8 +40,8 @@ LawSpec can create `package.json` and its test script:
|
|
|
40
40
|
```sh
|
|
41
41
|
mkdir lawspec-example
|
|
42
42
|
cd lawspec-example
|
|
43
|
-
npm exec --package=lawspec@0.17.
|
|
44
|
-
npm install --save-dev lawspec@0.17.
|
|
43
|
+
npm exec --package=lawspec@0.17.1 -- lawspec init --target javascript
|
|
44
|
+
npm install --save-dev lawspec@0.17.1
|
|
45
45
|
npx lawspec check
|
|
46
46
|
npx lawspec explain 'example.atoi_codec::itoa and then atoi yields a'
|
|
47
47
|
npx lawspec doctor
|
package/bin/lawspec.mjs
CHANGED
package/build.json
CHANGED
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"src/LawSpec/KotlinNativeBinding.hs",
|
|
99
99
|
"src/LawSpec/KotlinProperties.hs",
|
|
100
100
|
"src/LawSpec/KotlinTestHelpers.hs",
|
|
101
|
+
"src/LawSpec/Memo.hs",
|
|
101
102
|
"src/LawSpec/Model.hs",
|
|
102
103
|
"src/LawSpec/NativeBinding.hs",
|
|
103
104
|
"src/LawSpec/NativeRequest.hs",
|
|
@@ -139,8 +140,8 @@
|
|
|
139
140
|
],
|
|
140
141
|
"digests": {
|
|
141
142
|
"dev/Gen/Embed.hs": "41cd18500c1a8c9bdb51011ab4c74817f8e04b655aa10d9894aa1b93a3fa858b",
|
|
142
|
-
"lawspec.cabal": "
|
|
143
|
-
"package.yaml": "
|
|
143
|
+
"lawspec.cabal": "dde1ada13d7a201ea5107f0d042de926ac8d27a00c199af4c46b29c85edc9ba0",
|
|
144
|
+
"package.yaml": "a7f0583e62b8107137d22f89e3c596c0a76c71cfbb14f415a3db3d386c82e58a",
|
|
144
145
|
"runtime/LawSpecCodecs.hs": "1b3f6b40ad49928cf5e9386e06bc2992c9f1271754351b9fa3075e50346ef03b",
|
|
145
146
|
"runtime/LawSpecCollectionCodecs.hs": "74caa786801c5142ed040897c7ebb7373abf49ee49e02af53e466646fb624f47",
|
|
146
147
|
"runtime/LawSpecDataStrategies.hs": "9cc5b98476364a6c255dc3eb40c53d65b4a9d4ab0c3961a806b3515a8d5e8f7f",
|
|
@@ -165,9 +166,9 @@
|
|
|
165
166
|
"runtime/lawspec_schema.mjs": "d77abea1a9dcb03e4a6c6eef6509971d8599fac9acdefa9b9e4b89b8d0fc5226",
|
|
166
167
|
"runtime/lawspec_schema.py": "daed20d27168970350ef0b63b9cb2e566bd00598922acb4071d863c076e787ba",
|
|
167
168
|
"runtime/lawspec_strategies.rs": "5e991a45548811fef1728e1e9b9f12f76ee4cc7cb9c3339eab79bc4cf5f54f6b",
|
|
168
|
-
"runtime/rust/Cargo.lock": "
|
|
169
|
-
"runtime/rust/Cargo.toml": "
|
|
170
|
-
"src/LawSpec/Api.hs": "
|
|
169
|
+
"runtime/rust/Cargo.lock": "aaff0a41f104cc53b8ee54ccb66df2a7f6134de526b3a2e4d40a08f71ac4012c",
|
|
170
|
+
"runtime/rust/Cargo.toml": "b42d1d443abac5eda8a05194aa3afc5b06deefe934f61a814d3ee81a7058dee8",
|
|
171
|
+
"src/LawSpec/Api.hs": "b93bc7c1f56cf04a7d1f2be78f1d78511784df09423c67fcc16521ef9ff38738",
|
|
171
172
|
"src/LawSpec/Backend.hs": "caf45afb73e7455dd801195b8b117ca7e4664ac4babc6ef0732e06faf9e64fcb",
|
|
172
173
|
"src/LawSpec/Capabilities.hs": "ab457f3da440a237ee731d664b94d95a0cc1fa4d8be4d4d0403a61ebcf98e310",
|
|
173
174
|
"src/LawSpec/Code/Doc.hs": "9e3b70f85deb1dcbce385af1d0cd4bea2dfa8a2d806d54745d4bb437406673e5",
|
|
@@ -175,7 +176,7 @@
|
|
|
175
176
|
"src/LawSpec/Collections.hs": "f8cc2978b6690709deb421ee22df37985c80e5b06064f819a193d6b912328ee1",
|
|
176
177
|
"src/LawSpec/Common.hs": "107612a8aaa787488413acf9c1a56622004d3bff251db89b99928343e6070883",
|
|
177
178
|
"src/LawSpec/Compile.hs": "ec8a077041ec65ae908cf5fe48ed3cd15200f613b5cee7a4331f2f0bd9cb66ca",
|
|
178
|
-
"src/LawSpec/Core.hs": "
|
|
179
|
+
"src/LawSpec/Core.hs": "faa5abce4be809298212dee0fbdf1b65c992a950e23801d9509630580e615163",
|
|
179
180
|
"src/LawSpec/Core/DefinitionContracts.hs": "b7f60f038b231187ecf898e585ae1a8fb1fc113bb55bad6d1bb2660350fd969e",
|
|
180
181
|
"src/LawSpec/Core/Definitions.hs": "8e0d1d7127f9d4872f2464b4af50b0f286823d5f0f203baf38fb3c316d766140",
|
|
181
182
|
"src/LawSpec/Core/Eval.hs": "26c518cf3db1f395f69353cb373e1aacf7f1a0ce81d3e17b15878421e9625a8b",
|
|
@@ -188,12 +189,12 @@
|
|
|
188
189
|
"src/LawSpec/Core/Semantics.hs": "cdb8256e523f7808fa50fe7d80d709217a28de4c81c5ff5be8382f94900f3779",
|
|
189
190
|
"src/LawSpec/Core/Total.hs": "308684d7ff78a5e4dc75aef30c4df17610a2cb107d48ddb75d14d8573b178e5b",
|
|
190
191
|
"src/LawSpec/Core/Totality.hs": "5e76100466cf4a157b9eda36738806af836a5bda949f5d568d7bf5155fa8858a",
|
|
191
|
-
"src/LawSpec/Core/Types.hs": "
|
|
192
|
+
"src/LawSpec/Core/Types.hs": "04d9c093fcc0d84e2864c8a3b69d5fe318a92c60b32844048198f1b12fe1b6fb",
|
|
192
193
|
"src/LawSpec/Core/Validate.hs": "74c2a51eb913f8414268064f22d2d5d97ebfb0e4797e146b229076c29ac38726",
|
|
193
|
-
"src/LawSpec/Core/Value.hs": "
|
|
194
|
-
"src/LawSpec/CoreEmit.hs": "
|
|
195
|
-
"src/LawSpec/CoreNativeScalarEmit.hs": "
|
|
196
|
-
"src/LawSpec/CoreScalarEmit.hs": "
|
|
194
|
+
"src/LawSpec/Core/Value.hs": "a1e0745154c54498d7e164a89546ef2a56afade05a1d362e1c63986245ad2774",
|
|
195
|
+
"src/LawSpec/CoreEmit.hs": "da5577b7022315df25a76b41911840f98174025cd4ce96f4c51dfadb4eb7302c",
|
|
196
|
+
"src/LawSpec/CoreNativeScalarEmit.hs": "5a5d145a18f596682a3dc3dacb009268d48c384c2f2ca620b503268096a66940",
|
|
197
|
+
"src/LawSpec/CoreScalarEmit.hs": "0493aa132599aca36a773717252281c2ab9c2aeb6ac1c90269dfbea50aaa36b1",
|
|
197
198
|
"src/LawSpec/Data.hs": "f659f4e86f1009c4806334a45686970dde2efa2641585f997a7beba01d0e6f2d",
|
|
198
199
|
"src/LawSpec/DataNames.hs": "2eeb0d215131981a2271725a50c21dce44c7146a167025eb239a83922fdecaf6",
|
|
199
200
|
"src/LawSpec/DefinitionTotality.hs": "adf00236e0e1b1cad4299793ced5f9047dbc2321d3c2f9ba040bac30d1a87c73",
|
|
@@ -235,6 +236,7 @@
|
|
|
235
236
|
"src/LawSpec/KotlinNativeBinding.hs": "1aec7854758f07a4d2288de13931fbb88ef32220f85d3c84fe8233ad67b6d095",
|
|
236
237
|
"src/LawSpec/KotlinProperties.hs": "5c7289c97cc915cbc3432eb4b08a2fefbe786af4d6591af4b59923aa9d6a2075",
|
|
237
238
|
"src/LawSpec/KotlinTestHelpers.hs": "74810d65faafc6ed4d64b1fb0596cda4186e586b7144a7441641b798795bc324",
|
|
239
|
+
"src/LawSpec/Memo.hs": "35a0d0f2ebcf649771dd418c3609fd3c1fc9bfe7f787ffe64102cc6dab9f0fc6",
|
|
238
240
|
"src/LawSpec/Model.hs": "72fae874b4a5aa98057254fc1b508df3f71ec8587740bc7c18ea29490526137b",
|
|
239
241
|
"src/LawSpec/NativeBinding.hs": "33959b0fd432ad4150f3b685f6438e284b801c2a59d9ef3132486a1cc7c8925a",
|
|
240
242
|
"src/LawSpec/NativeRequest.hs": "f8200c36725859ea32374655951f7a45e2b3342b159f9f6c88b5f9a2a6331897",
|
|
@@ -258,9 +260,9 @@
|
|
|
258
260
|
"src/LawSpec/RustNativeBinding.hs": "d50d1fb10591ee86129ae49b38a343148c084479e450eef3b320e1efdd55245d",
|
|
259
261
|
"src/LawSpec/RustNativeGenerators.hs": "a3b1484d9ff0008e4f961aa81d0aa51da57ec0cd7909124e80c98d56aacc8ce9",
|
|
260
262
|
"src/LawSpec/Scaffold.hs": "217328445923b9e339428dd542ce9b910c26ed132c31d1ef083de73763b749f9",
|
|
261
|
-
"src/LawSpec/Scalar.hs": "
|
|
263
|
+
"src/LawSpec/Scalar.hs": "c49180c9de3d9549dbfa715a0e21868badc2ea78357381be883026c71b477a44",
|
|
262
264
|
"src/LawSpec/SpecializeDefinitions.hs": "2bdd6d9b191941d869ef524659e02fed551499aaa2ea98c99323da03af113012",
|
|
263
|
-
"src/LawSpec/Testing.hs": "
|
|
265
|
+
"src/LawSpec/Testing.hs": "1e0dcbfad6f504ad232ac846299be736492aec73239ee9918c4e8266baa47248",
|
|
264
266
|
"src/LawSpec/WebData.hs": "bbcd7d734ce3941d83cc455a9a2147b642f6111ebb34db9ef99dcb7a58b8c4ae",
|
|
265
267
|
"src/LawSpec/WebDefinitions.hs": "579309c76b9303a3c9e456e1252f2d0881795210aa0b09104a00efdfe10e3e13",
|
|
266
268
|
"src/LawSpec/WebExpr.hs": "0389dcd5cf7479dd23ef034b1012de6ebd70bf1dc9e3d90981dfb0ba2702596f",
|
|
@@ -272,8 +274,8 @@
|
|
|
272
274
|
"wasm/app/Exports.hs": "4ecbdac8faa2449e6fc61b93c82e6278fa14374154f29b4dacf0eef433f06a47",
|
|
273
275
|
"wasm/cabal.project": "021e560afdc5eb4cb7169e7119ecb8f92c9ee170245af909c94b612941bff5cc",
|
|
274
276
|
"wasm/cabal.project.freeze": "733dbed3d2ecccb26e874fd58f136296dad772184deb1658c196b5d54a0814dc",
|
|
275
|
-
"wasm/lawspec-wasm.cabal": "
|
|
276
|
-
"npm/core.wasm": "
|
|
277
|
+
"wasm/lawspec-wasm.cabal": "c624549c098df60abe2d1e83e4a69e1d311d7a73ba53e2174944f8814dd3d139",
|
|
278
|
+
"npm/core.wasm": "9d5d3b367cdbe95924f20580b3638332b5f4a0e828b90ab3c01812422637ee00",
|
|
277
279
|
"npm/core_jsffi.js": "88d136efe92f7cff5758c8fec8d9b6bbc9707fe37741cebeeb415fe34ce3d72b",
|
|
278
280
|
"npm/api.mjs": "19e1624f91258c1397f3212faf65b407c62671b0fc5b118520e6a91f7ad7c6ba",
|
|
279
281
|
"npm/index.d.ts": "2215087cc6628a2ddbdd573210c4f9021cffeb00c142d4f3ae1314fd59a397f6"
|
package/core.wasm
CHANGED
|
Binary file
|