expressir 2.4.41 → 2.4.43
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/ext/expressir_core/Cargo.toml +1 -1
- data/lib/expressir/cli.rb +22 -0
- 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/builders/function_decl_builder.rb +9 -2
- data/lib/expressir/express/builders/procedure_decl_builder.rb +9 -2
- 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 +21 -4
- 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 +27 -2
|
@@ -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.43
|
|
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
|
|
@@ -244,6 +244,7 @@ files:
|
|
|
244
244
|
- ".github/workflows/docs.yml"
|
|
245
245
|
- ".github/workflows/links.yml"
|
|
246
246
|
- ".github/workflows/native-gems.yml"
|
|
247
|
+
- ".github/workflows/performance-release.yml"
|
|
247
248
|
- ".github/workflows/rake.yml"
|
|
248
249
|
- ".github/workflows/release.yml"
|
|
249
250
|
- ".github/workflows/rust-ext.yml"
|
|
@@ -291,6 +292,15 @@ files:
|
|
|
291
292
|
- TODO.bugs/29-validate-ascii-god-class.md
|
|
292
293
|
- TODO.bugs/30-unicode-map-extraction.md
|
|
293
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
|
|
294
304
|
- TODO.eengine/00-overview.md
|
|
295
305
|
- TODO.eengine/01-resolution-diagnostics.md
|
|
296
306
|
- TODO.eengine/02-check-catalog-completion.md
|
|
@@ -386,6 +396,10 @@ files:
|
|
|
386
396
|
- docs/_guides/cli/managing-changes.adoc
|
|
387
397
|
- docs/_guides/cli/validate-ascii.adoc
|
|
388
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
|
|
389
403
|
- docs/_guides/formatter/formatter-architecture.adoc
|
|
390
404
|
- docs/_guides/index.adoc
|
|
391
405
|
- docs/_guides/interop/index.adoc
|
|
@@ -476,7 +490,9 @@ files:
|
|
|
476
490
|
- lib/expressir/commands/changes_validate.rb
|
|
477
491
|
- lib/expressir/commands/check.rb
|
|
478
492
|
- lib/expressir/commands/clean.rb
|
|
493
|
+
- lib/expressir/commands/compare.rb
|
|
479
494
|
- lib/expressir/commands/coverage.rb
|
|
495
|
+
- lib/expressir/commands/doctor.rb
|
|
480
496
|
- lib/expressir/commands/expand.rb
|
|
481
497
|
- lib/expressir/commands/export_json_schema.rb
|
|
482
498
|
- lib/expressir/commands/export_owl.rb
|
|
@@ -491,10 +507,12 @@ files:
|
|
|
491
507
|
- lib/expressir/commands/package.rb
|
|
492
508
|
- lib/expressir/commands/parity_inputs.rb
|
|
493
509
|
- lib/expressir/commands/population.rb
|
|
510
|
+
- lib/expressir/commands/receipt.rb
|
|
494
511
|
- lib/expressir/commands/smrl_xml_index.rb
|
|
495
512
|
- lib/expressir/commands/validate.rb
|
|
496
513
|
- lib/expressir/commands/validate_ascii.rb
|
|
497
514
|
- lib/expressir/commands/validate_load.rb
|
|
515
|
+
- lib/expressir/commands/validate_remarks.rb
|
|
498
516
|
- lib/expressir/commands/version_command.rb
|
|
499
517
|
- lib/expressir/commands/xsd.rb
|
|
500
518
|
- lib/expressir/config.rb
|
|
@@ -509,6 +527,7 @@ files:
|
|
|
509
527
|
- lib/expressir/eengine/modified_object.rb
|
|
510
528
|
- lib/expressir/errors.rb
|
|
511
529
|
- lib/expressir/eval.rb
|
|
530
|
+
- lib/expressir/eval/builtin_matrix.rb
|
|
512
531
|
- lib/expressir/eval/environment.rb
|
|
513
532
|
- lib/expressir/eval/expression.rb
|
|
514
533
|
- lib/expressir/eval/interpreter.rb
|
|
@@ -557,6 +576,7 @@ files:
|
|
|
557
576
|
- lib/expressir/express/builders/unique_rule_builder.rb
|
|
558
577
|
- lib/expressir/express/builders/where_clause_builder.rb
|
|
559
578
|
- lib/expressir/express/cache.rb
|
|
579
|
+
- lib/expressir/express/change_classification.rb
|
|
560
580
|
- lib/expressir/express/checker.rb
|
|
561
581
|
- lib/expressir/express/concatenator.rb
|
|
562
582
|
- lib/expressir/express/core.rb
|
|
@@ -727,6 +747,7 @@ files:
|
|
|
727
747
|
- lib/expressir/p21/validator.rb
|
|
728
748
|
- lib/expressir/p21/writer.rb
|
|
729
749
|
- lib/expressir/p28.rb
|
|
750
|
+
- lib/expressir/p28/configuration.rb
|
|
730
751
|
- lib/expressir/p28/document.rb
|
|
731
752
|
- lib/expressir/p28/uos.rb
|
|
732
753
|
- lib/expressir/p28/xsd.rb
|
|
@@ -734,20 +755,24 @@ files:
|
|
|
734
755
|
- lib/expressir/package/builder.rb
|
|
735
756
|
- lib/expressir/package/metadata.rb
|
|
736
757
|
- lib/expressir/package/reader.rb
|
|
758
|
+
- lib/expressir/receipt.rb
|
|
737
759
|
- lib/expressir/reference.rb
|
|
738
760
|
- lib/expressir/reference/grammar_crosswalk.rb
|
|
739
761
|
- lib/expressir/reference/grammar_crosswalk.yml
|
|
740
762
|
- lib/expressir/reference/note_catalog.rb
|
|
741
763
|
- lib/expressir/schema_manifest.rb
|
|
742
764
|
- lib/expressir/schema_manifest_entry.rb
|
|
765
|
+
- lib/expressir/scoreboard.rb
|
|
743
766
|
- lib/expressir/version.rb
|
|
744
767
|
- lib/tasks/conformance.rake
|
|
745
768
|
- lib/tasks/instance.rake
|
|
746
769
|
- lib/tasks/reference.rake
|
|
770
|
+
- lib/tasks/scoreboard.rake
|
|
747
771
|
- lib/tasks/verify_remarks.rake
|
|
748
772
|
- rakelib/native.rake
|
|
749
773
|
- rakelib/oracle.rake
|
|
750
774
|
- rakelib/verify_remarks.rake
|
|
775
|
+
- scoreboard-baseline.json
|
|
751
776
|
homepage: https://github.com/lutaml/expressir
|
|
752
777
|
licenses:
|
|
753
778
|
- BSD-2-Clause
|