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.
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/.github/workflows/docs.yml +8 -1
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/BACKLOG.md +17 -45
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/BENCH.md +23 -19
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/HOWTO.md +2 -3
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/Makefile +1 -1
- {json_model_compiler-2.0.57/json_model_compiler.egg-info → json_model_compiler-2.0.59}/PKG-INFO +6 -6
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/README.md +5 -5
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/SPEC.md +2 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/VERSION.md +55 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/about.sh +14 -10
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/bench.sh +5 -2
- json_model_compiler-2.0.59/json_model/data/VERSION +1 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/jmc.pod +1 -16
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/irep.py +146 -53
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/optim.py +46 -5
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/python.py +12 -3
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/Changes +8 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/lib/JSON/JsonModel.pm +3 -3
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/script.py +34 -4
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/submodel.py +21 -9
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/xstatic.py +2 -1
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59/json_model_compiler.egg-info}/PKG-INFO +6 -6
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/pyproject.toml +14 -0
- json_model_compiler-2.0.57/json_model/data/VERSION +0 -1
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/.github/workflows/sanity.yml +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/.gitignore +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/.gitmodules +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/API.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/DESIGN.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/DEV.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/DOC.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/INTEGRATION.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/MANIFEST.in +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/PUBS.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/TUTO.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/README.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/__init__.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/analyze.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/clang.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/convert.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_entry.c +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_free.c +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_init.c +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_pcre2_fun.c +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/clang_re2_fun.c +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/java_free.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/java_init.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_exe.js +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_foot.js +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_free.js +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_head.js +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_init.js +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/javascript_main.js +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_entry.pl +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_exe.pl +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_free.pl +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_init.pl +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_main.pl +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/perl_pkg.pl +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/plpgsql_entry.sql +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_entry.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_exe.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_free.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_init.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/data/python_main.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/export.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/java.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/javascript.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/language.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/model.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/mtypes.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/objops.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/perl.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/plpgsql.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/predefs.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/recurse.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/regex.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/resolver.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/Makefile +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/__init__.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/c/Makefile +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/c/json-model.c +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/c/json-model.h +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/c/main.c +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/.gitignore +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/Makefile +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/README.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/env.sh +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Checker.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/GSON.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/JSON.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/JSONP.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Jackson.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Main.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Path.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Report.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/json_model/Runtime.java +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/java/pom.xml +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/js/README.md +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/js/index.js +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/js/main.js +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/js/package.json +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/.gitignore +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/LICENSE +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/MANIFEST +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/Makefile.PL +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/README +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/env.sh +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/ignore.txt +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/t/00-load.t +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/t/manifest.t +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/t/pod-coverage.t +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/t/pod.t +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/pl/xt/boilerplate.t +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/sql/META.json +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/sql/Makefile +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/sql/json_model--2.0.sql +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/sql/json_model.control +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/support.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/runtime/types.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/ts_export.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/url_cache.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model/utils.py +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/SOURCES.txt +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/dependency_links.txt +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/entry_points.txt +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/not-zip-safe +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/requires.txt +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/json_model_compiler.egg-info/top_level.txt +0 -0
- {json_model_compiler-2.0.57 → json_model_compiler-2.0.59}/package.json +0 -0
- {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
|
|
1
|
+
# Backlog
|
|
2
2
|
|
|
3
3
|
## Current Tasks
|
|
4
4
|
|
|
5
|
-
- [ ]
|
|
6
|
-
- [ ]
|
|
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
|
-
- [ ]
|
|
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
|
-
- [ ]
|
|
31
|
-
- [ ]
|
|
32
|
-
- [ ]
|
|
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
|
-
- [ ]
|
|
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
|
-
- [ ]
|
|
56
|
-
- [ ]
|
|
57
|
-
- [ ]
|
|
58
|
-
- [ ]
|
|
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),
|
|
21
|
-
|
|
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
|
|
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.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
2.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
|
34
|
-
|
|
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
|
```
|
{json_model_compiler-2.0.57/json_model_compiler.egg-info → json_model_compiler-2.0.59}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: json_model_compiler
|
|
3
|
-
Version: 2.0.
|
|
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
|
|
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-
|
|
165
|
-
|
|
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](
|
|
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
|
|
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-
|
|
132
|
-
|
|
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](
|
|
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
|
-
|
|
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=$
|
|
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) $
|
|
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
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
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
|
-
-
|
|
163
|
-
-
|
|
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/)
|
|
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 [
|
|
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
|
|