json-model-compiler 2.0.57__tar.gz → 2.0.59__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.57 → json_model_compiler-2.0.59}/.github/workflows/docs.yml +8 -1
  2. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/BACKLOG.md +17 -45
  3. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/BENCH.md +23 -19
  4. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/HOWTO.md +2 -3
  5. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/Makefile +1 -1
  6. {json_model_compiler-2.0.57/json_model_compiler.egg-info → json_model_compiler-2.0.59}/PKG-INFO +6 -6
  7. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/README.md +5 -5
  8. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/SPEC.md +2 -0
  9. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/VERSION.md +55 -0
  10. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/about.sh +14 -10
  11. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/bench.sh +5 -2
  12. json_model_compiler-2.0.59/json_model/data/VERSION +1 -0
  13. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/jmc.pod +1 -16
  14. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/irep.py +146 -53
  15. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/optim.py +46 -5
  16. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/python.py +12 -3
  17. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/Changes +8 -0
  18. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/lib/JSON/JsonModel.pm +3 -3
  19. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/script.py +34 -4
  20. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/submodel.py +21 -9
  21. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/xstatic.py +2 -1
  22. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59/json_model_compiler.egg-info}/PKG-INFO +6 -6
  23. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/pyproject.toml +14 -0
  24. json_model_compiler-2.0.57/json_model/data/VERSION +0 -1
  25. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/.github/workflows/sanity.yml +0 -0
  26. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/.gitignore +0 -0
  27. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/.gitmodules +0 -0
  28. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/API.md +0 -0
  29. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/DESIGN.md +0 -0
  30. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/DEV.md +0 -0
  31. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/DOC.md +0 -0
  32. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/INTEGRATION.md +0 -0
  33. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/MANIFEST.in +0 -0
  34. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/PUBS.md +0 -0
  35. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/TUTO.md +0 -0
  36. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/README.md +0 -0
  37. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/__init__.py +0 -0
  38. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/analyze.py +0 -0
  39. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/clang.py +0 -0
  40. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/convert.py +0 -0
  41. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_entry.c +0 -0
  42. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_free.c +0 -0
  43. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_init.c +0 -0
  44. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_pcre2_fun.c +0 -0
  45. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_re2_fun.c +0 -0
  46. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/java_free.java +0 -0
  47. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/java_init.java +0 -0
  48. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_exe.js +0 -0
  49. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_foot.js +0 -0
  50. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_free.js +0 -0
  51. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_head.js +0 -0
  52. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_init.js +0 -0
  53. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_main.js +0 -0
  54. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_entry.pl +0 -0
  55. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_exe.pl +0 -0
  56. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_free.pl +0 -0
  57. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_init.pl +0 -0
  58. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_main.pl +0 -0
  59. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_pkg.pl +0 -0
  60. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/plpgsql_entry.sql +0 -0
  61. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_entry.py +0 -0
  62. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_exe.py +0 -0
  63. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_free.py +0 -0
  64. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_init.py +0 -0
  65. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_main.py +0 -0
  66. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/export.py +0 -0
  67. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/java.py +0 -0
  68. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/javascript.py +0 -0
  69. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/language.py +0 -0
  70. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/model.py +0 -0
  71. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/mtypes.py +0 -0
  72. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/objops.py +0 -0
  73. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/perl.py +0 -0
  74. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/plpgsql.py +0 -0
  75. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/predefs.py +0 -0
  76. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/recurse.py +0 -0
  77. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/regex.py +0 -0
  78. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/resolver.py +0 -0
  79. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/Makefile +0 -0
  80. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/__init__.py +0 -0
  81. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/c/Makefile +0 -0
  82. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/c/json-model.c +0 -0
  83. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/c/json-model.h +0 -0
  84. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/c/main.c +0 -0
  85. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/.gitignore +0 -0
  86. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/Makefile +0 -0
  87. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/README.md +0 -0
  88. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/env.sh +0 -0
  89. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Checker.java +0 -0
  90. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/GSON.java +0 -0
  91. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/JSON.java +0 -0
  92. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/JSONP.java +0 -0
  93. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Jackson.java +0 -0
  94. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Main.java +0 -0
  95. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  96. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Path.java +0 -0
  97. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Report.java +0 -0
  98. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Runtime.java +0 -0
  99. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/pom.xml +0 -0
  100. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/js/README.md +0 -0
  101. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/js/index.js +0 -0
  102. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/js/main.js +0 -0
  103. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/js/package.json +0 -0
  104. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/.gitignore +0 -0
  105. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/LICENSE +0 -0
  106. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/MANIFEST +0 -0
  107. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/Makefile.PL +0 -0
  108. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/README +0 -0
  109. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/env.sh +0 -0
  110. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/ignore.txt +0 -0
  111. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/t/00-load.t +0 -0
  112. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/t/manifest.t +0 -0
  113. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  114. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/t/pod.t +0 -0
  115. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  116. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/sql/META.json +0 -0
  117. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/sql/Makefile +0 -0
  118. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/sql/json_model--2.0.sql +0 -0
  119. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/sql/json_model.control +0 -0
  120. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/support.py +0 -0
  121. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/types.py +0 -0
  122. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/ts_export.py +0 -0
  123. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/url_cache.py +0 -0
  124. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/utils.py +0 -0
  125. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/SOURCES.txt +0 -0
  126. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  127. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/entry_points.txt +0 -0
  128. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/not-zip-safe +0 -0
  129. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/requires.txt +0 -0
  130. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/top_level.txt +0 -0
  131. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/package.json +0 -0
  132. {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/setup.cfg +0 -0
@@ -14,8 +14,12 @@ jobs:
14
14
  - uses: actions/checkout@v7
15
15
  with:
16
16
  submodules: true # for JSTS sources
17
+ fetch-depth: 30
18
+ fetch-tags: true
17
19
  - name: Install dependencies
18
- run: apt install cloc make
20
+ run: sudo apt install cloc make libpod-markdown-perl
21
+ - name: Update docsify base path for github.io
22
+ run: sed -i -e 's,https://json-model.org/,https://clairey-zx81.github.io/json-model/,' site/index.html
19
23
  - name: Build site
20
24
  run: make _site
21
25
  - name: Upload documentation artifact
@@ -23,6 +27,9 @@ jobs:
23
27
  uses: actions/upload-pages-artifact@v5
24
28
  # with: path: _site
25
29
  deploy:
30
+ permissions:
31
+ id-token: write
32
+ pages: write
26
33
  environment:
27
34
  name: github-pages
28
35
  url: ${{ steps.deployment.outputs.page_url }}
@@ -1,69 +1,52 @@
1
- # Backlog v2
1
+ # Backlog
2
2
 
3
3
  ## Current Tasks
4
4
 
5
- - [ ] pr: switch cristalina to post after release
6
- - [ ] docker: install missing `Algorithm::LUHN` for perl JSB
5
+ - [ ] export: generate a [katydid](https://katydid.github.io/) expression, for a compatible subset
6
+ - [ ] pr: add _known limitations_ stuff
7
+ - [ ] front: merge many internal options to trigrams
7
8
  - [ ] bench: case failures handling needs some fixing
8
- - [ ] tests: allow to skip some tests with make, depending on available runtimes
9
- - [ ] tests: automate bench launch with a cron job?
10
9
  - [ ] tests: check more bad urls (eg bad %-escape)
11
10
  - [ ] tests: check pydantic generated classes
12
11
  - [ ] static: use combined type test and value extraction when available?
13
- - [ ] irep: cleanup `propesc2.c` (and others) variable res set but not used
14
- - [ ] c-backend: factor out str extraction in or-list in more cases
15
- - [ ] export: generate a [katydid](https://katydid.github.io/) expression, for a compatible subset
16
12
  - [ ] static: recursive multi-discriminator hierarchisation? See UI5.
17
13
  - [ ] static: factor out common checks on `&` with shared constraints?
14
+ - [ ] static: check for common object part?
18
15
  - [ ] front: generate valid minimal, maximal and random values from a model
19
16
  - [ ] front: generate invalid minimal values from a model
20
17
  - [ ] optim: simplify some '!=' cases
18
+ - [ ] optim: collect and display stats about what works
21
19
  - [ ] spec: allow to _remove_ definitions, eg `{ "$stuff": {"/": "$foo"}}`
22
- - [ ] static: check for common object part
20
+ - [ ] spec: restrict regex syntax to a smaller subset
23
21
  - [ ] perf: add another loop over performance collection?
24
- - [ ] models: update ir model wrt recent changes
25
- - [ ] tests: add test with ir model? on the fly?
26
- - [ ] front: handle yaml values as well as json
27
22
  - [ ] perf: drop and/or merge identical results when comparing
28
- - [ ] backend: check `mv-34/mu` test case which may require some normalization
23
+ - [ ] backend: check `mv-34/mu` test case which may require some utf normalization
29
24
  - [ ] runtime: count graphemes instead of characters? for Java, see `java.text.BreakIterator`
30
- - [ ] pr: improve JSTS test results alignment between all backends (wip)
31
- - [ ] front: add argument groups
32
- - [ ] front: merge many internal options to trigrams
33
- - [ ] perf: add stddev performance computation
34
- - [ ] perf: improve resilience to bad overhead estimation
35
- - [ ] perf: collect JSON parse times for comparison with validation times
36
- - [ ] perf: keep only one java run?
37
- - [ ] perf: check median hack for run times
38
- - [ ] perf: show schema to model conversion times
25
+ - [ ] bench: add stddev performance computation
26
+ - [ ] bench: improve resilience to bad overhead estimation
27
+ - [ ] bench: collect JSON parse times for comparison with validation times
39
28
  - [ ] pr: better document optimizations, eg add compiler optimization page
40
- - [ ] optim: collect and display stats about what works
29
+ - [ ] static: improve startswith pattern recognition `/^xyz.*/`
30
+ - [ ] c-backend: factor out str extraction in or-list in more cases
41
31
  - [ ] c-backend: improve unique with hash using int set?
42
32
  - [ ] c-backend: improve str hash?
43
33
  - [ ] c-backend: use str cmp for ends with optimization as well
44
34
  - [ ] c-backend: improve partitioned cset prettyprinting
45
35
  - [ ] c-backend: use str set partitioning
46
36
  - [ ] c-backend: simplify parameters for accelerated functions
47
- - [ ] c-runtime: use own hash instead of qsort/bsearch stuff?
48
- - [ ] static: could sorted property name comparison be used for some scans??
49
37
  - [ ] c-backend: fast str comparison could take advantage of known strlen??
50
38
  - [ ] c-backend: property name length for jansson is stored at `(str_ptr - sizeof(size_t))`
51
39
  - [ ] c-backend: use knowledge of Jansson hash to improve property lookup??
52
40
  - [ ] c-backend: generate custom character class ascii tables?
53
41
  - [ ] c-backend: custom char classes: `[:-] [a-zA-Z0-9_\\.\\-\\|@#] [a-zA-Z_$] [a-zA-Z0-9_\\-] [a-zA-Z0-9_.:-]`
54
42
  - [ ] c-backend: handle small char classes?
55
- - [ ] optim: remove props which match the default, in some cases?
56
- - [ ] optim: regex list of words to enum?
57
- - [ ] static: improve startswith pattern recognition `/^xyz.*/`
58
- - [ ] test: fast mode which does not execute if source has not changed
59
- - [ ] test: add test categories (mark?)
60
- - [ ] test: allow to skip some tests by category
43
+ - [ ] c-runtime: use own hash instead of qsort/bsearch stuff?
44
+ - [ ] static: could sorted property name comparison be used for some scans??
45
+ - [ ] backend: check leap-second support on `$DATETIME` and `$TIME`
46
+ - [ ] tests: fast mode which does not execute if source has not changed
61
47
  - [ ] predefs: extension for _uri reference_, _iri reference_, _uri template_
62
48
  - [ ] predefs: _url_ vs _uri_ vs _iri_
63
49
  - [ ] predefs: improve `$URI` and `$URL`
64
- - [ ] backend: check leap-second support on `$DATETIME` and `$TIME`
65
- - [ ] doc: add _known limitations_ stuff
66
- - [ ] spec: restrict regex syntax to a smaller subset
67
50
  - [ ] predefs: add `$SIMPLE_REGEX` for regex syntax subset?
68
51
  - [ ] docker: enable user remap
69
52
  - [ ] export: java classes
@@ -99,15 +82,9 @@
99
82
  - [ ] c-backend: more typed cset optimizations?
100
83
  - [ ] static: partial discriminator with else?
101
84
  - [ ] static: optimize not string cst test?
102
- - [ ] tests: add ir optimized output (too large?)
103
- - [ ] tests: drop language outputs for IR only?!
104
- - [ ] tests: add pytest ir tests
105
- - [ ] tests: add generated ir model check
106
- - [ ] tests: check generated IR with IR model
107
85
  - [ ] static: close may/must? merge with open?
108
86
  - [ ] static: add a dynamic test for different strategies in object checking
109
87
  - [ ] backend: refactor ir optimizations
110
- - [ ] command: add direct ir to lang conversion
111
88
  - [ ] artifact: make work with dind (docker compose?)
112
89
  - [ ] static: recognize already compile objects and reuse function esp under no-reporting?
113
90
  - [ ] tests: add non regression tests to docker build
@@ -120,21 +97,16 @@
120
97
  - [ ] pr: write `optimizations.model.json` for illustration
121
98
  - [ ] pr: write `transformation.model.json` for illustration
122
99
  - [ ] pr: sync version number for **all** published parts for _2.0_ release
123
- - [ ] design: review `$URI` and other predefs
124
100
  - [ ] design: transformation rename, `~` with a map? move path to path? eg mandatory to optional?
125
101
  - [ ] design: add predefs for `$UUIDx`…
126
102
  - [ ] predefs: implement `$I32 $I64 $U32 $U64`
127
- - [ ] pr: tuto add perl and java environment directives? dependencies?
128
103
  - [ ] export: improve pydantic, do not generate bad fields (dash and other chars)
129
104
  - [ ] tests: some pydantic exports? imports?
130
- - [ ] pr: submit jsonschema-benchmark java PR
131
105
  - [ ] frontends: reject json with duplicated props
132
106
  - [ ] c-backend: header file for generated code?
133
107
  - [ ] backend: implement str comparison using some fast hash in some cases?
134
108
  - [ ] command: allow to pass some options from rc file?
135
- - [ ] tests: parallelize per-case instead of per-dir?
136
109
  - [ ] static: shorten xor exit?
137
- - [ ] c-backend: use vector instructions for larger strcmp?
138
110
  - [ ] export: sqlalchemy?
139
111
  - [ ] predefs: add country codes, eg `$COUNTRY $COUNTRY2 $COUNTRY3 $COUNTRYN`
140
112
  - [ ] spec: be precise about predefs standard references, eg `$DATE` and co.
@@ -17,8 +17,8 @@ than Blaze on average to validate JSON values in these artifacts.
17
17
 
18
18
  BENCHES
19
19
 
20
- Options: _content_ validate string contents (format/predef), _fix_ improved models (bug fixes)
21
- or _no_ for strictly schema compatible models.
20
+ Options: _content_ validate string contents (format/predef), _id_ use native models when available,
21
+ _fix_ use improved models (eg include some bug fixes, or more precise models).
22
22
 
23
23
  ## Benchmarking Script
24
24
 
@@ -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
+
@@ -30,11 +30,10 @@ The `jmc` command can be install in a Python virtual environment from
30
30
  [convenient wrapper](https://github.com/clairey-zx81/json-model/blob/main/container/jmc):
31
31
 
32
32
  ```sh
33
- # podman pull docker.io/zx80/jmc
34
- docker pull docker.io/zx80/jmc
33
+ export POD="docker" # or "podman"
34
+ $POD pull docker.io/zx80/jmc
35
35
  curl -o ./jmc https://raw.githubusercontent.com/clairey-zx81/json-model/refs/heads/main/container/jmc
36
36
  chmod a+rx ./jmc
37
- export POD="docker" # or "podman"
38
37
  ./jmc --version
39
38
  ./jmc --man
40
39
  ```
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0.57
3
+ Version: 2.0.59
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -39,7 +39,7 @@ This reference implementation allows to generate code in Python, C, JavaScript,
39
39
  PL/pgSQL, Perl and Java for checking a JSON value against a JSON model,
40
40
  and to export models to JSON Schema or Pydantic.
41
41
 
42
- It is dedicated to the _Public Domain_.
42
+ It is dedicated to the [Public Domain](https://creativecommons.org/public-domain/).
43
43
 
44
44
  ## JMC Command
45
45
 
@@ -160,16 +160,16 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
160
160
  [JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
161
161
  [Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
162
162
  from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
163
- Overall, JMC-C implementation is faster than Blaze C++.
164
- Moreover, JMC-JS and JMC-Java/GSON native implementations are only about 50% slower
165
- than Blaze C++, which given the intrinsic language capabilities is quite honorable.
163
+ Overall, JMC-C implementation is about twice faster than Blaze C++.
164
+ Moreover, JMC-Java/GSON native implementations are only about 50% slower than Blaze C++,
165
+ and JMC-JS 200% slower, which given the intrinsic language capabilities is quite honorable.
166
166
 
167
167
  ## More Information
168
168
 
169
169
  See the [JSON Model website](https://json-model.org),
170
170
  which among many resources,
171
171
  includes a [tutorial](TUTO.md) for a hands-on overview of JSON Model,
172
- and links to [research papers](PAPERS.md) for explanations about the design.
172
+ and links to [research papers](PUBS.md) for explanations about the design.
173
173
 
174
174
  ## JSON Model Distribution
175
175
 
@@ -6,7 +6,7 @@ This reference implementation allows to generate code in Python, C, JavaScript,
6
6
  PL/pgSQL, Perl and Java for checking a JSON value against a JSON model,
7
7
  and to export models to JSON Schema or Pydantic.
8
8
 
9
- It is dedicated to the _Public Domain_.
9
+ It is dedicated to the [Public Domain](https://creativecommons.org/public-domain/).
10
10
 
11
11
  ## JMC Command
12
12
 
@@ -127,16 +127,16 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
127
127
  [JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
128
128
  [Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
129
129
  from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
130
- Overall, JMC-C implementation is faster than Blaze C++.
131
- Moreover, JMC-JS and JMC-Java/GSON native implementations are only about 50% slower
132
- than Blaze C++, which given the intrinsic language capabilities is quite honorable.
130
+ Overall, JMC-C implementation is about twice faster than Blaze C++.
131
+ Moreover, JMC-Java/GSON native implementations are only about 50% slower than Blaze C++,
132
+ and JMC-JS 200% slower, which given the intrinsic language capabilities is quite honorable.
133
133
 
134
134
  ## More Information
135
135
 
136
136
  See the [JSON Model website](https://json-model.org),
137
137
  which among many resources,
138
138
  includes a [tutorial](TUTO.md) for a hands-on overview of JSON Model,
139
- and links to [research papers](PAPERS.md) for explanations about the design.
139
+ and links to [research papers](PUBS.md) for explanations about the design.
140
140
 
141
141
  ## JSON Model Distribution
142
142
 
@@ -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,60 @@
1
1
  # JSON Model Compiler Versions
2
2
 
3
+ ## 2.0.59 on 2026-08-28
4
+
5
+ - bench: fix standard cron runs
6
+ - bench: minor report styling
7
+ - pr: improve bench artifact discussion
8
+ - tests: ~run dyn per-model instead of per-dir~ not needed, load balancing is ok
9
+ - tests: ~run language per-model instead of per-dir~ idem
10
+ - pr: improve JSTS test results alignment between all backends (minor diffs remain)
11
+ - optim: regex list of words to enum
12
+ - optim: remove props which match the default
13
+ - models: add example model for JTD (JSON Type Definition)
14
+ - tests: fix directory display by using str params
15
+ - pr: update check count in about page
16
+ - optim: simplify subtypes in or-lists
17
+ - optim: fix more model comparison issues related to python `==` operator
18
+ - container: improve build caching by combining ADD + RUN git ...
19
+ - bench: check minimum generated file sizes
20
+
21
+ ## 2.0.58 on 2026-08-24
22
+
23
+ - pr: improve bench script
24
+ - pr: test push post on github.io
25
+ - pr: switch cristalina to post after release
26
+ - bench: fix report nl before per-case performance table
27
+ - pr: ensure accuracy of version on about page
28
+ - irep: cleanup bool variable set but not used
29
+ - irep: move mif2if earlier, rework IR optimizations
30
+ - ci: tweak fetch depth to help docs version computation
31
+ - tests: add c/clean.c targets
32
+ - static: and list checks should always be likely
33
+ - tests: add missing java and pl language tests
34
+ - docker: install missing `Algorithm::LUHN` for perl JSB
35
+ - pr: better bench and about generated pages
36
+ - tests: ~allow to skip some tests with make, depending on available runtimes~
37
+ - tests: provide convenient targets for all tasks
38
+ - tests: display number of assertions checked
39
+ - front: add argument groups
40
+ - front: handle yaml values as well as json
41
+ - tests: add test markers for C, Java, JS, TS, Python, Perl, IR, PL/pgSQL, Schemas
42
+ - tests: allow to skip some tests by category (`not some-mark`)
43
+ - front: shorten jmc pod synopsis
44
+ - pr: configure explicit docsify base path
45
+ - pr: switch to docsify@5
46
+ - pr: improve some pages
47
+ - bench: improve standard report to match available data
48
+ - pl-backend: send perf to stderr as others
49
+ - pr: add typescript prettyprint
50
+ - irep: do not generate empty loops
51
+ - python: do not generate empty loops
52
+ - bench: fix number of iterations for python and perl under cap
53
+ - bench: run and report with java GSON only
54
+ - bench: ~run and report with perl?~ not interesting for now (x 200.0)
55
+ - tests: ~split some directories?~ no, use per-model
56
+ - tests: run values per model instead of per-dir
57
+
3
58
  ## 2.0.57 on 2026-08-18
4
59
 
5
60
  - bench: improve reporting text
@@ -5,20 +5,21 @@
5
5
 
6
6
  echo "Generating ABOUT.md page…" >&2
7
7
 
8
- githash=$(git show --pretty=format:"%h on %cs" --no-patch)
8
+ git_hash=$(git show --pretty=format:"%h on %cs" --no-patch)
9
9
 
10
10
  if type jmc > /dev/null ; then
11
11
  version=$(jmc --version)
12
- git_version=$githash
12
+ git_version=$git_hash
13
13
  else
14
14
  read version < json_model/data/VERSION
15
- git_version="$(git rev-parse --abbrev-ref HEAD) $githash"
15
+ git_version="$(git rev-parse --abbrev-ref HEAD) $git_hash"
16
16
  fi
17
17
 
18
18
  cat <<EOF
19
19
  # About JSON Model
20
20
 
21
- JSON Model is an on-going [research project](PUBS.md).
21
+ JSON Model is an on-going [research project](PUBS.md)
22
+ dedicated to the [Public Domain](https://creativecommons.org/public-domain/).
22
23
 
23
24
  The following line and file counts about version **$version** (\`$git_version\`) show
24
25
  that the compiler, code generator and runtimes are quite small, but still heavily tested
@@ -151,16 +152,19 @@ Test models cover the various features of JSON Model.
151
152
  Each model is tested for each target language (Python, C, JavaScript, PL/pgSQL, Perl, Java)
152
153
  on a set of test vectors.
153
154
 
154
- - number of test JSON models: _${n_models}_
155
- - total test JSON model locs: _${model_locs}_
156
- - number of test vector JSON values: _${n_values}_
157
- - all tested JSON values (including models, generated schemas and IR, and test suite schemas): _${all_values}_
155
+ - Number of test JSON models: _${n_models}_
156
+ - Total test JSON model locs: _${model_locs}_
157
+ - Number of test vector JSON values: _${n_values}_
158
+ - All tested JSON values (including models, generated schemas and IR, and test suite schemas): _${all_values}_
159
+
160
+ Over _170,000_ assertion checks are performed when running non-regression tests:
161
+ generated files, values validated in various languages…
158
162
 
159
163
  [Example models](https://json-model.org/MODELS) cover typical use cases and demonstrate
160
164
  JSON Model power and ease of expression.
161
165
 
162
- - number of example models: _${n_eg_models}_
163
- - total example model locs: _${eg_models_locs}_
166
+ - Number of example models: _${n_eg_models}_
167
+ - Total example model locs: _${eg_models_locs}_
164
168
 
165
169
  ## Documentation
166
170
 
@@ -25,9 +25,12 @@ for artifact in $(ls site/benchmarks/*.md | sort -r) ; do
25
25
  sbc=$(get_version jsonschema-cli $artifact)
26
26
  message=""
27
27
  [ "$(grep 'content:.*yes' $artifact)" ] && message+="content" || message+="no content"
28
- [ "$(grep 'JSU_OPT.*--no-id' $artifact)" ] && message+=", no id"
28
+ [ "$(grep 'JSU_OPT.*--no-id' $artifact)" ] && message+=", no id" || message+=", id"
29
29
  [ "$(grep 'fix:.*yes' $artifact)" ] && message+=", fix" || message+=", no fix"
30
- echo "- Artifact [$name]($link) [JMC $jmc]($PYPI/json-model-compiler/$jmc/)/[JSU $jsu]($PYPI/json-schema-utils/$jsu/) vs [SBC $sbc](https://github.com/sourcemeta/jsonschema/releases/tag/v$sbc), $message."
30
+ echo "- Artifact [$name]($link) using [JMC $jmc]($PYPI/json-model-compiler/$jmc/), "
31
+ echo " [JSU $jsu]($PYPI/json-schema-utils/$jsu/) and "
32
+ echo " [SBC $sbc](https://github.com/sourcemeta/jsonschema/releases/tag/v$sbc), "
33
+ echo " $message."
31
34
  done
32
35
 
33
36
  sed -ne '/BENCHES/,$p' < BENCH.md | grep -v '^BENCHES$'
@@ -0,0 +1 @@
1
+ 2.0.59
@@ -8,22 +8,7 @@ B<jmc> - JSON Model Compiler
8
8
 
9
9
  =head1 SYNOPSIS
10
10
 
11
- jmc [-h] [--version] [--debug] [--verbose] [--quiet] [--doc {pod,syn,help,man}] [--man]
12
- [--maps MAPS] [--auto] [--entry ENTRY] [--regex-engine {re,re2,pcre2}] [--mark COMMENT]
13
- [--allow-duplicates] [-[-no]-extend] [--loose-int] [--strict-int] [--loose-float]
14
- [--strict-float] [--loose-number] [--strict-number] [--loose] [--check]
15
- [-[-no]-single-line-regex] [-[-no]-optimize] [-[-no]-reporting] [-[-no]-inline]
16
- [--format {json,yaml,py,c,js,plpgsql,pl,java,ts}] [-[-no]-sort] [--indent INDENT]
17
- [--gen {exec,module,code,none} | --executable | --module | --code | --no-gen]
18
- [--cc CC] [--cflags CFLAGS] [--cppflags CPPFLAGS] [--ldflags LDFLAGS] [-[-no]-precompiled]
19
- [--include [INCLUDE ...]] [--library [LIBRARY ...]] [--define [DEFINE ...]]
20
- [--javac JAVAC] [--jflags JFLAGS] [-[-no]-schema-version] [--short-version]
21
- [--name NAME] [-[-no]-report] [--none] [--true] [--false] [--test-vector]
22
- [--map-threshold THRESHOLD] [--map-share] [-[-no]-strcmp-optimize] [--byte-order (le|be)]
23
- [--max-strcmp-cset SIZE] [-[-no]-unique-optimize] [-[-no]-regex-optimize]
24
- [--may-must-open-threshold THRESHOLD] [--must-only-threshold THRESHOLD] [-[-no]-call-shortcut]
25
- [--partition-threshold THRESHOLD] [--or-must-prop THRESHOLD] [--array-unrolling-size=SIZE]
26
- [-[-no]-sort-must] [-[-no]-sort-may] [-[-no]-predef] [--no-opt OPTIM] [-[-no]-regex-pattern]
11
+ jmc [--help] [--version] [--man] [--debug] [--verbose] [--quiet] [plenty other options]
27
12
  [--op {P,U,J,N,E,C} | --preproc | --dump | --jdump | --nope | --export | --compile]
28
13
  [--output OUTPUT] (--model MODEL | MODEL) [VALUES ...]
29
14