json-model-compiler 2.0b37__tar.gz → 2.0b39__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 (255) hide show
  1. {json_model_compiler-2.0b37/site → json_model_compiler-2.0b39}/BACKLOG.md +36 -25
  2. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/BENCH.md +30 -24
  3. {json_model_compiler-2.0b37/json_model_compiler.egg-info → json_model_compiler-2.0b39}/PKG-INFO +4 -5
  4. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/README.md +2 -3
  5. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/container/Makefile +2 -3
  6. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/convert.py +27 -15
  7. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/irep.py +52 -2
  8. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/optim.py +10 -4
  9. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/c/json-model.h +1 -0
  10. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/c/main.c +37 -18
  11. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/Main.java +2 -2
  12. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/js/main.js +3 -4
  13. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/js/package.json +1 -1
  14. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/Changes +2 -0
  15. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/lib/JSON/JsonModel.pm +3 -3
  16. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/support.py +2 -3
  17. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/utils.py +1 -0
  18. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/xstatic.py +110 -25
  19. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39/json_model_compiler.egg-info}/PKG-INFO +4 -5
  20. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model_compiler.egg-info/SOURCES.txt +10 -1
  21. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model_compiler.egg-info/requires.txt +1 -1
  22. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/cypress.model.json +7 -2
  23. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/geo-easy.model.json +1 -1
  24. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/geo.model.json +3 -4
  25. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/pyproject.toml +2 -2
  26. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39/site}/BACKLOG.md +36 -25
  27. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/BENCH.md +30 -24
  28. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/README.md +2 -3
  29. json_model_compiler-2.0b39/site/benchmarks/2026030700.csv +169 -0
  30. json_model_compiler-2.0b39/site/benchmarks/2026030700.json +296 -0
  31. json_model_compiler-2.0b39/site/benchmarks/2026030700.md +213 -0
  32. json_model_compiler-2.0b39/site/benchmarks/2026030703.csv +169 -0
  33. json_model_compiler-2.0b39/site/benchmarks/2026030703.json +296 -0
  34. json_model_compiler-2.0b39/site/benchmarks/2026030703.md +213 -0
  35. json_model_compiler-2.0b39/site/benchmarks/2026030901.csv +171 -0
  36. json_model_compiler-2.0b39/site/benchmarks/2026030901.json +296 -0
  37. json_model_compiler-2.0b39/site/benchmarks/2026030901.md +216 -0
  38. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/.gitignore +0 -0
  39. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/.gitmodules +0 -0
  40. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/API.md +0 -0
  41. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/DESIGN.md +0 -0
  42. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/DEV.md +0 -0
  43. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/DOC.md +0 -0
  44. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/HOWTO.md +0 -0
  45. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/INTEGRATION.md +0 -0
  46. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/MANIFEST.in +0 -0
  47. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/Makefile +0 -0
  48. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/PUBS.md +0 -0
  49. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/SPEC.md +0 -0
  50. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/TUTO.md +0 -0
  51. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/about.sh +0 -0
  52. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/container/.dockerignore +0 -0
  53. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/container/.gitignore +0 -0
  54. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/container/Containerfile +0 -0
  55. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/container/README.md +0 -0
  56. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/container/jmc +0 -0
  57. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/README.md +0 -0
  58. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/__init__.py +0 -0
  59. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/analyze.py +0 -0
  60. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/clang.py +0 -0
  61. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/clang_entry.c +0 -0
  62. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/clang_free.c +0 -0
  63. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/clang_init.c +0 -0
  64. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/clang_pcre2_fun.c +0 -0
  65. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/clang_re2_fun.c +0 -0
  66. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/java_free.java +0 -0
  67. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/java_init.java +0 -0
  68. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/javascript_exe.js +0 -0
  69. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/javascript_foot.js +0 -0
  70. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/javascript_free.js +0 -0
  71. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/javascript_head.js +0 -0
  72. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/javascript_init.js +0 -0
  73. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/javascript_main.js +0 -0
  74. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/jmc.pod +0 -0
  75. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/perl_entry.pl +0 -0
  76. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/perl_exe.pl +0 -0
  77. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/perl_free.pl +0 -0
  78. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/perl_init.pl +0 -0
  79. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/perl_main.pl +0 -0
  80. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/perl_pkg.pl +0 -0
  81. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/plpgsql_entry.sql +0 -0
  82. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/python_entry.py +0 -0
  83. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/python_exe.py +0 -0
  84. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/python_free.py +0 -0
  85. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/python_init.py +0 -0
  86. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/data/python_main.py +0 -0
  87. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/export.py +0 -0
  88. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/java.py +0 -0
  89. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/javascript.py +0 -0
  90. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/language.py +0 -0
  91. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/model.py +0 -0
  92. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/mtypes.py +0 -0
  93. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/objmerge.py +0 -0
  94. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/perl.py +0 -0
  95. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/plpgsql.py +0 -0
  96. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/python.py +0 -0
  97. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/recurse.py +0 -0
  98. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/resolver.py +0 -0
  99. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/Makefile +0 -0
  100. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/__init__.py +0 -0
  101. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/c/Makefile +0 -0
  102. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/c/json-model.c +0 -0
  103. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/.gitignore +0 -0
  104. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/Makefile +0 -0
  105. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/README.md +0 -0
  106. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/env.bash +0 -0
  107. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/Checker.java +0 -0
  108. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/GSON.java +0 -0
  109. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/JSON.java +0 -0
  110. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/JSONP.java +0 -0
  111. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/Jackson.java +0 -0
  112. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  113. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/Path.java +0 -0
  114. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/Report.java +0 -0
  115. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/json_model/Runtime.java +0 -0
  116. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/java/pom.xml +0 -0
  117. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/js/README.md +0 -0
  118. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/js/index.js +0 -0
  119. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/.gitignore +0 -0
  120. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/LICENSE +0 -0
  121. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/MANIFEST +0 -0
  122. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/Makefile.PL +0 -0
  123. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/README +0 -0
  124. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/env.bash +0 -0
  125. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/ignore.txt +0 -0
  126. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/t/00-load.t +0 -0
  127. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/t/manifest.t +0 -0
  128. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  129. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/t/pod.t +0 -0
  130. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  131. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/sql/META.json +0 -0
  132. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/sql/Makefile +0 -0
  133. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/sql/json_model--2.0.sql +0 -0
  134. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/sql/json_model.control +0 -0
  135. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/runtime/types.py +0 -0
  136. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/script.py +0 -0
  137. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model/url_cache.py +0 -0
  138. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  139. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model_compiler.egg-info/entry_points.txt +0 -0
  140. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/json_model_compiler.egg-info/top_level.txt +0 -0
  141. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/ansiblelint-meta.model.json +0 -0
  142. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/diploma-arrete.model.json +0 -0
  143. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/diploma-export.model.json +0 -0
  144. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/everything.model.json +0 -0
  145. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/fresq.model.json +0 -0
  146. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/jmc-ir.model.json +0 -0
  147. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-model-latest.model.json +0 -0
  148. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-model-moschin.model.json +0 -0
  149. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-model-no-merge.model.json +0 -0
  150. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-model-v1.model.json +0 -0
  151. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-model-v2-en.model.json +0 -0
  152. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-model-v2.model.json +0 -0
  153. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-model.model.json +0 -0
  154. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-01-fuzzy.model.json +0 -0
  155. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-01-nesting.model.json +0 -0
  156. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-01.model.json +0 -0
  157. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-02-fuzzy.model.json +0 -0
  158. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-02-nesting.model.json +0 -0
  159. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-02.model.json +0 -0
  160. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-03-fuzzy.model.json +0 -0
  161. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-03-nesting.model.json +0 -0
  162. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-03.model.json +0 -0
  163. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-04-fuzzy.model.json +0 -0
  164. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-04-mongodb.model.json +0 -0
  165. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-04-nesting.model.json +0 -0
  166. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-04.model.json +0 -0
  167. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-06-fuzzy.model.json +0 -0
  168. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-06.model.json +0 -0
  169. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-07-fuzzy.model.json +0 -0
  170. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-07.model.json +0 -0
  171. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
  172. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-2019-09.model.json +0 -0
  173. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
  174. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-2020-12-tight.model.json +0 -0
  175. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-2020-12.model.json +0 -0
  176. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-next-fuzzy.model.json +0 -0
  177. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-next.model.json +0 -0
  178. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-tight.model.json +0 -0
  179. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-tighter-loose.model.json +0 -0
  180. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-draft-tighter.model.json +0 -0
  181. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/json-schema-linter.model.json +0 -0
  182. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/jsound.model.json +0 -0
  183. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/l10n.model.json +0 -0
  184. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/lazygit.model.json +0 -0
  185. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/openapi-311-fuzzy.model.json +0 -0
  186. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/openapi-311-models.model.json +0 -0
  187. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/openapi-311.model.json +0 -0
  188. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/person.model.json +0 -0
  189. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/person2.model.json +0 -0
  190. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/pgxn.model.json +0 -0
  191. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/models/test-schema.model.json +0 -0
  192. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/package.json +0 -0
  193. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/setup.cfg +0 -0
  194. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/API.md +0 -0
  195. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/DEV.md +0 -0
  196. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/DOC.md +0 -0
  197. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/HOWTO.md +0 -0
  198. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/PUBS.md +0 -0
  199. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/SPEC.md +0 -0
  200. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/TUTO.md +0 -0
  201. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026010600.csv +0 -0
  202. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026010600.json +0 -0
  203. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026010600.md +0 -0
  204. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026010900.csv +0 -0
  205. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026010900.json +0 -0
  206. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026010900.md +0 -0
  207. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026011500.csv +0 -0
  208. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026011500.json +0 -0
  209. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026011500.md +0 -0
  210. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012000.csv +0 -0
  211. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012000.json +0 -0
  212. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012000.md +0 -0
  213. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012200.csv +0 -0
  214. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012200.json +0 -0
  215. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012200.md +0 -0
  216. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012400.csv +0 -0
  217. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012400.json +0 -0
  218. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012400.md +0 -0
  219. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012700.csv +0 -0
  220. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012700.json +0 -0
  221. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026012700.md +0 -0
  222. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026020500.csv +0 -0
  223. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026020500.json +0 -0
  224. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026020500.md +0 -0
  225. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026020600.csv +0 -0
  226. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026020600.json +0 -0
  227. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026020600.md +0 -0
  228. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021000.csv +0 -0
  229. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021000.json +0 -0
  230. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021000.md +0 -0
  231. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021300.csv +0 -0
  232. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021300.json +0 -0
  233. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021300.md +0 -0
  234. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021700.csv +0 -0
  235. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021700.json +0 -0
  236. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021700.md +0 -0
  237. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021701.csv +0 -0
  238. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021701.json +0 -0
  239. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021701.md +0 -0
  240. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021702.csv +0 -0
  241. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021702.json +0 -0
  242. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021702.md +0 -0
  243. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021900.csv +0 -0
  244. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021900.json +0 -0
  245. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026021900.md +0 -0
  246. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026022000.csv +0 -0
  247. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026022000.json +0 -0
  248. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026022000.md +0 -0
  249. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026022400.csv +0 -0
  250. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026022400.json +0 -0
  251. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/benchmarks/2026022400.md +0 -0
  252. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/cover.md +0 -0
  253. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/favicon.ico +0 -0
  254. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/index.html +0 -0
  255. {json_model_compiler-2.0b37 → json_model_compiler-2.0b39}/site/json_logo.svg +0 -0
@@ -2,37 +2,17 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
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
5
+ - [x] optim: implement any type but one constrained optimization (jsu)
6
+ - [x] ir: fix bad elimination when bool var was used
7
+ - [x] ir: add bool var assign elimination on return with only one use
8
+ - [x] c-backend: fix long option parsing
27
9
  - [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
28
10
  - [ ] optim: recognize typed not: _"" ^ "xxx"_
29
- - [ ] tests: rerun with updated JSTS before release
11
+ - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
30
12
  - [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
31
13
  - [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
32
14
  - [ ] doc: add _known limitations_ stuff
33
- - [ ] optim: implement stupid any type but one constrained optimization (jsu)
34
15
  - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
35
- - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
36
16
  - [ ] test: add test categories (mark?)
37
17
  - [ ] doc: improve developer documentation
38
18
  - [ ] test: allow to skip some tests by category
@@ -110,12 +90,14 @@
110
90
 
111
91
  - [ ] pr: publish web page
112
92
  - [ ] pr: publish python jmc package
93
+ - [ ] pr: publish python jsu package
113
94
  - [ ] pr: publish js runtime package
114
95
  - [ ] pr: publish pgxn package
115
96
  - [ ] pr: publish docker image
116
97
  - [ ] pr: publish perl package
117
98
  - [ ] pr: publish java package
118
99
  - [ ] pr: check jsonschema-benchmark integration
100
+ - [ ] pr: check jsu jsts coverage
119
101
  - [ ] pr: renew domain
120
102
 
121
103
  ## To Do
@@ -779,3 +761,32 @@
779
761
  - [x] pr: add explicit winner column to per case perf
780
762
  - [x] model: simplify `{"": "$NONE"}`
781
763
  - [x] ~model: avoid dead code in `mv-0f/dedup-002`~ (simple pair ok, multiple seldom useful)
764
+ - [x] test: improve output determinism
765
+ - [x] container: allow to use `podman` instead of `docker`
766
+ - [x] perf: estimate measure overhead over 100 iterations
767
+ - [x] perf: share overhead estimation between tests
768
+ - [x] perf: try to prevent performance loops from being optimized out with some computation
769
+ - [x] container: add podman-in-podman or docker-in-docker
770
+ - [x] python-backend: add support for embedded nul characters in strings
771
+ - [x] optim: fix inappriopriate model deduplication in or-lists
772
+ - [x] dynamic: allow arbitrary options to dynamic interfaces
773
+ - [x] lang: extend list of predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION
774
+ - [x] bug: fix unwise regex optimization
775
+ - [x] python-backend: add support for `.mo`
776
+ - [x] optim: remove bad transform _A & (T ^ B)) != A ^ B_
777
+ - [x] python-backend: escape more strange characters in string constants
778
+ - [x] perf: do not report broken count if nothing is broken
779
+ - [x] python-backend: numerical workarounds for .mo extension implementation
780
+ - [x] backend: add support for `.in` extension without other constraints
781
+ - [x] tests: minimal tests for `.mo` and `.in`
782
+ - [x] \*-backend:: add support for `.mo` and `.in` extensions
783
+ - [x] optim: optimize typed and _"" & "xxx"_ involving references
784
+ - [x] optim: arbitrary guard against infinite loops
785
+ - [x] ir: fix stupid bug in ir opts
786
+ - [x] tests: rerun with updated JSTS before release
787
+ - [x] pr: publish python jmc package
788
+ - [x] static: add support for `.in` with constraints
789
+ - [x] optim: fix constraint simplification mixup
790
+ - [x] tests: add _stats_ target
791
+ - [x] perf: add missing warmup to C runtime for jsonschema benchmark
792
+ - [x] perl-backend: be resilient on missing RE2 module
@@ -1,30 +1,34 @@
1
1
  # JSON Model Compiler Benchmark Artifacts
2
2
 
3
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
4
+ [JSON Model Compiler (jmc)](https://github.com/clairey-zx81/json-model) generated code using the
5
+ [JSON Schema Utils (jsu)](https://hub.docker.com/repository/docker/zx80/json-schema-utils)
6
+ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon) and Python with
7
+ [Sourcemeta Blaze CLI (sbc)](https://github.com/sourcemeta/jsonschema) using test cases from
7
8
  [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
8
9
 
9
10
  ## Recent Artifacts
10
11
 
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.
12
+ - [2026030901](benchmarks/2026030901.md) clang, no predefs, jmc 2.0b38 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
+ - [2026030703](benchmarks/2026030703.md) clang, no predefs, jmc 2.0b37 vs sbc 14.14.2, 11 runs, 1000 iterations.
14
+ - [2026030700](benchmarks/2026030700.md) clang, no predefs, jmc 2.0b37 vs sbc 14.13.4, 5 runs, 1000 iterations.
15
+ - [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.4, 11 runs, 1000 iterations.
16
+ - [2026022000](benchmarks/2026022000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.3, 11 runs, 1000 iterations.
17
+ - [2026021900](benchmarks/2026021900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.1, 11 runs, 1000 iterations.
18
+ - [2026021702](benchmarks/2026021702.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.0, 11 runs, 1000 iterations.
19
+ - [2026021701](benchmarks/2026021701.md) clang, no predefs, jmc 2.0b36 vs sbc 14.12.0, 11 runs, 1000 iterations.
20
+ - [2026021700](benchmarks/2026021700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.11.0, 11 runs, 1000 iterations.
21
+ - [2026021300](benchmarks/2026021300.md) clang, no predefs, jmc 2.0b36 vs sbc 14.10.0, 11 runs, 1000 iterations.
22
+ - [2026021000](benchmarks/2026021000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.2, 11 runs, 1000 iterations.
23
+ - [2026020600](benchmarks/2026020600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.1, 11 runs, 1000 iterations.
24
+ - [2026020500](benchmarks/2026020500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.6.1, 11 runs, 1000 iterations.
25
+ - [2026012700](benchmarks/2026012700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.5.0, 11 runs, 1000 iterations.
26
+ - [2026012400](benchmarks/2026012400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.4.0, 11 runs, 1000 iterations.
27
+ - [2026012200](benchmarks/2026012200.md) clang, no predefs, jmc 2.0b36 vs sbc 14.2.0, 11 runs, 1000 iterations.
28
+ - [2026012000](benchmarks/2026012000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.1.0, 11 runs, 1000 iterations.
29
+ - [2026011500](benchmarks/2026011500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.4, 11 runs, 1000 iterations.
30
+ - [2026010900](benchmarks/2026010900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.3, 11 runs, 1000 iterations.
31
+ - [2026010600](benchmarks/2026010600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.2, 11 runs, 1000 iterations.
28
32
 
29
33
  ## Benchmarking Script
30
34
 
@@ -56,16 +60,18 @@ The main script options are:
56
60
 
57
61
  JSON schemas for the benchmark are translated to models based on
58
62
  [JSON Schema Utils](https://github.com/zx80/json-schema-utils).
63
+ This is mostly an automatic conversion of the test schema to a model, but
64
+ for a few cases which have a _native_ model which is used instead.
59
65
 
60
66
  Runs are performed in _fast_ mode: the rejection reasons are not collected, and
61
67
  the run stops as soon as possible.
62
68
 
63
69
  - To smooth out the wide range of collected performances (from 10 ns to
64
70
  over 300 µs for validating one value), a relative comparison ratio is shown.
65
- - Compilation times are the _minimum_ encountered of over the runs.
71
+ - Compilation times are the _minimum_ encountered over the runs.
66
72
  whereas performance times are the _median_ over the runs.
67
73
  - The C backend also includes the _runtime_ compilation from sources.
68
- - JSON Schema to JSON Model conversion times are recorded separately.
74
+ - JSON Schema to JSON Model conversion times are also recorded separately for information.
69
75
 
70
76
  Note that performance figures **must** be taken with a pinch of salt, please consider
71
77
  the following caveats, and others:
@@ -118,8 +124,8 @@ It should be noted that benchmarking conditions are quite different:
118
124
  a warming phase loop and a _hot_ one-shot measure: This may tend to mask effects from
119
125
  occasional GC runs.
120
126
  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.
127
+ are mostly dead code: It rejects tools which do not validate all strictly conformant
128
+ values, even if these values would be rejected by the target application.
123
129
 
124
130
  This latest point explains the under 100% validation results displayed JMC for
125
131
  _ansible-meta_, _cypress_ and _yamllint_ tests: the model translation or native models
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b37
3
+ Version: 2.0b39
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>=0.8.6
18
+ Requires-Dist: json-schema-utils>=0.9.0
19
19
  Provides-Extra: dev
20
20
  Requires-Dist: flake8; extra == "dev"
21
21
  Requires-Dist: ruff; extra == "dev"
@@ -158,9 +158,8 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
158
158
  [JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
159
159
  [Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
160
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
161
+ Overall, JMC-C implementation is faster than Blaze C++.
162
+ Moreover, JMC-JS and JMC-Java/GSON native implementations are only about 50% slower
164
163
  than Blaze C++, which given the intrinsic language capabilities is quite honorable.
165
164
 
166
165
  ## More Information
@@ -127,9 +127,8 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
127
127
  [JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
128
128
  [Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
129
129
  from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
130
- Overall, JMC-C implementation 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
130
+ Overall, JMC-C implementation is faster than Blaze C++.
131
+ Moreover, JMC-JS and JMC-Java/GSON native implementations are only about 50% slower
133
132
  than Blaze C++, which given the intrinsic language capabilities is quite honorable.
134
133
 
135
134
  ## More Information
@@ -44,7 +44,7 @@ pod.cleaner:
44
44
  #
45
45
  # POD (docker ou podman)
46
46
  #
47
- NOCACHE = --no-cache
47
+ POD.opts = --no-cache
48
48
  JMC = $(BRANCH)
49
49
  JSU = main
50
50
 
@@ -52,7 +52,7 @@ JSU = main
52
52
  pod.build: .build
53
53
 
54
54
  .build: Containerfile jmc
55
- $(POD) build $(NOCACHE) --build-arg JMC=$(JMC) --build-arg JSU=$(JSU) \
55
+ $(POD) build $(POD.opts) --build-arg JMC=$(JMC) --build-arg JSU=$(JSU) \
56
56
  -t jmc -f Containerfile . && date -Iseconds > $@
57
57
 
58
58
  .PHONY: pod.run
@@ -79,7 +79,6 @@ 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
- # $(POD) tag jmc $(ZX80)/jmc:$(GITVERS)
83
82
  $(POD) tag jmc $(ZX80)/jmc:$$(JMC=$(BRANCH) ./jmc --version)
84
83
 
85
84
  .PHONY: pod.push
@@ -288,21 +288,33 @@ def _m2s(model: ModelType, path: ModelPath, defs: Symbols) -> JsonSchema:
288
288
  if ">" in model:
289
289
  assert isinstance(model[">"], int)
290
290
  schema["minContains"] = model[">"] + 1
291
- # TODO
292
- # else:
293
- # FIXME check comparison value types!
294
- if "<=" in model:
295
- assert isinstance(model["<="], int)
296
- schema["maxItems"] = model["<="]
297
- if "<" in model:
298
- assert isinstance(model["<"], int)
299
- schema["maxItems"] = model["<"] - 1
300
- if ">=" in model:
301
- assert isinstance(model[">="], int)
302
- schema["minItems"] = model[">="]
303
- if ">" in model:
304
- assert isinstance(model[">"], int)
305
- schema["minItems"] = model[">"] + 1
291
+ if "=" in model:
292
+ assert isinstance(model["="], int)
293
+ schema["minContains"] = model["="]
294
+ schema["maxContains"] = model["="]
295
+ if "!=" in model:
296
+ schema["$comment"] = "ignoring != constraint"
297
+ else:
298
+ # FIXME check comparison value types!
299
+ if "<=" in model:
300
+ assert isinstance(model["<="], int)
301
+ schema["maxItems"] = model["<="]
302
+ if "<" in model:
303
+ assert isinstance(model["<"], int)
304
+ schema["maxItems"] = model["<"] - 1
305
+ if ">=" in model:
306
+ assert isinstance(model[">="], int)
307
+ schema["minItems"] = model[">="]
308
+ if ">" in model:
309
+ assert isinstance(model[">"], int)
310
+ schema["minItems"] = model[">"] + 1
311
+ if "=" in model:
312
+ assert isinstance(model["="], int)
313
+ schema["minItems"] = model["="]
314
+ schema["maxItems"] = model["="]
315
+ if "!=" in model:
316
+ schema["$comment"] = "ignoring != constraint"
317
+ # common
306
318
  if "!" in model:
307
319
  v = model["!"]
308
320
  assert isinstance(v, bool)
@@ -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):
@@ -705,7 +705,7 @@ def simplify(jm: JsonModel):
705
705
  if le < ge:
706
706
  changes += 1
707
707
  return "$NONE"
708
- if le == ge:
708
+ elif le == ge:
709
709
  changes += 1
710
710
  eq, le, ge = le, None, None
711
711
  # eq consistency and redundancy
@@ -715,21 +715,27 @@ def simplify(jm: JsonModel):
715
715
  changes += 1
716
716
  return "$NONE"
717
717
  le = None
718
- del model["<="]
719
718
  changes += 1
719
+ if "<=" in model:
720
+ del model["<="]
720
721
  if ge is not None:
721
722
  if eq < ge:
722
723
  changes += 1
723
724
  return "$NONE"
724
725
  ge = None
725
- del model[">="]
726
726
  changes += 1
727
+ if ">=" in model:
728
+ del model[">="]
727
729
  if ne is not None:
728
730
  if eq == ne:
729
731
  changes += 1
730
732
  return "$NONE"
731
733
  ne = None
734
+ changes += 1
735
+ if "!=" in model:
732
736
  del model["!="]
737
+ if "=" not in model:
738
+ model["="] = eq
733
739
  changes += 1
734
740
  # ne redundancy
735
741
  if ne is not None:
@@ -793,8 +799,8 @@ def optimize(jm: JsonModel, *, debug: bool = False):
793
799
  loops = 100
794
800
  changed = True
795
801
 
802
+
796
803
  while changed and loops > 0:
797
- # print(f"model: {jm._model}")
798
804
  loops -= 1
799
805
  changed = False
800
806
  changed |= const_prop(jm)
@@ -6,6 +6,7 @@
6
6
  #include <string.h>
7
7
  #include <stdio.h>
8
8
  #include <stdlib.h>
9
+ #include <stdint.h>
9
10
  #include <assert.h>
10
11
 
11
12
  #include <jansson.h>
@@ -28,6 +28,7 @@ static INLINE double now(void)
28
28
  return 1000000.0 * ts.tv_sec + 0.001 * ts.tv_nsec;
29
29
  }
30
30
 
31
+ // small computation to avoid compiler optimizations that could remove empty loops
31
32
  #define NEXT_STUFF(v, pi) v = frexp(3.141592653589793 * v + 2.718281828459045, pi)
32
33
 
33
34
  // overhead estimation µs on a nearly empty loop
@@ -49,8 +50,10 @@ static double overhead_estimation(int loop, double *value)
49
50
 
50
51
  // check value and report if there was some error wrt expectations
51
52
  static bool
52
- process_value(const char *name, const json_t * value,
53
- const char *fname, size_t index, process_mode_t mode, bool report, int loop, double empty)
53
+ process_value(
54
+ const char *name, const json_t * value,
55
+ const char *fname, size_t index, process_mode_t mode,
56
+ bool report, bool show_time, int loop, double empty)
54
57
  {
55
58
  // get checker function
56
59
  const jm_check_fun_t checker = CHECK_fun(name);
@@ -66,7 +69,7 @@ process_value(const char *name, const json_t * value,
66
69
  double v = frexp(loop / 13.0, &exponent);
67
70
 
68
71
  // performance loop in µs
69
- if (loop > 1)
72
+ if (show_time)
70
73
  {
71
74
  // validation estimation
72
75
  double sum = 0.0, sum2 = 0.0;
@@ -104,7 +107,7 @@ process_value(const char *name, const json_t * value,
104
107
  fprintf(stdout, "%s[%zu]: %s", fname, index, valid ? "PASS" : "FAIL");
105
108
 
106
109
  // maybe second pass with report collection
107
- if ((loop > 1 || !valid) && report)
110
+ if ((show_time || !valid) && report)
108
111
  {
109
112
  jm_path_t path;
110
113
  jm_report_t report;
@@ -112,7 +115,7 @@ process_value(const char *name, const json_t * value,
112
115
  bool valid2 = true;
113
116
 
114
117
  // loop just for measuring performance, including cleanup
115
- if (loop > 1)
118
+ if (show_time)
116
119
  {
117
120
  double sum = 0.0, sum2 = 0.0;
118
121
 
@@ -211,7 +214,7 @@ static void jsonschema_benchmark_run(int argc, char *argv[], const char *name, i
211
214
  }
212
215
  }
213
216
 
214
- // evaluate empty run
217
+ // evaluate measure overheads, only for information
215
218
  int count = 0;
216
219
  double empty_start = now();
217
220
  for (int i = 0; i < nvalues; i++)
@@ -219,7 +222,7 @@ static void jsonschema_benchmark_run(int argc, char *argv[], const char *name, i
219
222
  count++;
220
223
  double empty_delay = now() - empty_start;
221
224
 
222
- // run once in for counting
225
+ // run once, count pass/fail
223
226
  int npass = 0, nfail = 0;
224
227
  double cold_start = now();
225
228
  for (int i = 0; i < nvalues; i++)
@@ -229,7 +232,14 @@ static void jsonschema_benchmark_run(int argc, char *argv[], const char *name, i
229
232
  nfail++;
230
233
  double cold_delay = now() - cold_start;
231
234
 
232
- // collect performance data over a loop
235
+ // max 1000 warmup runs up to 10 seconds, probably useless
236
+ int ten_secs_loop = 1 + (int) (10000000.0 / cold_delay);
237
+ int warmup = ten_secs_loop < 1000 ? ten_secs_loop : 1000;
238
+ for (int n = warmup; n; n--)
239
+ for (int i = 0; i < nvalues; i++)
240
+ checker(values[i], NULL, NULL);
241
+
242
+ // collect performance data, possibly over a loop… of 1
233
243
  double sum = 0.0, sum2 = 0.0;
234
244
  for (int n = loop; n; n--)
235
245
  {
@@ -264,6 +274,7 @@ int main(int argc, char* argv[])
264
274
  bool jsonl = false;
265
275
  bool list = false;
266
276
  bool version = false;
277
+ bool show_time = false;
267
278
  bool jsonschema_benchmark = false;
268
279
  int loop = 1;
269
280
 
@@ -283,7 +294,7 @@ int main(int argc, char* argv[])
283
294
  { NULL, 0, NULL, 0 }
284
295
  };
285
296
 
286
- while ((opt = getopt_long(argc, argv, "hvln:rtT:", options, &optind)) != -1)
297
+ while ((opt = getopt_long(argc, argv, "hvln:rtT:", options, NULL)) != -1)
287
298
  {
288
299
  switch (opt) {
289
300
  case 'h': // FIXME expand help!
@@ -311,6 +322,8 @@ int main(int argc, char* argv[])
311
322
  break;
312
323
  case 'T':
313
324
  loop = atoi(optarg);
325
+ show_time = loop > 0;
326
+ loop = loop ? loop : 1;
314
327
  break;
315
328
  case 'L':
316
329
  jsonl = true;
@@ -367,18 +380,21 @@ int main(int argc, char* argv[])
367
380
  return 0;
368
381
  }
369
382
 
370
- // minimal overhead estimation
383
+ // minimal non-zero measure overhead estimation
371
384
  double empty = 0.0;
372
- if (loop > 1)
385
+ if (show_time && loop > 1)
373
386
  {
374
387
  int exponent;
375
388
  double v = frexp(loop / 13.0, &exponent);
376
- empty = overhead_estimation(loop, &v);
377
- for (int i = 1; i < 100; i++)
389
+ int count = 100;
390
+ while (count)
378
391
  {
379
392
  double e = overhead_estimation(loop, &v);
380
- if (e < empty)
381
- empty = e;
393
+ if (e) {
394
+ count--;
395
+ if (empty == 0.0 || e < empty)
396
+ empty = e;
397
+ }
382
398
  }
383
399
  }
384
400
 
@@ -416,7 +432,8 @@ int main(int argc, char* argv[])
416
432
  JSON_DISABLE_EOF_CHECK|JSON_DECODE_ANY|JSON_ALLOW_NUL,
417
433
  &error)))
418
434
  {
419
- if (!process_value(name, value, argv[i], count, expect_anything, report, loop, empty))
435
+ if (!process_value(name, value, argv[i], count, expect_anything,
436
+ report, show_time, loop, empty))
420
437
  errors++;
421
438
  count++;
422
439
  json_decref(value);
@@ -491,14 +508,16 @@ int main(int argc, char* argv[])
491
508
  const json_t *value = size == 3 ? json_array_get(val, 2) : second;
492
509
  process_mode_t mode = json_is_true(first) ? expect_pass : expect_fail;
493
510
 
494
- if (!process_value(tname, value, argv[i], index, mode, report, loop, empty))
511
+ if (!process_value(tname, value, argv[i], index, mode,
512
+ report, show_time, loop, empty))
495
513
  errors++;
496
514
 
497
515
  index++;
498
516
  }
499
517
  }
500
518
  else
501
- if (!process_value(name, value, argv[i], 0, expect_nothing, report, loop, empty))
519
+ if (!process_value(name, value, argv[i], 0, expect_nothing,
520
+ report, show_time, loop, empty))
502
521
  errors++;
503
522
 
504
523
  // free json value
@@ -52,8 +52,8 @@ public class Main
52
52
  double cold_run = 0.001 * (System.nanoTime() - cold_start);
53
53
 
54
54
  // warmup
55
- int niters = (int) (10 * 1E6 / cold_run);
56
- if (niters > time) niters = time;
55
+ int niters = 1 + (int) (10 * 1E6 / cold_run);
56
+ if (niters > 1000) niters = 1000;
57
57
  while (niters-- > 0)
58
58
  for (Object value: values)
59
59
  check.call(value);
@@ -73,11 +73,10 @@ function jsonschema_benchmark(values, checker, times)
73
73
  errors++
74
74
  const cold_delay = performance.now() - cold_start // ms
75
75
 
76
- const WARMUP_MAX_TIME = 10.0 // seconds
77
- const WARMUP_ITERATIONS = 100 // unless too long
78
- const max_iterations = Math.ceil(1000.0 * WARMUP_MAX_TIME / cold_delay)
79
-
80
76
  // warm-up so as to trigger JIT
77
+ const WARMUP_MAX_TIME = 10.0 // seconds
78
+ const WARMUP_ITERATIONS = 1000 // unless too long
79
+ const max_iterations = Math.ceil(WARMUP_MAX_TIME * 1000.0 / cold_delay)
81
80
  const warmup_iterations = Math.min(WARMUP_ITERATIONS, max_iterations)
82
81
  console.error(`warmup iterations: ${warmup_iterations}`)
83
82
  for (let i = 0; i < warmup_iterations; i++)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json_model_runtime",
3
- "version": "2.0.0-beta17",
3
+ "version": "2.0.0-beta38",
4
4
  "type": "module",
5
5
  "description": "JSON Model Runtime for JavaScript",
6
6
  "main": "index.js",