json-model-compiler 2.0b41__tar.gz → 2.0b43__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 (276) hide show
  1. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/.gitignore +1 -0
  2. {json_model_compiler-2.0b41/site → json_model_compiler-2.0b43}/BACKLOG.md +108 -16
  3. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/BENCH.md +16 -24
  4. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/PKG-INFO +2 -1
  5. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/SPEC.md +7 -0
  6. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/about.sh +3 -1
  7. json_model_compiler-2.0b43/container/.gitignore +1 -0
  8. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/container/Makefile +20 -8
  9. json_model_compiler-2.0b41/container/Containerfile → json_model_compiler-2.0b43/container/base.container +14 -42
  10. json_model_compiler-2.0b43/container/jmc.container +45 -0
  11. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/README.md +1 -1
  12. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/analyze.py +19 -29
  13. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/clang.py +600 -46
  14. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/convert.py +32 -27
  15. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/irep.py +168 -42
  16. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/java.py +29 -29
  17. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/javascript.py +30 -22
  18. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/language.py +62 -23
  19. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/model.py +36 -58
  20. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/mtypes.py +7 -4
  21. json_model_compiler-2.0b43/json_model/objops.py +467 -0
  22. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/optim.py +166 -141
  23. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/perl.py +30 -30
  24. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/plpgsql.py +44 -30
  25. json_model_compiler-2.0b43/json_model/predefs.py +184 -0
  26. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/python.py +35 -29
  27. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/__init__.py +7 -3
  28. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/c/json-model.c +162 -20
  29. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/c/json-model.h +29 -0
  30. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/c/main.c +3 -110
  31. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/Main.java +7 -19
  32. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/Runtime.java +26 -15
  33. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/pom.xml +10 -10
  34. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/js/index.js +8 -14
  35. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/js/main.js +1 -52
  36. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/js/package.json +4 -1
  37. json_model_compiler-2.0b43/json_model/runtime/pl/Changes +16 -0
  38. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/Makefile.PL +1 -0
  39. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/lib/JSON/JsonModel.pm +11 -83
  40. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/sql/json_model--2.0.sql +41 -7
  41. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/support.py +80 -74
  42. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/script.py +72 -44
  43. json_model_compiler-2.0b43/json_model/submodel.py +219 -0
  44. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/utils.py +62 -53
  45. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/xstatic.py +167 -68
  46. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model_compiler.egg-info/PKG-INFO +2 -1
  47. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model_compiler.egg-info/SOURCES.txt +38 -35
  48. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model_compiler.egg-info/requires.txt +1 -0
  49. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/everything.model.json +6 -0
  50. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/jmc-ir.model.json +5 -3
  51. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/pyproject.toml +3 -2
  52. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43/site}/BACKLOG.md +108 -16
  53. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/BENCH.md +16 -24
  54. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/SPEC.md +7 -0
  55. json_model_compiler-2.0b43/site/benchmarks/2026031400.csv +171 -0
  56. json_model_compiler-2.0b43/site/benchmarks/2026031400.json +296 -0
  57. json_model_compiler-2.0b43/site/benchmarks/2026031400.md +216 -0
  58. json_model_compiler-2.0b43/site/benchmarks/2026031900.csv +171 -0
  59. json_model_compiler-2.0b43/site/benchmarks/2026031900.json +296 -0
  60. json_model_compiler-2.0b43/site/benchmarks/2026031900.md +216 -0
  61. json_model_compiler-2.0b43/site/benchmarks/2026032500.csv +171 -0
  62. json_model_compiler-2.0b43/site/benchmarks/2026032500.json +296 -0
  63. json_model_compiler-2.0b43/site/benchmarks/2026032500.md +216 -0
  64. json_model_compiler-2.0b43/site/benchmarks/2026032700.csv +171 -0
  65. json_model_compiler-2.0b43/site/benchmarks/2026032700.json +296 -0
  66. json_model_compiler-2.0b43/site/benchmarks/2026032700.md +216 -0
  67. json_model_compiler-2.0b43/site/benchmarks/2026032801.csv +171 -0
  68. json_model_compiler-2.0b43/site/benchmarks/2026032801.json +296 -0
  69. json_model_compiler-2.0b43/site/benchmarks/2026032801.md +216 -0
  70. json_model_compiler-2.0b43/site/benchmarks/2026040200.csv +171 -0
  71. json_model_compiler-2.0b43/site/benchmarks/2026040200.json +296 -0
  72. json_model_compiler-2.0b43/site/benchmarks/2026040200.md +216 -0
  73. json_model_compiler-2.0b43/site/benchmarks/2026040300.csv +171 -0
  74. json_model_compiler-2.0b43/site/benchmarks/2026040300.json +296 -0
  75. json_model_compiler-2.0b43/site/benchmarks/2026040300.md +216 -0
  76. json_model_compiler-2.0b43/site/benchmarks/2026040400.csv +171 -0
  77. json_model_compiler-2.0b43/site/benchmarks/2026040400.json +296 -0
  78. json_model_compiler-2.0b43/site/benchmarks/2026040400.md +216 -0
  79. json_model_compiler-2.0b43/site/benchmarks/2026040700.csv +171 -0
  80. json_model_compiler-2.0b43/site/benchmarks/2026040700.json +296 -0
  81. json_model_compiler-2.0b43/site/benchmarks/2026040700.md +216 -0
  82. json_model_compiler-2.0b43/site/benchmarks/2026042001.csv +176 -0
  83. json_model_compiler-2.0b43/site/benchmarks/2026042001.json +296 -0
  84. json_model_compiler-2.0b43/site/benchmarks/2026042001.md +221 -0
  85. json_model_compiler-2.0b41/container/.gitignore +0 -1
  86. json_model_compiler-2.0b41/json_model/objmerge.py +0 -174
  87. json_model_compiler-2.0b41/json_model/runtime/pl/Changes +0 -10
  88. json_model_compiler-2.0b41/site/benchmarks/2026020500.csv +0 -167
  89. json_model_compiler-2.0b41/site/benchmarks/2026020500.json +0 -296
  90. json_model_compiler-2.0b41/site/benchmarks/2026020500.md +0 -211
  91. json_model_compiler-2.0b41/site/benchmarks/2026020600.csv +0 -173
  92. json_model_compiler-2.0b41/site/benchmarks/2026020600.json +0 -296
  93. json_model_compiler-2.0b41/site/benchmarks/2026020600.md +0 -217
  94. json_model_compiler-2.0b41/site/benchmarks/2026021000.csv +0 -171
  95. json_model_compiler-2.0b41/site/benchmarks/2026021000.json +0 -296
  96. json_model_compiler-2.0b41/site/benchmarks/2026021000.md +0 -215
  97. json_model_compiler-2.0b41/site/benchmarks/2026021300.csv +0 -171
  98. json_model_compiler-2.0b41/site/benchmarks/2026021300.json +0 -296
  99. json_model_compiler-2.0b41/site/benchmarks/2026021300.md +0 -215
  100. json_model_compiler-2.0b41/site/benchmarks/2026021700.csv +0 -171
  101. json_model_compiler-2.0b41/site/benchmarks/2026021700.json +0 -296
  102. json_model_compiler-2.0b41/site/benchmarks/2026021700.md +0 -214
  103. json_model_compiler-2.0b41/site/benchmarks/2026021701.csv +0 -171
  104. json_model_compiler-2.0b41/site/benchmarks/2026021701.json +0 -296
  105. json_model_compiler-2.0b41/site/benchmarks/2026021701.md +0 -214
  106. json_model_compiler-2.0b41/site/benchmarks/2026021702.csv +0 -171
  107. json_model_compiler-2.0b41/site/benchmarks/2026021702.json +0 -296
  108. json_model_compiler-2.0b41/site/benchmarks/2026021702.md +0 -214
  109. json_model_compiler-2.0b41/site/benchmarks/2026021900.csv +0 -171
  110. json_model_compiler-2.0b41/site/benchmarks/2026021900.json +0 -296
  111. json_model_compiler-2.0b41/site/benchmarks/2026021900.md +0 -214
  112. json_model_compiler-2.0b41/site/benchmarks/2026022000.csv +0 -171
  113. json_model_compiler-2.0b41/site/benchmarks/2026022000.json +0 -296
  114. json_model_compiler-2.0b41/site/benchmarks/2026022000.md +0 -214
  115. json_model_compiler-2.0b41/site/benchmarks/2026022400.csv +0 -171
  116. json_model_compiler-2.0b41/site/benchmarks/2026022400.json +0 -296
  117. json_model_compiler-2.0b41/site/benchmarks/2026022400.md +0 -214
  118. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/.gitmodules +0 -0
  119. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/API.md +0 -0
  120. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/DESIGN.md +0 -0
  121. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/DEV.md +0 -0
  122. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/DOC.md +0 -0
  123. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/HOWTO.md +0 -0
  124. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/INTEGRATION.md +0 -0
  125. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/MANIFEST.in +0 -0
  126. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/Makefile +0 -0
  127. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/PUBS.md +0 -0
  128. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/README.md +0 -0
  129. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/TUTO.md +0 -0
  130. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/container/.dockerignore +0 -0
  131. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/container/README.md +0 -0
  132. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/container/jmc +0 -0
  133. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/__init__.py +0 -0
  134. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/clang_entry.c +0 -0
  135. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/clang_free.c +0 -0
  136. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/clang_init.c +0 -0
  137. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/clang_pcre2_fun.c +0 -0
  138. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/clang_re2_fun.c +0 -0
  139. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/java_free.java +0 -0
  140. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/java_init.java +0 -0
  141. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/javascript_exe.js +0 -0
  142. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/javascript_foot.js +0 -0
  143. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/javascript_free.js +0 -0
  144. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/javascript_head.js +0 -0
  145. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/javascript_init.js +0 -0
  146. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/javascript_main.js +0 -0
  147. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/jmc.pod +0 -0
  148. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/perl_entry.pl +0 -0
  149. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/perl_exe.pl +0 -0
  150. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/perl_free.pl +0 -0
  151. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/perl_init.pl +0 -0
  152. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/perl_main.pl +0 -0
  153. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/perl_pkg.pl +0 -0
  154. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/plpgsql_entry.sql +0 -0
  155. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/python_entry.py +0 -0
  156. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/python_exe.py +0 -0
  157. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/python_free.py +0 -0
  158. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/python_init.py +0 -0
  159. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/data/python_main.py +0 -0
  160. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/export.py +0 -0
  161. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/recurse.py +0 -0
  162. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/resolver.py +0 -0
  163. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/Makefile +0 -0
  164. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/c/Makefile +0 -0
  165. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/.gitignore +0 -0
  166. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/Makefile +0 -0
  167. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/README.md +0 -0
  168. /json_model_compiler-2.0b41/json_model/runtime/java/env.bash → /json_model_compiler-2.0b43/json_model/runtime/java/env.sh +0 -0
  169. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/Checker.java +0 -0
  170. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/GSON.java +0 -0
  171. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/JSON.java +0 -0
  172. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/JSONP.java +0 -0
  173. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/Jackson.java +0 -0
  174. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  175. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/Path.java +0 -0
  176. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/java/json_model/Report.java +0 -0
  177. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/js/README.md +0 -0
  178. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/.gitignore +0 -0
  179. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/LICENSE +0 -0
  180. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/MANIFEST +0 -0
  181. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/README +0 -0
  182. /json_model_compiler-2.0b41/json_model/runtime/pl/env.bash → /json_model_compiler-2.0b43/json_model/runtime/pl/env.sh +0 -0
  183. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/ignore.txt +0 -0
  184. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/t/00-load.t +0 -0
  185. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/t/manifest.t +0 -0
  186. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  187. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/t/pod.t +0 -0
  188. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  189. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/sql/META.json +0 -0
  190. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/sql/Makefile +0 -0
  191. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/sql/json_model.control +0 -0
  192. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/runtime/types.py +0 -0
  193. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model/url_cache.py +0 -0
  194. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  195. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model_compiler.egg-info/entry_points.txt +0 -0
  196. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/json_model_compiler.egg-info/top_level.txt +0 -0
  197. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/ansiblelint-meta.model.json +0 -0
  198. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/cypress.model.json +0 -0
  199. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/diploma-arrete.model.json +0 -0
  200. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/diploma-export.model.json +0 -0
  201. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/fresq.model.json +0 -0
  202. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/geo-easy.model.json +0 -0
  203. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/geo.model.json +0 -0
  204. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-model-latest.model.json +0 -0
  205. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-model-moschin.model.json +0 -0
  206. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-model-no-merge.model.json +0 -0
  207. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-model-v1.model.json +0 -0
  208. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-model-v2-en.model.json +0 -0
  209. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-model-v2.model.json +0 -0
  210. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-model.model.json +0 -0
  211. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-01-fuzzy.model.json +0 -0
  212. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-01-nesting.model.json +0 -0
  213. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-01.model.json +0 -0
  214. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-02-fuzzy.model.json +0 -0
  215. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-02-nesting.model.json +0 -0
  216. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-02.model.json +0 -0
  217. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-03-fuzzy.model.json +0 -0
  218. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-03-nesting.model.json +0 -0
  219. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-03.model.json +0 -0
  220. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-04-fuzzy.model.json +0 -0
  221. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-04-mongodb.model.json +0 -0
  222. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-04-nesting.model.json +0 -0
  223. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-04.model.json +0 -0
  224. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-06-fuzzy.model.json +0 -0
  225. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-06.model.json +0 -0
  226. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-07-fuzzy.model.json +0 -0
  227. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-07.model.json +0 -0
  228. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
  229. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-2019-09.model.json +0 -0
  230. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
  231. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-2020-12-tight.model.json +0 -0
  232. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-2020-12.model.json +0 -0
  233. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-next-fuzzy.model.json +0 -0
  234. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-next.model.json +0 -0
  235. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-tight.model.json +0 -0
  236. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-tighter-loose.model.json +0 -0
  237. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-draft-tighter.model.json +0 -0
  238. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/json-schema-linter.model.json +0 -0
  239. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/jsound.model.json +0 -0
  240. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/l10n.model.json +0 -0
  241. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/lazygit.model.json +0 -0
  242. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/openapi-311-fuzzy.model.json +0 -0
  243. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/openapi-311-models.model.json +0 -0
  244. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/openapi-311.model.json +0 -0
  245. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/person.model.json +0 -0
  246. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/person2.model.json +0 -0
  247. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/pgxn.model.json +0 -0
  248. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/models/test-schema.model.json +0 -0
  249. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/package.json +0 -0
  250. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/setup.cfg +0 -0
  251. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/API.md +0 -0
  252. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/DEV.md +0 -0
  253. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/DOC.md +0 -0
  254. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/HOWTO.md +0 -0
  255. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/PUBS.md +0 -0
  256. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/README.md +0 -0
  257. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/TUTO.md +0 -0
  258. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030700.csv +0 -0
  259. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030700.json +0 -0
  260. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030700.md +0 -0
  261. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030703.csv +0 -0
  262. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030703.json +0 -0
  263. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030703.md +0 -0
  264. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030901.csv +0 -0
  265. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030901.json +0 -0
  266. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026030901.md +0 -0
  267. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026031000.csv +0 -0
  268. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026031000.json +0 -0
  269. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026031000.md +0 -0
  270. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026031300.csv +0 -0
  271. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026031300.json +0 -0
  272. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/benchmarks/2026031300.md +0 -0
  273. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/cover.md +0 -0
  274. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/favicon.ico +0 -0
  275. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/site/index.html +0 -0
  276. {json_model_compiler-2.0b41 → json_model_compiler-2.0b43}/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,41 @@
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] optim: override simpler regex props if stricter
6
+ - [ ] perl-backend: do not import RE2 unless required in generated script
7
+ - [ ] perl-backend: improve resilience to missing dependencies, eg `Algorithm::LUHN`.
8
+ - [ ] perf: show schema to model conversion times
9
+ - [ ] js-backend: remove useless braces
10
+ - [ ] c-backend: use str cmp for ends with optimization as well
11
+ - [ ] c-backend: improve partitioned cset prettyprinting
12
+ - [ ] c-backend: use str set partitioning
13
+ - [ ] c-backend: simplify parameters for accelerated functions
14
+ - [ ] c-runtime: use own hash instead of qsort/bsearch stuff?
15
+ - [ ] static: could sorted property name comparison be used for some scans??
16
+ - [ ] c-backend: fast str comparison could take advantage of known strlen??
17
+ - [ ] c-backend: property name length for jansson is stored at `(str_ptr - sizeof(size_t))`
18
+ - [ ] c-backend: use knowledge of Jansson hash to improve property lookup??
19
+ - [ ] c-backend: generate custom character class ascii tables?
20
+ - [ ] c-backend: custom char classes: `[:-] [a-zA-Z0-9_\\.\\-\\|@#] [a-zA-Z_$] [a-zA-Z0-9_\\-] [a-zA-Z0-9_.:-]`
21
+ - [ ] docker: use ubuntu 26.04 base
22
+ - [ ] optim: remove props which match the default, in some cases?
23
+ - [ ] optim: regex list of words to enum?
24
+ - [ ] static: improve startswith pattern recognition `/^xyz.*/`
25
+ - [ ] test: fast mode which does not execute if source has not changed
16
26
  - [ ] test: add test categories (mark?)
17
- - [ ] doc: improve developer documentation
18
27
  - [ ] test: allow to skip some tests by category
28
+ - [ ] predefs: extension for _uri reference_, _iri reference_, _uri template_
29
+ - [ ] predefs: _url_ vs _uri_ vs _iri_
30
+ - [ ] predefs: improve `$URI` and `$URL`
31
+ - [ ] backend: check leap-second support on `$DATETIME` and `$TIME`
32
+ - [ ] doc: add _known limitations_ stuff
33
+ - [ ] doc: improve developer documentation
34
+ - [ ] spec: restrict regex syntax to a smaller subset
35
+ - [ ] predefs: add `$SIMPLE_REGEX` for regex syntax subset?
19
36
  - [ ] docker: enable user remap
20
37
  - [ ] export: java classes
21
38
  - [ ] export: go interfaces
39
+ - [ ] export: ts interfaces
22
40
  - [ ] static: make regex groups non capturing when appropriate?
23
41
  - [ ] static: xor acceleration based on distinct mandatory props
24
42
  - [ ] static: merge partial mandatory prop discriminants
@@ -35,11 +53,13 @@
35
53
  - [ ] backend: remove useless `ELSE NULL` see `mv-02/geo.sql`
36
54
  - [ ] command: export before/after model optimization
37
55
  - [ ] perf: experiment object matching with various mandatory/optional properties
56
+ - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
38
57
  - [ ] backend: optimize pattern "res = E1; return res || E2;" (only one use)
39
58
  - [ ] backend: optimize pattern "res = E; if (! res) ret F; res not used before set;"
40
59
  - [ ] backend: optimize pattern "{ decl X = ... ; res = f(X (once) ) }"
41
60
  - [ ] backend: simplify assignment patterns with ternary operator when available?
42
61
  - [ ] backend: consider applying language-specific formatting tools? `clang-format`, `black`…
62
+ - [ ] backend: actually remove ignore code and sequences
43
63
  - [ ] c-backend: get pval string into a variable for strcmp unrolling and inlining
44
64
  - [ ] c-backend: add number of chunks limit to strcmp optimization
45
65
  - [ ] c-backend: strcmp to const inlining and unrolling for all instances
@@ -85,6 +105,8 @@
85
105
  - [ ] perf: profile some cases
86
106
  - [ ] c-backend: use vector instructions for larger strcmp?
87
107
  - [ ] export: sqlalchemy
108
+ - [ ] predefs: add country codes, eg `$COUNTRY $COUNTRY2 $COUNTRY3 $COUNTRYN`
109
+ - [ ] spec: be precise about predefs standard references, eg `$DATE` and co.
88
110
 
89
111
  ## Re Do
90
112
 
@@ -269,13 +291,15 @@
269
291
  - [ ] vb-backend: ?
270
292
  - [ ] julia-backend: ?
271
293
  - [ ] 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?
294
+ - [ ] feat: add model predef for URI, URI-REF and the like
295
+ - [ ] design: URI vs URL vs IRI?
275
296
  - [ ] design: documentation use case, with added _markdown description_
276
297
  - [ ] pr: validation must be optimized for the valid case, as it is the most likely.
277
298
  - [ ] case: use trafo in geo to have either 2 or 3 vectors, no mix.
278
- - [ ] clang: cJSON? json-c? other JSON library for C?
299
+ - [ ] c-backend: consider [yyjson](https://github.com/ibireme/yyjson)
300
+ - [ ] c-backend: consider [cJSON](https://github.com/davegamble/cjson) (linked lists? no ints?…)
301
+ - [ ] c-backend: consider [json-c](https://github.com/json-c/json-c)
302
+ - [ ] ~c-backend: consider [json.h](https://github.com/sheredom/json.h) (hmmm, linked lists)~
279
303
 
280
304
  ## Done
281
305
 
@@ -796,3 +820,71 @@
796
820
  - [x] c-backend: fix long option parsing
797
821
  - [x] c-backend: use monotonic instead of realtime clock which has a better precision
798
822
  - [x] java-backend: fix previously untested `--jsonschema-benchmark` implementation
823
+ - [x] optim: do not recheck object if not necessary
824
+ - [x] command: show runtime directory with `--runtime`
825
+ - [x] optim: better merge `&` list when possible, including regex prefix incompatibilities
826
+ - [x] js-backend: export model map
827
+ - [x] pl-backend: add and export `mapper` function
828
+ - [x] \*-backend: remove `--jsonschema-benchmark` handling as it is moved to this repo
829
+ - [x] command: add `--no-comment` option not to generate comments in source code
830
+ - [x] \*-backend: support for embedded nul characters in strings, when possible (not SQL nor C)
831
+ - [x] ir: use json name instead of python type names
832
+ - [x] perf: add speed in lines per µs which seems more significant
833
+ - [x] command: add `-mtune=native` to C compilation
834
+ - [x] optim: simplify _&_ with same props and regs plus optional wildcards
835
+ - [x] optim: simplify _X & Y_ to _X_ when _X_ is a submodel of _Y_
836
+ - [x] py-backend: add predefs IP4 IP6 HOST
837
+ - [x] \*-backend: use a common predef for RFC3339 DURATION UUID EMAIL JSONPT
838
+ - [x] \*-backend: add approximated backup regex for predefs when not implemented by runtime
839
+ - [x] predefs: add `$__EXTENSION_COLOR`
840
+ - [x] predefs: refactor multiple instances in the sources into `predefs.py`
841
+ - [x] predefs: add `$ETH` for ethernet (mac) addresses
842
+ - [x] static: recognize and generate better code for typed _not_: _"" ^ "xxx"_
843
+ - [x] ir: add forward substitution between assignments when used once
844
+ - [x] py-backend: filter out zone id suffix from ip6
845
+ - [x] predefs: add `$CARD` for 16 digits credit card numbers with Luhn's checksum
846
+ - [x] predefs: add `$CARD` to js, perl, java and sql runtime.
847
+ - [x] predefs: filter predef extensions with `--extend`
848
+ - [x] ~static: if only one open prop, just look for it~ depends on language and costs
849
+ - [x] ir: improve forward subs, move bool decl to first assignment in seq
850
+ - [x] static: use combined assignment and test if possible on discriminator extraction
851
+ - [x] static: fix any-by-one pattern on string predefs
852
+ - [x] py-runtime: allow lowercase tz in datetime
853
+ - [x] py-runtime: add workarounds for leap seconds and other intricacies
854
+ - [x] predefs: add predef `EXTENSION_REL_JSONPT` as a regex
855
+ - [x] predefs: distinguish simple time and time with mandatory tz for jsu `time` format
856
+ - [x] static: avoid double type checks on or with predefs (java, sql, perl)
857
+ - [x] ~ir: remove simple redundant checks _(X && (X && Z) || (X && Y))_ is _X && (Z || Y)_~ (see previous)
858
+ - [x] c-backend: simple regex compiler for special character classes and repeat
859
+ - [x] c-backend: simple regex compiler cache is okay with existing regex cache
860
+ - [x] c-backend: add custom character classes based on benchmarks (ident, space, up/low/hexa/num/…)
861
+ - [x] optim: `/.+/` is `/./`, `/(.+)/`, `/(.*)/`
862
+ - [x] optim: remove unescaped `.*` at end of regex, also `.+/` is `./`
863
+ - [x] c-backend: normalize before character class matching
864
+ - [x] c-backend: extend simple regex with constant prefix
865
+ - [x] c-backend: extend simple regex without end-of-text (`$`)
866
+ - [x] optim: apply simpler re to property names
867
+ - [x] optim: improve model intersection to simplify `&` in more cases
868
+ - [x] optim: improve intersect on single open constraint object case
869
+ - [x] optim: avoid reference expansion in and combine optimization
870
+ - [x] c-backend: optimize special regex `/./` `/./s` `/^.*$/` `/^.+$/`
871
+ - [x] static: detect or of any-but-some type to generate a not instead, beware of looseness
872
+ - [x] static: do not create a separate function for an basic object check
873
+ - [x] static: generate messages in newly added shortcuts
874
+ - [x] c-backend: regex list of words to enum?
875
+ - [x] c-backend: fast ic str comparison by switching to _lower char_ with a set test?
876
+ - [x] c-backend: improve regex opt cset prettyprinting
877
+ - [x] c-backend: extend simple regex to sequences of prefix/chars/repeats
878
+ - [x] c-backend: add custom char class `[A-Za-z0-9_\\-:]` `[1-9]`
879
+ - [x] container: separate base from specific installs to improve cache/no-cache build
880
+ - [x] static: improve pattern matching for starts with/ends with/eq regex optim
881
+ - [x] static: improve endswith pattern recognition with escapes, eg `/\\.js$/`
882
+ - [x] c-backend: improve startwith code with fast str eq when string is a function call
883
+ - [x] c-backend: improve `str_cmp` with fast str eq when string is a function call
884
+ - [x] c-backend: check str cmp optims with utf8 strings
885
+ - [x] static: preserve prop order by default
886
+ - [x] c-backend: add custom character classes `[-a-z0-9_]` variants
887
+ - [x] c-backend: use counter for multithreaded tests
888
+ - [x] c-backend: fix multiple brace repeats in simple regex optimization
889
+ - [x] model: add option to `s` on regex? else `.` is any but `\n` and sometimes `\r`
890
+ - [x] optim: `/^.{1,256}$/`? only under `/s` though…
@@ -9,21 +9,21 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
9
9
 
10
10
  ## Recent Artifacts
11
11
 
12
+ - [2026042001](benchmarks/2026042001.md) clang, no predefs, jsu 0.9.3/jmc 2.0b42 vs sbc 14.20.2, 11 runs, 1000 iterations.
13
+ - [2026040700](benchmarks/2026040700.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.20.2, 11 runs, 1000 iterations.
14
+ - [2026040400](benchmarks/2026040400.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.19.0, 11 runs, 1000 iterations.
15
+ - [2026040300](benchmarks/2026040300.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.18.0, 11 runs, 1000 iterations.
16
+ - [2026040200](benchmarks/2026040200.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.17.1, 11 runs, 1000 iterations.
17
+ - [2026032801](benchmarks/2026032801.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.17.0, 11 runs, 1000 iterations.
18
+ - [2026032700](benchmarks/2026032700.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.2, 11 runs, 1000 iterations.
19
+ - [2026032500](benchmarks/2026032500.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.1, 11 runs, 1000 iterations.
20
+ - [2026031900](benchmarks/2026031900.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.0, 11 runs, 1000 iterations.
21
+ - [2026031400](benchmarks/2026031400.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.14.2, 11 runs, 1000 iterations.
12
22
  - [2026031300](benchmarks/2026031300.md) clang, no predefs, jsu 0.9.1/jmc 2.0b40 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
23
  - [2026031000](benchmarks/2026031000.md) clang, no predefs, jsu 0.9.1/jmc 2.0b39 vs sbc 14.14.2, 11 runs, 1000 iterations.
14
24
  - [2026030901](benchmarks/2026030901.md) clang, no predefs, jsu 0.9.1/jmc 2.0b38 vs sbc 14.14.2, 11 runs, 1000 iterations.
15
25
  - [2026030703](benchmarks/2026030703.md) clang, no predefs, jmc 2.0b37 vs sbc 14.14.2, 11 runs, 1000 iterations.
16
26
  - [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
27
 
28
28
  ## Benchmarking Script
29
29
 
@@ -53,8 +53,8 @@ The main script options are:
53
53
 
54
54
  ## Benchmarking Conditions
55
55
 
56
- JSON schemas for the benchmark are translated to models based on
57
- [JSON Schema Utils](https://github.com/zx80/json-schema-utils).
56
+ JSON schemas for the benchmark are translated to models based on `jsu-compile`
57
+ from [JSON Schema Utils](https://github.com/zx80/json-schema-utils).
58
58
  This is mostly an automatic conversion of the test schema to a model, but
59
59
  for a few cases which have a _native_ model which is used instead.
60
60
 
@@ -66,7 +66,6 @@ the run stops as soon as possible.
66
66
  - Compilation times are the _minimum_ encountered over the runs.
67
67
  whereas performance times are the _median_ over the runs.
68
68
  - 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
69
 
71
70
  Note that performance figures **must** be taken with a pinch of salt, please consider
72
71
  the following caveats, and others:
@@ -76,13 +75,14 @@ the following caveats, and others:
76
75
  benchmark actually measure raw latency.
77
76
  - test cases may or may not be representative of specific use cases,
78
77
  especially wrt schema/model and value sizes.
79
- - the overall load on the host can impact measures.
78
+ - the overall load on the test host can impact measures.
80
79
  - compilers, libraries and other design and updates can have dramatic effects:
81
80
  for faster parsing, a library may use linked-list for properties, which means
82
81
  that retrieving a given property value will cost more than a library which uses
83
82
  a hash table which is more costly to build.
84
83
  - blaze does _not_ implement checking string values (eg dates, url…),
85
- so these checks may be disactivated (see `JMC_OPTS`) for fairness.
84
+ so these checks may be disactivated (see `JMC_OPTS`) for fairness,
85
+ but reducing the results significance.
86
86
  - blaze uses its own special-purpose JSON representation: if interfaced from another
87
87
  ecosystem, the cost of translating the JSON representation should be taken into account;
88
88
  jmc uses native JSON representations and generate validation code around it.
@@ -104,14 +104,6 @@ also provides
104
104
  [benchmark artifacts](https://github.com/sourcemeta-research/jsonschema-benchmark/actions)
105
105
  which includes 15 JSON Schema validation tools including our JSON Model Compiler with
106
106
  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
107
 
116
108
  It should be noted that benchmarking conditions are quite different:
117
109
 
@@ -123,5 +115,5 @@ It should be noted that benchmarking conditions are quite different:
123
115
  values, even if these values would be rejected by the target application.
124
116
 
125
117
  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
118
+ _ansible-meta_, _cspell_, _cypress_ and _yamllint_ tests: the model translation or native models
127
119
  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.0b43
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}")