json-model-compiler 2.0.58__tar.gz → 2.0.60__tar.gz

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.
Files changed (132) hide show
  1. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/.gitignore +1 -1
  2. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/BACKLOG.md +20 -33
  3. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/BENCH.md +21 -17
  4. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/Makefile +12 -13
  5. {json_model_compiler-2.0.58/json_model_compiler.egg-info → json_model_compiler-2.0.60}/PKG-INFO +1 -1
  6. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/SPEC.md +2 -0
  7. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/VERSION.md +52 -0
  8. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/about.sh +1 -1
  9. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/bench.sh +11 -0
  10. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/analyze.py +125 -86
  11. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/clang.py +4 -4
  12. json_model_compiler-2.0.60/json_model/data/VERSION +1 -0
  13. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/irep.py +95 -8
  14. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/javascript.py +53 -10
  15. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/mtypes.py +6 -0
  16. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/optim.py +49 -8
  17. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/c/json-model.c +62 -42
  18. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/c/json-model.h +1 -0
  19. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/c/main.c +18 -4
  20. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/script.py +10 -1
  21. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/submodel.py +22 -10
  22. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/utils.py +1 -1
  23. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/xstatic.py +9 -5
  24. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60/json_model_compiler.egg-info}/PKG-INFO +1 -1
  25. json_model_compiler-2.0.58/json_model/data/VERSION +0 -1
  26. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/.github/workflows/docs.yml +0 -0
  27. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/.github/workflows/sanity.yml +0 -0
  28. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/.gitmodules +0 -0
  29. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/API.md +0 -0
  30. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/DESIGN.md +0 -0
  31. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/DEV.md +0 -0
  32. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/DOC.md +0 -0
  33. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/HOWTO.md +0 -0
  34. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/INTEGRATION.md +0 -0
  35. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/MANIFEST.in +0 -0
  36. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/PUBS.md +0 -0
  37. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/README.md +0 -0
  38. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/TUTO.md +0 -0
  39. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/README.md +0 -0
  40. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/__init__.py +0 -0
  41. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/convert.py +0 -0
  42. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/clang_entry.c +0 -0
  43. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/clang_free.c +0 -0
  44. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/clang_init.c +0 -0
  45. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/clang_pcre2_fun.c +0 -0
  46. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/clang_re2_fun.c +0 -0
  47. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/java_free.java +0 -0
  48. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/java_init.java +0 -0
  49. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/javascript_exe.js +0 -0
  50. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/javascript_foot.js +0 -0
  51. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/javascript_free.js +0 -0
  52. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/javascript_head.js +0 -0
  53. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/javascript_init.js +0 -0
  54. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/javascript_main.js +0 -0
  55. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/jmc.pod +0 -0
  56. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/perl_entry.pl +0 -0
  57. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/perl_exe.pl +0 -0
  58. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/perl_free.pl +0 -0
  59. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/perl_init.pl +0 -0
  60. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/perl_main.pl +0 -0
  61. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/perl_pkg.pl +0 -0
  62. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/plpgsql_entry.sql +0 -0
  63. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/python_entry.py +0 -0
  64. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/python_exe.py +0 -0
  65. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/python_free.py +0 -0
  66. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/python_init.py +0 -0
  67. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/data/python_main.py +0 -0
  68. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/export.py +0 -0
  69. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/java.py +0 -0
  70. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/language.py +0 -0
  71. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/model.py +0 -0
  72. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/objops.py +0 -0
  73. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/perl.py +0 -0
  74. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/plpgsql.py +0 -0
  75. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/predefs.py +0 -0
  76. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/python.py +0 -0
  77. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/recurse.py +0 -0
  78. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/regex.py +0 -0
  79. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/resolver.py +0 -0
  80. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/Makefile +0 -0
  81. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/__init__.py +0 -0
  82. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/c/Makefile +0 -0
  83. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/.gitignore +0 -0
  84. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/Makefile +0 -0
  85. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/README.md +0 -0
  86. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/env.sh +0 -0
  87. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/Checker.java +0 -0
  88. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/GSON.java +0 -0
  89. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/JSON.java +0 -0
  90. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/JSONP.java +0 -0
  91. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/Jackson.java +0 -0
  92. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/Main.java +0 -0
  93. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  94. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/Path.java +0 -0
  95. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/Report.java +0 -0
  96. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/json_model/Runtime.java +0 -0
  97. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/java/pom.xml +0 -0
  98. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/js/README.md +0 -0
  99. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/js/index.js +0 -0
  100. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/js/main.js +0 -0
  101. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/js/package.json +0 -0
  102. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/.gitignore +0 -0
  103. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/Changes +0 -0
  104. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/LICENSE +0 -0
  105. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/MANIFEST +0 -0
  106. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/Makefile.PL +0 -0
  107. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/README +0 -0
  108. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/env.sh +0 -0
  109. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/ignore.txt +0 -0
  110. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/lib/JSON/JsonModel.pm +0 -0
  111. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/t/00-load.t +0 -0
  112. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/t/manifest.t +0 -0
  113. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  114. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/t/pod.t +0 -0
  115. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  116. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/sql/META.json +0 -0
  117. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/sql/Makefile +0 -0
  118. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/sql/json_model--2.0.sql +0 -0
  119. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/sql/json_model.control +0 -0
  120. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/support.py +0 -0
  121. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/runtime/types.py +0 -0
  122. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/ts_export.py +0 -0
  123. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model/url_cache.py +0 -0
  124. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model_compiler.egg-info/SOURCES.txt +0 -0
  125. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  126. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model_compiler.egg-info/entry_points.txt +0 -0
  127. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model_compiler.egg-info/not-zip-safe +0 -0
  128. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model_compiler.egg-info/requires.txt +0 -0
  129. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/json_model_compiler.egg-info/top_level.txt +0 -0
  130. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/package.json +0 -0
  131. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/pyproject.toml +0 -0
  132. {json_model_compiler-2.0.58 → json_model_compiler-2.0.60}/setup.cfg +0 -0
@@ -11,7 +11,7 @@ package-lock.json
11
11
  node_modules/
12
12
  *.values.csv
13
13
  jmc.1
14
- site/MODELS.md
14
+ site/models.json
15
15
  site/JMC.md
16
16
  site/ABOUT.md
17
17
  site/BENCH.md
@@ -2,59 +2,57 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
+ - [ ] bench: submit `negatives.jsonl` to jsb for sanity checks
6
+ - [ ] bench: better count should ignore bads
7
+ - [ ] bench: handle case failures for radar (wip, ajv handling)
8
+ - [ ] bench: collect error runs?
9
+ - [ ] bench: add corvus reference?
10
+ - [ ] bench: add stddev performance computation
11
+ - [ ] bench: improve resilience to bad overhead estimation
12
+ - [ ] bench: add case names to generated radar
13
+ - [ ] bench: collect JSON parse times for comparison with validation times
14
+ - [ ] export: generate a [katydid](https://katydid.github.io/) expression, for a compatible subset
15
+ - [ ] pr: add _known limitations_ stuff
5
16
  - [ ] front: merge many internal options to trigrams
6
- - [ ] bench: case failures handling needs some fixing
7
17
  - [ ] tests: check more bad urls (eg bad %-escape)
8
18
  - [ ] tests: check pydantic generated classes
9
- - [ ] tests: run dyn per model instead of per-dir
10
- - [ ] tests: run language per model instead of per-dir
11
19
  - [ ] static: use combined type test and value extraction when available?
12
- - [ ] c-backend: factor out str extraction in or-list in more cases
13
- - [ ] export: generate a [katydid](https://katydid.github.io/) expression, for a compatible subset
14
20
  - [ ] static: recursive multi-discriminator hierarchisation? See UI5.
15
21
  - [ ] static: factor out common checks on `&` with shared constraints?
16
22
  - [ ] static: check for common object part?
17
23
  - [ ] front: generate valid minimal, maximal and random values from a model
18
24
  - [ ] front: generate invalid minimal values from a model
19
25
  - [ ] optim: simplify some '!=' cases
26
+ - [ ] optim: collect and display stats about what works
20
27
  - [ ] spec: allow to _remove_ definitions, eg `{ "$stuff": {"/": "$foo"}}`
28
+ - [ ] spec: restrict regex syntax to a smaller subset
21
29
  - [ ] perf: add another loop over performance collection?
22
30
  - [ ] perf: drop and/or merge identical results when comparing
23
- - [ ] backend: check `mv-34/mu` test case which may require some normalization
31
+ - [ ] backend: check `mv-34/mu` test case which may require some utf normalization
24
32
  - [ ] runtime: count graphemes instead of characters? for Java, see `java.text.BreakIterator`
25
- - [ ] pr: improve JSTS test results alignment between all backends (wip)
26
- - [ ] perf: add stddev performance computation
27
- - [ ] perf: improve resilience to bad overhead estimation
28
- - [ ] perf: collect JSON parse times for comparison with validation times
29
- - [ ] perf: keep only one java run?
30
- - [ ] perf: check median hack for run times
31
- - [ ] perf: show schema to model conversion times
32
33
  - [ ] pr: better document optimizations, eg add compiler optimization page
33
- - [ ] optim: collect and display stats about what works
34
+ - [ ] static: improve startswith pattern recognition `/^xyz.*/`
35
+ - [ ] js: implement cset as an or-expression
36
+ - [ ] c-backend: factor out str extraction in or-list in more cases
34
37
  - [ ] c-backend: improve unique with hash using int set?
35
38
  - [ ] c-backend: improve str hash?
36
39
  - [ ] c-backend: use str cmp for ends with optimization as well
37
40
  - [ ] c-backend: improve partitioned cset prettyprinting
38
41
  - [ ] c-backend: use str set partitioning
39
42
  - [ ] c-backend: simplify parameters for accelerated functions
40
- - [ ] c-runtime: use own hash instead of qsort/bsearch stuff?
41
- - [ ] static: could sorted property name comparison be used for some scans??
42
43
  - [ ] c-backend: fast str comparison could take advantage of known strlen??
43
44
  - [ ] c-backend: property name length for jansson is stored at `(str_ptr - sizeof(size_t))`
44
45
  - [ ] c-backend: use knowledge of Jansson hash to improve property lookup??
45
46
  - [ ] c-backend: generate custom character class ascii tables?
46
47
  - [ ] c-backend: custom char classes: `[:-] [a-zA-Z0-9_\\.\\-\\|@#] [a-zA-Z_$] [a-zA-Z0-9_\\-] [a-zA-Z0-9_.:-]`
47
48
  - [ ] c-backend: handle small char classes?
48
- - [ ] optim: remove props which match the default, in some cases?
49
- - [ ] optim: regex list of words to enum?
50
- - [ ] static: improve startswith pattern recognition `/^xyz.*/`
49
+ - [ ] c-runtime: use own hash instead of qsort/bsearch stuff?
50
+ - [ ] static: could sorted property name comparison be used for some scans??
51
+ - [ ] backend: check leap-second support on `$DATETIME` and `$TIME`
51
52
  - [ ] tests: fast mode which does not execute if source has not changed
52
53
  - [ ] predefs: extension for _uri reference_, _iri reference_, _uri template_
53
54
  - [ ] predefs: _url_ vs _uri_ vs _iri_
54
55
  - [ ] predefs: improve `$URI` and `$URL`
55
- - [ ] backend: check leap-second support on `$DATETIME` and `$TIME`
56
- - [ ] doc: add _known limitations_ stuff
57
- - [ ] spec: restrict regex syntax to a smaller subset
58
56
  - [ ] predefs: add `$SIMPLE_REGEX` for regex syntax subset?
59
57
  - [ ] docker: enable user remap
60
58
  - [ ] export: java classes
@@ -90,15 +88,9 @@
90
88
  - [ ] c-backend: more typed cset optimizations?
91
89
  - [ ] static: partial discriminator with else?
92
90
  - [ ] static: optimize not string cst test?
93
- - [ ] tests: add ir optimized output (too large?)
94
- - [ ] tests: drop language outputs for IR only?!
95
- - [ ] tests: add pytest ir tests
96
- - [ ] tests: add generated ir model check
97
- - [ ] tests: check generated IR with IR model
98
91
  - [ ] static: close may/must? merge with open?
99
92
  - [ ] static: add a dynamic test for different strategies in object checking
100
93
  - [ ] backend: refactor ir optimizations
101
- - [ ] command: add direct ir to lang conversion
102
94
  - [ ] artifact: make work with dind (docker compose?)
103
95
  - [ ] static: recognize already compile objects and reuse function esp under no-reporting?
104
96
  - [ ] tests: add non regression tests to docker build
@@ -111,21 +103,16 @@
111
103
  - [ ] pr: write `optimizations.model.json` for illustration
112
104
  - [ ] pr: write `transformation.model.json` for illustration
113
105
  - [ ] pr: sync version number for **all** published parts for _2.0_ release
114
- - [ ] design: review `$URI` and other predefs
115
106
  - [ ] design: transformation rename, `~` with a map? move path to path? eg mandatory to optional?
116
107
  - [ ] design: add predefs for `$UUIDx`…
117
108
  - [ ] predefs: implement `$I32 $I64 $U32 $U64`
118
- - [ ] pr: tuto add perl and java environment directives? dependencies?
119
109
  - [ ] export: improve pydantic, do not generate bad fields (dash and other chars)
120
110
  - [ ] tests: some pydantic exports? imports?
121
- - [ ] pr: submit jsonschema-benchmark java PR
122
111
  - [ ] frontends: reject json with duplicated props
123
112
  - [ ] c-backend: header file for generated code?
124
113
  - [ ] backend: implement str comparison using some fast hash in some cases?
125
114
  - [ ] command: allow to pass some options from rc file?
126
- - [ ] tests: parallelize per-case instead of per-dir?
127
115
  - [ ] static: shorten xor exit?
128
- - [ ] c-backend: use vector instructions for larger strcmp?
129
116
  - [ ] export: sqlalchemy?
130
117
  - [ ] predefs: add country codes, eg `$COUNTRY $COUNTRY2 $COUNTRY3 $COUNTRYN`
131
118
  - [ ] spec: be precise about predefs standard references, eg `$DATE` and co.
@@ -113,24 +113,28 @@ the following caveats, and others:
113
113
  [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark)
114
114
  also provides
115
115
  [benchmark artifacts](https://github.com/sourcemeta-research/jsonschema-benchmark/actions)
116
- which includes 16 JSON Schema validation tools including our compiler with
116
+ which includes 15 JSON Schema validation tools including our compiler with
117
117
  C, JS and Python backends, using the `jsu-compile` command only.
118
118
 
119
119
  It should be noted that benchmarking conditions are quite different compared to our own:
120
120
 
121
- 1. There is no loop to compute an average performance, but an initial _cold_ one-shot measure,
122
- a warming phase loop (up to 1000 rounds, kept under 10 seconds) and a _hot_ one-shot measure:
123
- This may tend to mask effects from occasional GC runs.
124
- 2. Performance data are collected on all tests taken together: this is less favorable to cache
125
- effects, and makes it impossible to investigate individual test figures.
126
- 3. The benchmark focuses on schema conformance, including (buggy) schemas which
127
- are mostly dead code: It rejects tools which do not validate all strictly conformant
128
- values, even if these values would be rejected by the target application.
129
- The model used are strictly converted from schemas, native models are not used
130
- even if available and schemas are not fixed for typical errors (eg misplaced keywords).
131
- 4. The benchmark _removes_ format assertions before testing schemas.
132
-
133
- Notably, three schemas (`krakend`, `stale` and `yamllint`) in the test suites have been
134
- [edited](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/ad109eb210c0939bd8393da28d8212f75c1c2d92),
135
- as a work around corner cases issues with `$ref` under version 7 and prior,
136
- thus do not conform to the initial official schemas.
121
+ 1. The benchmark focusses on comparing JSON Schema implementations,
122
+ whereas we focus on comparing JSON validators:
123
+ For JSU/JMC, native models are ignored and only models converted from schemas are used.
124
+ 2. Format assertions are removed before testing schemas, whereas we include them.
125
+ 3. Three schemas (`krakend`, `stale` and `yamllint`) have been
126
+ [edited](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/ad109eb210c0939bd8393da28d8212f75c1c2d92),
127
+ as a work around corner cases issues with `$ref` under version 7 and prior,
128
+ thus do not conform to the initial official schemas:
129
+ These schemas perform very few checks on the JSON test values, making it less significant.
130
+ 4. Data collection is quite different:
131
+ - There is no loop to compute an average performance, but an initial _cold_ one-shot measure,
132
+ a warming phase loop (up to 1000 rounds, kept under 10 seconds) and a _hot_ one-shot measure:
133
+ This may tend to mask effects from occasional GC runs.
134
+ - All tests for one schema are measured together: this reduces measure overheads,
135
+ is less favorable to cache effects, and makes it impossible to investigate
136
+ individual test figures.
137
+ 5. Performance runs uses multiple dockers through github actions:
138
+ Runners assigned to the job are not always homogeneous, resulting in significant variations
139
+ from one run to the next.
140
+
@@ -23,7 +23,7 @@ venv/.init:
23
23
 
24
24
  venv/.dev: venv/.init
25
25
  pip install -e .[dev]
26
- [ -d ../json-schema-utils ] && pip intall -e ../json-schema-utils
26
+ [ -d ../json-schema-utils ] && pip install -e ../json-schema-utils
27
27
  touch $@
28
28
 
29
29
  venv/.dist: venv/.dev
@@ -67,7 +67,7 @@ clean.js:
67
67
 
68
68
  .PHONY: clean.site
69
69
  clean.site:
70
- $(RM) site/MODELS.md site/JMC.md site/ABOUT.md site/BENCH.md .about.md
70
+ $(RM) site/models.json site/JMC.md site/ABOUT.md site/BENCH.md .about.md
71
71
  $(RM) -r _site
72
72
 
73
73
  .PHONY: clean.py
@@ -140,17 +140,16 @@ check.sanity: venv/.dev
140
140
  #
141
141
  # Docsify Web Site: https://json-model.org/
142
142
  #
143
- site/MODELS.md: Makefile models/
143
+ site/models.json: $(wildcard models/*.model.json)
144
144
  {
145
- echo "# JSON Model Examples"
146
- echo
147
- for model in models/*.model.json ; do
148
- title=$$(jq -r '."#"' < $$model | sed 's/\s*.JSON_MODEL.*//')
149
- doc=$$(jq -r '."#.doc"' < $$model)
150
- if [ "$$doc" = "null" ] ; then doc="" ; else doc=" – $$doc" ; fi
151
- echo "- [$$title]($$model ':ignore')$$doc"
145
+ first=1
146
+ echo "["
147
+ for model in $^ ; do
148
+ [ "$$first" ] && first= || echo ","
149
+ jq "{title: .\"#\", doc: .\"#.doc\", model: \"$${model}\"}" $${model}
152
150
  done
153
- } > $@
151
+ echo "]"
152
+ } | jq 'map(if .doc == null then del(.doc) else . end)' > $@
154
153
 
155
154
  # pod2markdown: libpod-markdown-perl
156
155
  site/JMC.md: json_model/data/jmc.pod
@@ -160,7 +159,7 @@ site/BENCH.md: ./bench.sh
160
159
  ./$< > $@
161
160
 
162
161
  # generate twice to include the about page in the counts
163
- site/ABOUT.md: ./about.sh site/JMC.md site/MODELS.md site/BENCH.md
162
+ site/ABOUT.md: ./about.sh site/JMC.md site/BENCH.md
164
163
  ./$< > $@
165
164
  ./$< > .about.md
166
165
  mv .about.md $@
@@ -188,7 +187,7 @@ www: build.site
188
187
  -include local.mk
189
188
 
190
189
  .PHONY: build.site
191
- build.site: site/MODELS.md site/JMC.md site/ABOUT.md site/BENCH.md
190
+ build.site: site/models.json site/JMC.md site/ABOUT.md site/BENCH.md
192
191
 
193
192
  .PHONY: publish.site
194
193
  publish.site: build.site
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0.58
3
+ Version: 2.0.60
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -665,6 +665,8 @@ JSON Model meta-model is available [here](https://json-model.org/models/json-mod
665
665
  - import override operator for objects? `<`
666
666
  - expand constrained models?
667
667
  - what predefs should be relevant to typical use cases?
668
+ - drop redundant "!" sentinel char for properties?
669
+ - property and string sentinels could be mandatory to avoid considering values as models
668
670
 
669
671
  - **From JSON Model v1 to v2**
670
672
 
@@ -1,5 +1,57 @@
1
1
  # JSON Model Compiler Versions
2
2
 
3
+ ## 2.0.60 on 2026-09-15
4
+
5
+ - pr: jm site added to [awesome docsify](https://github.com/docsifyjs/awesome-docsify/commit/3950ece64978f41294463e1a2b12e809c65a6379)
6
+ - bench: show rounded minutes run time
7
+ - clang: remove useless empty line from string constant set functions
8
+ - bench: use uc for external tools, report in italic
9
+ - bench: show versions of used languages, not all
10
+ - bench: radar data with added speed property
11
+ - model: improve internal doc for some example models
12
+ - model: simplify JSTS model with `$SEMVER`
13
+ - pr: generate model examples pages from json
14
+ - bench: add ajv cli docker and wrapper
15
+ - bench: add ajv external reference
16
+ - js: add option for more direct/simpler code
17
+ - js: set default to use simpler code
18
+ - analyze: check static typing on constrained nodes
19
+ - analyze: display model rejections reasons as a warning
20
+ - bench: handle case failures when reporting
21
+ - model: improve jm meta model
22
+ - c-backend: stricter regex check active by default
23
+ - bench: keep initial schema when testing
24
+ - jsb: patch test values to avoid border or invalid cases
25
+ - optim: fix type check rejections
26
+ - bench: various report generation fixes
27
+ - optim: fix partial eval over simplification (yet another bool/int issue)
28
+ - bench: add missing model conversion time for some tools, ensure display order
29
+ - bench: make cron job also check for jsb changes
30
+ - bench: improve summary description depending on displayed data
31
+ - check: model validation rejects all-caps definitions
32
+ - tests: improve default load balancing with `--maxschedchunk=3`
33
+ - pr: remove older artifacts
34
+ - bench: always display the result success section
35
+ - pr: list at most 10 latests artifacts on bench page
36
+
37
+ ## 2.0.59 on 2026-08-28
38
+
39
+ - bench: fix standard cron runs
40
+ - bench: minor report styling
41
+ - pr: improve bench artifact discussion
42
+ - tests: ~run dyn per-model instead of per-dir~ not needed, load balancing is ok
43
+ - tests: ~run language per-model instead of per-dir~ idem
44
+ - pr: improve JSTS test results alignment between all backends (minor diffs remain)
45
+ - optim: regex list of words to enum
46
+ - optim: remove props which match the default
47
+ - models: add example model for JTD (JSON Type Definition)
48
+ - tests: fix directory display by using str params
49
+ - pr: update check count in about page
50
+ - optim: simplify subtypes in or-lists
51
+ - optim: fix more model comparison issues related to python `==` operator
52
+ - container: improve build caching by combining ADD + RUN git ...
53
+ - bench: check minimum generated file sizes
54
+
3
55
  ## 2.0.58 on 2026-08-24
4
56
 
5
57
  - pr: improve bench script
@@ -157,7 +157,7 @@ on a set of test vectors.
157
157
  - Number of test vector JSON values: _${n_values}_
158
158
  - All tested JSON values (including models, generated schemas and IR, and test suite schemas): _${all_values}_
159
159
 
160
- Over _150,000_ checks are performed when running non-regression tests:
160
+ Over _170,000_ assertion checks are performed when running non-regression tests:
161
161
  generated files, values validated in various languages…
162
162
 
163
163
  [Example models](https://json-model.org/MODELS) cover typical use cases and demonstrate
@@ -3,8 +3,10 @@
3
3
  # generate BENCH.md page with links to available benchmarks
4
4
  #
5
5
 
6
+ MAX=10
6
7
  PYPI="https://pypi.org/project"
7
8
 
9
+ # extract version from file
8
10
  get_version()
9
11
  {
10
12
  local what=$1 file=$2
@@ -14,9 +16,15 @@ get_version()
14
16
  echo $line
15
17
  }
16
18
 
19
+ # up to artifact list
17
20
  sed -ne '1,/BENCHES/p' < BENCH.md | grep -v '^BENCHES$'
18
21
 
22
+ # list max 10 latest artifacts
23
+ nartifacts=0
24
+
19
25
  for artifact in $(ls site/benchmarks/*.md | sort -r) ; do
26
+ let nartifacts+=1
27
+
20
28
  link=${artifact#site/}
21
29
  name=${link#benchmarks/}
22
30
  name=${name%.md}
@@ -31,6 +39,9 @@ for artifact in $(ls site/benchmarks/*.md | sort -r) ; do
31
39
  echo " [JSU $jsu]($PYPI/json-schema-utils/$jsu/) and "
32
40
  echo " [SBC $sbc](https://github.com/sourcemeta/jsonschema/releases/tag/v$sbc), "
33
41
  echo " $message."
42
+
43
+ [ $nartifacts -eq $MAX ] && break
34
44
  done
35
45
 
46
+ # after artifact list
36
47
  sed -ne '/BENCHES/,$p' < BENCH.md | grep -v '^BENCHES$'