json-model-compiler 2.0b41__tar.gz → 2.0b42__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 (273) hide show
  1. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/.gitignore +1 -0
  2. {json_model_compiler-2.0b41/site → json_model_compiler-2.0b42}/BACKLOG.md +105 -16
  3. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/BENCH.md +15 -24
  4. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/PKG-INFO +2 -1
  5. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/SPEC.md +7 -0
  6. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/about.sh +3 -1
  7. json_model_compiler-2.0b42/container/.gitignore +1 -0
  8. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/container/Makefile +20 -8
  9. json_model_compiler-2.0b41/container/Containerfile → json_model_compiler-2.0b42/container/base.container +14 -42
  10. json_model_compiler-2.0b42/container/jmc.container +45 -0
  11. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/README.md +1 -1
  12. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/analyze.py +19 -29
  13. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/clang.py +600 -46
  14. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/convert.py +32 -27
  15. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/irep.py +168 -42
  16. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/java.py +29 -29
  17. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/javascript.py +30 -22
  18. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/language.py +62 -23
  19. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/model.py +36 -58
  20. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/mtypes.py +7 -4
  21. json_model_compiler-2.0b42/json_model/objops.py +467 -0
  22. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/optim.py +166 -141
  23. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/perl.py +30 -30
  24. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/plpgsql.py +44 -30
  25. json_model_compiler-2.0b42/json_model/predefs.py +184 -0
  26. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/python.py +35 -29
  27. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/__init__.py +7 -3
  28. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/c/json-model.c +162 -20
  29. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/c/json-model.h +29 -0
  30. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/c/main.c +3 -110
  31. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Main.java +7 -19
  32. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Runtime.java +26 -15
  33. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/pom.xml +10 -10
  34. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/js/index.js +8 -14
  35. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/js/main.js +1 -52
  36. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/js/package.json +4 -1
  37. json_model_compiler-2.0b42/json_model/runtime/pl/Changes +14 -0
  38. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/lib/JSON/JsonModel.pm +11 -83
  39. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/sql/json_model--2.0.sql +41 -7
  40. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/support.py +80 -74
  41. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/script.py +72 -44
  42. json_model_compiler-2.0b42/json_model/submodel.py +219 -0
  43. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/utils.py +62 -53
  44. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/xstatic.py +167 -68
  45. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/PKG-INFO +2 -1
  46. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/SOURCES.txt +35 -35
  47. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/requires.txt +1 -0
  48. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/everything.model.json +6 -0
  49. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/jmc-ir.model.json +5 -3
  50. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/pyproject.toml +3 -2
  51. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42/site}/BACKLOG.md +105 -16
  52. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/BENCH.md +15 -24
  53. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/SPEC.md +7 -0
  54. json_model_compiler-2.0b42/site/benchmarks/2026031400.csv +171 -0
  55. json_model_compiler-2.0b42/site/benchmarks/2026031400.json +296 -0
  56. json_model_compiler-2.0b42/site/benchmarks/2026031400.md +216 -0
  57. json_model_compiler-2.0b42/site/benchmarks/2026031900.csv +171 -0
  58. json_model_compiler-2.0b42/site/benchmarks/2026031900.json +296 -0
  59. json_model_compiler-2.0b42/site/benchmarks/2026031900.md +216 -0
  60. json_model_compiler-2.0b42/site/benchmarks/2026032500.csv +171 -0
  61. json_model_compiler-2.0b42/site/benchmarks/2026032500.json +296 -0
  62. json_model_compiler-2.0b42/site/benchmarks/2026032500.md +216 -0
  63. json_model_compiler-2.0b42/site/benchmarks/2026032700.csv +171 -0
  64. json_model_compiler-2.0b42/site/benchmarks/2026032700.json +296 -0
  65. json_model_compiler-2.0b42/site/benchmarks/2026032700.md +216 -0
  66. json_model_compiler-2.0b42/site/benchmarks/2026032801.csv +171 -0
  67. json_model_compiler-2.0b42/site/benchmarks/2026032801.json +296 -0
  68. json_model_compiler-2.0b42/site/benchmarks/2026032801.md +216 -0
  69. json_model_compiler-2.0b42/site/benchmarks/2026040200.csv +171 -0
  70. json_model_compiler-2.0b42/site/benchmarks/2026040200.json +296 -0
  71. json_model_compiler-2.0b42/site/benchmarks/2026040200.md +216 -0
  72. json_model_compiler-2.0b42/site/benchmarks/2026040300.csv +171 -0
  73. json_model_compiler-2.0b42/site/benchmarks/2026040300.json +296 -0
  74. json_model_compiler-2.0b42/site/benchmarks/2026040300.md +216 -0
  75. json_model_compiler-2.0b42/site/benchmarks/2026040400.csv +171 -0
  76. json_model_compiler-2.0b42/site/benchmarks/2026040400.json +296 -0
  77. json_model_compiler-2.0b42/site/benchmarks/2026040400.md +216 -0
  78. json_model_compiler-2.0b42/site/benchmarks/2026040700.csv +171 -0
  79. json_model_compiler-2.0b42/site/benchmarks/2026040700.json +296 -0
  80. json_model_compiler-2.0b42/site/benchmarks/2026040700.md +216 -0
  81. json_model_compiler-2.0b41/container/.gitignore +0 -1
  82. json_model_compiler-2.0b41/json_model/objmerge.py +0 -174
  83. json_model_compiler-2.0b41/json_model/runtime/pl/Changes +0 -10
  84. json_model_compiler-2.0b41/site/benchmarks/2026020500.csv +0 -167
  85. json_model_compiler-2.0b41/site/benchmarks/2026020500.json +0 -296
  86. json_model_compiler-2.0b41/site/benchmarks/2026020500.md +0 -211
  87. json_model_compiler-2.0b41/site/benchmarks/2026020600.csv +0 -173
  88. json_model_compiler-2.0b41/site/benchmarks/2026020600.json +0 -296
  89. json_model_compiler-2.0b41/site/benchmarks/2026020600.md +0 -217
  90. json_model_compiler-2.0b41/site/benchmarks/2026021000.csv +0 -171
  91. json_model_compiler-2.0b41/site/benchmarks/2026021000.json +0 -296
  92. json_model_compiler-2.0b41/site/benchmarks/2026021000.md +0 -215
  93. json_model_compiler-2.0b41/site/benchmarks/2026021300.csv +0 -171
  94. json_model_compiler-2.0b41/site/benchmarks/2026021300.json +0 -296
  95. json_model_compiler-2.0b41/site/benchmarks/2026021300.md +0 -215
  96. json_model_compiler-2.0b41/site/benchmarks/2026021700.csv +0 -171
  97. json_model_compiler-2.0b41/site/benchmarks/2026021700.json +0 -296
  98. json_model_compiler-2.0b41/site/benchmarks/2026021700.md +0 -214
  99. json_model_compiler-2.0b41/site/benchmarks/2026021701.csv +0 -171
  100. json_model_compiler-2.0b41/site/benchmarks/2026021701.json +0 -296
  101. json_model_compiler-2.0b41/site/benchmarks/2026021701.md +0 -214
  102. json_model_compiler-2.0b41/site/benchmarks/2026021702.csv +0 -171
  103. json_model_compiler-2.0b41/site/benchmarks/2026021702.json +0 -296
  104. json_model_compiler-2.0b41/site/benchmarks/2026021702.md +0 -214
  105. json_model_compiler-2.0b41/site/benchmarks/2026021900.csv +0 -171
  106. json_model_compiler-2.0b41/site/benchmarks/2026021900.json +0 -296
  107. json_model_compiler-2.0b41/site/benchmarks/2026021900.md +0 -214
  108. json_model_compiler-2.0b41/site/benchmarks/2026022000.csv +0 -171
  109. json_model_compiler-2.0b41/site/benchmarks/2026022000.json +0 -296
  110. json_model_compiler-2.0b41/site/benchmarks/2026022000.md +0 -214
  111. json_model_compiler-2.0b41/site/benchmarks/2026022400.csv +0 -171
  112. json_model_compiler-2.0b41/site/benchmarks/2026022400.json +0 -296
  113. json_model_compiler-2.0b41/site/benchmarks/2026022400.md +0 -214
  114. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/.gitmodules +0 -0
  115. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/API.md +0 -0
  116. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/DESIGN.md +0 -0
  117. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/DEV.md +0 -0
  118. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/DOC.md +0 -0
  119. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/HOWTO.md +0 -0
  120. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/INTEGRATION.md +0 -0
  121. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/MANIFEST.in +0 -0
  122. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/Makefile +0 -0
  123. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/PUBS.md +0 -0
  124. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/README.md +0 -0
  125. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/TUTO.md +0 -0
  126. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/container/.dockerignore +0 -0
  127. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/container/README.md +0 -0
  128. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/container/jmc +0 -0
  129. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/__init__.py +0 -0
  130. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/clang_entry.c +0 -0
  131. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/clang_free.c +0 -0
  132. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/clang_init.c +0 -0
  133. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/clang_pcre2_fun.c +0 -0
  134. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/clang_re2_fun.c +0 -0
  135. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/java_free.java +0 -0
  136. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/java_init.java +0 -0
  137. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/javascript_exe.js +0 -0
  138. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/javascript_foot.js +0 -0
  139. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/javascript_free.js +0 -0
  140. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/javascript_head.js +0 -0
  141. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/javascript_init.js +0 -0
  142. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/javascript_main.js +0 -0
  143. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/jmc.pod +0 -0
  144. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/perl_entry.pl +0 -0
  145. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/perl_exe.pl +0 -0
  146. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/perl_free.pl +0 -0
  147. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/perl_init.pl +0 -0
  148. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/perl_main.pl +0 -0
  149. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/perl_pkg.pl +0 -0
  150. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/plpgsql_entry.sql +0 -0
  151. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/python_entry.py +0 -0
  152. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/python_exe.py +0 -0
  153. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/python_free.py +0 -0
  154. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/python_init.py +0 -0
  155. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/data/python_main.py +0 -0
  156. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/export.py +0 -0
  157. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/recurse.py +0 -0
  158. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/resolver.py +0 -0
  159. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/Makefile +0 -0
  160. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/c/Makefile +0 -0
  161. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/.gitignore +0 -0
  162. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/Makefile +0 -0
  163. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/README.md +0 -0
  164. /json_model_compiler-2.0b41/json_model/runtime/java/env.bash → /json_model_compiler-2.0b42/json_model/runtime/java/env.sh +0 -0
  165. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Checker.java +0 -0
  166. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/GSON.java +0 -0
  167. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/JSON.java +0 -0
  168. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/JSONP.java +0 -0
  169. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Jackson.java +0 -0
  170. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  171. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Path.java +0 -0
  172. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Report.java +0 -0
  173. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/js/README.md +0 -0
  174. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/.gitignore +0 -0
  175. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/LICENSE +0 -0
  176. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/MANIFEST +0 -0
  177. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/Makefile.PL +0 -0
  178. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/README +0 -0
  179. /json_model_compiler-2.0b41/json_model/runtime/pl/env.bash → /json_model_compiler-2.0b42/json_model/runtime/pl/env.sh +0 -0
  180. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/ignore.txt +0 -0
  181. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/t/00-load.t +0 -0
  182. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/t/manifest.t +0 -0
  183. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  184. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/t/pod.t +0 -0
  185. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  186. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/sql/META.json +0 -0
  187. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/sql/Makefile +0 -0
  188. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/sql/json_model.control +0 -0
  189. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/runtime/types.py +0 -0
  190. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model/url_cache.py +0 -0
  191. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  192. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/entry_points.txt +0 -0
  193. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/top_level.txt +0 -0
  194. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/ansiblelint-meta.model.json +0 -0
  195. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/cypress.model.json +0 -0
  196. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/diploma-arrete.model.json +0 -0
  197. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/diploma-export.model.json +0 -0
  198. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/fresq.model.json +0 -0
  199. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/geo-easy.model.json +0 -0
  200. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/geo.model.json +0 -0
  201. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-model-latest.model.json +0 -0
  202. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-model-moschin.model.json +0 -0
  203. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-model-no-merge.model.json +0 -0
  204. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-model-v1.model.json +0 -0
  205. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-model-v2-en.model.json +0 -0
  206. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-model-v2.model.json +0 -0
  207. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-model.model.json +0 -0
  208. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-01-fuzzy.model.json +0 -0
  209. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-01-nesting.model.json +0 -0
  210. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-01.model.json +0 -0
  211. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-02-fuzzy.model.json +0 -0
  212. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-02-nesting.model.json +0 -0
  213. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-02.model.json +0 -0
  214. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-03-fuzzy.model.json +0 -0
  215. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-03-nesting.model.json +0 -0
  216. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-03.model.json +0 -0
  217. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-04-fuzzy.model.json +0 -0
  218. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-04-mongodb.model.json +0 -0
  219. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-04-nesting.model.json +0 -0
  220. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-04.model.json +0 -0
  221. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-06-fuzzy.model.json +0 -0
  222. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-06.model.json +0 -0
  223. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-07-fuzzy.model.json +0 -0
  224. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-07.model.json +0 -0
  225. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
  226. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-2019-09.model.json +0 -0
  227. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
  228. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-2020-12-tight.model.json +0 -0
  229. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-2020-12.model.json +0 -0
  230. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-next-fuzzy.model.json +0 -0
  231. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-next.model.json +0 -0
  232. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-tight.model.json +0 -0
  233. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-tighter-loose.model.json +0 -0
  234. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-draft-tighter.model.json +0 -0
  235. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/json-schema-linter.model.json +0 -0
  236. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/jsound.model.json +0 -0
  237. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/l10n.model.json +0 -0
  238. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/lazygit.model.json +0 -0
  239. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/openapi-311-fuzzy.model.json +0 -0
  240. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/openapi-311-models.model.json +0 -0
  241. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/openapi-311.model.json +0 -0
  242. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/person.model.json +0 -0
  243. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/person2.model.json +0 -0
  244. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/pgxn.model.json +0 -0
  245. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/models/test-schema.model.json +0 -0
  246. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/package.json +0 -0
  247. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/setup.cfg +0 -0
  248. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/API.md +0 -0
  249. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/DEV.md +0 -0
  250. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/DOC.md +0 -0
  251. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/HOWTO.md +0 -0
  252. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/PUBS.md +0 -0
  253. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/README.md +0 -0
  254. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/TUTO.md +0 -0
  255. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030700.csv +0 -0
  256. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030700.json +0 -0
  257. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030700.md +0 -0
  258. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030703.csv +0 -0
  259. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030703.json +0 -0
  260. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030703.md +0 -0
  261. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030901.csv +0 -0
  262. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030901.json +0 -0
  263. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026030901.md +0 -0
  264. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026031000.csv +0 -0
  265. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026031000.json +0 -0
  266. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026031000.md +0 -0
  267. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026031300.csv +0 -0
  268. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026031300.json +0 -0
  269. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/benchmarks/2026031300.md +0 -0
  270. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/cover.md +0 -0
  271. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/favicon.ico +0 -0
  272. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/index.html +0 -0
  273. {json_model_compiler-2.0b41 → json_model_compiler-2.0b42}/site/json_logo.svg +0 -0
@@ -15,3 +15,4 @@ site/MODELS.md
15
15
  site/JMC.md
16
16
  site/ABOUT.md
17
17
  local.mk
18
+ env.sh
@@ -2,23 +2,101 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
- - [x] optim: do not recheck object if not necessary
6
- - [x] command: show runtime directory with `--runtime`
7
- - [x] optim: better merge `&` list when possible, including regex prefix incompatibilities
8
- - [x] js-backend: export model map
9
- - [x] pl-backend: add and export `_mapper` function
10
- - [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
11
- - [ ] optim: recognize typed not: _"" ^ "xxx"_
12
- - [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
13
- - [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
14
- - [ ] doc: add _known limitations_ stuff
15
- - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
5
+ - [x] \*-backend: remove `--jsonschema-benchmark` handling as it is moved to this repo
6
+ - [x] command: add `--no-comment` option not to generate comments in source code
7
+ - [x] \*-backend: support for embedded nul characters in strings, when possible (not SQL nor C)
8
+ - [x] ir: use json name instead of python type names
9
+ - [x] perf: add speed in lines per µs which seems more significant
10
+ - [x] command: add `-mtune=native` to C compilation
11
+ - [x] optim: simplify _&_ with same props and regs plus optional wildcards
12
+ - [x] optim: simplify _X & Y_ to _X_ when _X_ is a submodel of _Y_
13
+ - [x] py-backend: add predefs IP4 IP6 HOST
14
+ - [x] \*-backend: use a common predef for RFC3339 DURATION UUID EMAIL JSONPT
15
+ - [x] \*-backend: add approximated backup regex for predefs when not implemented by runtime
16
+ - [x] predefs: add `$__EXTENSION_COLOR`
17
+ - [x] predefs: refactor multiple instances in the sources into `predefs.py`
18
+ - [x] predefs: add `$ETH` for ethernet (mac) addresses
19
+ - [x] static: recognize and generate better code for typed _not_: _"" ^ "xxx"_
20
+ - [x] ir: add forward substitution between assignments when used once
21
+ - [x] py-backend: filter out zone id suffix from ip6
22
+ - [x] predefs: add `$CARD` for 16 digits credit card numbers with Luhn's checksum
23
+ - [x] predefs: add `$CARD` to js, perl, java and sql runtime.
24
+ - [x] predefs: filter predef extensions with `--extend`
25
+ - [x] ~static: if only one open prop, just look for it~ depends on language and costs
26
+ - [x] ir: improve forward subs, move bool decl to first assignment in seq
27
+ - [x] static: use combined assignment and test if possible on discriminator extraction
28
+ - [x] static: fix any-by-one pattern on string predefs
29
+ - [x] py-runtime: allow lowercase tz in datetime
30
+ - [x] py-runtime: add workarounds for leap seconds and other intricacies
31
+ - [x] predefs: add `$__EXTENSION_REL_JSONPT` as a regex
32
+ - [x] predefs: distinguish simple time and time with mandatory tz for jsu `time` format
33
+ - [x] static: avoid double type checks on or with predefs (java, sql, perl)
34
+ - [x] ~ir: remove simple redundant checks _(X && (X && Z) || (X && Y))_ is _X && (Z || Y)_~ (see previous)
35
+ - [x] c-backend: simple regex compiler for special character classes and repeat
36
+ - [x] c-backend: simple regex compiler cache is okay with existing regex cache
37
+ - [x] c-backend: add custom character classes based on benchmarks (ident, space, up/low/hexa/num/…)
38
+ - [x] optim: `/.+/` is `/./`, `/(.+)/`, `/(.*)/`
39
+ - [x] optim: remove unescaped `.*` at end of regex, also `.+/` is `./`
40
+ - [x] c-backend: normalize before character class matching
41
+ - [x] c-backend: extend simple regex with constant prefix
42
+ - [x] c-backend: extend simple regex without end-of-text (`$`)
43
+ - [x] optim: apply simpler re to property names
44
+ - [x] optim: improve model intersection to simplify `&` in more cases
45
+ - [x] optim: improve intersect on single open constraint object case
46
+ - [x] optim: avoid reference expansion in and combine optimization
47
+ - [x] c-backend: optimize special regex `/./` `/./s` `/^.*$/` `/^.+$/`
48
+ - [x] static: detect or of any-but-some type to generate a not instead, beware of looseness
49
+ - [x] static: do not create a separate function for an basic object check
50
+ - [x] static: generate messages in newly added shortcuts
51
+ - [x] c-backend: regex list of words to enum?
52
+ - [x] c-backend: fast ic str comparison by switching to _lower char_ with a set test?
53
+ - [x] c-backend: improve regex opt cset prettyprinting
54
+ - [x] c-backend: extend simple regex to sequences of prefix/chars/repeats
55
+ - [x] c-backend: add custom char class `[A-Za-z0-9_\\-:]` `[1-9]`
56
+ - [x] container: separate base from specific installs to improve cache/no-cache build
57
+ - [x] static: improve pattern matching for starts with/ends with/eq regex optim
58
+ - [x] static: improve endswith pattern recognition with escapes, eg `/\\.js$/`
59
+ - [x] c-backend: improve startwith code with fast str eq when string is a function call
60
+ - [x] c-backend: improve `str_cmp` with fast str eq when string is a function call
61
+ - [x] c-backend: check str cmp optims with utf8 strings
62
+ - [x] static: preserve prop order by default
63
+ - [x] c-backend: add custom character classes `[-a-z0-9_]` variants
64
+ - [x] c-backend: use counter for multithreaded tests
65
+ - [x] c-backend: fix multiple brace repeats in simple regex optimization
66
+ - [x] model: add option to `s` on regex? else `.` is any but `\n` and sometimes `\r`
67
+ - [x] optim: `/^.{1,256}$/`? only under `/s` though…
68
+ - [ ] perf: show schema to model conversion times
69
+ - [ ] js-backend: remove useless braces
70
+ - [ ] c-backend: use str cmp for ends with optimization as well
71
+ - [ ] c-backend: improve partitioned cset prettyprinting
72
+ - [ ] c-backend: use str set partitioning
73
+ - [ ] c-backend: simplify parameters for accelerated functions
74
+ - [ ] c-runtime: use own hash instead of qsort/bsearch stuff?
75
+ - [ ] static: could sorted property name comparison be used for some scans??
76
+ - [ ] c-backend: fast str comparison could take advantage of known strlen??
77
+ - [ ] c-backend: property name length for jansson is stored at `(str_ptr - sizeof(size_t))`
78
+ - [ ] c-backend: use knowledge of Jansson hash to improve property lookup??
79
+ - [ ] c-backend: generate custom character class ascii tables?
80
+ - [ ] c-backend: custom char classes: `[:-] [a-zA-Z0-9_\\.\\-\\|@#] [a-zA-Z_$] [a-zA-Z0-9_\\-] [a-zA-Z0-9_.:-]`
81
+ - [ ] docker: use ubuntu 26.04 base
82
+ - [ ] optim: remove props which match the default, in some cases?
83
+ - [ ] optim: regex list of words to enum?
84
+ - [ ] static: improve startswith pattern recognition `/^xyz.*/`
85
+ - [ ] test: fast mode which does not execute if source has not changed
16
86
  - [ ] test: add test categories (mark?)
17
- - [ ] doc: improve developer documentation
18
87
  - [ ] test: allow to skip some tests by category
88
+ - [ ] predefs: extension for _uri reference_, _iri reference_, _uri template_
89
+ - [ ] predefs: _url_ vs _uri_ vs _iri_
90
+ - [ ] predefs: improve `$URI` and `$URL`
91
+ - [ ] backend: check leap-second support on `$DATETIME` and `$TIME`
92
+ - [ ] doc: add _known limitations_ stuff
93
+ - [ ] doc: improve developer documentation
94
+ - [ ] spec: restrict regex syntax to a smaller subset
95
+ - [ ] predefs: add `$SIMPLE_REGEX` for regex syntax subset?
19
96
  - [ ] docker: enable user remap
20
97
  - [ ] export: java classes
21
98
  - [ ] export: go interfaces
99
+ - [ ] export: ts interfaces
22
100
  - [ ] static: make regex groups non capturing when appropriate?
23
101
  - [ ] static: xor acceleration based on distinct mandatory props
24
102
  - [ ] static: merge partial mandatory prop discriminants
@@ -35,11 +113,13 @@
35
113
  - [ ] backend: remove useless `ELSE NULL` see `mv-02/geo.sql`
36
114
  - [ ] command: export before/after model optimization
37
115
  - [ ] perf: experiment object matching with various mandatory/optional properties
116
+ - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
38
117
  - [ ] backend: optimize pattern "res = E1; return res || E2;" (only one use)
39
118
  - [ ] backend: optimize pattern "res = E; if (! res) ret F; res not used before set;"
40
119
  - [ ] backend: optimize pattern "{ decl X = ... ; res = f(X (once) ) }"
41
120
  - [ ] backend: simplify assignment patterns with ternary operator when available?
42
121
  - [ ] backend: consider applying language-specific formatting tools? `clang-format`, `black`…
122
+ - [ ] backend: actually remove ignore code and sequences
43
123
  - [ ] c-backend: get pval string into a variable for strcmp unrolling and inlining
44
124
  - [ ] c-backend: add number of chunks limit to strcmp optimization
45
125
  - [ ] c-backend: strcmp to const inlining and unrolling for all instances
@@ -85,6 +165,8 @@
85
165
  - [ ] perf: profile some cases
86
166
  - [ ] c-backend: use vector instructions for larger strcmp?
87
167
  - [ ] export: sqlalchemy
168
+ - [ ] predefs: add country codes, eg `$COUNTRY $COUNTRY2 $COUNTRY3 $COUNTRYN`
169
+ - [ ] spec: be precise about predefs standard references, eg `$DATE` and co.
88
170
 
89
171
  ## Re Do
90
172
 
@@ -269,13 +351,15 @@
269
351
  - [ ] vb-backend: ?
270
352
  - [ ] julia-backend: ?
271
353
  - [ ] lua-backend: ?
272
- - [ ] dyn-backend: is dynamic mergeable in xstatic, beyond using `eval`?
273
- - [ ] feature: add model predef for URI, URI-REF and the like
274
- - [ ] design: URI vs URL?
354
+ - [ ] feat: add model predef for URI, URI-REF and the like
355
+ - [ ] design: URI vs URL vs IRI?
275
356
  - [ ] design: documentation use case, with added _markdown description_
276
357
  - [ ] pr: validation must be optimized for the valid case, as it is the most likely.
277
358
  - [ ] case: use trafo in geo to have either 2 or 3 vectors, no mix.
278
- - [ ] clang: cJSON? json-c? other JSON library for C?
359
+ - [ ] c-backend: consider [yyjson](https://github.com/ibireme/yyjson)
360
+ - [ ] c-backend: consider [cJSON](https://github.com/davegamble/cjson) (linked lists? no ints?…)
361
+ - [ ] c-backend: consider [json-c](https://github.com/json-c/json-c)
362
+ - [ ] ~c-backend: consider [json.h](https://github.com/sheredom/json.h) (hmmm, linked lists)~
279
363
 
280
364
  ## Done
281
365
 
@@ -796,3 +880,8 @@
796
880
  - [x] c-backend: fix long option parsing
797
881
  - [x] c-backend: use monotonic instead of realtime clock which has a better precision
798
882
  - [x] java-backend: fix previously untested `--jsonschema-benchmark` implementation
883
+ - [x] optim: do not recheck object if not necessary
884
+ - [x] command: show runtime directory with `--runtime`
885
+ - [x] optim: better merge `&` list when possible, including regex prefix incompatibilities
886
+ - [x] js-backend: export model map
887
+ - [x] pl-backend: add and export `_mapper` function
@@ -9,21 +9,20 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
9
9
 
10
10
  ## Recent Artifacts
11
11
 
12
+ - [2026040700](benchmarks/2026040700.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.20.2, 11 runs, 1000 iterations.
13
+ - [2026040400](benchmarks/2026040400.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.19.0, 11 runs, 1000 iterations.
14
+ - [2026040300](benchmarks/2026040300.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.18.0, 11 runs, 1000 iterations.
15
+ - [2026040200](benchmarks/2026040200.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.17.1, 11 runs, 1000 iterations.
16
+ - [2026032801](benchmarks/2026032801.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.17.0, 11 runs, 1000 iterations.
17
+ - [2026032700](benchmarks/2026032700.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.2, 11 runs, 1000 iterations.
18
+ - [2026032500](benchmarks/2026032500.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.1, 11 runs, 1000 iterations.
19
+ - [2026031900](benchmarks/2026031900.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.0, 11 runs, 1000 iterations.
20
+ - [2026031400](benchmarks/2026031400.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.14.2, 11 runs, 1000 iterations.
12
21
  - [2026031300](benchmarks/2026031300.md) clang, no predefs, jsu 0.9.1/jmc 2.0b40 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
22
  - [2026031000](benchmarks/2026031000.md) clang, no predefs, jsu 0.9.1/jmc 2.0b39 vs sbc 14.14.2, 11 runs, 1000 iterations.
14
23
  - [2026030901](benchmarks/2026030901.md) clang, no predefs, jsu 0.9.1/jmc 2.0b38 vs sbc 14.14.2, 11 runs, 1000 iterations.
15
24
  - [2026030703](benchmarks/2026030703.md) clang, no predefs, jmc 2.0b37 vs sbc 14.14.2, 11 runs, 1000 iterations.
16
25
  - [2026030700](benchmarks/2026030700.md) clang, no predefs, jmc 2.0b37 vs sbc 14.13.4, 5 runs, 1000 iterations.
17
- - [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.4, 11 runs, 1000 iterations.
18
- - [2026022000](benchmarks/2026022000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.3, 11 runs, 1000 iterations.
19
- - [2026021900](benchmarks/2026021900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.1, 11 runs, 1000 iterations.
20
- - [2026021702](benchmarks/2026021702.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.0, 11 runs, 1000 iterations.
21
- - [2026021701](benchmarks/2026021701.md) clang, no predefs, jmc 2.0b36 vs sbc 14.12.0, 11 runs, 1000 iterations.
22
- - [2026021700](benchmarks/2026021700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.11.0, 11 runs, 1000 iterations.
23
- - [2026021300](benchmarks/2026021300.md) clang, no predefs, jmc 2.0b36 vs sbc 14.10.0, 11 runs, 1000 iterations.
24
- - [2026021000](benchmarks/2026021000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.2, 11 runs, 1000 iterations.
25
- - [2026020600](benchmarks/2026020600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.1, 11 runs, 1000 iterations.
26
- - [2026020500](benchmarks/2026020500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.6.1, 11 runs, 1000 iterations.
27
26
 
28
27
  ## Benchmarking Script
29
28
 
@@ -53,8 +52,8 @@ The main script options are:
53
52
 
54
53
  ## Benchmarking Conditions
55
54
 
56
- JSON schemas for the benchmark are translated to models based on
57
- [JSON Schema Utils](https://github.com/zx80/json-schema-utils).
55
+ JSON schemas for the benchmark are translated to models based on `jsu-compile`
56
+ from [JSON Schema Utils](https://github.com/zx80/json-schema-utils).
58
57
  This is mostly an automatic conversion of the test schema to a model, but
59
58
  for a few cases which have a _native_ model which is used instead.
60
59
 
@@ -66,7 +65,6 @@ the run stops as soon as possible.
66
65
  - Compilation times are the _minimum_ encountered over the runs.
67
66
  whereas performance times are the _median_ over the runs.
68
67
  - The C backend also includes the _runtime_ compilation from sources.
69
- - JSON Schema to JSON Model conversion times are also recorded separately for information.
70
68
 
71
69
  Note that performance figures **must** be taken with a pinch of salt, please consider
72
70
  the following caveats, and others:
@@ -76,13 +74,14 @@ the following caveats, and others:
76
74
  benchmark actually measure raw latency.
77
75
  - test cases may or may not be representative of specific use cases,
78
76
  especially wrt schema/model and value sizes.
79
- - the overall load on the host can impact measures.
77
+ - the overall load on the test host can impact measures.
80
78
  - compilers, libraries and other design and updates can have dramatic effects:
81
79
  for faster parsing, a library may use linked-list for properties, which means
82
80
  that retrieving a given property value will cost more than a library which uses
83
81
  a hash table which is more costly to build.
84
82
  - blaze does _not_ implement checking string values (eg dates, url…),
85
- so these checks may be disactivated (see `JMC_OPTS`) for fairness.
83
+ so these checks may be disactivated (see `JMC_OPTS`) for fairness,
84
+ but reducing the results significance.
86
85
  - blaze uses its own special-purpose JSON representation: if interfaced from another
87
86
  ecosystem, the cost of translating the JSON representation should be taken into account;
88
87
  jmc uses native JSON representations and generate validation code around it.
@@ -104,14 +103,6 @@ also provides
104
103
  [benchmark artifacts](https://github.com/sourcemeta-research/jsonschema-benchmark/actions)
105
104
  which includes 15 JSON Schema validation tools including our JSON Model Compiler with
106
105
  C, JS and Python backends.
107
- Overall, JMC comes ahead of Blaze C++ on about 2/3 of the test cases (as of 2026-01-22).
108
-
109
- On Feb 5, 2026 the JMC-based implementations on this benchmark have been
110
- [removed](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/67dc4dfc7ad2d4a8e92a920b71fb813d8f3fb6a4)
111
- without prior notice nor discussion.
112
- The maintainer wants to focus on comparisons with JSON Schema direct implementations only
113
- and thus avoid some confusion.
114
- As a side effect, their Blaze C++ tool took back the performance leadership.
115
106
 
116
107
  It should be noted that benchmarking conditions are quite different:
117
108
 
@@ -123,5 +114,5 @@ It should be noted that benchmarking conditions are quite different:
123
114
  values, even if these values would be rejected by the target application.
124
115
 
125
116
  This latest point explains the under 100% validation results displayed JMC for
126
- _ansible-meta_, _cypress_ and _yamllint_ tests: the model translation or native models
117
+ _ansible-meta_, _cspell_, _cypress_ and _yamllint_ tests: the model translation or native models
127
118
  are more accurate than the original schemas due to bug fixes or more rigorous descriptions.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b41
3
+ Version: 2.0b42
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -15,6 +15,7 @@ Requires-Dist: requests
15
15
  Requires-Dist: google-re2
16
16
  Requires-Dist: pyyaml
17
17
  Requires-Dist: validators
18
+ Requires-Dist: fqdn
18
19
  Requires-Dist: json-schema-utils>=0.9.0
19
20
  Provides-Extra: dev
20
21
  Requires-Dist: flake8; extra == "dev"
@@ -140,6 +140,13 @@ for all possible values for that type.
140
140
  - `"$JSON"`: a valid JSON value, eg _123_ or _{"Susie": "Derkins"}_.
141
141
  - `"$REGEX"`: a valid regular expression, eg _^[a-z]+$_.
142
142
  - `"$EXREG"`: an extended regular expression (**EXPERIMENTAL**).
143
+ - `"$HOST"`: a hostname, eg _json-model.org_
144
+ - `"$IP4"`: an ipv4 address, eg _127.0.0.1_
145
+ - `"$IP6"`: an ipv6, eg _0::0_
146
+ - `"$ETH"`: an ethernet (mac) address, eg _De:ad:Be:ef:01:23_
147
+ - `"$CARD"`: a credit card number with a Luhn checksum, eg _1234567890123452_
148
+ - `"$JSONPT"`: an RFC6901 json pointer, eg _/http:~1~1json-model.org_
149
+ - `"$TIMETZ"`: time with timezone
143
150
 
144
151
  Any other all-capital ASCII character and digit names must be rejected as they
145
152
  are reserved for possible future predefs (eg URN, Luhn, ISBN, ISSN, EAN, DOI…).
@@ -26,10 +26,12 @@ cloc --md \
26
26
  json_model/analyze.py \
27
27
  json_model/convert.py \
28
28
  json_model/export.py \
29
+ json_model/predefs.py \
29
30
  json_model/language.py \
30
31
  json_model/model.py \
31
32
  json_model/mtypes.py \
32
- json_model/objmerge.py \
33
+ json_model/submodel.py \
34
+ json_model/objops.py \
33
35
  json_model/optim.py \
34
36
  json_model/recurse.py \
35
37
  json_model/resolver.py \
@@ -0,0 +1 @@
1
+ .build.*
@@ -28,10 +28,11 @@ export JMC = $(BRANCH)
28
28
  #
29
29
  .PHONY: clean
30
30
  clean:
31
- $(RM) .build
31
+ $(RM) .build.base .build.jmc
32
32
 
33
33
  .PHONY: pod.clean
34
34
  pod.clean: clean
35
+ $(POD) system prune -f
35
36
  $(POD) image prune -f
36
37
  $(POD) container prune -f
37
38
  $(POD) image rm -f $$($(POD) image ls | grep '^<none>' | tr -s " " " " | cut -d' ' -f 3) jmc
@@ -44,19 +45,24 @@ pod.cleaner:
44
45
  #
45
46
  # POD (docker ou podman)
46
47
  #
47
- POD.opts = --no-cache
48
+ BASE.cache =
49
+ JMC.cache = --no-cache
48
50
  JMC = $(BRANCH)
49
51
  JSU = main
50
52
 
51
53
  .PHONY: pod.build
52
- pod.build: .build
54
+ pod.build: .build.base .build.jmc
53
55
 
54
- .build: Containerfile jmc
55
- $(POD) build $(POD.opts) --build-arg JMC=$(JMC) --build-arg JSU=$(JSU) \
56
- -t jmc -f Containerfile . && date -Iseconds > $@
56
+ .build.base: base.container
57
+ $(POD) build $(BASE.cache) -t jmc-base -f base.container . && date -Iseconds > $@
58
+ $(POD) tag jmc-base $(ZX80)/jmc-base:latest
59
+
60
+ .build.jmc: jmc.container
61
+ $(POD) build $(JMC.cache) --build-arg JMC=$(JMC) --build-arg JSU=$(JSU) \
62
+ -t jmc -f jmc.container . && date -Iseconds > $@
57
63
 
58
64
  .PHONY: pod.run
59
- pod.run: .build
65
+ pod.run: pod.build
60
66
  @echo $(POD) run --user $$UID:$$GID -v .:/workspace -it --rm --entrypoint /bin/bash jmc
61
67
 
62
68
  .PHONY: pod.status
@@ -75,7 +81,7 @@ versions:
75
81
  echo " - version: $(VERSION)"
76
82
 
77
83
  .PHONY: pod.tag
78
- pod.tag: .build
84
+ pod.tag: .build.jmc
79
85
  export POD=$(POD)
80
86
  $(POD) tag jmc $(ZX80)/jmc:$(TAG)
81
87
  $(POD) tag jmc $(ZX80)/jmc:$(BRANCH)
@@ -84,4 +90,10 @@ pod.tag: .build
84
90
  .PHONY: pod.push
85
91
  pod.push: pod.tag
86
92
  # if needed: docker login
93
+ $(POD) push $(ZX80)/jmc-base:latest
87
94
  $(POD) push -a $(ZX80)/jmc
95
+
96
+ .PHONY: quick-pod.push
97
+ quick-pod.push: pod.tag
98
+ $(POD) push $(ZX80)/jmc:$(BRANCH)
99
+ $(POD) push $(ZX80)/jmc:$(TAG)
@@ -1,10 +1,8 @@
1
1
  #
2
- # JSON Model Compiler Multi-Language Environment
2
+ # Ubuntu-Based Multi-Language Environment
3
3
  #
4
4
  FROM ubuntu:24.04
5
- LABEL description="JSON Model Compiler"
6
- ARG JMC=main
7
- ARG JSU=main
5
+ LABEL description="Ubuntu C Java JS Perl Python"
8
6
 
9
7
  # system update, installs, cleanup
10
8
  RUN apt update ; \
@@ -41,13 +39,14 @@ ENV LD_LIBRARY_PATH=/usr/local/lib
41
39
  # setup python environment, native pip complains about direct installations otherwise
42
40
  RUN python -m venv venv ; \
43
41
  venv/bin/pip install -U pip ; \
44
- venv/bin/pip install pytest pytest-xdist[psutils] filelock
42
+ venv/bin/pip install pytest pytest-xdist[psutils] filelock \
43
+ requests jschon jsonschema[format] pyyaml validators fqdn google-re2
45
44
  ENV PATH=/app/venv/bin:$PATH
46
45
 
47
46
  # nodejs >= 20.0.0
48
47
  ENV NVM_DIR=/usr/local/nvm
49
48
  RUN mkdir -p $NVM_DIR
50
- RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
49
+ RUN curl -s -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
51
50
  RUN . $NVM_DIR/nvm.sh && \
52
51
  nvm install stable && \
53
52
  nvm alias default stable && \
@@ -61,26 +60,17 @@ ENV PATH=$NVM_DIR/versions/node/stable/bin:$PATH
61
60
  RUN echo '{"name":"zx80-jmc","type":"module"}' | jq > package.json
62
61
  RUN npm install re2
63
62
 
64
- # actual application stuff
65
- # direct install json-model and json-schema-utils from github
66
- # pip install json-model-compiler json-schema-utils
67
- # npm install json_model_runtime
68
-
69
- RUN git clone -b $JMC https://github.com/clairey-zx81/json-model.git
70
- RUN /app/venv/bin/pip install -e ./json-model
71
- RUN npm install file:./json-model/json_model/runtime/js
72
- # RUN ls -la node_modules
73
- # RUN rm -rf ./json-model # no, editable
74
-
75
- RUN git clone -b $JSU https://github.com/zx80/json-schema-utils.git
76
- RUN /app/venv/bin/pip install -e ./json-schema-utils
77
- # RUN rm -rf ./json-schema-utils # no, editable
63
+ # convenient shell and vi environment
64
+ RUN echo "# reset default prompt\nexport PS1='zx80/jmc> '" >> /etc/bash.bashrc
65
+ RUN echo "syntax on\nset expandtab\nset tabstop=4\nset shiftwidth=4\nset ruler" >> /etc/vim/vimrc.local
78
66
 
79
67
  # java runtime, direct download with hardcoded version
80
- ENV java=/app/json-model/json_model/runtime/java
68
+ RUN mkdir /app/java
69
+ ENV java=/app/java
70
+
81
71
  ENV gson=2.13.2
82
- ENV jackson=2.20.1
83
- ENV jackson_ann=2.20
72
+ ENV jackson=2.21.1
73
+ ENV jackson_ann=2.21
84
74
  ENV jakarta=2.1.3
85
75
  ENV johnzon=2.0.2
86
76
  RUN for artifact in \
@@ -94,27 +84,9 @@ RUN for artifact in \
94
84
  do \
95
85
  mvn dependency:copy -Dartifact=$artifact -DoutputDirectory=$java ; \
96
86
  done
87
+
97
88
  ENV CLASSPATH=.:/app/workspace:/app/workspace/java:/app/workspace/tmp
98
- ENV CLASSPATH=$CLASSPATH:$java/json-model.jar
99
89
  ENV CLASSPATH=$CLASSPATH:/usr/share/java/gnu-getopt.jar
100
90
  ENV CLASSPATH=$CLASSPATH:$java/gson-$gson.jar
101
91
  ENV CLASSPATH=$CLASSPATH:$java/jackson-core-$jackson.jar:$java/jackson-databind-$jackson.jar:$java/jackson-annotations-$jackson_ann.jar
102
92
  ENV CLASSPATH=$CLASSPATH:$java/jakarta.json-api-$jakarta.jar:$java/johnzon-core-$johnzon.jar
103
- RUN make -C $java jar
104
-
105
- # convenient shell and vi environment
106
- RUN echo "# reset default prompt\nexport PS1='zx80/jmc> '" >> /etc/bash.bashrc
107
- RUN echo "syntax on\nset expandtab\nset tabstop=4\nset shiftwidth=4\nset ruler" >> /etc/vim/vimrc.local
108
-
109
- # fix perms to allow any uid to read/write
110
- RUN find /app -type d -print | xargs chmod a+rwx
111
- RUN find /app -type f -print | xargs chmod a+rw
112
-
113
- # setup docker entry point and utils
114
- RUN mkdir /app/workspace
115
- WORKDIR /app/workspace
116
- ENV TMPDIR=/tmp
117
- ENV JSON_MODEL_CACHEDIR=/tmp
118
- ENV PERLLIB=/app/json-model/json_model/runtime/pl/lib
119
- ENV PATH=$PATH:.
120
- ENTRYPOINT ["/app/venv/bin/jmc"]
@@ -0,0 +1,45 @@
1
+ #
2
+ # JMC
3
+ #
4
+ FROM docker.io/zx80/jmc-base
5
+ LABEL description="JSON Model Compiler"
6
+
7
+ # installation options
8
+ ARG JMC=main
9
+ ARG JSU=main
10
+
11
+ # actual application stuff
12
+ # direct install json-model and json-schema-utils from github
13
+ # pip install json-model-compiler json-schema-utils
14
+ # npm install json_model_runtime
15
+ RUN curl -s "https://api.github.com/repos/clairey-zx81/json-model/commits/${JMC}" | \
16
+ jq -c "{jmc: .sha}" >> /app/commits.jsonl
17
+ RUN git clone -b $JMC https://github.com/clairey-zx81/json-model.git
18
+ RUN /app/venv/bin/pip install -e ./json-model
19
+ RUN npm install file:./json-model/json_model/runtime/js
20
+ # RUN ls -la node_modules
21
+ # RUN rm -rf ./json-model # no, editable
22
+
23
+ RUN curl -s "https://api.github.com/repos/zx80/json-schema-utils/commits/${JSU}" | \
24
+ jq -c "{jsu: .sha}" >> /app/commits.jsonl
25
+ RUN git clone -b $JSU https://github.com/zx80/json-schema-utils.git
26
+ RUN /app/venv/bin/pip install -e ./json-schema-utils
27
+
28
+ # compile java runtime
29
+ ENV jmc_rt=/app/json-model/json_model/runtime
30
+ RUN make -C $jmc_rt/java jar
31
+ ENV CLASSPATH=$CLASSPATH:$jmc_rt/java/json-model.jar
32
+
33
+ # fix perms to allow any uid to read/write
34
+ RUN find /app -type d -print | xargs chmod a+rwx
35
+ RUN find /app -type f -print | xargs chmod a+rw
36
+
37
+ RUN mkdir /app/workspace
38
+ WORKDIR /app/workspace
39
+
40
+ # setup docker entry point and utils
41
+ ENV TMPDIR=/tmp
42
+ ENV JSON_MODEL_CACHEDIR=/tmp
43
+ ENV PERLLIB=$jmc_rt/pl/lib
44
+ ENV PATH=$PATH:.
45
+ ENTRYPOINT ["/app/venv/bin/jmc"]
@@ -29,7 +29,7 @@
29
29
  - [utils](./utils.py)
30
30
  [analyze](./analyze.py)
31
31
  [mtypes](./mtypes.py)
32
- [objmerge](./objmerge.py)
32
+ [objops](./objops.py)
33
33
  [optim](./optim.py)
34
34
  [recurse](./recurse.py)
35
35
  various utilities
@@ -5,7 +5,8 @@ import functools
5
5
  import re
6
6
 
7
7
  from .mtypes import UnknownModel, ModelPath, ModelType, ModelFilter, ModelObject, ModelArray
8
- from .utils import log, CONST_RE, is_regex, is_a_simple_object
8
+ from .utils import log, is_regex, is_a_simple_object
9
+ from .predefs import CONST_RE, STR_MODEL_PREDEFS, BOOL_MODEL_PREDEFS, INT_MODEL_PREDEFS, FLOAT_MODEL_PREDEFS
9
10
  from .recurse import recModel, allFlt, noRwt
10
11
  from .model import JsonModel
11
12
  from .runtime import ConstSet
@@ -132,7 +133,9 @@ def valid(jm: JsonModel, path: ModelPath = [], root: bool = True, extend: bool =
132
133
  except Exception:
133
134
  is_valid = False
134
135
  elif model[0] == "$":
135
- pass
136
+ # reject predef extensions
137
+ if not extend and model.startswith("$__EXTENSION_"):
138
+ is_valid = False
136
139
  else: # TODO more checks
137
140
  pass
138
141
  case list():
@@ -197,18 +200,17 @@ def valid(jm: JsonModel, path: ModelPath = [], root: bool = True, extend: bool =
197
200
  _UTYPE = {
198
201
  "$ANY": None, "$NONE": None,
199
202
  "$NULL": type(None),
200
- "$BOOL": bool, "$BOOLEAN": bool,
201
- "$I32": int, "$U32": int, "$I64": int, "$U64": int, "$INT": int, "$INTEGER": int,
202
- "$F32": float, "$F64": float, "$FLOAT": float, "$NUMBER": float,
203
- "$STRING": str,
204
- "$URL": str, "$URI": str, "$EMAIL": str,
205
- "$REGEX": str, "$EXREG": str,
206
- "$DATE": str, "$TIME": str, "$DATETIME": str,
207
- "$UUID": str, "$JSON": str,
208
- # TODO
209
- "$IP4": str, "$IP6": str, "$DURATION": str, "$JSONPT": str, "$HOSTNAME": str,
210
203
  }
211
204
 
205
+ for predef in BOOL_MODEL_PREDEFS:
206
+ _UTYPE[predef] = bool
207
+ for predef in INT_MODEL_PREDEFS:
208
+ _UTYPE[predef] = int
209
+ for predef in FLOAT_MODEL_PREDEFS:
210
+ _UTYPE[predef] = float
211
+ for predef in STR_MODEL_PREDEFS:
212
+ _UTYPE[predef] = str
213
+
212
214
  def _ultimate_type(jm: JsonModel, model: ModelType, names: set[str]) -> type|None:
213
215
  match model:
214
216
  case str():
@@ -272,27 +274,15 @@ _UMODEL = {
272
274
  "$I32": -1, "$U32": 0, "$I64": -1, "$U64": 0, "$INTEGER": -1,
273
275
  "$F32": -1.0, "$F64": -1.0, "$NUMBER": -1.0,
274
276
  "$STRING": "",
275
- # stop recursion on (some) predefs
276
277
  "$ANY": "$ANY",
277
278
  "$NONE": "$NONE",
278
- "$URL": "$URL",
279
- "$REGEX": "$REGEX",
280
- "$EXREG": "$EXREG",
281
- "$DATE": "$DATE",
282
- "$TIME": "$TIME",
283
- "$DATETIME": "$DATETIME",
284
- "$UUID": "$UUID",
285
- "$URI": "$URI",
286
- "$EMAIL": "$EMAIL",
287
- "$JSON": "$JSON",
288
- "$IP4": "$IP4",
289
- "$IP6": "$IP6",
290
- "$DURATION": "$DURATION",
291
- "$JSONPT": "$JSONPT",
292
- "$HOSTNAME": "$HOSTNAME",
293
- # to be continued…
294
279
  }
295
280
 
281
+ # str content predefs are their own standard model
282
+ for predef in STR_MODEL_PREDEFS:
283
+ if predef not in _UMODEL:
284
+ _UMODEL[predef] = predef
285
+
296
286
  def ultimate_model(jm: JsonModel, model: ModelType, constrained=True, strict=False) -> ModelType:
297
287
  """Look for the real model, beyond references."""
298
288
  log.debug(f"ultimate_model on {model}")