json-model-compiler 2.0b38__tar.gz → 2.0b40__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. {json_model_compiler-2.0b38/site → json_model_compiler-2.0b40}/BACKLOG.md +13 -8
  2. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/BENCH.md +2 -0
  3. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/Makefile +2 -0
  4. {json_model_compiler-2.0b38/json_model_compiler.egg-info → json_model_compiler-2.0b40}/PKG-INFO +1 -1
  5. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/container/Makefile +1 -1
  6. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/irep.py +52 -2
  7. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/c/main.c +44 -4
  8. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/Main.java +4 -2
  9. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/pom.xml +1 -1
  10. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/utils.py +1 -0
  11. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/xstatic.py +57 -2
  12. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40/json_model_compiler.egg-info}/PKG-INFO +1 -1
  13. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model_compiler.egg-info/SOURCES.txt +7 -1
  14. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/pyproject.toml +1 -1
  15. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40/site}/BACKLOG.md +13 -8
  16. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/BENCH.md +2 -0
  17. json_model_compiler-2.0b40/site/benchmarks/2026030901.csv +171 -0
  18. json_model_compiler-2.0b40/site/benchmarks/2026030901.json +296 -0
  19. json_model_compiler-2.0b40/site/benchmarks/2026030901.md +216 -0
  20. json_model_compiler-2.0b40/site/benchmarks/2026031000.csv +171 -0
  21. json_model_compiler-2.0b40/site/benchmarks/2026031000.json +296 -0
  22. json_model_compiler-2.0b40/site/benchmarks/2026031000.md +216 -0
  23. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/.gitignore +0 -0
  24. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/.gitmodules +0 -0
  25. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/API.md +0 -0
  26. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/DESIGN.md +0 -0
  27. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/DEV.md +0 -0
  28. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/DOC.md +0 -0
  29. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/HOWTO.md +0 -0
  30. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/INTEGRATION.md +0 -0
  31. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/MANIFEST.in +0 -0
  32. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/PUBS.md +0 -0
  33. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/README.md +0 -0
  34. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/SPEC.md +0 -0
  35. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/TUTO.md +0 -0
  36. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/about.sh +0 -0
  37. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/container/.dockerignore +0 -0
  38. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/container/.gitignore +0 -0
  39. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/container/Containerfile +0 -0
  40. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/container/README.md +0 -0
  41. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/container/jmc +0 -0
  42. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/README.md +0 -0
  43. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/__init__.py +0 -0
  44. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/analyze.py +0 -0
  45. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/clang.py +0 -0
  46. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/convert.py +0 -0
  47. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/clang_entry.c +0 -0
  48. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/clang_free.c +0 -0
  49. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/clang_init.c +0 -0
  50. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/clang_pcre2_fun.c +0 -0
  51. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/clang_re2_fun.c +0 -0
  52. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/java_free.java +0 -0
  53. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/java_init.java +0 -0
  54. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/javascript_exe.js +0 -0
  55. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/javascript_foot.js +0 -0
  56. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/javascript_free.js +0 -0
  57. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/javascript_head.js +0 -0
  58. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/javascript_init.js +0 -0
  59. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/javascript_main.js +0 -0
  60. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/jmc.pod +0 -0
  61. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/perl_entry.pl +0 -0
  62. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/perl_exe.pl +0 -0
  63. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/perl_free.pl +0 -0
  64. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/perl_init.pl +0 -0
  65. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/perl_main.pl +0 -0
  66. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/perl_pkg.pl +0 -0
  67. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/plpgsql_entry.sql +0 -0
  68. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/python_entry.py +0 -0
  69. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/python_exe.py +0 -0
  70. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/python_free.py +0 -0
  71. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/python_init.py +0 -0
  72. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/data/python_main.py +0 -0
  73. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/export.py +0 -0
  74. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/java.py +0 -0
  75. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/javascript.py +0 -0
  76. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/language.py +0 -0
  77. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/model.py +0 -0
  78. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/mtypes.py +0 -0
  79. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/objmerge.py +0 -0
  80. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/optim.py +0 -0
  81. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/perl.py +0 -0
  82. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/plpgsql.py +0 -0
  83. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/python.py +0 -0
  84. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/recurse.py +0 -0
  85. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/resolver.py +0 -0
  86. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/Makefile +0 -0
  87. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/__init__.py +0 -0
  88. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/c/Makefile +0 -0
  89. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/c/json-model.c +0 -0
  90. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/c/json-model.h +0 -0
  91. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/.gitignore +0 -0
  92. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/Makefile +0 -0
  93. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/README.md +0 -0
  94. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/env.bash +0 -0
  95. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/Checker.java +0 -0
  96. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/GSON.java +0 -0
  97. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/JSON.java +0 -0
  98. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/JSONP.java +0 -0
  99. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/Jackson.java +0 -0
  100. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  101. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/Path.java +0 -0
  102. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/Report.java +0 -0
  103. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/java/json_model/Runtime.java +0 -0
  104. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/js/README.md +0 -0
  105. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/js/index.js +0 -0
  106. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/js/main.js +0 -0
  107. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/js/package.json +0 -0
  108. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/.gitignore +0 -0
  109. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/Changes +0 -0
  110. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/LICENSE +0 -0
  111. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/MANIFEST +0 -0
  112. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/Makefile.PL +0 -0
  113. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/README +0 -0
  114. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/env.bash +0 -0
  115. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/ignore.txt +0 -0
  116. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/lib/JSON/JsonModel.pm +0 -0
  117. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/t/00-load.t +0 -0
  118. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/t/manifest.t +0 -0
  119. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  120. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/t/pod.t +0 -0
  121. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  122. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/sql/META.json +0 -0
  123. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/sql/Makefile +0 -0
  124. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/sql/json_model--2.0.sql +0 -0
  125. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/sql/json_model.control +0 -0
  126. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/support.py +0 -0
  127. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/runtime/types.py +0 -0
  128. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/script.py +0 -0
  129. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model/url_cache.py +0 -0
  130. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  131. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model_compiler.egg-info/entry_points.txt +0 -0
  132. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model_compiler.egg-info/requires.txt +0 -0
  133. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/json_model_compiler.egg-info/top_level.txt +0 -0
  134. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/ansiblelint-meta.model.json +0 -0
  135. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/cypress.model.json +0 -0
  136. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/diploma-arrete.model.json +0 -0
  137. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/diploma-export.model.json +0 -0
  138. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/everything.model.json +0 -0
  139. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/fresq.model.json +0 -0
  140. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/geo-easy.model.json +0 -0
  141. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/geo.model.json +0 -0
  142. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/jmc-ir.model.json +0 -0
  143. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-model-latest.model.json +0 -0
  144. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-model-moschin.model.json +0 -0
  145. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-model-no-merge.model.json +0 -0
  146. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-model-v1.model.json +0 -0
  147. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-model-v2-en.model.json +0 -0
  148. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-model-v2.model.json +0 -0
  149. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-model.model.json +0 -0
  150. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-01-fuzzy.model.json +0 -0
  151. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-01-nesting.model.json +0 -0
  152. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-01.model.json +0 -0
  153. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-02-fuzzy.model.json +0 -0
  154. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-02-nesting.model.json +0 -0
  155. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-02.model.json +0 -0
  156. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-03-fuzzy.model.json +0 -0
  157. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-03-nesting.model.json +0 -0
  158. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-03.model.json +0 -0
  159. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-04-fuzzy.model.json +0 -0
  160. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-04-mongodb.model.json +0 -0
  161. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-04-nesting.model.json +0 -0
  162. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-04.model.json +0 -0
  163. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-06-fuzzy.model.json +0 -0
  164. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-06.model.json +0 -0
  165. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-07-fuzzy.model.json +0 -0
  166. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-07.model.json +0 -0
  167. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
  168. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-2019-09.model.json +0 -0
  169. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
  170. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-2020-12-tight.model.json +0 -0
  171. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-2020-12.model.json +0 -0
  172. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-next-fuzzy.model.json +0 -0
  173. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-next.model.json +0 -0
  174. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-tight.model.json +0 -0
  175. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-tighter-loose.model.json +0 -0
  176. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-draft-tighter.model.json +0 -0
  177. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/json-schema-linter.model.json +0 -0
  178. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/jsound.model.json +0 -0
  179. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/l10n.model.json +0 -0
  180. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/lazygit.model.json +0 -0
  181. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/openapi-311-fuzzy.model.json +0 -0
  182. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/openapi-311-models.model.json +0 -0
  183. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/openapi-311.model.json +0 -0
  184. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/person.model.json +0 -0
  185. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/person2.model.json +0 -0
  186. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/pgxn.model.json +0 -0
  187. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/models/test-schema.model.json +0 -0
  188. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/package.json +0 -0
  189. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/setup.cfg +0 -0
  190. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/API.md +0 -0
  191. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/DEV.md +0 -0
  192. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/DOC.md +0 -0
  193. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/HOWTO.md +0 -0
  194. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/PUBS.md +0 -0
  195. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/README.md +0 -0
  196. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/SPEC.md +0 -0
  197. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/TUTO.md +0 -0
  198. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026010600.csv +0 -0
  199. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026010600.json +0 -0
  200. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026010600.md +0 -0
  201. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026010900.csv +0 -0
  202. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026010900.json +0 -0
  203. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026010900.md +0 -0
  204. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026011500.csv +0 -0
  205. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026011500.json +0 -0
  206. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026011500.md +0 -0
  207. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012000.csv +0 -0
  208. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012000.json +0 -0
  209. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012000.md +0 -0
  210. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012200.csv +0 -0
  211. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012200.json +0 -0
  212. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012200.md +0 -0
  213. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012400.csv +0 -0
  214. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012400.json +0 -0
  215. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012400.md +0 -0
  216. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012700.csv +0 -0
  217. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012700.json +0 -0
  218. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026012700.md +0 -0
  219. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026020500.csv +0 -0
  220. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026020500.json +0 -0
  221. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026020500.md +0 -0
  222. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026020600.csv +0 -0
  223. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026020600.json +0 -0
  224. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026020600.md +0 -0
  225. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021000.csv +0 -0
  226. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021000.json +0 -0
  227. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021000.md +0 -0
  228. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021300.csv +0 -0
  229. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021300.json +0 -0
  230. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021300.md +0 -0
  231. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021700.csv +0 -0
  232. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021700.json +0 -0
  233. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021700.md +0 -0
  234. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021701.csv +0 -0
  235. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021701.json +0 -0
  236. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021701.md +0 -0
  237. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021702.csv +0 -0
  238. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021702.json +0 -0
  239. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021702.md +0 -0
  240. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021900.csv +0 -0
  241. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021900.json +0 -0
  242. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026021900.md +0 -0
  243. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026022000.csv +0 -0
  244. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026022000.json +0 -0
  245. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026022000.md +0 -0
  246. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026022400.csv +0 -0
  247. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026022400.json +0 -0
  248. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026022400.md +0 -0
  249. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026030700.csv +0 -0
  250. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026030700.json +0 -0
  251. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026030700.md +0 -0
  252. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026030703.csv +0 -0
  253. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026030703.json +0 -0
  254. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/benchmarks/2026030703.md +0 -0
  255. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/cover.md +0 -0
  256. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/favicon.ico +0 -0
  257. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/index.html +0 -0
  258. {json_model_compiler-2.0b38 → json_model_compiler-2.0b40}/site/json_logo.svg +0 -0
@@ -2,20 +2,15 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
- - [x] pr: publish python jmc package
6
- - [x] static: add support for `.in` with constraints
7
- - [x] optim: fix constraint simplification mixup
8
- - [x] tests: add _stats_ target
9
- - [x] perf: add missing warmup to C runtime for jsonschema benchmark
10
- - [x] perl-backend: be resilient on missing RE2 module
5
+ - [x] c-backend: use monotonic instead of realtime clock which has a better precision
6
+ - [x] java-backend: fix previously untested `--jsonschema-benchmark` implementation
11
7
  - [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
12
8
  - [ ] optim: recognize typed not: _"" ^ "xxx"_
9
+ - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
13
10
  - [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
14
11
  - [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
15
12
  - [ ] doc: add _known limitations_ stuff
16
- - [ ] optim: implement stupid any type but one constrained optimization (jsu)
17
13
  - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
18
- - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
19
14
  - [ ] test: add test categories (mark?)
20
15
  - [ ] doc: improve developer documentation
21
16
  - [ ] test: allow to skip some tests by category
@@ -787,3 +782,13 @@
787
782
  - [x] optim: arbitrary guard against infinite loops
788
783
  - [x] ir: fix stupid bug in ir opts
789
784
  - [x] tests: rerun with updated JSTS before release
785
+ - [x] pr: publish python jmc package
786
+ - [x] static: add support for `.in` with constraints
787
+ - [x] optim: fix constraint simplification mixup
788
+ - [x] tests: add _stats_ target
789
+ - [x] perf: add missing warmup to C runtime for jsonschema benchmark
790
+ - [x] perl-backend: be resilient on missing RE2 module
791
+ - [x] optim: implement any type but one constrained optimization (jsu)
792
+ - [x] ir: fix bad elimination when bool var was used
793
+ - [x] ir: add bool var assign elimination on return with only one use
794
+ - [x] c-backend: fix long option parsing
@@ -9,6 +9,8 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
9
9
 
10
10
  ## Recent Artifacts
11
11
 
12
+ - [2026031000](benchmarks/2026031000.md) clang, no predefs, jsu 0.9.1/jmc 2.0b39 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
+ - [2026030901](benchmarks/2026030901.md) clang, no predefs, jsu 0.9.1/jmc 2.0b38 vs sbc 14.14.2, 11 runs, 1000 iterations.
12
14
  - [2026030703](benchmarks/2026030703.md) clang, no predefs, jmc 2.0b37 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
15
  - [2026030700](benchmarks/2026030700.md) clang, no predefs, jmc 2.0b37 vs sbc 14.13.4, 5 runs, 1000 iterations.
14
16
  - [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.4, 11 runs, 1000 iterations.
@@ -15,6 +15,8 @@ venv:
15
15
 
16
16
  .PHONY: dev
17
17
  dev: venv
18
+ npm install
19
+ $(MAKE) -C json_model/runtime/java jar
18
20
 
19
21
  .PHONY: clean
20
22
  clean: clean.site
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b38
3
+ Version: 2.0b40
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -79,7 +79,7 @@ pod.tag: .build
79
79
  export POD=$(POD)
80
80
  $(POD) tag jmc $(ZX80)/jmc:$(TAG)
81
81
  $(POD) tag jmc $(ZX80)/jmc:$(BRANCH)
82
- [ "$(TAG)" != "latest" ] && $(POD) tag jmc $(ZX80)/jmc:$$(JMC=$(BRANCH) ./jmc --version)
82
+ $(POD) tag jmc $(ZX80)/jmc:$$(JMC=$(BRANCH) ./jmc --version)
83
83
 
84
84
  .PHONY: pod.push
85
85
  pod.push: pod.tag
@@ -312,6 +312,39 @@ def invertBool(op: Jsonable) -> Jsonable:
312
312
  else:
313
313
  return {"o": "not", "e": op}
314
314
 
315
+ def bvar_uses(op: Jsonable, var: str) -> int:
316
+ """Count boolean variable occurrences in boolean expression."""
317
+ if isinstance(op, str):
318
+ return 1 if op == var else 0
319
+ elif isinstance(op, dict) and "o" in op:
320
+ match op["o"]:
321
+ case "|"|"&":
322
+ return sum(map(lambda e: bvar_is_used(e, var), op["exprs"]))
323
+ case "not"|"()":
324
+ return bvar_is_used(op["e"], var)
325
+ case _: # is this safe?
326
+ return 0
327
+ else: # safe, probably dead code
328
+ return 0
329
+
330
+ def bvar_subs(op: Jsonable, var: str, val: Jsonable) -> Jsonable:
331
+ """Replace boolean variable reference by value in boolean expression."""
332
+ if isinstance(op, str): # maybe actual substitition
333
+ return val if op == var else op
334
+ elif isinstance(op, dict) and "o" in op:
335
+ match op["o"]:
336
+ case "|"|"&":
337
+ op["exprs"] = [ bvar_subs(e, var, val) for e in op["exprs"] ]
338
+ case "not"|"()":
339
+ op["e"] = bvar_subs(op["e"], var, val)
340
+ case _: # no propagation out of boolean expression
341
+ pass
342
+ return op
343
+
344
+ def bvar_is_used(op: Jsonable, var: str) -> bool:
345
+ """Whether boolean variable is used in boolean expression."""
346
+ return bvar_uses(op, var) != 0
347
+
315
348
  # FIXME full simplification should require several passes
316
349
  def _optimSeq(seq: Sequence, bool_vars: set[str], reporting: bool) -> Effect:
317
350
  """Optimize instruction sequence if/then patterns on boolean variables in place."""
@@ -539,13 +572,13 @@ def _optimSeq(seq: Sequence, bool_vars: set[str], reporting: bool) -> Effect:
539
572
  # reset previous if return
540
573
  ifop = None
541
574
 
542
- # simplify X = E1; X = E2;
575
+ # simplify X = E1; X = E2 (no X!);
543
576
  assign: Jsonable|None = None
544
577
  for op in seq:
545
578
  if _noOp(op, False):
546
579
  pass
547
580
  elif _isOp(op, "bv"):
548
- if assign and assign["var"] == op["var"]:
581
+ if assign and assign["var"] == op["var"] and not bvar_is_used(op["val"], op["var"]):
549
582
  op["declare"] = assign["declare"]
550
583
  assign.clear()
551
584
  assign.update(o="ign")
@@ -559,6 +592,7 @@ def _optimSeq(seq: Sequence, bool_vars: set[str], reporting: bool) -> Effect:
559
592
  if _noOp(op, reporting):
560
593
  pass
561
594
  elif _isOp(op, "bv") and op["val"] is None:
595
+ assert op["declare"]
562
596
  decl = op
563
597
  elif _isOp(op, "ret") and decl is not None:
564
598
  decl.clear()
@@ -652,6 +686,7 @@ def _optimSeq(seq: Sequence, bool_vars: set[str], reporting: bool) -> Effect:
652
686
  # simplify "V = E; ret V;" to "ret E;"
653
687
  prev: Jsonable|None = None
654
688
  for op in seq:
689
+ # FIXME reporting?
655
690
  if _noOp(op, False):
656
691
  pass
657
692
  elif _isOp(op, "bv") and op["val"] is not None:
@@ -664,6 +699,21 @@ def _optimSeq(seq: Sequence, bool_vars: set[str], reporting: bool) -> Effect:
664
699
  else:
665
700
  prev = None
666
701
 
702
+ # simplify "V = E; ret f(V where V appears once)" to "ret f(E)"
703
+ val: Jsonable|None = None
704
+ for op in seq:
705
+ if _noOp(op, reporting):
706
+ pass
707
+ elif _isOp(op, "bv") and op["val"] is not None:
708
+ val = op
709
+ elif val is not None and _isOp(op, "ret") and bvar_uses(op["res"], val["var"]) == 1:
710
+ op["res"] = bvar_subs(op["res"], val["var"], val["val"])
711
+ val.clear()
712
+ val.update({"o": "ign", "#": "IRO subs boolean var in return"})
713
+ val = None
714
+ else:
715
+ val = None
716
+
667
717
  # remove nopes (unless alone)
668
718
  rm, nco = [], 0
669
719
  for i, op in enumerate(seq):
@@ -9,6 +9,8 @@
9
9
 
10
10
  #include <json-model.h>
11
11
 
12
+ #define str_eq(s1, s2) (strcmp(s1, s2) == 0)
13
+
12
14
  typedef enum {
13
15
  expect_nothing,
14
16
  expect_anything,
@@ -16,11 +18,14 @@ typedef enum {
16
18
  expect_pass
17
19
  } process_mode_t;
18
20
 
19
- // return realtime µs
21
+ // NOTE CLOCK_REALTIME resolution seems low at 0.250 µs
22
+ static clockid_t current_clock = CLOCK_MONOTONIC;
23
+
24
+ // return realtime(?) µs
20
25
  static INLINE double now(void)
21
26
  {
22
27
  struct timespec ts;
23
- if (unlikely(clock_gettime(CLOCK_REALTIME, &ts)))
28
+ if (unlikely(clock_gettime(current_clock, &ts)))
24
29
  {
25
30
  fprintf(stderr, "cannot get time (%d): %s\n", errno, strerror(errno));
26
31
  exit(2);
@@ -28,6 +33,18 @@ static INLINE double now(void)
28
33
  return 1000000.0 * ts.tv_sec + 0.001 * ts.tv_nsec;
29
34
  }
30
35
 
36
+ // return clock resolution in µs (may be probably optimistic)
37
+ static double getres(void)
38
+ {
39
+ struct timespec ts;
40
+ if (unlikely(clock_getres(current_clock, &ts)))
41
+ {
42
+ fprintf(stderr, "cannot get clock resolution (%d): %s\n", errno, strerror(errno));
43
+ exit(2);
44
+ }
45
+ return 1000000.0 * ts.tv_sec + 0.001 * ts.tv_nsec;
46
+ }
47
+
31
48
  // small computation to avoid compiler optimizations that could remove empty loops
32
49
  #define NEXT_STUFF(v, pi) v = frexp(3.141592653589793 * v + 2.718281828459045, pi)
33
50
 
@@ -291,10 +308,12 @@ int main(int argc, char* argv[])
291
308
  { "slow", no_argument, NULL, 1001 },
292
309
  { "jsonschema-benchmark", no_argument, NULL, 1002 },
293
310
  { "no-report", no_argument, NULL, 1003 },
311
+ { "resolution", no_argument, NULL, 1004 },
312
+ { "clock", required_argument, NULL, 'C' },
294
313
  { NULL, 0, NULL, 0 }
295
314
  };
296
315
 
297
- while ((opt = getopt_long(argc, argv, "hvln:rtT:", options, &optind)) != -1)
316
+ while ((opt = getopt_long(argc, argv, "hvln:rtT:C:", options, NULL)) != -1)
298
317
  {
299
318
  switch (opt) {
300
319
  case 'h': // FIXME expand help!
@@ -343,6 +362,27 @@ int main(int argc, char* argv[])
343
362
  case 1003:
344
363
  report = false;
345
364
  break;
365
+ case 1004:
366
+ fprintf(stderr, "clock resolution: %.03f µs\n", getres());
367
+ break;
368
+ case 'C':
369
+ if (str_eq(optarg, "monotonic") || str_eq(optarg, "m"))
370
+ current_clock = CLOCK_MONOTONIC;
371
+ else if (str_eq(optarg, "realtime") || str_eq(optarg, "r"))
372
+ current_clock = CLOCK_REALTIME;
373
+ #ifdef CLOCK_PROCESS_CPUTIME_ID
374
+ else if (str_eq(optarg, "process") || str_eq(optarg, "p"))
375
+ current_clock = CLOCK_PROCESS_CPUTIME_ID;
376
+ #endif
377
+ #ifdef CLOCK_THREAD_CPUTIME_ID
378
+ else if (str_eq(optarg, "thread") || str_eq(optarg, "t"))
379
+ current_clock = CLOCK_THREAD_CPUTIME_ID;
380
+ #endif
381
+ else {
382
+ fprintf(stderr, "unexpected clock %s for [mrpt]\n", optarg);
383
+ return 1;
384
+ }
385
+ break;
346
386
  case '?':
347
387
  default:
348
388
  fprintf(stdout, "unexpected option encountered\n");
@@ -386,7 +426,7 @@ int main(int argc, char* argv[])
386
426
  {
387
427
  int exponent;
388
428
  double v = frexp(loop / 13.0, &exponent);
389
- int count = 100;
429
+ int count = 1000;
390
430
  while (count)
391
431
  {
392
432
  double e = overhead_estimation(loop, &v);
@@ -47,7 +47,7 @@ public class Main
47
47
  // cold run
48
48
  long cold_start = System.nanoTime();
49
49
  for (Object value: values)
50
- if (check.call(value))
50
+ if (!check.call(value))
51
51
  errors++;
52
52
  double cold_run = 0.001 * (System.nanoTime() - cold_start);
53
53
 
@@ -60,7 +60,7 @@ public class Main
60
60
 
61
61
  // measure
62
62
  double sum = 0.0, sum2 = 0.0;
63
- for (int n = time; n > 0; time--)
63
+ for (int n = time; n > 0; n--)
64
64
  {
65
65
  long start = System.nanoTime();
66
66
  for (Object value: values)
@@ -231,6 +231,8 @@ public class Main
231
231
  break;
232
232
  case 1002: // --jsonschema-benchmark
233
233
  jsbench = true;
234
+ jsonl = true;
235
+ if (time <= 0) time = 1;
234
236
  break;
235
237
  case 1003: // --no-report
236
238
  report = false;
@@ -3,7 +3,7 @@
3
3
 
4
4
  <groupId>org.json-model</groupId>
5
5
  <artifactId>json-model</artifactId>
6
- <version>2.0b37</version>
6
+ <version>2.0b40</version>
7
7
  <packaging>jar</packaging>
8
8
 
9
9
  <name>JSON Model Java Runtime</name>
@@ -790,6 +790,7 @@ def load_data_file(fn: str) -> str:
790
790
  return data_files("json_model.data").joinpath(fn).read_text()
791
791
 
792
792
  def hasher(s: str, size: int, byte_order: str = "le") -> int:
793
+ """Compute string prefix hash as 4 bytes int."""
793
794
  assert 1 <= size <= 4 and byte_order in ("le", "be")
794
795
  h = 0
795
796
  if s:
@@ -5,8 +5,9 @@ import json
5
5
 
6
6
  from .mtypes import ModelType, ModelArray, ModelObject, ModelError, ModelPath, Symbols
7
7
  from .mtypes import Jsonable, Number, JsonScalar
8
- from .utils import split_object, model_in_models, all_model_type, constant_value, is_a_simple_object
9
- from .utils import log, tname, MODEL_PREDEFS, partition
8
+ from .utils import split_object, model_in_models, all_model_type, constant_value
9
+ from .utils import is_a_simple_object, partition, is_base_model, resolve_model, model_type
10
+ from .utils import log, tname, MODEL_PREDEFS
10
11
  from .runtime.support import _path as json_path
11
12
  from .analyze import ultimate_type, disjunct_analyse, distinct_prop_objects
12
13
  from .model import JsonModel
@@ -1174,6 +1175,27 @@ class CodeGenerator:
1174
1175
 
1175
1176
  return code
1176
1177
 
1178
+ def _checkAllButOne(self, jm: JsonModel, models: ModelArray, mpath: ModelPath) -> \
1179
+ tuple[ModelType, type, int] | None:
1180
+ """List of all basic types but one with something else."""
1181
+ if len(models) != 7:
1182
+ return None
1183
+ bmodels = list(map(is_base_model, models))
1184
+ if len(set(bmodels)) != 7 or None not in bmodels:
1185
+ return None
1186
+ im = bmodels.index(None) # which model is non trivial?
1187
+ model = models[im]
1188
+ # the resolved model is _just_ for type resolution, it may have skipped constraints
1189
+ resolved = resolve_model(model, jm, mpath + [im])
1190
+ typed, mtype = model_type(resolved, mpath + [im])
1191
+ if not typed:
1192
+ return None
1193
+ # WARN bmodels contains type(None) for None…
1194
+ if mtype is None and type(None) in bmodels or mtype in bmodels:
1195
+ return None
1196
+ # ok!
1197
+ return model, mtype, im
1198
+
1177
1199
  def _compileOr(self, jm: JsonModel, models: ModelArray, mpath: ModelPath,
1178
1200
  res: str, val: str, vpath: str, known: set[BoolExpr]|None = None) -> Block:
1179
1201
  """Compile a general or-list of models."""
@@ -1228,6 +1250,39 @@ class CodeGenerator:
1228
1250
  return code
1229
1251
  need_if = True
1230
1252
 
1253
+ # all types but one
1254
+ all_but_one = self._checkAllButOne(jm, models, mpath)
1255
+ if all_but_one:
1256
+ # res = type(val) is mtype
1257
+ # if res:
1258
+ # res = ...
1259
+ # else:
1260
+ # res = True
1261
+ model, mtype, im = all_but_one
1262
+ tcode = []
1263
+
1264
+ type_test = gen.is_a(val, mtype)
1265
+ if type_test in known:
1266
+ # not need for testing the type if known, and no alternative branch
1267
+ else_code = []
1268
+ else:
1269
+ tcode += gen.bool_var(res, type_test)
1270
+ else_code = gen.bool_var(res, gen.const(True))
1271
+
1272
+ check_code = self._compileModel(
1273
+ jm, model, mpath + [im], res, val, vpath, known | {type_test}
1274
+ )
1275
+
1276
+ if else_code:
1277
+ tcode += gen.if_stmt(res, check_code, else_code, likely=True)
1278
+ else:
1279
+ tcode += check_code
1280
+
1281
+ if need_if:
1282
+ return code + gen.if_stmt(gen.not_op(res), tcode)
1283
+ else:
1284
+ return code + tcode
1285
+
1231
1286
  # discriminant optimization for list of objects, None if fails
1232
1287
  tmp: ModelType = {"|": models}
1233
1288
  if dcode := self._disjunction(jm, tmp, mpath, res, val, vpath, known):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b38
3
+ Version: 2.0b40
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -248,4 +248,10 @@ site/benchmarks/2026030700.json
248
248
  site/benchmarks/2026030700.md
249
249
  site/benchmarks/2026030703.csv
250
250
  site/benchmarks/2026030703.json
251
- site/benchmarks/2026030703.md
251
+ site/benchmarks/2026030703.md
252
+ site/benchmarks/2026030901.csv
253
+ site/benchmarks/2026030901.json
254
+ site/benchmarks/2026030901.md
255
+ site/benchmarks/2026031000.csv
256
+ site/benchmarks/2026031000.json
257
+ site/benchmarks/2026031000.md
@@ -20,7 +20,7 @@ readme = "README.md"
20
20
  requires-python = ">=3.12" # for "type"
21
21
  license = "CC0-1.0"
22
22
  classifiers = [ "Topic :: Software Development" ]
23
- version = "2.0b38"
23
+ version = "2.0b40"
24
24
  dependencies = [
25
25
  "requests", "google-re2", "pyyaml", "validators",
26
26
  # "JsonSchemaUtils@git+https://github.com/zx80/json-schema-utils"
@@ -2,20 +2,15 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
- - [x] pr: publish python jmc package
6
- - [x] static: add support for `.in` with constraints
7
- - [x] optim: fix constraint simplification mixup
8
- - [x] tests: add _stats_ target
9
- - [x] perf: add missing warmup to C runtime for jsonschema benchmark
10
- - [x] perl-backend: be resilient on missing RE2 module
5
+ - [x] c-backend: use monotonic instead of realtime clock which has a better precision
6
+ - [x] java-backend: fix previously untested `--jsonschema-benchmark` implementation
11
7
  - [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
12
8
  - [ ] optim: recognize typed not: _"" ^ "xxx"_
9
+ - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
13
10
  - [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
14
11
  - [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
15
12
  - [ ] doc: add _known limitations_ stuff
16
- - [ ] optim: implement stupid any type but one constrained optimization (jsu)
17
13
  - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
18
- - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
19
14
  - [ ] test: add test categories (mark?)
20
15
  - [ ] doc: improve developer documentation
21
16
  - [ ] test: allow to skip some tests by category
@@ -787,3 +782,13 @@
787
782
  - [x] optim: arbitrary guard against infinite loops
788
783
  - [x] ir: fix stupid bug in ir opts
789
784
  - [x] tests: rerun with updated JSTS before release
785
+ - [x] pr: publish python jmc package
786
+ - [x] static: add support for `.in` with constraints
787
+ - [x] optim: fix constraint simplification mixup
788
+ - [x] tests: add _stats_ target
789
+ - [x] perf: add missing warmup to C runtime for jsonschema benchmark
790
+ - [x] perl-backend: be resilient on missing RE2 module
791
+ - [x] optim: implement any type but one constrained optimization (jsu)
792
+ - [x] ir: fix bad elimination when bool var was used
793
+ - [x] ir: add bool var assign elimination on return with only one use
794
+ - [x] c-backend: fix long option parsing
@@ -9,6 +9,8 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
9
9
 
10
10
  ## Recent Artifacts
11
11
 
12
+ - [2026031000](benchmarks/2026031000.md) clang, no predefs, jsu 0.9.1/jmc 2.0b39 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
+ - [2026030901](benchmarks/2026030901.md) clang, no predefs, jsu 0.9.1/jmc 2.0b38 vs sbc 14.14.2, 11 runs, 1000 iterations.
12
14
  - [2026030703](benchmarks/2026030703.md) clang, no predefs, jmc 2.0b37 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
15
  - [2026030700](benchmarks/2026030700.md) clang, no predefs, jmc 2.0b37 vs sbc 14.13.4, 5 runs, 1000 iterations.
14
16
  - [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.4, 11 runs, 1000 iterations.
@@ -0,0 +1,171 @@
1
+
2
+ ## Tool Performance Summary
3
+
4
+ For each tool: number of best performance, number of case failures (if any), overall
5
+ validation speed in bytes per µs, maximum/geometrical average/minimum performance ratio.
6
+
7
+ <!-- LRRRRRRR -->
8
+ "best count",14,22,1,0,0,0,0
9
+ "broken count",0,1,1,1,1,1,1
10
+ "speed B/µs",1202,1115,535,550,344,334,56
11
+ "ratio max",9.46,4.66,48.89,18.19,51.97,53.00,106.28
12
+ "ratio geo-avg",1.59,1.30,5.88,4.86,8.12,6.92,24.94
13
+ "ratio min",1.00,1.00,1.00,2.02,1.69,2.67,9.53
14
+
15
+ ## Tool Performance Per Case
16
+
17
+ For each case: number and name, number of test cases, best cumulated median performance (µs),
18
+ best tool, performance slowdown ratio for blaze and jmc variants (java 1 is gson, 2 is jackson,
19
+ 3 is jsonp/johnzon), the lower the better, **1.00** is best, empty denotes a tool failure.
20
+
21
+ <!-- RLRRCRRRRRRR -->
22
+ 1,ansible-meta,333,156.6,c,1.55,1.00,3.85,4.60,7.25,7.34,20.26
23
+ 2,aws-cdk,483,33.0,c,1.29,1.00,2.71,3.21,3.09,6.16,12.10
24
+ 3,babelrc,794,39.0,c,1.59,1.00,8.23,4.24,16.50,7.34,23.87
25
+ 4,clang-format,133,30.5,c,3.98,1.00,12.97,10.13,15.02,18.91,16.68
26
+ 5,cmake-presets,967,3966.9,blaze,1.00,1.11,4.41,2.45,5.48,3.25,29.17
27
+ 6,code-climate,2484,108.8,blaze,1.00,1.01,4.15,3.74,4.51,5.48,14.57
28
+ 7,cql2,109,61.0,c,3.82,1.00,3.03,7.10,7.20,8.05,23.49
29
+ 8,cspell,981,464.2,blaze,1.00,1.27,2.65,2.37,3.72,3.24,32.88
30
+ 9,cypress,981,48.2,c,2.93,1.00,11.08,5.50,13.40,6.43,21.81
31
+ 10,deno,987,216.1,blaze,1.00,1.81,7.04,7.98,11.03,7.17,106.28
32
+ 11,dependabot,967,201.3,c,2.19,1.00,4.51,5.35,8.85,7.47,22.52
33
+ 12,draft-04,563,3734.4,c,1.82,1.00,6.93,2.85,6.71,3.72,18.57
34
+ 13,fabric-mod,911,327.4,c,2.22,1.00,6.22,4.38,8.21,5.38,30.71
35
+ 14,geojson,500,9552.1,js,1.89,2.59,1.00,3.48,3.69,7.93,54.16
36
+ 15,gitpod,986,146.8,c,1.42,1.00,7.68,3.34,11.03,5.05,16.97
37
+ 16,helm-chart-lock,3888,102.4,blaze,1.00,3.92,11.30,6.93,3.28,9.83,52.36
38
+ 17,importmap,964,21.8,blaze,1.00,4.58,48.89,18.19,51.97,53.00,35.84
39
+ 18,jasmine,980,70.7,c,1.32,1.00,4.24,5.45,11.32,6.00,17.52
40
+ 19,jsconfig,981,305.7,blaze,1.00,1.04,2.98,3.37,4.13,3.48,37.83
41
+ 20,jshintrc,966,264.2,c,3.69,1.00,8.12,4.12,8.38,8.28,13.68
42
+ 21,krakend,47,181.8,blaze,1.00,2.01,6.84,10.59,14.19,13.38,69.69
43
+ 22,lazygit,280,78.5,c,1.61,1.00,6.54,6.34,13.65,7.78,29.06
44
+ 23,lerna,985,66.3,c,1.73,1.00,4.27,4.48,4.50,13.01,16.69
45
+ 24,nest-cli,1025,122.1,c,1.42,1.00,8.29,5.49,14.53,7.00,16.07
46
+ 25,omnisharp,987,161.7,c,3.20,1.00,8.07,6.66,10.74,9.13,17.93
47
+ 26,openapi,107,17011.1,blaze,1.00,,,,,,
48
+ 27,pre-commit-hooks,985,242.2,c,1.98,1.00,6.31,3.80,7.96,4.65,17.33
49
+ 28,pulumi,3807,240.0,c,1.88,1.00,7.91,4.98,11.38,6.68,24.12
50
+ 29,semantic-release,794,61.5,c,1.04,1.00,4.89,3.96,5.96,10.05,21.98
51
+ 30,stale,961,76.5,c,1.59,1.00,5.50,5.80,11.81,6.73,24.15
52
+ 31,stylecop,983,227.8,blaze,1.00,1.45,6.52,4.99,9.01,6.00,64.79
53
+ 32,tmuxinator,382,43.8,c,2.21,1.00,7.13,3.35,6.82,3.95,25.80
54
+ 33,ui5,942,53.2,c,9.46,1.00,2.71,2.13,1.69,2.67,15.81
55
+ 34,ui5-manifest,611,2383.1,blaze,1.00,2.30,3.31,5.39,7.23,6.32,9.53
56
+ 35,unreal-engine,859,438.4,blaze,1.00,2.75,15.03,8.29,21.09,7.90,54.28
57
+ 36,vercel,710,263.7,blaze,1.00,1.11,3.97,2.02,6.34,3.19,11.76
58
+ 37,yamllint,984,3.8,blaze,1.00,4.66,10.64,11.05,8.97,13.46,37.19
59
+
60
+ ## Result Success
61
+
62
+ For each tool and cases with a partial success rate, percent of test cases validated.
63
+
64
+ <!-- RLRRRRRRR -->
65
+ 1,ansible-meta,100.0,99.1,99.1,99.1,99.1,99.1,99.1
66
+ 9,cypress,100.0,99.9,99.9,99.9,99.9,99.9,99.9
67
+ 14,geojson,100.0,100.0,100.0,99.8,100.0,100.0,100.0
68
+ 26,openapi,100.0,0.0,0.0,0.0,0.0,0.0,0.0
69
+ 37,yamllint,100.0,98.2,98.2,98.2,98.2,98.2,98.2
70
+
71
+ As of November 2025, the JMC results for `ansible-meta`, `cypress` and `yamllint` are
72
+ not 100.0% because validation checks are stricter and some
73
+ [malformed values](https://github.com/sourcemeta-research/jsonschema-benchmark/pull/155)
74
+ are rightfully rejected.
75
+ The `geoson` failure for Java/GSON is related to a corner case issue with GSON.
76
+
77
+ ## Compilation Per Case
78
+
79
+ For each tool and case, compilation time (including both schema to model
80
+ conversion and model compilation) in second.
81
+
82
+ <!-- RLRRRRR -->
83
+ 1,ansible-meta,0.5,4.1,1.4,2.7,1.3
84
+ 2,aws-cdk,0.4,1.4,0.9,1.8,0.9
85
+ 3,babelrc,0.5,1.6,1.0,2.0,0.9
86
+ 4,clang-format,0.5,2.6,1.0,2.6,1.0
87
+ 5,cmake-presets,0.6,3.1,1.4,3.4,1.3
88
+ 6,code-climate,0.5,1.5,0.9,1.6,0.9
89
+ 7,cql2,0.6,2.5,1.1,3.5,1.3
90
+ 8,cspell,0.6,2.5,1.2,3.4,1.4
91
+ 9,cypress,0.5,2.1,0.9,2.6,1.1
92
+ 10,deno,0.5,1.8,1.0,2.4,1.0
93
+ 11,dependabot,0.5,1.6,0.9,1.9,1.1
94
+ 12,draft-04,0.7,1.7,0.9,1.8,1.2
95
+ 13,fabric-mod,0.5,1.8,0.9,1.9,1.2
96
+ 14,geojson,0.4,1.9,1.0,2.0,1.2
97
+ 15,gitpod,0.4,1.6,0.9,1.9,1.0
98
+ 16,helm-chart-lock,0.4,1.5,0.8,1.5,0.9
99
+ 17,importmap,0.5,1.4,0.8,1.6,0.9
100
+ 18,jasmine,0.4,1.4,0.8,1.8,0.9
101
+ 19,jsconfig,0.5,2.2,0.9,2.3,1.0
102
+ 20,jshintrc,0.4,1.6,0.9,1.9,0.8
103
+ 21,krakend,0.6,7.7,2.4,5.8,2.4
104
+ 22,lazygit,0.4,2.8,1.0,2.3,1.1
105
+ 23,lerna,0.3,1.6,0.8,1.6,0.9
106
+ 24,nest-cli,0.4,1.7,0.9,2.0,0.9
107
+ 25,omnisharp,0.3,1.8,0.9,2.2,1.0
108
+ 26,openapi,0.5,,,,
109
+ 27,pre-commit-hooks,0.4,1.7,0.9,2.2,1.0
110
+ 28,pulumi,0.5,1.7,0.9,2.2,0.9
111
+ 29,semantic-release,0.5,1.4,0.8,1.7,0.9
112
+ 30,stale,0.5,1.4,0.9,1.7,1.0
113
+ 31,stylecop,0.6,1.5,0.9,1.8,0.9
114
+ 32,tmuxinator,0.5,1.6,0.8,1.9,0.9
115
+ 33,ui5,0.6,2.5,1.1,2.8,1.2
116
+ 34,ui5-manifest,1.1,11.9,3.9,8.6,3.6
117
+ 35,unreal-engine,0.3,1.6,0.9,2.0,1.0
118
+ 36,vercel,0.5,2.5,1.1,3.0,1.1
119
+ 37,yamllint,0.5,1.4,0.8,1.8,0.9
120
+
121
+ ## Compilation Summary
122
+
123
+ For each tool, average/max/min compilation time in seconds.
124
+
125
+ <!-- LRRRRR -->
126
+ "avg compile time (s)",0.5,2.4,1.1,2.4,1.1
127
+ "max compile time (s)",1.1,11.9,3.9,8.6,3.6
128
+ "min compile time (s)",0.3,1.4,0.8,1.5,0.8
129
+
130
+ ## Cases Statistics
131
+
132
+ For each case and a summary: the schema and model sizes (number of lines, model size 1
133
+ denotes a reference to a predefined model), number/min/average/max size of test values.
134
+
135
+ <!-- RLRRRRRR -->
136
+ ,,1221,874,35407,12,1937,11487058
137
+ 1,ansible-meta,1621,1,333,20,311,3423
138
+ 2,aws-cdk,38,22,483,21,1144,110476
139
+ 3,babelrc,200,194,794,12,139,1486
140
+ 4,clang-format,1416,1353,133,19,335,6430
141
+ 5,cmake-presets,2087,1981,967,52,2720,60771
142
+ 6,code-climate,227,82,2484,20,281,35254
143
+ 7,cql2,1167,1577,109,43,124,616
144
+ 8,cspell,1992,1580,981,13,816,21779
145
+ 9,cypress,383,1,981,14,400,150043
146
+ 10,deno,537,409,987,15,1017,133253
147
+ 11,dependabot,282,179,967,110,402,61985
148
+ 12,draft-04,221,1,563,154,12630,83097
149
+ 13,fabric-mod,344,343,911,69,690,12849
150
+ 14,geojson,1491,1,500,113,52418,11487058
151
+ 16,helm-chart-lock,51,30,3888,96,341,3674
152
+ 17,importmap,26,13,964,15,629,42753
153
+ 18,jasmine,109,104,980,35,132,528
154
+ 19,jsconfig,1119,965,981,14,176,4655
155
+ 20,jshintrc,416,339,966,13,428,2402
156
+ 21,krakend,8139,6519,47,247,2430,15326
157
+ 22,lazygit,2017,1,280,23,275,5604
158
+ 23,lerna,138,113,985,20,171,2938
159
+ 24,nest-cli,523,433,1025,18,289,3594
160
+ 25,omnisharp,506,401,987,17,594,16845
161
+ 26,openapi,1419,3,107,1860,165481,1218044
162
+ 27,pre-commit-hooks,435,398,985,84,548,30132
163
+ 28,pulumi,321,278,3807,33,250,11154
164
+ 29,semantic-release,128,131,794,13,459,6210
165
+ 30,stale,124,102,961,20,465,7728
166
+ 31,stylecop,293,210,983,16,566,7843
167
+ 32,tmuxinator,162,186,382,70,627,10581
168
+ 33,ui5,3004,779,942,72,486,10321
169
+ 34,ui5-manifest,12310,12091,611,423,2355,11606
170
+ 36,vercel,1194,956,710,14,405,62110
171
+ 37,yamllint,40,20,984,15,350,3605