json-model-compiler 2.0b32__tar.gz → 2.0b37__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.0b32/site → json_model_compiler-2.0b37}/BACKLOG.md +93 -15
- json_model_compiler-2.0b37/BENCH.md +126 -0
- json_model_compiler-2.0b37/DEV.md +69 -0
- {json_model_compiler-2.0b32/site → json_model_compiler-2.0b37}/DOC.md +2 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/HOWTO.md +6 -4
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/Makefile +6 -4
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/PKG-INFO +10 -9
- {json_model_compiler-2.0b32/site → json_model_compiler-2.0b37}/PUBS.md +1 -1
- {json_model_compiler-2.0b32/site → json_model_compiler-2.0b37}/README.md +8 -6
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/SPEC.md +5 -5
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/TUTO.md +8 -7
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/about.sh +17 -12
- json_model_compiler-2.0b32/docker/Dockerfile → json_model_compiler-2.0b37/container/Containerfile +3 -2
- json_model_compiler-2.0b37/container/Makefile +88 -0
- {json_model_compiler-2.0b32/docker → json_model_compiler-2.0b37/container}/README.md +8 -8
- json_model_compiler-2.0b37/container/jmc +64 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/analyze.py +81 -10
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/clang.py +138 -25
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/convert.py +2 -1
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/jmc.pod +42 -12
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/export.py +1 -1
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/irep.py +297 -90
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/java.py +30 -9
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/javascript.py +23 -9
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/language.py +76 -40
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/model.py +27 -17
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/mtypes.py +16 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/objmerge.py +2 -1
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/optim.py +118 -26
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/perl.py +38 -14
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/plpgsql.py +45 -14
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/python.py +29 -9
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/recurse.py +7 -2
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/resolver.py +8 -7
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/__init__.py +31 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/c/Makefile +7 -1
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/c/json-model.c +27 -15
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/c/json-model.h +7 -6
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/c/main.c +35 -21
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/env.bash +1 -1
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Main.java +26 -12
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Runtime.java +7 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/pom.xml +2 -2
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/js/main.js +23 -13
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/Changes +2 -0
- json_model_compiler-2.0b37/json_model/runtime/pl/env.bash +4 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/lib/JSON/JsonModel.pm +46 -17
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/support.py +28 -11
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/script.py +111 -55
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/utils.py +168 -39
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/xstatic.py +519 -122
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/PKG-INFO +10 -9
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/SOURCES.txt +60 -13
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/requires.txt +1 -2
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/jmc-ir.model.json +2 -1
- json_model_compiler-2.0b37/models/test-schema.model.json +43 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/pyproject.toml +7 -5
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37/site}/BACKLOG.md +93 -15
- json_model_compiler-2.0b37/site/BENCH.md +126 -0
- json_model_compiler-2.0b37/site/DEV.md +69 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37/site}/DOC.md +2 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/site/HOWTO.md +6 -4
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37/site}/PUBS.md +1 -1
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37/site}/README.md +8 -6
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/site/SPEC.md +5 -5
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/site/TUTO.md +8 -7
- json_model_compiler-2.0b37/site/benchmarks/2026010600.csv +172 -0
- json_model_compiler-2.0b37/site/benchmarks/2026010600.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026010600.md +215 -0
- json_model_compiler-2.0b37/site/benchmarks/2026010900.csv +172 -0
- json_model_compiler-2.0b37/site/benchmarks/2026010900.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026010900.md +215 -0
- json_model_compiler-2.0b37/site/benchmarks/2026011500.csv +172 -0
- json_model_compiler-2.0b37/site/benchmarks/2026011500.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026011500.md +215 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012000.csv +172 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012000.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012000.md +215 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012200.csv +173 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012200.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012200.md +216 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012400.csv +173 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012400.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012400.md +216 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012700.csv +173 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012700.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026012700.md +216 -0
- json_model_compiler-2.0b37/site/benchmarks/2026020500.csv +167 -0
- json_model_compiler-2.0b37/site/benchmarks/2026020500.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026020500.md +211 -0
- json_model_compiler-2.0b37/site/benchmarks/2026020600.csv +173 -0
- json_model_compiler-2.0b37/site/benchmarks/2026020600.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026020600.md +217 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021000.csv +171 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021000.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021000.md +215 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021300.csv +171 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021300.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021300.md +215 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021700.csv +171 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021700.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021700.md +214 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021701.csv +171 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021701.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021701.md +214 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021702.csv +171 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021702.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021702.md +214 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021900.csv +171 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021900.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026021900.md +214 -0
- json_model_compiler-2.0b37/site/benchmarks/2026022000.csv +171 -0
- json_model_compiler-2.0b37/site/benchmarks/2026022000.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026022000.md +214 -0
- json_model_compiler-2.0b37/site/benchmarks/2026022400.csv +171 -0
- json_model_compiler-2.0b37/site/benchmarks/2026022400.json +296 -0
- json_model_compiler-2.0b37/site/benchmarks/2026022400.md +214 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/site/cover.md +1 -1
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/site/index.html +69 -20
- json_model_compiler-2.0b32/BENCH.md +0 -67
- json_model_compiler-2.0b32/DEV.md +0 -24
- json_model_compiler-2.0b32/docker/Makefile +0 -83
- json_model_compiler-2.0b32/docker/jmc +0 -42
- json_model_compiler-2.0b32/site/BENCH.md +0 -67
- json_model_compiler-2.0b32/site/DOCKER.md +0 -99
- json_model_compiler-2.0b32/site/benchmarks/2025102200.csv +0 -164
- json_model_compiler-2.0b32/site/benchmarks/2025102200.json +0 -296
- json_model_compiler-2.0b32/site/benchmarks/2025102200.md +0 -209
- json_model_compiler-2.0b32/site/benchmarks/2025102201.csv +0 -164
- json_model_compiler-2.0b32/site/benchmarks/2025102201.json +0 -296
- json_model_compiler-2.0b32/site/benchmarks/2025102201.md +0 -209
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/.gitignore +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/.gitmodules +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/API.md +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/DESIGN.md +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/INTEGRATION.md +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/MANIFEST.in +0 -0
- {json_model_compiler-2.0b32/docker → json_model_compiler-2.0b37/container}/.dockerignore +0 -0
- {json_model_compiler-2.0b32/docker → json_model_compiler-2.0b37/container}/.gitignore +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/README.md +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/__init__.py +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/clang_entry.c +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/clang_free.c +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/clang_init.c +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/clang_pcre2_fun.c +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/clang_re2_fun.c +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/java_free.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/java_init.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/javascript_exe.js +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/javascript_foot.js +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/javascript_free.js +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/javascript_head.js +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/javascript_init.js +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/javascript_main.js +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/perl_entry.pl +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/perl_exe.pl +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/perl_free.pl +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/perl_init.pl +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/perl_main.pl +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/perl_pkg.pl +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/plpgsql_entry.sql +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/python_entry.py +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/python_exe.py +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/python_free.py +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/python_init.py +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/data/python_main.py +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/Makefile +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/.gitignore +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/Makefile +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/README.md +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Checker.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/GSON.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/JSON.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/JSONP.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Jackson.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Path.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Report.java +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/js/README.md +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/js/index.js +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/js/package.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/.gitignore +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/LICENSE +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/MANIFEST +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/Makefile.PL +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/README +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/ignore.txt +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/t/00-load.t +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/t/manifest.t +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/t/pod-coverage.t +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/t/pod.t +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/pl/xt/boilerplate.t +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/sql/META.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/sql/Makefile +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/sql/json_model--2.0.sql +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/sql/json_model.control +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/runtime/types.py +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model/url_cache.py +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/dependency_links.txt +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/entry_points.txt +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/top_level.txt +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/ansiblelint-meta.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/cypress.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/diploma-arrete.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/diploma-export.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/everything.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/fresq.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/geo-easy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/geo.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-model-latest.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-model-moschin.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-model-no-merge.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-model-v1.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-model-v2-en.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-model-v2.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-model.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-01-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-01-nesting.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-01.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-02-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-02-nesting.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-02.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-03-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-03-nesting.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-03.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-04-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-04-mongodb.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-04-nesting.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-04.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-06-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-06.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-07-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-07.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-2019-09.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-2020-12-tight.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-2020-12.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-next-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-next.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-tight.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-tighter-loose.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-draft-tighter.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/json-schema-linter.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/jsound.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/l10n.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/lazygit.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/openapi-311-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/openapi-311-models.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/openapi-311.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/person.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/person2.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/models/pgxn.model.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/package.json +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/setup.cfg +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/site/API.md +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/site/favicon.ico +0 -0
- {json_model_compiler-2.0b32 → json_model_compiler-2.0b37}/site/json_logo.svg +0 -0
|
@@ -2,41 +2,81 @@
|
|
|
2
2
|
|
|
3
3
|
## Current Tasks
|
|
4
4
|
|
|
5
|
-
- [x]
|
|
6
|
-
- [x]
|
|
7
|
-
- [x]
|
|
8
|
-
- [x]
|
|
9
|
-
- [
|
|
10
|
-
- [
|
|
11
|
-
- [
|
|
12
|
-
- [
|
|
13
|
-
- [
|
|
5
|
+
- [x] test: improve output determinism
|
|
6
|
+
- [x] container: allow to use `podman` instead of `docker`
|
|
7
|
+
- [x] perf: estimate measure overhead over 100 iterations
|
|
8
|
+
- [x] perf: share overhead estimation between tests
|
|
9
|
+
- [x] perf: try to prevent performance loops from being optimized out with some computation
|
|
10
|
+
- [x] container: add podman-in-podman or docker-in-docker
|
|
11
|
+
- [x] python-backend: add support for embedded nul characters in strings
|
|
12
|
+
- [x] optim: fix inappriopriate model deduplication in or-lists
|
|
13
|
+
- [x] dynamic: allow arbitrary options to dynamic interfaces
|
|
14
|
+
- [x] lang: extend list of predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION
|
|
15
|
+
- [x] bug: fix unwise regex optimization
|
|
16
|
+
- [x] python-backend: add support for `.mo`
|
|
17
|
+
- [x] optim: remove bad transform _A & (T ^ B)) != A ^ B_
|
|
18
|
+
- [x] python-backend: escape more strange characters in string constants
|
|
19
|
+
- [x] perf: do not report broken count if nothing is broken
|
|
20
|
+
- [x] python-backend: numerical workarounds for .mo extension implementation
|
|
21
|
+
- [x] backend: add support for `.in` extension without other constraints
|
|
22
|
+
- [x] tests: minimal tests for `.mo` and `.in`
|
|
23
|
+
- [x] \*-backend:: add support for `.mo` and `.in` extensions
|
|
24
|
+
- [x] optim: optimize typed and _"" & "xxx"_ involving references
|
|
25
|
+
- [x] optim: arbitrary guard against infinite loops
|
|
26
|
+
- [x] ir: fix stupid bug in ir opts
|
|
27
|
+
- [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
|
|
28
|
+
- [ ] optim: recognize typed not: _"" ^ "xxx"_
|
|
29
|
+
- [ ] tests: rerun with updated JSTS before release
|
|
30
|
+
- [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
|
|
31
|
+
- [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
|
|
32
|
+
- [ ] doc: add _known limitations_ stuff
|
|
33
|
+
- [ ] optim: implement stupid any type but one constrained optimization (jsu)
|
|
34
|
+
- [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
|
|
35
|
+
- [ ] optim: merge `&` list when possible, eg inclusions or compatibility
|
|
36
|
+
- [ ] test: add test categories (mark?)
|
|
37
|
+
- [ ] doc: improve developer documentation
|
|
38
|
+
- [ ] test: allow to skip some tests by category
|
|
39
|
+
- [ ] docker: enable user remap
|
|
40
|
+
- [ ] export: java classes
|
|
41
|
+
- [ ] export: go interfaces
|
|
42
|
+
- [ ] static: make regex groups non capturing when appropriate?
|
|
43
|
+
- [ ] static: xor acceleration based on distinct mandatory props
|
|
44
|
+
- [ ] static: merge partial mandatory prop discriminants
|
|
45
|
+
- [ ] static: merge may/must property handling, or not?
|
|
46
|
+
- [ ] static: take into account str _byte_ len when partitioning
|
|
47
|
+
- [ ] static: possibly use up to 8 bytes when hashing?
|
|
48
|
+
- [ ] static: fix hash size to depends on byte encoding, not str len
|
|
49
|
+
- [ ] perf: test partitioning for js, java, perl, python…
|
|
50
|
+
- [ ] perf: investigate best settings for js, java and python
|
|
51
|
+
- [ ] perf: allow to run with any docker image
|
|
52
|
+
- [ ] static: maybe skip must checks if all must props already seen
|
|
14
53
|
- [ ] backend: cleanup unused assigned variable, see `mv-08/openapi-311.c`
|
|
15
|
-
- [ ]
|
|
54
|
+
- [ ] backend: fix `unused but set variable` warning and remove `-Wno-…` (dead code)
|
|
16
55
|
- [ ] backend: remove useless `ELSE NULL` see `mv-02/geo.sql`
|
|
56
|
+
- [ ] command: export before/after model optimization
|
|
57
|
+
- [ ] perf: experiment object matching with various mandatory/optional properties
|
|
58
|
+
- [ ] backend: optimize pattern "res = E1; return res || E2;" (only one use)
|
|
17
59
|
- [ ] backend: optimize pattern "res = E; if (! res) ret F; res not used before set;"
|
|
18
60
|
- [ ] backend: optimize pattern "{ decl X = ... ; res = f(X (once) ) }"
|
|
19
61
|
- [ ] backend: simplify assignment patterns with ternary operator when available?
|
|
20
|
-
- [ ] backend: consider applying language-specific formatting tools? `clang-format`, `
|
|
62
|
+
- [ ] backend: consider applying language-specific formatting tools? `clang-format`, `black`…
|
|
21
63
|
- [ ] c-backend: get pval string into a variable for strcmp unrolling and inlining
|
|
22
64
|
- [ ] c-backend: add number of chunks limit to strcmp optimization
|
|
23
65
|
- [ ] c-backend: strcmp to const inlining and unrolling for all instances
|
|
66
|
+
- [ ] c-backend: more typed cset optimizations?
|
|
24
67
|
- [ ] static: partial discriminator with else?
|
|
25
68
|
- [ ] static: optimize not string cst test?
|
|
26
|
-
- [ ] perf: compute performance overhead globally instead of per run
|
|
27
69
|
- [ ] tests: add ir optimized output (too large?)
|
|
70
|
+
- [ ] tests: drop language outputs for IR only?!
|
|
28
71
|
- [ ] tests: add pytest ir tests
|
|
29
72
|
- [ ] tests: add generated ir model check
|
|
30
|
-
- [ ] tests: drop language outputs for IR only?!
|
|
31
73
|
- [ ] tests: check generated IR with IR model
|
|
32
|
-
- [ ] perf: experiment object matching with various mandatory/optional properties
|
|
33
74
|
- [ ] static: close may/must? merge with open?
|
|
34
75
|
- [ ] static: add a dynamic test for different strategies in object checking
|
|
35
76
|
- [ ] backend: refactor ir optimizations
|
|
36
77
|
- [ ] command: add direct ir to lang conversion
|
|
37
78
|
- [ ] artifact: make work with dind (docker compose?)
|
|
38
79
|
- [ ] static: recognize already compile objects and reuse function esp under no-reporting?
|
|
39
|
-
- [ ] tests: check how clang compares to gcc
|
|
40
80
|
- [ ] tests: add non regression tests to docker build
|
|
41
81
|
- [ ] service: json to lang conversion API
|
|
42
82
|
- [ ] api: web interface with caching and security
|
|
@@ -63,6 +103,8 @@
|
|
|
63
103
|
- [ ] tests: parallelize per-case instead of per-dir?
|
|
64
104
|
- [ ] static: shorten xor exit?
|
|
65
105
|
- [ ] perf: profile some cases
|
|
106
|
+
- [ ] c-backend: use vector instructions for larger strcmp?
|
|
107
|
+
- [ ] export: sqlalchemy
|
|
66
108
|
|
|
67
109
|
## Re Do
|
|
68
110
|
|
|
@@ -701,3 +743,39 @@
|
|
|
701
743
|
- [x] perf: add launcher script
|
|
702
744
|
- [x] c-backend: cleanup duplicated `json_is_boolean` calls
|
|
703
745
|
- [x] c-backend: fix bad constant string expression syntax
|
|
746
|
+
- [x] backend: optimize length-based non-empty string check
|
|
747
|
+
- [x] backend: remove reporting expressions under no reporting
|
|
748
|
+
- [x] backend: nullify reporting parameters under no reporting
|
|
749
|
+
- [x] command: silent more cc warnings
|
|
750
|
+
- [x] c-backend: try with `clang` instead of `gcc`
|
|
751
|
+
- [x] static: improve likely hints depending on expectations
|
|
752
|
+
- [x] backend: fix `TRUE AND` in `mv-07/json-schema-draft-tight.sql` (late)
|
|
753
|
+
- [x] backend: useless computations in `mv-17/xor_01.pl`
|
|
754
|
+
- [x] static: for must-only scheme controlled by option
|
|
755
|
+
- [x] static: further improve likely hints
|
|
756
|
+
- [x] command: rename `--unroll-may-…` options for `--may-must-open-threshold`
|
|
757
|
+
- [x] command: set optimization parameters depending on target language
|
|
758
|
+
- [x] static: order must/may props by increasing size
|
|
759
|
+
- [x] command: fix bad mmo threshold initializations
|
|
760
|
+
- [x] static: shorten return on open one may no must/regs/defs
|
|
761
|
+
- [x] backend: optimize pattern "if (!? V) V = cst;"
|
|
762
|
+
- [x] backend: optimize pattern "V = C; if (!? V) ..."
|
|
763
|
+
- [x] backend: optimize pattern "V = E1; V = E2;"
|
|
764
|
+
- [x] c-backend: generate direct code for search constant on small str sets
|
|
765
|
+
- [x] static: add likely hints on array checks
|
|
766
|
+
- [x] perf: test max strcmp cset to set default default
|
|
767
|
+
- [x] pr: move out schema-to-model conversion
|
|
768
|
+
- [x] pr: adjust radar display to visible datasets
|
|
769
|
+
- [x] tests: check how clang compares to gcc (maybe a few pc better)
|
|
770
|
+
- [x] static: partition long lists of properties based on first bytes
|
|
771
|
+
- [x] static: use more bytes for str hashing depending on min len
|
|
772
|
+
- [x] static: generate hexa constants for partition limits tests
|
|
773
|
+
- [x] static: use `continue` instead of long multi-if statements
|
|
774
|
+
- [x] c-backend: partition inlined str cset
|
|
775
|
+
- [x] static: or acceleration based on full or partial distinct mandatory props
|
|
776
|
+
- [x] static: set default C partition threshold to _6_
|
|
777
|
+
- [x] c-backend: replace `strcmp` with `memcmp` in runtime
|
|
778
|
+
- [x] backend: improve if patterns in some cases
|
|
779
|
+
- [x] pr: add explicit winner column to per case perf
|
|
780
|
+
- [x] model: simplify `{"": "$NONE"}`
|
|
781
|
+
- [x] ~model: avoid dead code in `mv-0f/dedup-002`~ (simple pair ok, multiple seldom useful)
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# JSON Model Compiler Benchmark Artifacts
|
|
2
|
+
|
|
3
|
+
These artifacts compare
|
|
4
|
+
[JSON Model Compiler](https://github.com/clairey-zx81/json-model) generated code in
|
|
5
|
+
C, JS, Java (GSON, Jackson and JSONP using Johnzon) and Python with
|
|
6
|
+
[Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) using test cases from
|
|
7
|
+
[JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
8
|
+
|
|
9
|
+
## Recent Artifacts
|
|
10
|
+
|
|
11
|
+
- [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs jsc 14.13.4, 11 runs, 1000 iterations.
|
|
12
|
+
- [2026022000](benchmarks/2026022000.md) clang, no predefs, jmc 2.0b36 vs jsc 14.13.3, 11 runs, 1000 iterations.
|
|
13
|
+
- [2026021900](benchmarks/2026021900.md) clang, no predefs, jmc 2.0b36 vs jsc 14.13.1, 11 runs, 1000 iterations.
|
|
14
|
+
- [2026021702](benchmarks/2026021702.md) clang, no predefs, jmc 2.0b36 vs jsc 14.13.0, 11 runs, 1000 iterations.
|
|
15
|
+
- [2026021701](benchmarks/2026021701.md) clang, no predefs, jmc 2.0b36 vs jsc 14.12.0, 11 runs, 1000 iterations.
|
|
16
|
+
- [2026021700](benchmarks/2026021700.md) clang, no predefs, jmc 2.0b36 vs jsc 14.11.0, 11 runs, 1000 iterations.
|
|
17
|
+
- [2026021300](benchmarks/2026021300.md) clang, no predefs, jmc 2.0b36 vs jsc 14.10.0, 11 runs, 1000 iterations.
|
|
18
|
+
- [2026021000](benchmarks/2026021000.md) clang, no predefs, jmc 2.0b36 vs jsc 14.7.2, 11 runs, 1000 iterations.
|
|
19
|
+
- [2026020600](benchmarks/2026020600.md) clang, no predefs, jmc 2.0b36 vs jsc 14.7.1, 11 runs, 1000 iterations.
|
|
20
|
+
- [2026020500](benchmarks/2026020500.md) clang, no predefs, jmc 2.0b36 vs jsc 14.6.1, 11 runs, 1000 iterations.
|
|
21
|
+
- [2026012700](benchmarks/2026012700.md) clang, no predefs, jmc 2.0b36 vs jsc 14.5.0, 11 runs, 1000 iterations.
|
|
22
|
+
- [2026012400](benchmarks/2026012400.md) clang, no predefs, jmc 2.0b36 vs jsc 14.4.0, 11 runs, 1000 iterations.
|
|
23
|
+
- [2026012200](benchmarks/2026012200.md) clang, no predefs, jmc 2.0b36 vs jsc 14.2.0, 11 runs, 1000 iterations.
|
|
24
|
+
- [2026012000](benchmarks/2026012000.md) clang, no predefs, jmc 2.0b36 vs jsc 14.1.0, 11 runs, 1000 iterations.
|
|
25
|
+
- [2026011500](benchmarks/2026011500.md) clang, no predefs, jmc 2.0b36 vs jsc 14.0.4, 11 runs, 1000 iterations.
|
|
26
|
+
- [2026010900](benchmarks/2026010900.md) clang, no predefs, jmc 2.0b36 vs jsc 14.0.3, 11 runs, 1000 iterations.
|
|
27
|
+
- [2026010600](benchmarks/2026010600.md) clang, no predefs, jmc 2.0b36 vs jsc 14.0.2, 11 runs, 1000 iterations.
|
|
28
|
+
|
|
29
|
+
## Benchmarking Script
|
|
30
|
+
|
|
31
|
+
The [benchmarking script](https://github.com/clairey-zx81/json-model/blob/main/tests/perf/benchmark.sh)
|
|
32
|
+
is provided as docker image [docker.io/zx80/jmc-bench](https://hub.docker.com/repository/docker/zx80/jmc-bench).
|
|
33
|
+
It downloads the benchmark schemas and test values, and runs through docker-in-docker
|
|
34
|
+
[docker.io/zx80/jmc](https://hub.docker.com/repository/docker/zx80/jmc) for JMC runs and
|
|
35
|
+
[ghcr.io/sourcemeta/jsonschema](https://github.com/sourcemeta/jsonschema/pkgs/container/jsonschema)
|
|
36
|
+
for comparison using the Blaze CLI.
|
|
37
|
+
|
|
38
|
+
It is typically started on a large host with the
|
|
39
|
+
[`start_bench.sh` script](https://github.com/clairey-zx81/json-model/blob/main/tests/perf/start_bench.sh)
|
|
40
|
+
which will spawn the necessary containers:
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
JMC=latest JMC_OPTS="--no-predef --cc=clang-20" \
|
|
44
|
+
nohup ./start_bench.sh latest -p 16 -l 1000 -r 5 &
|
|
45
|
+
# in the generated directory, look for the summary markdown and radar json files.
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The main script options are:
|
|
49
|
+
|
|
50
|
+
- `-p PARA` parallelism (a little less that the number of available cores, default is _8_)
|
|
51
|
+
- `-l LOOP` loop iterations for performance average (at least _1000_, the default)
|
|
52
|
+
- `-r RUNS` number of runs (odd number, default is _3_)
|
|
53
|
+
- `--no-cap-py` do _not_ reduce python iterations by a factor of 10 (default is to reduce)
|
|
54
|
+
|
|
55
|
+
## Benchmarking Conditions
|
|
56
|
+
|
|
57
|
+
JSON schemas for the benchmark are translated to models based on
|
|
58
|
+
[JSON Schema Utils](https://github.com/zx80/json-schema-utils).
|
|
59
|
+
|
|
60
|
+
Runs are performed in _fast_ mode: the rejection reasons are not collected, and
|
|
61
|
+
the run stops as soon as possible.
|
|
62
|
+
|
|
63
|
+
- To smooth out the wide range of collected performances (from 10 ns to
|
|
64
|
+
over 300 µs for validating one value), a relative comparison ratio is shown.
|
|
65
|
+
- Compilation times are the _minimum_ encountered of over the runs.
|
|
66
|
+
whereas performance times are the _median_ over the runs.
|
|
67
|
+
- The C backend also includes the _runtime_ compilation from sources.
|
|
68
|
+
- JSON Schema to JSON Model conversion times are recorded separately.
|
|
69
|
+
|
|
70
|
+
Note that performance figures **must** be taken with a pinch of salt, please consider
|
|
71
|
+
the following caveats, and others:
|
|
72
|
+
|
|
73
|
+
- do you value latency or throuput or resource consumption? the answer is not so obvious,
|
|
74
|
+
probably you should prefer a high throuput _if_ the latency is good enough, but these
|
|
75
|
+
benchmark actually measure raw latency.
|
|
76
|
+
- test cases may or may not be representative of specific use cases,
|
|
77
|
+
especially wrt schema/model and value sizes.
|
|
78
|
+
- the overall load on the host can impact measures.
|
|
79
|
+
- compilers, libraries and other design and updates can have dramatic effects:
|
|
80
|
+
for faster parsing, a library may use linked-list for properties, which means
|
|
81
|
+
that retrieving a given property value will cost more than a library which uses
|
|
82
|
+
a hash table which is more costly to build.
|
|
83
|
+
- blaze does _not_ implement checking string values (eg dates, url…),
|
|
84
|
+
so these checks may be disactivated (see `JMC_OPTS`) for fairness.
|
|
85
|
+
- blaze uses its own special-purpose JSON representation: if interfaced from another
|
|
86
|
+
ecosystem, the cost of translating the JSON representation should be taken into account;
|
|
87
|
+
jmc uses native JSON representations and generate validation code around it.
|
|
88
|
+
- due to intrinsic limitations of the underlying libraries and the quality of models or schemas,
|
|
89
|
+
some results may differ, mostly for good reasons: regex incompatibilities, stricter
|
|
90
|
+
model definitions compared to lax schemas…
|
|
91
|
+
- it is unclear whether JIT optimizations (eg Java and JS) may work around the
|
|
92
|
+
benchmarking loops and report undue very fast performances, eg on the GeoJSON case.
|
|
93
|
+
- some execution environment (eg Java) may take advantage of parallelism with threads,
|
|
94
|
+
which may or may not be a blessing: it can reduce the apparent latency (eg the gc runs
|
|
95
|
+
in another thread) but have a detrimental overall effect on throughput as more cpu ressources
|
|
96
|
+
are spent on the same task.
|
|
97
|
+
|
|
98
|
+
## Other Artifacts
|
|
99
|
+
|
|
100
|
+
[Sourcemeta](https://sourcemeta.com)
|
|
101
|
+
[JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark)
|
|
102
|
+
also provides
|
|
103
|
+
[benchmark artifacts](https://github.com/sourcemeta-research/jsonschema-benchmark/actions)
|
|
104
|
+
which includes 15 JSON Schema validation tools including our JSON Model Compiler with
|
|
105
|
+
C, JS and Python backends.
|
|
106
|
+
Overall, JMC comes ahead of Blaze C++ on about 2/3 of the test cases (as of 2026-01-22).
|
|
107
|
+
|
|
108
|
+
On Feb 5, 2026 the JMC-based implementations on this benchmark have been
|
|
109
|
+
[removed](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/67dc4dfc7ad2d4a8e92a920b71fb813d8f3fb6a4)
|
|
110
|
+
without prior notice nor discussion.
|
|
111
|
+
The maintainer wants to focus on comparisons with JSON Schema direct implementations only
|
|
112
|
+
and thus avoid some confusion.
|
|
113
|
+
As a side effect, their Blaze C++ tool took back the performance leadership.
|
|
114
|
+
|
|
115
|
+
It should be noted that benchmarking conditions are quite different:
|
|
116
|
+
|
|
117
|
+
1. There is no loop to compute an average performance, but an initial _cold_ one-shot measure,
|
|
118
|
+
a warming phase loop and a _hot_ one-shot measure: This may tend to mask effects from
|
|
119
|
+
occasional GC runs.
|
|
120
|
+
2. The benchmark focuses on schema conformance, including (buggy) schemas which
|
|
121
|
+
are mostly dead code: It rejects tools which do not validate all strictly conformant values,
|
|
122
|
+
even if these values would be rejected by the target application.
|
|
123
|
+
|
|
124
|
+
This latest point explains the under 100% validation results displayed JMC for
|
|
125
|
+
_ansible-meta_, _cypress_ and _yamllint_ tests: the model translation or native models
|
|
126
|
+
are more accurate than the original schemas due to bug fixes or more rigorous descriptions.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# JSON Model Developer Stuff
|
|
2
|
+
|
|
3
|
+
## Contributions
|
|
4
|
+
|
|
5
|
+
Beware that the developer documentation is scarce. PR are always welcome, eg:
|
|
6
|
+
|
|
7
|
+
- new language or library support implementations
|
|
8
|
+
- new exporters
|
|
9
|
+
- possibly new models
|
|
10
|
+
|
|
11
|
+
## Publication Accounts
|
|
12
|
+
|
|
13
|
+
See `publish.*` targets in `Makefile`.
|
|
14
|
+
|
|
15
|
+
- Sources on [GitHub](https://github.com/clairey-zx81)
|
|
16
|
+
- Python Package on [PyPI](https://pypi.org/user/zx80/)
|
|
17
|
+
- JavaScript module on [npmjs](https://www.npmjs.com/~calvin-5432)
|
|
18
|
+
- Perl module on [CPAN](https://metacpan.org/author/ZXHZ)
|
|
19
|
+
- Java Jar on [Maven Central](https://central.sonatype.com/artifact/org.json-model/json-model)
|
|
20
|
+
- Postgres extension on [PGXN](https://pgxn.org/user/fabien)
|
|
21
|
+
- Docker image on [Docker](https://hub.docker.com/u/zx80)
|
|
22
|
+
- Website on [CRI Web](https://www.cri.minesparis.psl.eu/)
|
|
23
|
+
|
|
24
|
+
## Hardcoded Versions
|
|
25
|
+
|
|
26
|
+
- [pyproject](./pyproject.toml)
|
|
27
|
+
- [pom](./json_model/runtime/java/pom.xml)
|
|
28
|
+
- [pm](./json_model/runtime/pl/JSON/JsonModel.pm) (twice)
|
|
29
|
+
- [pg](./json_model/META.json) (twice)
|
|
30
|
+
- [js](./json_model/runtime/js/package.json)
|
|
31
|
+
- docker tag is extracted from `jmc`
|
|
32
|
+
- git tag?
|
|
33
|
+
|
|
34
|
+
## Setup
|
|
35
|
+
|
|
36
|
+
Get sources directly from GitHub in some Unix-like terminal:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
git clone --recursive-submodules git@github.com:clairey-zx81/json-model.git
|
|
40
|
+
cd json-model
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
If you intend to develop and submit a PR, fork the repos before cloning.
|
|
44
|
+
|
|
45
|
+
To setup a local developer environment, run at the root of the project:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
# for Python
|
|
49
|
+
make dev
|
|
50
|
+
source venv/bin/activate
|
|
51
|
+
# for JS
|
|
52
|
+
npm install
|
|
53
|
+
# for Perl
|
|
54
|
+
source $PWD/json_model/runtime/pl/env.bash
|
|
55
|
+
# for Java
|
|
56
|
+
# get needed dependency jars (see pom.xml), then
|
|
57
|
+
make -C json_model/runtime/java jar
|
|
58
|
+
source $PWD/json_model/runtime/java/env.bash
|
|
59
|
+
# for C
|
|
60
|
+
# install pcre2, cre2, gnu getopt, jansson
|
|
61
|
+
# for SQL
|
|
62
|
+
# have psql ready to connect to a local Postgres
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Code Doc
|
|
66
|
+
|
|
67
|
+
Read sources…
|
|
68
|
+
The magically-generated [deepwiki](https://deepwiki.com/clairey-zx81/json-model)
|
|
69
|
+
Section _The jmc Compiler_ is not too bad for an initial understanding.
|
|
@@ -15,6 +15,8 @@ using a [docker](DOCKER.md) [image](https://hub.docker.com/r/zx80/jmc) for easy
|
|
|
15
15
|
|
|
16
16
|
See [how-to](HOWTO.md) for common tasks to integrate JSON Model seamlessly in a project.
|
|
17
17
|
|
|
18
|
+
See [development](DEV.md) for contributing.
|
|
19
|
+
|
|
18
20
|
## References
|
|
19
21
|
|
|
20
22
|
JSON Model [specification](SPEC.md),
|
|
@@ -26,13 +26,15 @@ The `jmc` command can be install in a Python virtual environment from
|
|
|
26
26
|
jmc --man
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
3.
|
|
30
|
-
[convenient wrapper](https://github.com/clairey-zx81/json-model/blob/main/
|
|
29
|
+
3. Container install the [image](https://hub.docker.com/r/zx80/jmc) and its
|
|
30
|
+
[convenient wrapper](https://github.com/clairey-zx81/json-model/blob/main/container/jmc):
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
# podman pull docker.io/zx80/jmc
|
|
34
|
+
docker pull docker.io/zx80/jmc
|
|
35
|
+
curl -o ./jmc https://raw.githubusercontent.com/clairey-zx81/json-model/refs/heads/main/container/jmc
|
|
35
36
|
chmod a+rx ./jmc
|
|
37
|
+
export POD="docker" # or "podman"
|
|
36
38
|
./jmc --version
|
|
37
39
|
./jmc --man
|
|
38
40
|
```
|
|
@@ -39,7 +39,7 @@ check.src: check.ruff check.pyright
|
|
|
39
39
|
.PHONY: check
|
|
40
40
|
check: check.src check.tests
|
|
41
41
|
|
|
42
|
-
IGNORE = E121,E125,E131,E227,E251,E302,W504,F841
|
|
42
|
+
IGNORE = E121,E125,E128,E131,E201,E202,E226,E227,E251,E302,E702,W504,F841
|
|
43
43
|
|
|
44
44
|
.PHONY: check.flake8
|
|
45
45
|
check.flake8: dev
|
|
@@ -80,6 +80,7 @@ site/JMC.md: json_model/data/jmc.pod
|
|
|
80
80
|
pod2markdown $< > $@
|
|
81
81
|
|
|
82
82
|
site/ABOUT.md: ./about.sh
|
|
83
|
+
source venv/bin/activate
|
|
83
84
|
$< > $@
|
|
84
85
|
|
|
85
86
|
jmc.1: json_model/data/jmc.pod dev
|
|
@@ -90,6 +91,7 @@ jmc.1: json_model/data/jmc.pod dev
|
|
|
90
91
|
|
|
91
92
|
.PHONY: www
|
|
92
93
|
www: build.site
|
|
94
|
+
# http://localhost:3000
|
|
93
95
|
cd site && $(PYTHON) -m http.server 3000
|
|
94
96
|
|
|
95
97
|
#
|
|
@@ -114,9 +116,9 @@ publish.py: dev
|
|
|
114
116
|
twine check dist/*
|
|
115
117
|
echo "# twine upload dist/*"
|
|
116
118
|
|
|
117
|
-
.PHONY: publish.
|
|
118
|
-
publish.
|
|
119
|
-
$(MAKE) -C
|
|
119
|
+
.PHONY: publish.container
|
|
120
|
+
publish.container:
|
|
121
|
+
$(MAKE) -C container pod.push
|
|
120
122
|
|
|
121
123
|
RT.dir = ./json_model/runtime
|
|
122
124
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: json_model_compiler
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.0b37
|
|
4
4
|
Summary: JSON Model Tools
|
|
5
5
|
Author: Fabien Coelho, Claire Yannou-Medrala
|
|
6
6
|
License-Expression: CC0-1.0
|
|
@@ -15,7 +15,7 @@ Requires-Dist: requests
|
|
|
15
15
|
Requires-Dist: google-re2
|
|
16
16
|
Requires-Dist: pyyaml
|
|
17
17
|
Requires-Dist: validators
|
|
18
|
-
Requires-Dist: json-schema-utils
|
|
18
|
+
Requires-Dist: json-schema-utils>=0.8.6
|
|
19
19
|
Provides-Extra: dev
|
|
20
20
|
Requires-Dist: flake8; extra == "dev"
|
|
21
21
|
Requires-Dist: ruff; extra == "dev"
|
|
@@ -24,7 +24,6 @@ Requires-Dist: pytest; extra == "dev"
|
|
|
24
24
|
Requires-Dist: pytest-xdist[psutils]; extra == "dev"
|
|
25
25
|
Requires-Dist: filelock; extra == "dev"
|
|
26
26
|
Requires-Dist: ipython; extra == "dev"
|
|
27
|
-
Requires-Dist: json_schema_utils; extra == "dev"
|
|
28
27
|
Provides-Extra: dist
|
|
29
28
|
Requires-Dist: build; extra == "dist"
|
|
30
29
|
Requires-Dist: wheel; extra == "dist"
|
|
@@ -44,7 +43,7 @@ It is dedicated to the _Public Domain_.
|
|
|
44
43
|
|
|
45
44
|
JSON Model optimizing compiler (`jmc`) can be installed as a
|
|
46
45
|
[Python package](https://pypi.org/project/json-model-compiler/) or a
|
|
47
|
-
[
|
|
46
|
+
[Container image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc), see
|
|
48
47
|
[Installation HOWTO](HOWTO.md#installing-json-model-compiler).
|
|
49
48
|
|
|
50
49
|
Command `jmc` options include:
|
|
@@ -157,10 +156,12 @@ print("reasons:", reasons)
|
|
|
157
156
|
|
|
158
157
|
See the [benchmark page](BENCH.md) for artifacts which compare various
|
|
159
158
|
[JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
|
|
160
|
-
[Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) using test cases
|
|
161
|
-
[JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
162
|
-
Overall, JMC
|
|
163
|
-
|
|
159
|
+
[Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
|
|
160
|
+
from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
161
|
+
Overall, JMC-C implementation fares over 75% faster than Blaze C++.
|
|
162
|
+
It comes ahead over 80% of the time on the latest benchmarks tests.
|
|
163
|
+
Moreover, JMC-JS and JMC-Java/GSON native implementations are only 15-20% slower
|
|
164
|
+
than Blaze C++, which given the intrinsic language capabilities is quite honorable.
|
|
164
165
|
|
|
165
166
|
## More Information
|
|
166
167
|
|
|
@@ -172,7 +173,7 @@ and links to [research papers](PAPERS.md) for explanations about the design.
|
|
|
172
173
|
## JSON Model Distribution
|
|
173
174
|
|
|
174
175
|
- [PYPI Package](https://pypi.org/project/json-model-compiler/)
|
|
175
|
-
- [
|
|
176
|
+
- [Container Image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc)
|
|
176
177
|
- [JS Runtime](https://www.npmjs.com/package/json_model_runtime)
|
|
177
178
|
- [Postgres Runtime](https://pgxn.org/dist/json_model/)
|
|
178
179
|
- [Perl Runtime](https://metacpan.org/pod/JSON::JsonModel)
|
|
@@ -44,7 +44,7 @@ each language ecosystem:
|
|
|
44
44
|
|
|
45
45
|
Ready to use JSON Model compiler and runtime for a Python environment, from _PyPI_.
|
|
46
46
|
|
|
47
|
-
- [JSON Model Compiler
|
|
47
|
+
- [JSON Model Compiler Container Image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc)
|
|
48
48
|
|
|
49
49
|
Ready to use JSON Model compiler and runtimes (Python, C, JavaScript, Perl, Java)
|
|
50
50
|
as a Docker image, from _Docker Hub_.
|
|
@@ -12,7 +12,7 @@ It is dedicated to the _Public Domain_.
|
|
|
12
12
|
|
|
13
13
|
JSON Model optimizing compiler (`jmc`) can be installed as a
|
|
14
14
|
[Python package](https://pypi.org/project/json-model-compiler/) or a
|
|
15
|
-
[
|
|
15
|
+
[Container image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc), see
|
|
16
16
|
[Installation HOWTO](HOWTO.md#installing-json-model-compiler).
|
|
17
17
|
|
|
18
18
|
Command `jmc` options include:
|
|
@@ -125,10 +125,12 @@ print("reasons:", reasons)
|
|
|
125
125
|
|
|
126
126
|
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
|
-
[Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) using test cases
|
|
129
|
-
[JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
130
|
-
Overall, JMC
|
|
131
|
-
|
|
128
|
+
[Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
|
|
129
|
+
from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
130
|
+
Overall, JMC-C implementation fares over 75% faster than Blaze C++.
|
|
131
|
+
It comes ahead over 80% of the time on the latest benchmarks tests.
|
|
132
|
+
Moreover, JMC-JS and JMC-Java/GSON native implementations are only 15-20% slower
|
|
133
|
+
than Blaze C++, which given the intrinsic language capabilities is quite honorable.
|
|
132
134
|
|
|
133
135
|
## More Information
|
|
134
136
|
|
|
@@ -140,7 +142,7 @@ and links to [research papers](PAPERS.md) for explanations about the design.
|
|
|
140
142
|
## JSON Model Distribution
|
|
141
143
|
|
|
142
144
|
- [PYPI Package](https://pypi.org/project/json-model-compiler/)
|
|
143
|
-
- [
|
|
145
|
+
- [Container Image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc)
|
|
144
146
|
- [JS Runtime](https://www.npmjs.com/package/json_model_runtime)
|
|
145
147
|
- [Postgres Runtime](https://pgxn.org/dist/json_model/)
|
|
146
148
|
- [Perl Runtime](https://metacpan.org/pod/JSON::JsonModel)
|
|
@@ -103,9 +103,9 @@ for all possible values for that type.
|
|
|
103
103
|
environment, other variant may be used which should support at least the RE2 subset.
|
|
104
104
|
For portability, models should only rely on regex features available in the RE2 subset.
|
|
105
105
|
|
|
106
|
-
- JSON Model regular expressions are extended with option `X` (capital letter x)
|
|
107
|
-
_references_ to string models with the following syntax: `($name:regex)`, where the
|
|
108
|
-
expression after the `:` must match the named string model.
|
|
106
|
+
- **EXPERIMENTAL** JSON Model regular expressions are extended with option `X` (capital letter x)
|
|
107
|
+
to allow _references_ to string models with the following syntax: `($name:regex)`, where the
|
|
108
|
+
regular expression after the `:` must match the named string model.
|
|
109
109
|
Syntax `($name)` is a shortcut for `($name:.*)`.
|
|
110
110
|
|
|
111
111
|
- **Predefined Models**
|
|
@@ -139,7 +139,7 @@ for all possible values for that type.
|
|
|
139
139
|
- `"$EMAIL"`: an email address, eg _susie@json-model.org_.
|
|
140
140
|
- `"$JSON"`: a valid JSON value, eg _123_ or _{"Susie": "Derkins"}_.
|
|
141
141
|
- `"$REGEX"`: a valid regular expression, eg _^[a-z]+$_.
|
|
142
|
-
- `"$EXREG"`: an extended regular expression.
|
|
142
|
+
- `"$EXREG"`: an extended regular expression (**EXPERIMENTAL**).
|
|
143
143
|
|
|
144
144
|
Any other all-capital ASCII character and digit names must be rejected as they
|
|
145
145
|
are reserved for possible future predefs (eg URN, Luhn, ISBN, ISSN, EAN, DOI…).
|
|
@@ -447,7 +447,7 @@ A reference is a string which begins with the `$` character.
|
|
|
447
447
|
|
|
448
448
|
Implementation should detect external reference cycles which are errors and should be rejected.
|
|
449
449
|
|
|
450
|
-
## (
|
|
450
|
+
## (EXPERIMENTAL) Model Transformations
|
|
451
451
|
|
|
452
452
|
Symbol `%` at the root of the model defines a model transformation object, which
|
|
453
453
|
may include symbol renamings, model importations and model editions.
|
|
@@ -28,26 +28,27 @@ To simplify handling these dependencies, we provide an Ubuntu-based **Docker ima
|
|
|
28
28
|
**Python venv** (following subsection) and possibly additional system packages when needed.
|
|
29
29
|
|
|
30
30
|
Both environments work for most of the tutorial sections below, so feel free to choose whichever
|
|
31
|
-
seems more familiar. The
|
|
31
|
+
seems more familiar. The container image include the necessary environment run directly generated
|
|
32
32
|
C, Python, JS, Perl and Java codes, which explains its size.
|
|
33
33
|
Running the PL/pgSQL code requires a working Postgres server, which is _not_ discussed here.
|
|
34
34
|
|
|
35
35
|
### First Installation Option: Docker Image
|
|
36
36
|
|
|
37
|
-
For the wary user, download and start the `zx80/jmc`
|
|
38
|
-
desktop client or from a terminal:
|
|
37
|
+
For the wary user, download and start the `docker.io/zx80/jmc` container image,
|
|
38
|
+
from your desktop client or from a terminal (`$POD` is either `docker` or `podman`):
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
|
|
41
|
+
$POD pull docker.io/zx80/jmc:latest
|
|
42
42
|
# for linux, consider adding: --user $(id -u):$(id -g)
|
|
43
|
-
|
|
43
|
+
$POD run --name awesome_jmc -v .:/app/workspace --rm -it --entrypoint /bin/bash docker.io/zx80/jmc
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
This should give your a shell prompt open in the current directory with your own permissions.
|
|
47
|
-
Check that the `jmc` command is available and works
|
|
47
|
+
Check that the `jmc` command is available and works, use environment variable `POD` to set
|
|
48
|
+
your container command (`docker` by default, `podman` should work as well):
|
|
48
49
|
|
|
49
50
|
```sh
|
|
50
|
-
# inside the
|
|
51
|
+
# inside the container shell
|
|
51
52
|
jmc --version # show version
|
|
52
53
|
jmc --man # show manual page
|
|
53
54
|
```
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#! /bin/bash
|
|
2
2
|
#
|
|
3
|
-
# Generate a markdown report about the compiler
|
|
3
|
+
# Generate a markdown report about the compiler sources
|
|
4
4
|
#
|
|
5
5
|
|
|
6
6
|
version=$(jmc --version)
|
|
7
|
+
branch=$(git rev-parse --abbrev-ref HEAD)
|
|
7
8
|
githash=$(git show --pretty=format:"%h" --no-patch)
|
|
8
9
|
|
|
9
10
|
cat <<EOF
|
|
@@ -11,8 +12,8 @@ cat <<EOF
|
|
|
11
12
|
|
|
12
13
|
JSON Model is an on-going [research project](PUBS.md).
|
|
13
14
|
|
|
14
|
-
The following statistics for version **$version** (
|
|
15
|
-
code generator and runtimes are quite small, but still heavily tested
|
|
15
|
+
The following statistics for version **$version** (\`$branch\` \`$githash\`) show that the compiler,
|
|
16
|
+
code generator and runtimes are quite small, but still heavily tested.
|
|
16
17
|
|
|
17
18
|
## Compiler Source Code
|
|
18
19
|
|
|
@@ -109,11 +110,15 @@ cloc --md \
|
|
|
109
110
|
json_model/runtime \
|
|
110
111
|
| sed -n -e '/SUM/s/\([0-9][0-9]*\)/**\1**/g;s/SUM:/**Total**/;/^$/,$p' | grep -v '^-[-|]*$'
|
|
111
112
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
n_models=$(ls tests/[mrb]*/*.model.json | wc -l)
|
|
114
|
+
n_values=$(cat tests/[mrb]*/*.values.json | egrep '(true|false)' | wc -l)
|
|
115
|
+
n_value_files=$(ls tests/[mrb]*/*.values.json | wc -l)
|
|
116
|
+
n_schemas=$(echo tests/[mrb]*/*.schema.json | wc -w)
|
|
117
|
+
n_test_schemas=$(grep '^ "schema": {' tests/JSON-Schema-Test-Suite/tests/*/*.json | wc -l)
|
|
118
|
+
n_test_files=$(ls tests/JSON-Schema-Test-Suite/tests/*/*.json | wc -l)
|
|
119
|
+
model_locs=$(cat tests/[mrb]*/*.model.json | wc -l)
|
|
120
|
+
|
|
121
|
+
all_values=$(( $n_values + $n_models + $n_value_files + $n_schemas + $n_test_schemas + $n_test_files ))
|
|
117
122
|
|
|
118
123
|
cat <<EOF
|
|
119
124
|
|
|
@@ -125,8 +130,8 @@ Test models cover the various features of JSON Model.
|
|
|
125
130
|
Each model is tested for each target language (Python, C, JavaScript, PL/pgSQL, Perl, Java)
|
|
126
131
|
on a set of test vectors.
|
|
127
132
|
|
|
128
|
-
- number of JSON models: $
|
|
129
|
-
- total JSON model locs: $
|
|
130
|
-
- number of test vector JSON values: $
|
|
131
|
-
- all tested JSON values (including models and
|
|
133
|
+
- number of JSON models: _${n_models}_
|
|
134
|
+
- total JSON model locs: _${model_locs}_
|
|
135
|
+
- number of test vector JSON values: _${n_values}_
|
|
136
|
+
- all tested JSON values (including models, generated schemas and test suite schemas): _${all_values}_
|
|
132
137
|
EOF
|