expressir 2.4.40 → 2.4.42
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.
- checksums.yaml +4 -4
- data/.github/workflows/performance-release.yml +124 -0
- data/TODO.compat/00-overview.md +35 -0
- data/TODO.compat/01-interchange-cli.md +34 -0
- data/TODO.compat/02-compat-guide.md +21 -0
- data/TODO.compat/03-scoreboard.md +24 -0
- data/TODO.compat/04-unified-receipt.md +26 -0
- data/TODO.compat/05-p28-configured.md +26 -0
- data/TODO.compat/06-change-classification.md +26 -0
- data/TODO.compat/07-evaluator-matrix.md +22 -0
- data/TODO.compat/08-wasm.md +24 -0
- data/docs/_guides/compat/eval-builtin-matrix.adoc +42 -0
- data/docs/_guides/compat/index.adoc +16 -0
- data/docs/_guides/compat/interchange.adoc +79 -0
- data/docs/_guides/compat/toolchain.adoc +57 -0
- data/docs/_guides/reference/grammar-crosswalk.adoc +1 -0
- data/expressir.gemspec +1 -2
- data/ext/expressir_core/Cargo.toml +1 -1
- data/lib/expressir/cli.rb +22 -0
- data/lib/expressir/commands/changes_import_eengine.rb +18 -13
- data/lib/expressir/commands/compare.rb +177 -0
- data/lib/expressir/commands/doctor.rb +81 -0
- data/lib/expressir/commands/receipt.rb +30 -0
- data/lib/expressir/commands/validate.rb +7 -0
- data/lib/expressir/commands/validate_remarks.rb +283 -0
- data/lib/expressir/commands.rb +4 -0
- data/lib/expressir/eengine/modified_object.rb +6 -0
- data/lib/expressir/eval/builtin_matrix.rb +83 -0
- data/lib/expressir/eval/interpreter.rb +13 -0
- data/lib/expressir/eval.rb +1 -0
- data/lib/expressir/express/builders/expression_builder.rb +4 -3
- data/lib/expressir/express/change_classification.rb +75 -0
- data/lib/expressir/express/formatters/declarations_formatter.rb +11 -10
- data/lib/expressir/express/grammar/parser.rb +15 -2
- data/lib/expressir/express/parser.rb +16 -0
- data/lib/expressir/express/schema_compare.rb +2 -1
- data/lib/expressir/express.rb +2 -0
- data/lib/expressir/p28/configuration.rb +124 -0
- data/lib/expressir/p28/xsd.rb +73 -32
- data/lib/expressir/p28.rb +1 -0
- data/lib/expressir/receipt.rb +237 -0
- data/lib/expressir/reference/grammar_crosswalk.yml +4 -0
- data/lib/expressir/scoreboard.rb +151 -0
- data/lib/expressir/version.rb +1 -1
- data/lib/expressir.rb +2 -0
- data/lib/tasks/scoreboard.rake +59 -0
- data/scoreboard-baseline.json +7 -0
- metadata +29 -18
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "rake"
|
|
4
|
+
require "rspec/core/rake_task"
|
|
5
|
+
|
|
6
|
+
desc "Print the per-command scoreboard (CPU medians, interleaved)"
|
|
7
|
+
task scoreboard: :compile do
|
|
8
|
+
require "expressir"
|
|
9
|
+
require "expressir/scoreboard"
|
|
10
|
+
puts Expressir::Scoreboard.table(Expressir::Scoreboard.run)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
namespace :scoreboard do
|
|
14
|
+
desc "Print the scoreboard"
|
|
15
|
+
task print: :compile do
|
|
16
|
+
require "expressir"
|
|
17
|
+
require "expressir/scoreboard"
|
|
18
|
+
rows = Expressir::Scoreboard.run
|
|
19
|
+
puts Expressir::Scoreboard.table(rows)
|
|
20
|
+
if (path = ENV.fetch("SCOREBOARD_JSON", nil))
|
|
21
|
+
File.write(path, JSON.generate(rows))
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# The local baseline is machine-specific; CI points the same gate at
|
|
26
|
+
# its own committed measurement (see .github/workflows/performance-release.yml).
|
|
27
|
+
baseline_path = ENV.fetch("SCOREBOARD_BASELINE", "scoreboard-baseline.json")
|
|
28
|
+
|
|
29
|
+
desc "Update the committed scoreboard baseline"
|
|
30
|
+
task update: :compile do
|
|
31
|
+
require "expressir"
|
|
32
|
+
require "expressir/scoreboard"
|
|
33
|
+
File.write(baseline_path,
|
|
34
|
+
"#{JSON.pretty_generate(Expressir::Scoreboard.run)}\n")
|
|
35
|
+
puts "baseline written to #{baseline_path}"
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
desc "Gate: fail when a command regresses over 2x the baseline (medians swing on loaded boxes)"
|
|
39
|
+
task gate: :compile do
|
|
40
|
+
require "expressir"
|
|
41
|
+
require "expressir/scoreboard"
|
|
42
|
+
unless File.exist?(baseline_path)
|
|
43
|
+
abort "no scoreboard baseline at #{baseline_path} — " \
|
|
44
|
+
"run rake scoreboard:update (or set SCOREBOARD_BASELINE) first"
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
baseline = JSON.parse(File.read(baseline_path))
|
|
48
|
+
current = Expressir::Scoreboard.run
|
|
49
|
+
regressions = current.filter_map do |row, cpu|
|
|
50
|
+
base = baseline[row]
|
|
51
|
+
next if base.nil? || base.zero?
|
|
52
|
+
|
|
53
|
+
"#{row}: #{format('%.4f', cpu)} vs baseline #{format('%.4f', base)}" if cpu > base * 2.0
|
|
54
|
+
end
|
|
55
|
+
abort "scoreboard regressions:\n#{regressions.join("\n")}" if regressions.any?
|
|
56
|
+
|
|
57
|
+
puts "scoreboard: no regressions over the baseline"
|
|
58
|
+
end
|
|
59
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: expressir
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.42
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|
|
@@ -114,28 +114,14 @@ dependencies:
|
|
|
114
114
|
requirements:
|
|
115
115
|
- - ">="
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version:
|
|
117
|
+
version: 0.5.154
|
|
118
118
|
type: :runtime
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version:
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: nokogiri
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - "~>"
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '1.19'
|
|
132
|
-
type: :runtime
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - "~>"
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '1.19'
|
|
124
|
+
version: 0.5.154
|
|
139
125
|
- !ruby/object:Gem::Dependency
|
|
140
126
|
name: paint
|
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -258,6 +244,7 @@ files:
|
|
|
258
244
|
- ".github/workflows/docs.yml"
|
|
259
245
|
- ".github/workflows/links.yml"
|
|
260
246
|
- ".github/workflows/native-gems.yml"
|
|
247
|
+
- ".github/workflows/performance-release.yml"
|
|
261
248
|
- ".github/workflows/rake.yml"
|
|
262
249
|
- ".github/workflows/release.yml"
|
|
263
250
|
- ".github/workflows/rust-ext.yml"
|
|
@@ -305,6 +292,15 @@ files:
|
|
|
305
292
|
- TODO.bugs/29-validate-ascii-god-class.md
|
|
306
293
|
- TODO.bugs/30-unicode-map-extraction.md
|
|
307
294
|
- TODO.bugs/README.md
|
|
295
|
+
- TODO.compat/00-overview.md
|
|
296
|
+
- TODO.compat/01-interchange-cli.md
|
|
297
|
+
- TODO.compat/02-compat-guide.md
|
|
298
|
+
- TODO.compat/03-scoreboard.md
|
|
299
|
+
- TODO.compat/04-unified-receipt.md
|
|
300
|
+
- TODO.compat/05-p28-configured.md
|
|
301
|
+
- TODO.compat/06-change-classification.md
|
|
302
|
+
- TODO.compat/07-evaluator-matrix.md
|
|
303
|
+
- TODO.compat/08-wasm.md
|
|
308
304
|
- TODO.eengine/00-overview.md
|
|
309
305
|
- TODO.eengine/01-resolution-diagnostics.md
|
|
310
306
|
- TODO.eengine/02-check-catalog-completion.md
|
|
@@ -400,6 +396,10 @@ files:
|
|
|
400
396
|
- docs/_guides/cli/managing-changes.adoc
|
|
401
397
|
- docs/_guides/cli/validate-ascii.adoc
|
|
402
398
|
- docs/_guides/cli/validate-schemas.adoc
|
|
399
|
+
- docs/_guides/compat/eval-builtin-matrix.adoc
|
|
400
|
+
- docs/_guides/compat/index.adoc
|
|
401
|
+
- docs/_guides/compat/interchange.adoc
|
|
402
|
+
- docs/_guides/compat/toolchain.adoc
|
|
403
403
|
- docs/_guides/formatter/formatter-architecture.adoc
|
|
404
404
|
- docs/_guides/index.adoc
|
|
405
405
|
- docs/_guides/interop/index.adoc
|
|
@@ -490,7 +490,9 @@ files:
|
|
|
490
490
|
- lib/expressir/commands/changes_validate.rb
|
|
491
491
|
- lib/expressir/commands/check.rb
|
|
492
492
|
- lib/expressir/commands/clean.rb
|
|
493
|
+
- lib/expressir/commands/compare.rb
|
|
493
494
|
- lib/expressir/commands/coverage.rb
|
|
495
|
+
- lib/expressir/commands/doctor.rb
|
|
494
496
|
- lib/expressir/commands/expand.rb
|
|
495
497
|
- lib/expressir/commands/export_json_schema.rb
|
|
496
498
|
- lib/expressir/commands/export_owl.rb
|
|
@@ -505,10 +507,12 @@ files:
|
|
|
505
507
|
- lib/expressir/commands/package.rb
|
|
506
508
|
- lib/expressir/commands/parity_inputs.rb
|
|
507
509
|
- lib/expressir/commands/population.rb
|
|
510
|
+
- lib/expressir/commands/receipt.rb
|
|
508
511
|
- lib/expressir/commands/smrl_xml_index.rb
|
|
509
512
|
- lib/expressir/commands/validate.rb
|
|
510
513
|
- lib/expressir/commands/validate_ascii.rb
|
|
511
514
|
- lib/expressir/commands/validate_load.rb
|
|
515
|
+
- lib/expressir/commands/validate_remarks.rb
|
|
512
516
|
- lib/expressir/commands/version_command.rb
|
|
513
517
|
- lib/expressir/commands/xsd.rb
|
|
514
518
|
- lib/expressir/config.rb
|
|
@@ -523,6 +527,7 @@ files:
|
|
|
523
527
|
- lib/expressir/eengine/modified_object.rb
|
|
524
528
|
- lib/expressir/errors.rb
|
|
525
529
|
- lib/expressir/eval.rb
|
|
530
|
+
- lib/expressir/eval/builtin_matrix.rb
|
|
526
531
|
- lib/expressir/eval/environment.rb
|
|
527
532
|
- lib/expressir/eval/expression.rb
|
|
528
533
|
- lib/expressir/eval/interpreter.rb
|
|
@@ -571,6 +576,7 @@ files:
|
|
|
571
576
|
- lib/expressir/express/builders/unique_rule_builder.rb
|
|
572
577
|
- lib/expressir/express/builders/where_clause_builder.rb
|
|
573
578
|
- lib/expressir/express/cache.rb
|
|
579
|
+
- lib/expressir/express/change_classification.rb
|
|
574
580
|
- lib/expressir/express/checker.rb
|
|
575
581
|
- lib/expressir/express/concatenator.rb
|
|
576
582
|
- lib/expressir/express/core.rb
|
|
@@ -741,6 +747,7 @@ files:
|
|
|
741
747
|
- lib/expressir/p21/validator.rb
|
|
742
748
|
- lib/expressir/p21/writer.rb
|
|
743
749
|
- lib/expressir/p28.rb
|
|
750
|
+
- lib/expressir/p28/configuration.rb
|
|
744
751
|
- lib/expressir/p28/document.rb
|
|
745
752
|
- lib/expressir/p28/uos.rb
|
|
746
753
|
- lib/expressir/p28/xsd.rb
|
|
@@ -748,20 +755,24 @@ files:
|
|
|
748
755
|
- lib/expressir/package/builder.rb
|
|
749
756
|
- lib/expressir/package/metadata.rb
|
|
750
757
|
- lib/expressir/package/reader.rb
|
|
758
|
+
- lib/expressir/receipt.rb
|
|
751
759
|
- lib/expressir/reference.rb
|
|
752
760
|
- lib/expressir/reference/grammar_crosswalk.rb
|
|
753
761
|
- lib/expressir/reference/grammar_crosswalk.yml
|
|
754
762
|
- lib/expressir/reference/note_catalog.rb
|
|
755
763
|
- lib/expressir/schema_manifest.rb
|
|
756
764
|
- lib/expressir/schema_manifest_entry.rb
|
|
765
|
+
- lib/expressir/scoreboard.rb
|
|
757
766
|
- lib/expressir/version.rb
|
|
758
767
|
- lib/tasks/conformance.rake
|
|
759
768
|
- lib/tasks/instance.rake
|
|
760
769
|
- lib/tasks/reference.rake
|
|
770
|
+
- lib/tasks/scoreboard.rake
|
|
761
771
|
- lib/tasks/verify_remarks.rake
|
|
762
772
|
- rakelib/native.rake
|
|
763
773
|
- rakelib/oracle.rake
|
|
764
774
|
- rakelib/verify_remarks.rake
|
|
775
|
+
- scoreboard-baseline.json
|
|
765
776
|
homepage: https://github.com/lutaml/expressir
|
|
766
777
|
licenses:
|
|
767
778
|
- BSD-2-Clause
|