json-model-compiler 2.0b40__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 (294) hide show
  1. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/.gitignore +1 -0
  2. {json_model_compiler-2.0b40/site → json_model_compiler-2.0b42}/BACKLOG.md +107 -14
  3. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/BENCH.md +16 -31
  4. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/Makefile +24 -5
  5. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/PKG-INFO +2 -1
  6. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/SPEC.md +7 -0
  7. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/about.sh +3 -1
  8. json_model_compiler-2.0b42/container/.gitignore +1 -0
  9. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/container/Makefile +20 -8
  10. json_model_compiler-2.0b40/container/Containerfile → json_model_compiler-2.0b42/container/base.container +14 -42
  11. json_model_compiler-2.0b42/container/jmc.container +45 -0
  12. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/README.md +1 -1
  13. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/analyze.py +19 -29
  14. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/clang.py +600 -46
  15. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/convert.py +32 -27
  16. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/perl_entry.pl +7 -0
  17. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/perl_pkg.pl +1 -1
  18. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/irep.py +168 -42
  19. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/java.py +29 -29
  20. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/javascript.py +32 -23
  21. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/language.py +62 -23
  22. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/model.py +36 -58
  23. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/mtypes.py +7 -4
  24. json_model_compiler-2.0b42/json_model/objops.py +467 -0
  25. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/optim.py +167 -75
  26. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/perl.py +30 -30
  27. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/plpgsql.py +44 -30
  28. json_model_compiler-2.0b42/json_model/predefs.py +184 -0
  29. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/python.py +35 -29
  30. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/__init__.py +7 -3
  31. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/c/json-model.c +162 -20
  32. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/c/json-model.h +29 -0
  33. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/c/main.c +3 -110
  34. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Main.java +7 -19
  35. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Runtime.java +26 -15
  36. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/pom.xml +10 -10
  37. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/js/index.js +8 -14
  38. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/js/main.js +1 -52
  39. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/js/package.json +4 -1
  40. json_model_compiler-2.0b42/json_model/runtime/pl/Changes +14 -0
  41. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/lib/JSON/JsonModel.pm +11 -83
  42. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/sql/json_model--2.0.sql +41 -7
  43. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/support.py +80 -74
  44. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/script.py +77 -44
  45. json_model_compiler-2.0b42/json_model/submodel.py +219 -0
  46. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/utils.py +62 -53
  47. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/xstatic.py +268 -125
  48. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/PKG-INFO +2 -1
  49. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/SOURCES.txt +38 -56
  50. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/requires.txt +1 -0
  51. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/everything.model.json +6 -0
  52. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/jmc-ir.model.json +5 -3
  53. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/pyproject.toml +3 -2
  54. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42/site}/BACKLOG.md +107 -14
  55. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/BENCH.md +16 -31
  56. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/SPEC.md +7 -0
  57. json_model_compiler-2.0b42/site/benchmarks/2026031300.csv +171 -0
  58. json_model_compiler-2.0b42/site/benchmarks/2026031300.json +296 -0
  59. json_model_compiler-2.0b42/site/benchmarks/2026031300.md +216 -0
  60. json_model_compiler-2.0b42/site/benchmarks/2026031400.csv +171 -0
  61. json_model_compiler-2.0b42/site/benchmarks/2026031400.json +296 -0
  62. json_model_compiler-2.0b42/site/benchmarks/2026031400.md +216 -0
  63. json_model_compiler-2.0b42/site/benchmarks/2026031900.csv +171 -0
  64. json_model_compiler-2.0b42/site/benchmarks/2026031900.json +296 -0
  65. json_model_compiler-2.0b42/site/benchmarks/2026031900.md +216 -0
  66. json_model_compiler-2.0b42/site/benchmarks/2026032500.csv +171 -0
  67. json_model_compiler-2.0b42/site/benchmarks/2026032500.json +296 -0
  68. json_model_compiler-2.0b42/site/benchmarks/2026032500.md +216 -0
  69. json_model_compiler-2.0b42/site/benchmarks/2026032700.csv +171 -0
  70. json_model_compiler-2.0b42/site/benchmarks/2026032700.json +296 -0
  71. json_model_compiler-2.0b42/site/benchmarks/2026032700.md +216 -0
  72. json_model_compiler-2.0b42/site/benchmarks/2026032801.csv +171 -0
  73. json_model_compiler-2.0b42/site/benchmarks/2026032801.json +296 -0
  74. json_model_compiler-2.0b42/site/benchmarks/2026032801.md +216 -0
  75. json_model_compiler-2.0b42/site/benchmarks/2026040200.csv +171 -0
  76. json_model_compiler-2.0b42/site/benchmarks/2026040200.json +296 -0
  77. json_model_compiler-2.0b42/site/benchmarks/2026040200.md +216 -0
  78. json_model_compiler-2.0b42/site/benchmarks/2026040300.csv +171 -0
  79. json_model_compiler-2.0b42/site/benchmarks/2026040300.json +296 -0
  80. json_model_compiler-2.0b42/site/benchmarks/2026040300.md +216 -0
  81. json_model_compiler-2.0b42/site/benchmarks/2026040400.csv +171 -0
  82. json_model_compiler-2.0b42/site/benchmarks/2026040400.json +296 -0
  83. json_model_compiler-2.0b42/site/benchmarks/2026040400.md +216 -0
  84. json_model_compiler-2.0b42/site/benchmarks/2026040700.csv +171 -0
  85. json_model_compiler-2.0b42/site/benchmarks/2026040700.json +296 -0
  86. json_model_compiler-2.0b42/site/benchmarks/2026040700.md +216 -0
  87. json_model_compiler-2.0b40/container/.gitignore +0 -1
  88. json_model_compiler-2.0b40/json_model/objmerge.py +0 -174
  89. json_model_compiler-2.0b40/json_model/runtime/pl/Changes +0 -10
  90. json_model_compiler-2.0b40/site/benchmarks/2026010600.csv +0 -172
  91. json_model_compiler-2.0b40/site/benchmarks/2026010600.json +0 -296
  92. json_model_compiler-2.0b40/site/benchmarks/2026010600.md +0 -215
  93. json_model_compiler-2.0b40/site/benchmarks/2026010900.csv +0 -172
  94. json_model_compiler-2.0b40/site/benchmarks/2026010900.json +0 -296
  95. json_model_compiler-2.0b40/site/benchmarks/2026010900.md +0 -215
  96. json_model_compiler-2.0b40/site/benchmarks/2026011500.csv +0 -172
  97. json_model_compiler-2.0b40/site/benchmarks/2026011500.json +0 -296
  98. json_model_compiler-2.0b40/site/benchmarks/2026011500.md +0 -215
  99. json_model_compiler-2.0b40/site/benchmarks/2026012000.csv +0 -172
  100. json_model_compiler-2.0b40/site/benchmarks/2026012000.json +0 -296
  101. json_model_compiler-2.0b40/site/benchmarks/2026012000.md +0 -215
  102. json_model_compiler-2.0b40/site/benchmarks/2026012200.csv +0 -173
  103. json_model_compiler-2.0b40/site/benchmarks/2026012200.json +0 -296
  104. json_model_compiler-2.0b40/site/benchmarks/2026012200.md +0 -216
  105. json_model_compiler-2.0b40/site/benchmarks/2026012400.csv +0 -173
  106. json_model_compiler-2.0b40/site/benchmarks/2026012400.json +0 -296
  107. json_model_compiler-2.0b40/site/benchmarks/2026012400.md +0 -216
  108. json_model_compiler-2.0b40/site/benchmarks/2026012700.csv +0 -173
  109. json_model_compiler-2.0b40/site/benchmarks/2026012700.json +0 -296
  110. json_model_compiler-2.0b40/site/benchmarks/2026012700.md +0 -216
  111. json_model_compiler-2.0b40/site/benchmarks/2026020500.csv +0 -167
  112. json_model_compiler-2.0b40/site/benchmarks/2026020500.json +0 -296
  113. json_model_compiler-2.0b40/site/benchmarks/2026020500.md +0 -211
  114. json_model_compiler-2.0b40/site/benchmarks/2026020600.csv +0 -173
  115. json_model_compiler-2.0b40/site/benchmarks/2026020600.json +0 -296
  116. json_model_compiler-2.0b40/site/benchmarks/2026020600.md +0 -217
  117. json_model_compiler-2.0b40/site/benchmarks/2026021000.csv +0 -171
  118. json_model_compiler-2.0b40/site/benchmarks/2026021000.json +0 -296
  119. json_model_compiler-2.0b40/site/benchmarks/2026021000.md +0 -215
  120. json_model_compiler-2.0b40/site/benchmarks/2026021300.csv +0 -171
  121. json_model_compiler-2.0b40/site/benchmarks/2026021300.json +0 -296
  122. json_model_compiler-2.0b40/site/benchmarks/2026021300.md +0 -215
  123. json_model_compiler-2.0b40/site/benchmarks/2026021700.csv +0 -171
  124. json_model_compiler-2.0b40/site/benchmarks/2026021700.json +0 -296
  125. json_model_compiler-2.0b40/site/benchmarks/2026021700.md +0 -214
  126. json_model_compiler-2.0b40/site/benchmarks/2026021701.csv +0 -171
  127. json_model_compiler-2.0b40/site/benchmarks/2026021701.json +0 -296
  128. json_model_compiler-2.0b40/site/benchmarks/2026021701.md +0 -214
  129. json_model_compiler-2.0b40/site/benchmarks/2026021702.csv +0 -171
  130. json_model_compiler-2.0b40/site/benchmarks/2026021702.json +0 -296
  131. json_model_compiler-2.0b40/site/benchmarks/2026021702.md +0 -214
  132. json_model_compiler-2.0b40/site/benchmarks/2026021900.csv +0 -171
  133. json_model_compiler-2.0b40/site/benchmarks/2026021900.json +0 -296
  134. json_model_compiler-2.0b40/site/benchmarks/2026021900.md +0 -214
  135. json_model_compiler-2.0b40/site/benchmarks/2026022000.csv +0 -171
  136. json_model_compiler-2.0b40/site/benchmarks/2026022000.json +0 -296
  137. json_model_compiler-2.0b40/site/benchmarks/2026022000.md +0 -214
  138. json_model_compiler-2.0b40/site/benchmarks/2026022400.csv +0 -171
  139. json_model_compiler-2.0b40/site/benchmarks/2026022400.json +0 -296
  140. json_model_compiler-2.0b40/site/benchmarks/2026022400.md +0 -214
  141. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/.gitmodules +0 -0
  142. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/API.md +0 -0
  143. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/DESIGN.md +0 -0
  144. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/DEV.md +0 -0
  145. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/DOC.md +0 -0
  146. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/HOWTO.md +0 -0
  147. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/INTEGRATION.md +0 -0
  148. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/MANIFEST.in +0 -0
  149. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/PUBS.md +0 -0
  150. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/README.md +0 -0
  151. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/TUTO.md +0 -0
  152. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/container/.dockerignore +0 -0
  153. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/container/README.md +0 -0
  154. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/container/jmc +0 -0
  155. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/__init__.py +0 -0
  156. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/clang_entry.c +0 -0
  157. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/clang_free.c +0 -0
  158. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/clang_init.c +0 -0
  159. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/clang_pcre2_fun.c +0 -0
  160. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/clang_re2_fun.c +0 -0
  161. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/java_free.java +0 -0
  162. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/java_init.java +0 -0
  163. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/javascript_exe.js +0 -0
  164. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/javascript_foot.js +0 -0
  165. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/javascript_free.js +0 -0
  166. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/javascript_head.js +0 -0
  167. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/javascript_init.js +0 -0
  168. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/javascript_main.js +0 -0
  169. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/jmc.pod +0 -0
  170. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/perl_exe.pl +0 -0
  171. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/perl_free.pl +0 -0
  172. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/perl_init.pl +0 -0
  173. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/perl_main.pl +0 -0
  174. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/plpgsql_entry.sql +0 -0
  175. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/python_entry.py +0 -0
  176. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/python_exe.py +0 -0
  177. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/python_free.py +0 -0
  178. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/python_init.py +0 -0
  179. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/data/python_main.py +0 -0
  180. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/export.py +0 -0
  181. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/recurse.py +0 -0
  182. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/resolver.py +0 -0
  183. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/Makefile +0 -0
  184. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/c/Makefile +0 -0
  185. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/.gitignore +0 -0
  186. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/Makefile +0 -0
  187. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/README.md +0 -0
  188. /json_model_compiler-2.0b40/json_model/runtime/java/env.bash → /json_model_compiler-2.0b42/json_model/runtime/java/env.sh +0 -0
  189. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Checker.java +0 -0
  190. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/GSON.java +0 -0
  191. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/JSON.java +0 -0
  192. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/JSONP.java +0 -0
  193. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Jackson.java +0 -0
  194. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  195. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Path.java +0 -0
  196. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/java/json_model/Report.java +0 -0
  197. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/js/README.md +0 -0
  198. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/.gitignore +0 -0
  199. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/LICENSE +0 -0
  200. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/MANIFEST +0 -0
  201. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/Makefile.PL +0 -0
  202. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/README +0 -0
  203. /json_model_compiler-2.0b40/json_model/runtime/pl/env.bash → /json_model_compiler-2.0b42/json_model/runtime/pl/env.sh +0 -0
  204. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/ignore.txt +0 -0
  205. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/t/00-load.t +0 -0
  206. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/t/manifest.t +0 -0
  207. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  208. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/t/pod.t +0 -0
  209. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  210. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/sql/META.json +0 -0
  211. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/sql/Makefile +0 -0
  212. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/sql/json_model.control +0 -0
  213. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/runtime/types.py +0 -0
  214. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model/url_cache.py +0 -0
  215. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  216. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/entry_points.txt +0 -0
  217. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/json_model_compiler.egg-info/top_level.txt +0 -0
  218. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/ansiblelint-meta.model.json +0 -0
  219. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/cypress.model.json +0 -0
  220. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/diploma-arrete.model.json +0 -0
  221. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/diploma-export.model.json +0 -0
  222. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/fresq.model.json +0 -0
  223. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/geo-easy.model.json +0 -0
  224. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/geo.model.json +0 -0
  225. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-model-latest.model.json +0 -0
  226. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-model-moschin.model.json +0 -0
  227. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-model-no-merge.model.json +0 -0
  228. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-model-v1.model.json +0 -0
  229. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-model-v2-en.model.json +0 -0
  230. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-model-v2.model.json +0 -0
  231. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-model.model.json +0 -0
  232. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-01-fuzzy.model.json +0 -0
  233. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-01-nesting.model.json +0 -0
  234. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-01.model.json +0 -0
  235. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-02-fuzzy.model.json +0 -0
  236. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-02-nesting.model.json +0 -0
  237. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-02.model.json +0 -0
  238. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-03-fuzzy.model.json +0 -0
  239. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-03-nesting.model.json +0 -0
  240. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-03.model.json +0 -0
  241. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-04-fuzzy.model.json +0 -0
  242. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-04-mongodb.model.json +0 -0
  243. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-04-nesting.model.json +0 -0
  244. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-04.model.json +0 -0
  245. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-06-fuzzy.model.json +0 -0
  246. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-06.model.json +0 -0
  247. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-07-fuzzy.model.json +0 -0
  248. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-07.model.json +0 -0
  249. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
  250. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-2019-09.model.json +0 -0
  251. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
  252. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-2020-12-tight.model.json +0 -0
  253. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-2020-12.model.json +0 -0
  254. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-next-fuzzy.model.json +0 -0
  255. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-next.model.json +0 -0
  256. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-tight.model.json +0 -0
  257. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-tighter-loose.model.json +0 -0
  258. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-draft-tighter.model.json +0 -0
  259. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/json-schema-linter.model.json +0 -0
  260. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/jsound.model.json +0 -0
  261. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/l10n.model.json +0 -0
  262. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/lazygit.model.json +0 -0
  263. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/openapi-311-fuzzy.model.json +0 -0
  264. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/openapi-311-models.model.json +0 -0
  265. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/openapi-311.model.json +0 -0
  266. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/person.model.json +0 -0
  267. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/person2.model.json +0 -0
  268. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/pgxn.model.json +0 -0
  269. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/models/test-schema.model.json +0 -0
  270. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/package.json +0 -0
  271. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/setup.cfg +0 -0
  272. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/API.md +0 -0
  273. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/DEV.md +0 -0
  274. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/DOC.md +0 -0
  275. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/HOWTO.md +0 -0
  276. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/PUBS.md +0 -0
  277. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/README.md +0 -0
  278. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/TUTO.md +0 -0
  279. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030700.csv +0 -0
  280. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030700.json +0 -0
  281. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030700.md +0 -0
  282. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030703.csv +0 -0
  283. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030703.json +0 -0
  284. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030703.md +0 -0
  285. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030901.csv +0 -0
  286. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030901.json +0 -0
  287. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026030901.md +0 -0
  288. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026031000.csv +0 -0
  289. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026031000.json +0 -0
  290. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/benchmarks/2026031000.md +0 -0
  291. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/cover.md +0 -0
  292. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/favicon.ico +0 -0
  293. {json_model_compiler-2.0b40 → json_model_compiler-2.0b42}/site/index.html +0 -0
  294. {json_model_compiler-2.0b40 → 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,21 +2,101 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
- - [x] c-backend: use monotonic instead of realtime clock which has a better precision
6
- - [x] java-backend: fix previously untested `--jsonschema-benchmark` implementation
7
- - [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
8
- - [ ] optim: recognize typed not: _"" ^ "xxx"_
9
- - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
10
- - [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
11
- - [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
12
- - [ ] doc: add _known limitations_ stuff
13
- - [ ] 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
14
86
  - [ ] test: add test categories (mark?)
15
- - [ ] doc: improve developer documentation
16
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?
17
96
  - [ ] docker: enable user remap
18
97
  - [ ] export: java classes
19
98
  - [ ] export: go interfaces
99
+ - [ ] export: ts interfaces
20
100
  - [ ] static: make regex groups non capturing when appropriate?
21
101
  - [ ] static: xor acceleration based on distinct mandatory props
22
102
  - [ ] static: merge partial mandatory prop discriminants
@@ -33,11 +113,13 @@
33
113
  - [ ] backend: remove useless `ELSE NULL` see `mv-02/geo.sql`
34
114
  - [ ] command: export before/after model optimization
35
115
  - [ ] perf: experiment object matching with various mandatory/optional properties
116
+ - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
36
117
  - [ ] backend: optimize pattern "res = E1; return res || E2;" (only one use)
37
118
  - [ ] backend: optimize pattern "res = E; if (! res) ret F; res not used before set;"
38
119
  - [ ] backend: optimize pattern "{ decl X = ... ; res = f(X (once) ) }"
39
120
  - [ ] backend: simplify assignment patterns with ternary operator when available?
40
121
  - [ ] backend: consider applying language-specific formatting tools? `clang-format`, `black`…
122
+ - [ ] backend: actually remove ignore code and sequences
41
123
  - [ ] c-backend: get pval string into a variable for strcmp unrolling and inlining
42
124
  - [ ] c-backend: add number of chunks limit to strcmp optimization
43
125
  - [ ] c-backend: strcmp to const inlining and unrolling for all instances
@@ -83,6 +165,8 @@
83
165
  - [ ] perf: profile some cases
84
166
  - [ ] c-backend: use vector instructions for larger strcmp?
85
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.
86
170
 
87
171
  ## Re Do
88
172
 
@@ -267,13 +351,15 @@
267
351
  - [ ] vb-backend: ?
268
352
  - [ ] julia-backend: ?
269
353
  - [ ] lua-backend: ?
270
- - [ ] dyn-backend: is dynamic mergeable in xstatic, beyond using `eval`?
271
- - [ ] feature: add model predef for URI, URI-REF and the like
272
- - [ ] design: URI vs URL?
354
+ - [ ] feat: add model predef for URI, URI-REF and the like
355
+ - [ ] design: URI vs URL vs IRI?
273
356
  - [ ] design: documentation use case, with added _markdown description_
274
357
  - [ ] pr: validation must be optimized for the valid case, as it is the most likely.
275
358
  - [ ] case: use trafo in geo to have either 2 or 3 vectors, no mix.
276
- - [ ] 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)~
277
363
 
278
364
  ## Done
279
365
 
@@ -792,3 +878,10 @@
792
878
  - [x] ir: fix bad elimination when bool var was used
793
879
  - [x] ir: add bool var assign elimination on return with only one use
794
880
  - [x] c-backend: fix long option parsing
881
+ - [x] c-backend: use monotonic instead of realtime clock which has a better precision
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,27 +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.
21
+ - [2026031300](benchmarks/2026031300.md) clang, no predefs, jsu 0.9.1/jmc 2.0b40 vs sbc 14.14.2, 11 runs, 1000 iterations.
12
22
  - [2026031000](benchmarks/2026031000.md) clang, no predefs, jsu 0.9.1/jmc 2.0b39 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
23
  - [2026030901](benchmarks/2026030901.md) clang, no predefs, jsu 0.9.1/jmc 2.0b38 vs sbc 14.14.2, 11 runs, 1000 iterations.
14
24
  - [2026030703](benchmarks/2026030703.md) clang, no predefs, jmc 2.0b37 vs sbc 14.14.2, 11 runs, 1000 iterations.
15
25
  - [2026030700](benchmarks/2026030700.md) clang, no predefs, jmc 2.0b37 vs sbc 14.13.4, 5 runs, 1000 iterations.
16
- - [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.4, 11 runs, 1000 iterations.
17
- - [2026022000](benchmarks/2026022000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.3, 11 runs, 1000 iterations.
18
- - [2026021900](benchmarks/2026021900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.1, 11 runs, 1000 iterations.
19
- - [2026021702](benchmarks/2026021702.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.0, 11 runs, 1000 iterations.
20
- - [2026021701](benchmarks/2026021701.md) clang, no predefs, jmc 2.0b36 vs sbc 14.12.0, 11 runs, 1000 iterations.
21
- - [2026021700](benchmarks/2026021700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.11.0, 11 runs, 1000 iterations.
22
- - [2026021300](benchmarks/2026021300.md) clang, no predefs, jmc 2.0b36 vs sbc 14.10.0, 11 runs, 1000 iterations.
23
- - [2026021000](benchmarks/2026021000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.2, 11 runs, 1000 iterations.
24
- - [2026020600](benchmarks/2026020600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.1, 11 runs, 1000 iterations.
25
- - [2026020500](benchmarks/2026020500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.6.1, 11 runs, 1000 iterations.
26
- - [2026012700](benchmarks/2026012700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.5.0, 11 runs, 1000 iterations.
27
- - [2026012400](benchmarks/2026012400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.4.0, 11 runs, 1000 iterations.
28
- - [2026012200](benchmarks/2026012200.md) clang, no predefs, jmc 2.0b36 vs sbc 14.2.0, 11 runs, 1000 iterations.
29
- - [2026012000](benchmarks/2026012000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.1.0, 11 runs, 1000 iterations.
30
- - [2026011500](benchmarks/2026011500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.4, 11 runs, 1000 iterations.
31
- - [2026010900](benchmarks/2026010900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.3, 11 runs, 1000 iterations.
32
- - [2026010600](benchmarks/2026010600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.2, 11 runs, 1000 iterations.
33
26
 
34
27
  ## Benchmarking Script
35
28
 
@@ -59,8 +52,8 @@ The main script options are:
59
52
 
60
53
  ## Benchmarking Conditions
61
54
 
62
- JSON schemas for the benchmark are translated to models based on
63
- [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).
64
57
  This is mostly an automatic conversion of the test schema to a model, but
65
58
  for a few cases which have a _native_ model which is used instead.
66
59
 
@@ -72,7 +65,6 @@ the run stops as soon as possible.
72
65
  - Compilation times are the _minimum_ encountered over the runs.
73
66
  whereas performance times are the _median_ over the runs.
74
67
  - The C backend also includes the _runtime_ compilation from sources.
75
- - JSON Schema to JSON Model conversion times are also recorded separately for information.
76
68
 
77
69
  Note that performance figures **must** be taken with a pinch of salt, please consider
78
70
  the following caveats, and others:
@@ -82,13 +74,14 @@ the following caveats, and others:
82
74
  benchmark actually measure raw latency.
83
75
  - test cases may or may not be representative of specific use cases,
84
76
  especially wrt schema/model and value sizes.
85
- - the overall load on the host can impact measures.
77
+ - the overall load on the test host can impact measures.
86
78
  - compilers, libraries and other design and updates can have dramatic effects:
87
79
  for faster parsing, a library may use linked-list for properties, which means
88
80
  that retrieving a given property value will cost more than a library which uses
89
81
  a hash table which is more costly to build.
90
82
  - blaze does _not_ implement checking string values (eg dates, url…),
91
- 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.
92
85
  - blaze uses its own special-purpose JSON representation: if interfaced from another
93
86
  ecosystem, the cost of translating the JSON representation should be taken into account;
94
87
  jmc uses native JSON representations and generate validation code around it.
@@ -110,14 +103,6 @@ also provides
110
103
  [benchmark artifacts](https://github.com/sourcemeta-research/jsonschema-benchmark/actions)
111
104
  which includes 15 JSON Schema validation tools including our JSON Model Compiler with
112
105
  C, JS and Python backends.
113
- Overall, JMC comes ahead of Blaze C++ on about 2/3 of the test cases (as of 2026-01-22).
114
-
115
- On Feb 5, 2026 the JMC-based implementations on this benchmark have been
116
- [removed](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/67dc4dfc7ad2d4a8e92a920b71fb813d8f3fb6a4)
117
- without prior notice nor discussion.
118
- The maintainer wants to focus on comparisons with JSON Schema direct implementations only
119
- and thus avoid some confusion.
120
- As a side effect, their Blaze C++ tool took back the performance leadership.
121
106
 
122
107
  It should be noted that benchmarking conditions are quite different:
123
108
 
@@ -129,5 +114,5 @@ It should be noted that benchmarking conditions are quite different:
129
114
  values, even if these values would be rejected by the target application.
130
115
 
131
116
  This latest point explains the under 100% validation results displayed JMC for
132
- _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
133
118
  are more accurate than the original schemas due to bug fixes or more rigorous descriptions.
@@ -7,15 +7,34 @@ ifndef PYTHON
7
7
  PYTHON = python
8
8
  endif
9
9
 
10
- venv:
10
+ venv: venv/.init
11
+
12
+ venv/.init:
11
13
  $(PYTHON) -m venv venv
12
14
  source venv/bin/activate
13
15
  pip install -U pip
16
+ pip install -e .
17
+ touch $@
18
+
19
+ venv/.dev: venv/.init
14
20
  pip install -e .[dev]
21
+ touch $@
22
+
23
+ venv/.dist: venv/.dev
24
+ pip install -e .[dist]
25
+ touch $@
15
26
 
16
27
  .PHONY: dev
17
- dev: venv
28
+ dev: venv/.dev dev.js dev.java
29
+
30
+ .PHONY: dev.js
31
+ dev.js: node_modules
32
+
33
+ node_modules:
18
34
  npm install
35
+
36
+ .PHONY: dev.java
37
+ dev.java:
19
38
  $(MAKE) -C json_model/runtime/java jar
20
39
 
21
40
  .PHONY: clean
@@ -112,7 +131,7 @@ publish.site: build.site
112
131
  ssh $(SITE) chmod a+r $(SITEPATH)/* $(SITEPATH)/models/* $(SITEPATH)/benchmarks/*
113
132
 
114
133
  .PHONY: publish.py
115
- publish.py: dev
134
+ publish.py: venv/.dist
116
135
  source venv/bin/activate
117
136
  python -m build
118
137
  twine check dist/*
@@ -139,12 +158,12 @@ publish.perl:
139
158
  # $(RM) $(RT.dir)/pl/Makefile.old
140
159
 
141
160
  .PHONY: publish.js
142
- publish.js:
161
+ publish.js: dev.js
143
162
  npm publish --dry-run $(RT.dir)/js
144
163
  echo npm publish --access public --tag latest $(RT.dir)/js
145
164
 
146
165
  .PHONY: publish.java
147
- publish.java:
166
+ publish.java: dev.java
148
167
  $(MAKE) -C $(RT.dir)/java zip
149
168
  # see https://central.sonatype.org/publish/requirements/
150
169
  # upload zip on https://central.sonatype.com/publishing as org.json-model:json-model:VERSION
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b40
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