json-model-compiler 2.0b36__tar.gz → 2.0b37__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 (288) hide show
  1. {json_model_compiler-2.0b36/site → json_model_compiler-2.0b37}/BACKLOG.md +52 -15
  2. json_model_compiler-2.0b37/BENCH.md +126 -0
  3. json_model_compiler-2.0b37/DEV.md +69 -0
  4. {json_model_compiler-2.0b36/site → json_model_compiler-2.0b37}/DOC.md +2 -0
  5. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/HOWTO.md +6 -4
  6. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/Makefile +6 -4
  7. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/PKG-INFO +8 -7
  8. {json_model_compiler-2.0b36/site → json_model_compiler-2.0b37}/PUBS.md +1 -1
  9. {json_model_compiler-2.0b36/site → json_model_compiler-2.0b37}/README.md +6 -5
  10. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/SPEC.md +5 -5
  11. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/TUTO.md +8 -7
  12. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/about.sh +8 -7
  13. json_model_compiler-2.0b36/docker/Dockerfile → json_model_compiler-2.0b37/container/Containerfile +1 -1
  14. json_model_compiler-2.0b37/container/Makefile +88 -0
  15. {json_model_compiler-2.0b36/docker → json_model_compiler-2.0b37/container}/README.md +8 -8
  16. json_model_compiler-2.0b37/container/jmc +64 -0
  17. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/analyze.py +23 -8
  18. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/clang.py +51 -27
  19. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/convert.py +2 -1
  20. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/jmc.pod +13 -3
  21. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/export.py +1 -1
  22. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/irep.py +103 -38
  23. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/java.py +30 -9
  24. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/javascript.py +23 -9
  25. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/language.py +57 -39
  26. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/model.py +27 -17
  27. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/mtypes.py +16 -0
  28. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/objmerge.py +2 -1
  29. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/optim.py +86 -27
  30. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/perl.py +32 -14
  31. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/plpgsql.py +34 -14
  32. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/python.py +28 -9
  33. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/recurse.py +7 -2
  34. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/resolver.py +8 -7
  35. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/__init__.py +31 -0
  36. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/c/Makefile +7 -1
  37. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/c/json-model.c +17 -8
  38. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/c/json-model.h +1 -0
  39. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/c/main.c +35 -21
  40. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/env.bash +1 -1
  41. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Main.java +26 -12
  42. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Runtime.java +7 -0
  43. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/pom.xml +2 -2
  44. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/js/main.js +23 -13
  45. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/Changes +2 -0
  46. json_model_compiler-2.0b37/json_model/runtime/pl/env.bash +4 -0
  47. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/lib/JSON/JsonModel.pm +46 -17
  48. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/support.py +28 -11
  49. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/script.py +68 -42
  50. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/utils.py +91 -43
  51. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/xstatic.py +139 -65
  52. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/PKG-INFO +8 -7
  53. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/SOURCES.txt +59 -43
  54. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/requires.txt +1 -1
  55. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/jmc-ir.model.json +2 -1
  56. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/pyproject.toml +2 -2
  57. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37/site}/BACKLOG.md +52 -15
  58. json_model_compiler-2.0b37/site/BENCH.md +126 -0
  59. json_model_compiler-2.0b37/site/DEV.md +69 -0
  60. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37/site}/DOC.md +2 -0
  61. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/site/HOWTO.md +6 -4
  62. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37/site}/PUBS.md +1 -1
  63. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37/site}/README.md +6 -5
  64. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/site/SPEC.md +5 -5
  65. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/site/TUTO.md +8 -7
  66. json_model_compiler-2.0b37/site/benchmarks/2026010600.csv +172 -0
  67. json_model_compiler-2.0b37/site/benchmarks/2026010600.json +296 -0
  68. json_model_compiler-2.0b37/site/benchmarks/2026010600.md +215 -0
  69. json_model_compiler-2.0b37/site/benchmarks/2026010900.csv +172 -0
  70. json_model_compiler-2.0b37/site/benchmarks/2026010900.json +296 -0
  71. json_model_compiler-2.0b37/site/benchmarks/2026010900.md +215 -0
  72. json_model_compiler-2.0b37/site/benchmarks/2026011500.csv +172 -0
  73. json_model_compiler-2.0b37/site/benchmarks/2026011500.json +296 -0
  74. json_model_compiler-2.0b37/site/benchmarks/2026011500.md +215 -0
  75. json_model_compiler-2.0b37/site/benchmarks/2026012000.csv +172 -0
  76. json_model_compiler-2.0b37/site/benchmarks/2026012000.json +296 -0
  77. json_model_compiler-2.0b37/site/benchmarks/2026012000.md +215 -0
  78. json_model_compiler-2.0b37/site/benchmarks/2026012200.csv +173 -0
  79. json_model_compiler-2.0b37/site/benchmarks/2026012200.json +296 -0
  80. json_model_compiler-2.0b37/site/benchmarks/2026012200.md +216 -0
  81. json_model_compiler-2.0b37/site/benchmarks/2026012400.csv +173 -0
  82. json_model_compiler-2.0b37/site/benchmarks/2026012400.json +296 -0
  83. json_model_compiler-2.0b37/site/benchmarks/2026012400.md +216 -0
  84. json_model_compiler-2.0b37/site/benchmarks/2026012700.csv +173 -0
  85. json_model_compiler-2.0b37/site/benchmarks/2026012700.json +296 -0
  86. json_model_compiler-2.0b37/site/benchmarks/2026012700.md +216 -0
  87. json_model_compiler-2.0b37/site/benchmarks/2026020500.csv +167 -0
  88. json_model_compiler-2.0b37/site/benchmarks/2026020500.json +296 -0
  89. json_model_compiler-2.0b37/site/benchmarks/2026020500.md +211 -0
  90. json_model_compiler-2.0b37/site/benchmarks/2026020600.csv +173 -0
  91. json_model_compiler-2.0b37/site/benchmarks/2026020600.json +296 -0
  92. json_model_compiler-2.0b37/site/benchmarks/2026020600.md +217 -0
  93. json_model_compiler-2.0b37/site/benchmarks/2026021000.csv +171 -0
  94. json_model_compiler-2.0b37/site/benchmarks/2026021000.json +296 -0
  95. json_model_compiler-2.0b37/site/benchmarks/2026021000.md +215 -0
  96. json_model_compiler-2.0b37/site/benchmarks/2026021300.csv +171 -0
  97. json_model_compiler-2.0b37/site/benchmarks/2026021300.json +296 -0
  98. json_model_compiler-2.0b37/site/benchmarks/2026021300.md +215 -0
  99. json_model_compiler-2.0b37/site/benchmarks/2026021700.csv +171 -0
  100. json_model_compiler-2.0b37/site/benchmarks/2026021700.json +296 -0
  101. json_model_compiler-2.0b37/site/benchmarks/2026021700.md +214 -0
  102. json_model_compiler-2.0b37/site/benchmarks/2026021701.csv +171 -0
  103. json_model_compiler-2.0b37/site/benchmarks/2026021701.json +296 -0
  104. json_model_compiler-2.0b37/site/benchmarks/2026021701.md +214 -0
  105. json_model_compiler-2.0b37/site/benchmarks/2026021702.csv +171 -0
  106. json_model_compiler-2.0b37/site/benchmarks/2026021702.json +296 -0
  107. json_model_compiler-2.0b37/site/benchmarks/2026021702.md +214 -0
  108. json_model_compiler-2.0b37/site/benchmarks/2026021900.csv +171 -0
  109. json_model_compiler-2.0b37/site/benchmarks/2026021900.json +296 -0
  110. json_model_compiler-2.0b37/site/benchmarks/2026021900.md +214 -0
  111. json_model_compiler-2.0b37/site/benchmarks/2026022000.csv +171 -0
  112. json_model_compiler-2.0b37/site/benchmarks/2026022000.json +296 -0
  113. json_model_compiler-2.0b37/site/benchmarks/2026022000.md +214 -0
  114. json_model_compiler-2.0b37/site/benchmarks/2026022400.csv +171 -0
  115. json_model_compiler-2.0b37/site/benchmarks/2026022400.json +296 -0
  116. json_model_compiler-2.0b37/site/benchmarks/2026022400.md +214 -0
  117. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/site/cover.md +1 -1
  118. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/site/index.html +60 -40
  119. json_model_compiler-2.0b36/BENCH.md +0 -77
  120. json_model_compiler-2.0b36/DEV.md +0 -24
  121. json_model_compiler-2.0b36/docker/Makefile +0 -83
  122. json_model_compiler-2.0b36/docker/jmc +0 -42
  123. json_model_compiler-2.0b36/site/BENCH.md +0 -77
  124. json_model_compiler-2.0b36/site/DOCKER.md +0 -99
  125. json_model_compiler-2.0b36/site/benchmarks/2025102200.csv +0 -164
  126. json_model_compiler-2.0b36/site/benchmarks/2025102200.json +0 -296
  127. json_model_compiler-2.0b36/site/benchmarks/2025102200.md +0 -209
  128. json_model_compiler-2.0b36/site/benchmarks/2025102201.csv +0 -164
  129. json_model_compiler-2.0b36/site/benchmarks/2025102201.json +0 -296
  130. json_model_compiler-2.0b36/site/benchmarks/2025102201.md +0 -209
  131. json_model_compiler-2.0b36/site/benchmarks/202510220b.csv +0 -164
  132. json_model_compiler-2.0b36/site/benchmarks/202510220b.json +0 -296
  133. json_model_compiler-2.0b36/site/benchmarks/202510220b.md +0 -207
  134. json_model_compiler-2.0b36/site/benchmarks/2025102400.csv +0 -158
  135. json_model_compiler-2.0b36/site/benchmarks/2025102400.json +0 -296
  136. json_model_compiler-2.0b36/site/benchmarks/2025102400.md +0 -207
  137. json_model_compiler-2.0b36/site/benchmarks/2025102402.csv +0 -164
  138. json_model_compiler-2.0b36/site/benchmarks/2025102402.json +0 -296
  139. json_model_compiler-2.0b36/site/benchmarks/2025102402.md +0 -208
  140. json_model_compiler-2.0b36/site/benchmarks/2025102700.csv +0 -164
  141. json_model_compiler-2.0b36/site/benchmarks/2025102700.json +0 -296
  142. json_model_compiler-2.0b36/site/benchmarks/2025102700.md +0 -208
  143. json_model_compiler-2.0b36/site/benchmarks/2025102705.csv +0 -164
  144. json_model_compiler-2.0b36/site/benchmarks/2025102705.json +0 -296
  145. json_model_compiler-2.0b36/site/benchmarks/2025102705.md +0 -208
  146. json_model_compiler-2.0b36/site/benchmarks/2025102900.csv +0 -166
  147. json_model_compiler-2.0b36/site/benchmarks/2025102900.json +0 -296
  148. json_model_compiler-2.0b36/site/benchmarks/2025102900.md +0 -211
  149. json_model_compiler-2.0b36/site/benchmarks/2025103000.csv +0 -166
  150. json_model_compiler-2.0b36/site/benchmarks/2025103000.json +0 -296
  151. json_model_compiler-2.0b36/site/benchmarks/2025103000.md +0 -211
  152. json_model_compiler-2.0b36/site/benchmarks/2025110100.csv +0 -166
  153. json_model_compiler-2.0b36/site/benchmarks/2025110100.json +0 -296
  154. json_model_compiler-2.0b36/site/benchmarks/2025110100.md +0 -211
  155. json_model_compiler-2.0b36/site/benchmarks/2025110500.csv +0 -166
  156. json_model_compiler-2.0b36/site/benchmarks/2025110500.json +0 -296
  157. json_model_compiler-2.0b36/site/benchmarks/2025110500.md +0 -211
  158. json_model_compiler-2.0b36/site/benchmarks/2025111100.csv +0 -166
  159. json_model_compiler-2.0b36/site/benchmarks/2025111100.json +0 -296
  160. json_model_compiler-2.0b36/site/benchmarks/2025111100.md +0 -211
  161. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/.gitignore +0 -0
  162. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/.gitmodules +0 -0
  163. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/API.md +0 -0
  164. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/DESIGN.md +0 -0
  165. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/INTEGRATION.md +0 -0
  166. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/MANIFEST.in +0 -0
  167. {json_model_compiler-2.0b36/docker → json_model_compiler-2.0b37/container}/.dockerignore +0 -0
  168. {json_model_compiler-2.0b36/docker → json_model_compiler-2.0b37/container}/.gitignore +0 -0
  169. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/README.md +0 -0
  170. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/__init__.py +0 -0
  171. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/clang_entry.c +0 -0
  172. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/clang_free.c +0 -0
  173. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/clang_init.c +0 -0
  174. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/clang_pcre2_fun.c +0 -0
  175. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/clang_re2_fun.c +0 -0
  176. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/java_free.java +0 -0
  177. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/java_init.java +0 -0
  178. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/javascript_exe.js +0 -0
  179. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/javascript_foot.js +0 -0
  180. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/javascript_free.js +0 -0
  181. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/javascript_head.js +0 -0
  182. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/javascript_init.js +0 -0
  183. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/javascript_main.js +0 -0
  184. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/perl_entry.pl +0 -0
  185. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/perl_exe.pl +0 -0
  186. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/perl_free.pl +0 -0
  187. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/perl_init.pl +0 -0
  188. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/perl_main.pl +0 -0
  189. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/perl_pkg.pl +0 -0
  190. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/plpgsql_entry.sql +0 -0
  191. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/python_entry.py +0 -0
  192. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/python_exe.py +0 -0
  193. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/python_free.py +0 -0
  194. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/python_init.py +0 -0
  195. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/data/python_main.py +0 -0
  196. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/Makefile +0 -0
  197. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/.gitignore +0 -0
  198. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/Makefile +0 -0
  199. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/README.md +0 -0
  200. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Checker.java +0 -0
  201. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/GSON.java +0 -0
  202. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/JSON.java +0 -0
  203. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/JSONP.java +0 -0
  204. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Jackson.java +0 -0
  205. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  206. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Path.java +0 -0
  207. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/java/json_model/Report.java +0 -0
  208. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/js/README.md +0 -0
  209. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/js/index.js +0 -0
  210. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/js/package.json +0 -0
  211. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/.gitignore +0 -0
  212. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/LICENSE +0 -0
  213. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/MANIFEST +0 -0
  214. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/Makefile.PL +0 -0
  215. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/README +0 -0
  216. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/ignore.txt +0 -0
  217. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/t/00-load.t +0 -0
  218. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/t/manifest.t +0 -0
  219. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  220. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/t/pod.t +0 -0
  221. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  222. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/sql/META.json +0 -0
  223. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/sql/Makefile +0 -0
  224. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/sql/json_model--2.0.sql +0 -0
  225. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/sql/json_model.control +0 -0
  226. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/runtime/types.py +0 -0
  227. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model/url_cache.py +0 -0
  228. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  229. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/entry_points.txt +0 -0
  230. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/json_model_compiler.egg-info/top_level.txt +0 -0
  231. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/ansiblelint-meta.model.json +0 -0
  232. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/cypress.model.json +0 -0
  233. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/diploma-arrete.model.json +0 -0
  234. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/diploma-export.model.json +0 -0
  235. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/everything.model.json +0 -0
  236. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/fresq.model.json +0 -0
  237. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/geo-easy.model.json +0 -0
  238. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/geo.model.json +0 -0
  239. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-model-latest.model.json +0 -0
  240. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-model-moschin.model.json +0 -0
  241. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-model-no-merge.model.json +0 -0
  242. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-model-v1.model.json +0 -0
  243. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-model-v2-en.model.json +0 -0
  244. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-model-v2.model.json +0 -0
  245. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-model.model.json +0 -0
  246. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-01-fuzzy.model.json +0 -0
  247. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-01-nesting.model.json +0 -0
  248. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-01.model.json +0 -0
  249. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-02-fuzzy.model.json +0 -0
  250. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-02-nesting.model.json +0 -0
  251. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-02.model.json +0 -0
  252. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-03-fuzzy.model.json +0 -0
  253. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-03-nesting.model.json +0 -0
  254. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-03.model.json +0 -0
  255. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-04-fuzzy.model.json +0 -0
  256. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-04-mongodb.model.json +0 -0
  257. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-04-nesting.model.json +0 -0
  258. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-04.model.json +0 -0
  259. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-06-fuzzy.model.json +0 -0
  260. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-06.model.json +0 -0
  261. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-07-fuzzy.model.json +0 -0
  262. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-07.model.json +0 -0
  263. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
  264. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-2019-09.model.json +0 -0
  265. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
  266. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-2020-12-tight.model.json +0 -0
  267. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-2020-12.model.json +0 -0
  268. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-next-fuzzy.model.json +0 -0
  269. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-next.model.json +0 -0
  270. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-tight.model.json +0 -0
  271. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-tighter-loose.model.json +0 -0
  272. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-draft-tighter.model.json +0 -0
  273. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/json-schema-linter.model.json +0 -0
  274. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/jsound.model.json +0 -0
  275. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/l10n.model.json +0 -0
  276. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/lazygit.model.json +0 -0
  277. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/openapi-311-fuzzy.model.json +0 -0
  278. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/openapi-311-models.model.json +0 -0
  279. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/openapi-311.model.json +0 -0
  280. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/person.model.json +0 -0
  281. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/person2.model.json +0 -0
  282. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/pgxn.model.json +0 -0
  283. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/models/test-schema.model.json +0 -0
  284. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/package.json +0 -0
  285. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/setup.cfg +0 -0
  286. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/site/API.md +0 -0
  287. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/site/favicon.ico +0 -0
  288. {json_model_compiler-2.0b36 → json_model_compiler-2.0b37}/site/json_logo.svg +0 -0
@@ -2,21 +2,44 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
- - [x] tests: check how clang compares to gcc (maybe a few pc better)
6
- - [x] static: partition long lists of properties based on first bytes
7
- - [x] static: use more bytes for str hashing depending on min len
8
- - [x] static: generate hexa constants for partition limits tests
9
- - [x] static: use `continue` instead of long multi-if statements
10
- - [x] c-backend: partition inlined str cset
11
- - [x] static: or acceleration based on full or partial distinct mandatory props
12
- - [x] static: set default C partition threshold to _6_
13
- - [x] c-backend: replace `strcmp` with `memcmp` in runtime
14
- - [x] backend: improve if patterns in some cases
15
- - [x] pr: add explicit winner column to per case perf
16
- - [x] model: simplify `{"": "$NONE"}`
17
- - [x] ~model: avoid dead code in `mv-0f/dedup-002`~ (simple pair ok, multiple seldom useful)
18
- - [ ] test: improve output determinism
19
- - [ ] perf: compute performance overhead globally instead of per run
5
+ - [x] test: improve output determinism
6
+ - [x] container: allow to use `podman` instead of `docker`
7
+ - [x] perf: estimate measure overhead over 100 iterations
8
+ - [x] perf: share overhead estimation between tests
9
+ - [x] perf: try to prevent performance loops from being optimized out with some computation
10
+ - [x] container: add podman-in-podman or docker-in-docker
11
+ - [x] python-backend: add support for embedded nul characters in strings
12
+ - [x] optim: fix inappriopriate model deduplication in or-lists
13
+ - [x] dynamic: allow arbitrary options to dynamic interfaces
14
+ - [x] lang: extend list of predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION
15
+ - [x] bug: fix unwise regex optimization
16
+ - [x] python-backend: add support for `.mo`
17
+ - [x] optim: remove bad transform _A & (T ^ B)) != A ^ B_
18
+ - [x] python-backend: escape more strange characters in string constants
19
+ - [x] perf: do not report broken count if nothing is broken
20
+ - [x] python-backend: numerical workarounds for .mo extension implementation
21
+ - [x] backend: add support for `.in` extension without other constraints
22
+ - [x] tests: minimal tests for `.mo` and `.in`
23
+ - [x] \*-backend:: add support for `.mo` and `.in` extensions
24
+ - [x] optim: optimize typed and _"" & "xxx"_ involving references
25
+ - [x] optim: arbitrary guard against infinite loops
26
+ - [x] ir: fix stupid bug in ir opts
27
+ - [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
28
+ - [ ] optim: recognize typed not: _"" ^ "xxx"_
29
+ - [ ] tests: rerun with updated JSTS before release
30
+ - [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
31
+ - [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
32
+ - [ ] doc: add _known limitations_ stuff
33
+ - [ ] optim: implement stupid any type but one constrained optimization (jsu)
34
+ - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
35
+ - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
36
+ - [ ] test: add test categories (mark?)
37
+ - [ ] doc: improve developer documentation
38
+ - [ ] test: allow to skip some tests by category
39
+ - [ ] docker: enable user remap
40
+ - [ ] export: java classes
41
+ - [ ] export: go interfaces
42
+ - [ ] static: make regex groups non capturing when appropriate?
20
43
  - [ ] static: xor acceleration based on distinct mandatory props
21
44
  - [ ] static: merge partial mandatory prop discriminants
22
45
  - [ ] static: merge may/must property handling, or not?
@@ -81,6 +104,7 @@
81
104
  - [ ] static: shorten xor exit?
82
105
  - [ ] perf: profile some cases
83
106
  - [ ] c-backend: use vector instructions for larger strcmp?
107
+ - [ ] export: sqlalchemy
84
108
 
85
109
  ## Re Do
86
110
 
@@ -742,3 +766,16 @@
742
766
  - [x] perf: test max strcmp cset to set default default
743
767
  - [x] pr: move out schema-to-model conversion
744
768
  - [x] pr: adjust radar display to visible datasets
769
+ - [x] tests: check how clang compares to gcc (maybe a few pc better)
770
+ - [x] static: partition long lists of properties based on first bytes
771
+ - [x] static: use more bytes for str hashing depending on min len
772
+ - [x] static: generate hexa constants for partition limits tests
773
+ - [x] static: use `continue` instead of long multi-if statements
774
+ - [x] c-backend: partition inlined str cset
775
+ - [x] static: or acceleration based on full or partial distinct mandatory props
776
+ - [x] static: set default C partition threshold to _6_
777
+ - [x] c-backend: replace `strcmp` with `memcmp` in runtime
778
+ - [x] backend: improve if patterns in some cases
779
+ - [x] pr: add explicit winner column to per case perf
780
+ - [x] model: simplify `{"": "$NONE"}`
781
+ - [x] ~model: avoid dead code in `mv-0f/dedup-002`~ (simple pair ok, multiple seldom useful)
@@ -0,0 +1,126 @@
1
+ # JSON Model Compiler Benchmark Artifacts
2
+
3
+ These artifacts compare
4
+ [JSON Model Compiler](https://github.com/clairey-zx81/json-model) generated code in
5
+ C, JS, Java (GSON, Jackson and JSONP using Johnzon) and Python with
6
+ [Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) using test cases from
7
+ [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
8
+
9
+ ## Recent Artifacts
10
+
11
+ - [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs jsc 14.13.4, 11 runs, 1000 iterations.
12
+ - [2026022000](benchmarks/2026022000.md) clang, no predefs, jmc 2.0b36 vs jsc 14.13.3, 11 runs, 1000 iterations.
13
+ - [2026021900](benchmarks/2026021900.md) clang, no predefs, jmc 2.0b36 vs jsc 14.13.1, 11 runs, 1000 iterations.
14
+ - [2026021702](benchmarks/2026021702.md) clang, no predefs, jmc 2.0b36 vs jsc 14.13.0, 11 runs, 1000 iterations.
15
+ - [2026021701](benchmarks/2026021701.md) clang, no predefs, jmc 2.0b36 vs jsc 14.12.0, 11 runs, 1000 iterations.
16
+ - [2026021700](benchmarks/2026021700.md) clang, no predefs, jmc 2.0b36 vs jsc 14.11.0, 11 runs, 1000 iterations.
17
+ - [2026021300](benchmarks/2026021300.md) clang, no predefs, jmc 2.0b36 vs jsc 14.10.0, 11 runs, 1000 iterations.
18
+ - [2026021000](benchmarks/2026021000.md) clang, no predefs, jmc 2.0b36 vs jsc 14.7.2, 11 runs, 1000 iterations.
19
+ - [2026020600](benchmarks/2026020600.md) clang, no predefs, jmc 2.0b36 vs jsc 14.7.1, 11 runs, 1000 iterations.
20
+ - [2026020500](benchmarks/2026020500.md) clang, no predefs, jmc 2.0b36 vs jsc 14.6.1, 11 runs, 1000 iterations.
21
+ - [2026012700](benchmarks/2026012700.md) clang, no predefs, jmc 2.0b36 vs jsc 14.5.0, 11 runs, 1000 iterations.
22
+ - [2026012400](benchmarks/2026012400.md) clang, no predefs, jmc 2.0b36 vs jsc 14.4.0, 11 runs, 1000 iterations.
23
+ - [2026012200](benchmarks/2026012200.md) clang, no predefs, jmc 2.0b36 vs jsc 14.2.0, 11 runs, 1000 iterations.
24
+ - [2026012000](benchmarks/2026012000.md) clang, no predefs, jmc 2.0b36 vs jsc 14.1.0, 11 runs, 1000 iterations.
25
+ - [2026011500](benchmarks/2026011500.md) clang, no predefs, jmc 2.0b36 vs jsc 14.0.4, 11 runs, 1000 iterations.
26
+ - [2026010900](benchmarks/2026010900.md) clang, no predefs, jmc 2.0b36 vs jsc 14.0.3, 11 runs, 1000 iterations.
27
+ - [2026010600](benchmarks/2026010600.md) clang, no predefs, jmc 2.0b36 vs jsc 14.0.2, 11 runs, 1000 iterations.
28
+
29
+ ## Benchmarking Script
30
+
31
+ The [benchmarking script](https://github.com/clairey-zx81/json-model/blob/main/tests/perf/benchmark.sh)
32
+ is provided as docker image [docker.io/zx80/jmc-bench](https://hub.docker.com/repository/docker/zx80/jmc-bench).
33
+ It downloads the benchmark schemas and test values, and runs through docker-in-docker
34
+ [docker.io/zx80/jmc](https://hub.docker.com/repository/docker/zx80/jmc) for JMC runs and
35
+ [ghcr.io/sourcemeta/jsonschema](https://github.com/sourcemeta/jsonschema/pkgs/container/jsonschema)
36
+ for comparison using the Blaze CLI.
37
+
38
+ It is typically started on a large host with the
39
+ [`start_bench.sh` script](https://github.com/clairey-zx81/json-model/blob/main/tests/perf/start_bench.sh)
40
+ which will spawn the necessary containers:
41
+
42
+ ```sh
43
+ JMC=latest JMC_OPTS="--no-predef --cc=clang-20" \
44
+ nohup ./start_bench.sh latest -p 16 -l 1000 -r 5 &
45
+ # in the generated directory, look for the summary markdown and radar json files.
46
+ ```
47
+
48
+ The main script options are:
49
+
50
+ - `-p PARA` parallelism (a little less that the number of available cores, default is _8_)
51
+ - `-l LOOP` loop iterations for performance average (at least _1000_, the default)
52
+ - `-r RUNS` number of runs (odd number, default is _3_)
53
+ - `--no-cap-py` do _not_ reduce python iterations by a factor of 10 (default is to reduce)
54
+
55
+ ## Benchmarking Conditions
56
+
57
+ JSON schemas for the benchmark are translated to models based on
58
+ [JSON Schema Utils](https://github.com/zx80/json-schema-utils).
59
+
60
+ Runs are performed in _fast_ mode: the rejection reasons are not collected, and
61
+ the run stops as soon as possible.
62
+
63
+ - To smooth out the wide range of collected performances (from 10 ns to
64
+ over 300 µs for validating one value), a relative comparison ratio is shown.
65
+ - Compilation times are the _minimum_ encountered of over the runs.
66
+ whereas performance times are the _median_ over the runs.
67
+ - The C backend also includes the _runtime_ compilation from sources.
68
+ - JSON Schema to JSON Model conversion times are recorded separately.
69
+
70
+ Note that performance figures **must** be taken with a pinch of salt, please consider
71
+ the following caveats, and others:
72
+
73
+ - do you value latency or throuput or resource consumption? the answer is not so obvious,
74
+ probably you should prefer a high throuput _if_ the latency is good enough, but these
75
+ benchmark actually measure raw latency.
76
+ - test cases may or may not be representative of specific use cases,
77
+ especially wrt schema/model and value sizes.
78
+ - the overall load on the host can impact measures.
79
+ - compilers, libraries and other design and updates can have dramatic effects:
80
+ for faster parsing, a library may use linked-list for properties, which means
81
+ that retrieving a given property value will cost more than a library which uses
82
+ a hash table which is more costly to build.
83
+ - blaze does _not_ implement checking string values (eg dates, url…),
84
+ so these checks may be disactivated (see `JMC_OPTS`) for fairness.
85
+ - blaze uses its own special-purpose JSON representation: if interfaced from another
86
+ ecosystem, the cost of translating the JSON representation should be taken into account;
87
+ jmc uses native JSON representations and generate validation code around it.
88
+ - due to intrinsic limitations of the underlying libraries and the quality of models or schemas,
89
+ some results may differ, mostly for good reasons: regex incompatibilities, stricter
90
+ model definitions compared to lax schemas…
91
+ - it is unclear whether JIT optimizations (eg Java and JS) may work around the
92
+ benchmarking loops and report undue very fast performances, eg on the GeoJSON case.
93
+ - some execution environment (eg Java) may take advantage of parallelism with threads,
94
+ which may or may not be a blessing: it can reduce the apparent latency (eg the gc runs
95
+ in another thread) but have a detrimental overall effect on throughput as more cpu ressources
96
+ are spent on the same task.
97
+
98
+ ## Other Artifacts
99
+
100
+ [Sourcemeta](https://sourcemeta.com)
101
+ [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark)
102
+ also provides
103
+ [benchmark artifacts](https://github.com/sourcemeta-research/jsonschema-benchmark/actions)
104
+ which includes 15 JSON Schema validation tools including our JSON Model Compiler with
105
+ C, JS and Python backends.
106
+ Overall, JMC comes ahead of Blaze C++ on about 2/3 of the test cases (as of 2026-01-22).
107
+
108
+ On Feb 5, 2026 the JMC-based implementations on this benchmark have been
109
+ [removed](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/67dc4dfc7ad2d4a8e92a920b71fb813d8f3fb6a4)
110
+ without prior notice nor discussion.
111
+ The maintainer wants to focus on comparisons with JSON Schema direct implementations only
112
+ and thus avoid some confusion.
113
+ As a side effect, their Blaze C++ tool took back the performance leadership.
114
+
115
+ It should be noted that benchmarking conditions are quite different:
116
+
117
+ 1. There is no loop to compute an average performance, but an initial _cold_ one-shot measure,
118
+ a warming phase loop and a _hot_ one-shot measure: This may tend to mask effects from
119
+ occasional GC runs.
120
+ 2. The benchmark focuses on schema conformance, including (buggy) schemas which
121
+ are mostly dead code: It rejects tools which do not validate all strictly conformant values,
122
+ even if these values would be rejected by the target application.
123
+
124
+ This latest point explains the under 100% validation results displayed JMC for
125
+ _ansible-meta_, _cypress_ and _yamllint_ tests: the model translation or native models
126
+ are more accurate than the original schemas due to bug fixes or more rigorous descriptions.
@@ -0,0 +1,69 @@
1
+ # JSON Model Developer Stuff
2
+
3
+ ## Contributions
4
+
5
+ Beware that the developer documentation is scarce. PR are always welcome, eg:
6
+
7
+ - new language or library support implementations
8
+ - new exporters
9
+ - possibly new models
10
+
11
+ ## Publication Accounts
12
+
13
+ See `publish.*` targets in `Makefile`.
14
+
15
+ - Sources on [GitHub](https://github.com/clairey-zx81)
16
+ - Python Package on [PyPI](https://pypi.org/user/zx80/)
17
+ - JavaScript module on [npmjs](https://www.npmjs.com/~calvin-5432)
18
+ - Perl module on [CPAN](https://metacpan.org/author/ZXHZ)
19
+ - Java Jar on [Maven Central](https://central.sonatype.com/artifact/org.json-model/json-model)
20
+ - Postgres extension on [PGXN](https://pgxn.org/user/fabien)
21
+ - Docker image on [Docker](https://hub.docker.com/u/zx80)
22
+ - Website on [CRI Web](https://www.cri.minesparis.psl.eu/)
23
+
24
+ ## Hardcoded Versions
25
+
26
+ - [pyproject](./pyproject.toml)
27
+ - [pom](./json_model/runtime/java/pom.xml)
28
+ - [pm](./json_model/runtime/pl/JSON/JsonModel.pm) (twice)
29
+ - [pg](./json_model/META.json) (twice)
30
+ - [js](./json_model/runtime/js/package.json)
31
+ - docker tag is extracted from `jmc`
32
+ - git tag?
33
+
34
+ ## Setup
35
+
36
+ Get sources directly from GitHub in some Unix-like terminal:
37
+
38
+ ```sh
39
+ git clone --recursive-submodules git@github.com:clairey-zx81/json-model.git
40
+ cd json-model
41
+ ```
42
+
43
+ If you intend to develop and submit a PR, fork the repos before cloning.
44
+
45
+ To setup a local developer environment, run at the root of the project:
46
+
47
+ ```sh
48
+ # for Python
49
+ make dev
50
+ source venv/bin/activate
51
+ # for JS
52
+ npm install
53
+ # for Perl
54
+ source $PWD/json_model/runtime/pl/env.bash
55
+ # for Java
56
+ # get needed dependency jars (see pom.xml), then
57
+ make -C json_model/runtime/java jar
58
+ source $PWD/json_model/runtime/java/env.bash
59
+ # for C
60
+ # install pcre2, cre2, gnu getopt, jansson
61
+ # for SQL
62
+ # have psql ready to connect to a local Postgres
63
+ ```
64
+
65
+ ## Code Doc
66
+
67
+ Read sources…
68
+ The magically-generated [deepwiki](https://deepwiki.com/clairey-zx81/json-model)
69
+ Section _The jmc Compiler_ is not too bad for an initial understanding.
@@ -15,6 +15,8 @@ using a [docker](DOCKER.md) [image](https://hub.docker.com/r/zx80/jmc) for easy
15
15
 
16
16
  See [how-to](HOWTO.md) for common tasks to integrate JSON Model seamlessly in a project.
17
17
 
18
+ See [development](DEV.md) for contributing.
19
+
18
20
  ## References
19
21
 
20
22
  JSON Model [specification](SPEC.md),
@@ -26,13 +26,15 @@ The `jmc` command can be install in a Python virtual environment from
26
26
  jmc --man
27
27
  ```
28
28
 
29
- 3. Docker install the [image](https://hub.docker.com/r/zx80/jmc) and its
30
- [convenient wrapper](https://github.com/clairey-zx81/json-model/blob/main/docker/jmc):
29
+ 3. Container install the [image](https://hub.docker.com/r/zx80/jmc) and its
30
+ [convenient wrapper](https://github.com/clairey-zx81/json-model/blob/main/container/jmc):
31
31
 
32
32
  ```sh
33
- docker pull zx80/jmc
34
- curl -o ./jmc https://raw.githubusercontent.com/clairey-zx81/json-model/refs/heads/main/docker/jmc
33
+ # podman pull docker.io/zx80/jmc
34
+ docker pull docker.io/zx80/jmc
35
+ curl -o ./jmc https://raw.githubusercontent.com/clairey-zx81/json-model/refs/heads/main/container/jmc
35
36
  chmod a+rx ./jmc
37
+ export POD="docker" # or "podman"
36
38
  ./jmc --version
37
39
  ./jmc --man
38
40
  ```
@@ -39,7 +39,7 @@ check.src: check.ruff check.pyright
39
39
  .PHONY: check
40
40
  check: check.src check.tests
41
41
 
42
- IGNORE = E121,E125,E131,E227,E251,E302,W504,F841
42
+ IGNORE = E121,E125,E128,E131,E201,E202,E226,E227,E251,E302,E702,W504,F841
43
43
 
44
44
  .PHONY: check.flake8
45
45
  check.flake8: dev
@@ -80,6 +80,7 @@ site/JMC.md: json_model/data/jmc.pod
80
80
  pod2markdown $< > $@
81
81
 
82
82
  site/ABOUT.md: ./about.sh
83
+ source venv/bin/activate
83
84
  $< > $@
84
85
 
85
86
  jmc.1: json_model/data/jmc.pod dev
@@ -90,6 +91,7 @@ jmc.1: json_model/data/jmc.pod dev
90
91
 
91
92
  .PHONY: www
92
93
  www: build.site
94
+ # http://localhost:3000
93
95
  cd site && $(PYTHON) -m http.server 3000
94
96
 
95
97
  #
@@ -114,9 +116,9 @@ publish.py: dev
114
116
  twine check dist/*
115
117
  echo "# twine upload dist/*"
116
118
 
117
- .PHONY: publish.docker
118
- publish.docker:
119
- $(MAKE) -C docker docker.push
119
+ .PHONY: publish.container
120
+ publish.container:
121
+ $(MAKE) -C container pod.push
120
122
 
121
123
  RT.dir = ./json_model/runtime
122
124
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b36
3
+ Version: 2.0b37
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -15,7 +15,7 @@ Requires-Dist: requests
15
15
  Requires-Dist: google-re2
16
16
  Requires-Dist: pyyaml
17
17
  Requires-Dist: validators
18
- Requires-Dist: json-schema-utils>=0.8.5
18
+ Requires-Dist: json-schema-utils>=0.8.6
19
19
  Provides-Extra: dev
20
20
  Requires-Dist: flake8; extra == "dev"
21
21
  Requires-Dist: ruff; extra == "dev"
@@ -43,7 +43,7 @@ It is dedicated to the _Public Domain_.
43
43
 
44
44
  JSON Model optimizing compiler (`jmc`) can be installed as a
45
45
  [Python package](https://pypi.org/project/json-model-compiler/) or a
46
- [Docker image](https://hub.docker.com/r/zx80/jmc), see
46
+ [Container image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc), see
47
47
  [Installation HOWTO](HOWTO.md#installing-json-model-compiler).
48
48
 
49
49
  Command `jmc` options include:
@@ -158,9 +158,10 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
158
158
  [JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
159
159
  [Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
160
160
  from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
161
- Overall, JMC-C implementation fares over 50% faster than Blaze C++ and comes ahead 70% of the time
162
- on the latest benchmarks tests, and JMC-JS and JMC-Java/GSON native implementations are on average
163
- about 40% slower than Blaze C++, which given the intrinsic language capabilities is honorable.
161
+ Overall, JMC-C implementation fares over 75% faster than Blaze C++.
162
+ It comes ahead over 80% of the time on the latest benchmarks tests.
163
+ Moreover, JMC-JS and JMC-Java/GSON native implementations are only 15-20% slower
164
+ than Blaze C++, which given the intrinsic language capabilities is quite honorable.
164
165
 
165
166
  ## More Information
166
167
 
@@ -172,7 +173,7 @@ and links to [research papers](PAPERS.md) for explanations about the design.
172
173
  ## JSON Model Distribution
173
174
 
174
175
  - [PYPI Package](https://pypi.org/project/json-model-compiler/)
175
- - [Docker Image](https://hub.docker.com/r/zx80/jmc)
176
+ - [Container Image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc)
176
177
  - [JS Runtime](https://www.npmjs.com/package/json_model_runtime)
177
178
  - [Postgres Runtime](https://pgxn.org/dist/json_model/)
178
179
  - [Perl Runtime](https://metacpan.org/pod/JSON::JsonModel)
@@ -44,7 +44,7 @@ each language ecosystem:
44
44
 
45
45
  Ready to use JSON Model compiler and runtime for a Python environment, from _PyPI_.
46
46
 
47
- - [JSON Model Compiler Docker Image](https://hub.docker.com/r/zx80/jmc)
47
+ - [JSON Model Compiler Container Image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc)
48
48
 
49
49
  Ready to use JSON Model compiler and runtimes (Python, C, JavaScript, Perl, Java)
50
50
  as a Docker image, from _Docker Hub_.
@@ -12,7 +12,7 @@ It is dedicated to the _Public Domain_.
12
12
 
13
13
  JSON Model optimizing compiler (`jmc`) can be installed as a
14
14
  [Python package](https://pypi.org/project/json-model-compiler/) or a
15
- [Docker image](https://hub.docker.com/r/zx80/jmc), see
15
+ [Container image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc), see
16
16
  [Installation HOWTO](HOWTO.md#installing-json-model-compiler).
17
17
 
18
18
  Command `jmc` options include:
@@ -127,9 +127,10 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
127
127
  [JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
128
128
  [Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
129
129
  from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
130
- Overall, JMC-C implementation fares over 50% faster than Blaze C++ and comes ahead 70% of the time
131
- on the latest benchmarks tests, and JMC-JS and JMC-Java/GSON native implementations are on average
132
- about 40% slower than Blaze C++, which given the intrinsic language capabilities is honorable.
130
+ Overall, JMC-C implementation fares over 75% faster than Blaze C++.
131
+ It comes ahead over 80% of the time on the latest benchmarks tests.
132
+ Moreover, JMC-JS and JMC-Java/GSON native implementations are only 15-20% slower
133
+ than Blaze C++, which given the intrinsic language capabilities is quite honorable.
133
134
 
134
135
  ## More Information
135
136
 
@@ -141,7 +142,7 @@ and links to [research papers](PAPERS.md) for explanations about the design.
141
142
  ## JSON Model Distribution
142
143
 
143
144
  - [PYPI Package](https://pypi.org/project/json-model-compiler/)
144
- - [Docker Image](https://hub.docker.com/r/zx80/jmc)
145
+ - [Container Image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc)
145
146
  - [JS Runtime](https://www.npmjs.com/package/json_model_runtime)
146
147
  - [Postgres Runtime](https://pgxn.org/dist/json_model/)
147
148
  - [Perl Runtime](https://metacpan.org/pod/JSON::JsonModel)
@@ -103,9 +103,9 @@ for all possible values for that type.
103
103
  environment, other variant may be used which should support at least the RE2 subset.
104
104
  For portability, models should only rely on regex features available in the RE2 subset.
105
105
 
106
- - JSON Model regular expressions are extended with option `X` (capital letter x) to allow
107
- _references_ to string models with the following syntax: `($name:regex)`, where the regular
108
- expression after the `:` must match the named string model.
106
+ - **EXPERIMENTAL** JSON Model regular expressions are extended with option `X` (capital letter x)
107
+ to allow _references_ to string models with the following syntax: `($name:regex)`, where the
108
+ regular expression after the `:` must match the named string model.
109
109
  Syntax `($name)` is a shortcut for `($name:.*)`.
110
110
 
111
111
  - **Predefined Models**
@@ -139,7 +139,7 @@ for all possible values for that type.
139
139
  - `"$EMAIL"`: an email address, eg _susie@json-model.org_.
140
140
  - `"$JSON"`: a valid JSON value, eg _123_ or _{"Susie": "Derkins"}_.
141
141
  - `"$REGEX"`: a valid regular expression, eg _^[a-z]+$_.
142
- - `"$EXREG"`: an extended regular expression.
142
+ - `"$EXREG"`: an extended regular expression (**EXPERIMENTAL**).
143
143
 
144
144
  Any other all-capital ASCII character and digit names must be rejected as they
145
145
  are reserved for possible future predefs (eg URN, Luhn, ISBN, ISSN, EAN, DOI…).
@@ -447,7 +447,7 @@ A reference is a string which begins with the `$` character.
447
447
 
448
448
  Implementation should detect external reference cycles which are errors and should be rejected.
449
449
 
450
- ## (Experimental) Model Transformations
450
+ ## (EXPERIMENTAL) Model Transformations
451
451
 
452
452
  Symbol `%` at the root of the model defines a model transformation object, which
453
453
  may include symbol renamings, model importations and model editions.
@@ -28,26 +28,27 @@ To simplify handling these dependencies, we provide an Ubuntu-based **Docker ima
28
28
  **Python venv** (following subsection) and possibly additional system packages when needed.
29
29
 
30
30
  Both environments work for most of the tutorial sections below, so feel free to choose whichever
31
- seems more familiar. The docker image include the necessary environment run directly generated
31
+ seems more familiar. The container image include the necessary environment run directly generated
32
32
  C, Python, JS, Perl and Java codes, which explains its size.
33
33
  Running the PL/pgSQL code requires a working Postgres server, which is _not_ discussed here.
34
34
 
35
35
  ### First Installation Option: Docker Image
36
36
 
37
- For the wary user, download and start the `zx80/jmc` docker image, from your docker
38
- desktop client or from a terminal:
37
+ For the wary user, download and start the `docker.io/zx80/jmc` container image,
38
+ from your desktop client or from a terminal (`$POD` is either `docker` or `podman`):
39
39
 
40
40
  ```sh
41
- docker pull zx80/jmc:latest
41
+ $POD pull docker.io/zx80/jmc:latest
42
42
  # for linux, consider adding: --user $(id -u):$(id -g)
43
- docker run --name awesome_jmc -v .:/app/workspace --rm -it --entrypoint /bin/bash zx80/jmc
43
+ $POD run --name awesome_jmc -v .:/app/workspace --rm -it --entrypoint /bin/bash docker.io/zx80/jmc
44
44
  ```
45
45
 
46
46
  This should give your a shell prompt open in the current directory with your own permissions.
47
- Check that the `jmc` command is available and works:
47
+ Check that the `jmc` command is available and works, use environment variable `POD` to set
48
+ your container command (`docker` by default, `podman` should work as well):
48
49
 
49
50
  ```sh
50
- # inside the docker shell
51
+ # inside the container shell
51
52
  jmc --version # show version
52
53
  jmc --man # show manual page
53
54
  ```
@@ -1,9 +1,10 @@
1
1
  #! /bin/bash
2
2
  #
3
- # Generate a markdown report about the compiler
3
+ # Generate a markdown report about the compiler sources
4
4
  #
5
5
 
6
6
  version=$(jmc --version)
7
+ branch=$(git rev-parse --abbrev-ref HEAD)
7
8
  githash=$(git show --pretty=format:"%h" --no-patch)
8
9
 
9
10
  cat <<EOF
@@ -11,8 +12,8 @@ cat <<EOF
11
12
 
12
13
  JSON Model is an on-going [research project](PUBS.md).
13
14
 
14
- The following statistics for version **$version** ($githash) show that the compiler,
15
- code generator and runtimes are quite small, but still heavily tested:
15
+ The following statistics for version **$version** (\`$branch\` \`$githash\`) show that the compiler,
16
+ code generator and runtimes are quite small, but still heavily tested.
16
17
 
17
18
  ## Compiler Source Code
18
19
 
@@ -129,8 +130,8 @@ Test models cover the various features of JSON Model.
129
130
  Each model is tested for each target language (Python, C, JavaScript, PL/pgSQL, Perl, Java)
130
131
  on a set of test vectors.
131
132
 
132
- - number of JSON models: $n_models
133
- - total JSON model locs: $model_locs
134
- - number of test vector JSON values: $n_values
135
- - all tested JSON values (including models, generated schemas and test suite schemas): $all_values
133
+ - number of JSON models: _${n_models}_
134
+ - total JSON model locs: _${model_locs}_
135
+ - number of test vector JSON values: _${n_values}_
136
+ - all tested JSON values (including models, generated schemas and test suite schemas): _${all_values}_
136
137
  EOF
@@ -79,7 +79,7 @@ RUN /app/venv/bin/pip install -e ./json-schema-utils
79
79
  # java runtime, direct download with hardcoded version
80
80
  ENV java=/app/json-model/json_model/runtime/java
81
81
  ENV gson=2.13.2
82
- ENV jackson=2.20.0
82
+ ENV jackson=2.20.1
83
83
  ENV jackson_ann=2.20
84
84
  ENV jakarta=2.1.3
85
85
  ENV johnzon=2.0.2
@@ -0,0 +1,88 @@
1
+ #
2
+ # Convenient Makefile
3
+ #
4
+
5
+ SHELL = /bin/bash
6
+ .ONESHELL:
7
+
8
+ # POD = podman
9
+ POD = docker
10
+ ZX80 = docker.io/zx80
11
+
12
+ # settings, build for current branch
13
+ BRANCH = $(shell git branch --show-current)
14
+ GITVERS = $(shell git rev-parse --short=8 HEAD)
15
+ VERSION = $(shell ./jmc --version)
16
+
17
+ ifeq ($(BRANCH), main)
18
+ TAG = latest
19
+ else
20
+ TAG = test
21
+ endif
22
+
23
+ # for jmc wrapper
24
+ export JMC = $(BRANCH)
25
+
26
+ #
27
+ # CLEAN
28
+ #
29
+ .PHONY: clean
30
+ clean:
31
+ $(RM) .build
32
+
33
+ .PHONY: pod.clean
34
+ pod.clean: clean
35
+ $(POD) image prune -f
36
+ $(POD) container prune -f
37
+ $(POD) image rm -f $$($(POD) image ls | grep '^<none>' | tr -s " " " " | cut -d' ' -f 3) jmc
38
+ $(POD) buildx prune -f
39
+
40
+ .PHONY: pod.cleaner
41
+ pod.cleaner:
42
+ $(POD) image rm -f $$($(POD) image ls | grep ^zx80/jmc | tr -s " " " " | cut -d' ' -f 3)
43
+
44
+ #
45
+ # POD (docker ou podman)
46
+ #
47
+ NOCACHE = --no-cache
48
+ JMC = $(BRANCH)
49
+ JSU = main
50
+
51
+ .PHONY: pod.build
52
+ pod.build: .build
53
+
54
+ .build: Containerfile jmc
55
+ $(POD) build $(NOCACHE) --build-arg JMC=$(JMC) --build-arg JSU=$(JSU) \
56
+ -t jmc -f Containerfile . && date -Iseconds > $@
57
+
58
+ .PHONY: pod.run
59
+ pod.run: .build
60
+ @echo $(POD) run --user $$UID:$$GID -v .:/workspace -it --rm --entrypoint /bin/bash jmc
61
+
62
+ .PHONY: pod.status
63
+ pod.status:
64
+ # $(POD) volume ls
65
+ $(POD) system df
66
+ $(POD) container ps -a
67
+ $(POD) image ls -a
68
+
69
+ .PHONY: versions
70
+ versions:
71
+ @ \
72
+ echo " - tag: $(TAG)"; \
73
+ echo " - branch: $(BRANCH)"; \
74
+ echo " - gitvers: $(GITVERS)"; \
75
+ echo " - version: $(VERSION)"
76
+
77
+ .PHONY: pod.tag
78
+ pod.tag: .build
79
+ export POD=$(POD)
80
+ $(POD) tag jmc $(ZX80)/jmc:$(TAG)
81
+ $(POD) tag jmc $(ZX80)/jmc:$(BRANCH)
82
+ # $(POD) tag jmc $(ZX80)/jmc:$(GITVERS)
83
+ $(POD) tag jmc $(ZX80)/jmc:$$(JMC=$(BRANCH) ./jmc --version)
84
+
85
+ .PHONY: pod.push
86
+ pod.push: pod.tag
87
+ # if needed: docker login
88
+ $(POD) push -a $(ZX80)/jmc