json-model-compiler 2.0b36__tar.gz → 2.0b38__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.0b36/site → json_model_compiler-2.0b38}/BACKLOG.md +60 -15
  2. json_model_compiler-2.0b38/BENCH.md +131 -0
  3. json_model_compiler-2.0b38/DEV.md +69 -0
  4. {json_model_compiler-2.0b36/site → json_model_compiler-2.0b38}/DOC.md +2 -0
  5. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/HOWTO.md +6 -4
  6. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/Makefile +6 -4
  7. {json_model_compiler-2.0b36/json_model_compiler.egg-info → json_model_compiler-2.0b38}/PKG-INFO +7 -7
  8. {json_model_compiler-2.0b36/site → json_model_compiler-2.0b38}/PUBS.md +1 -1
  9. {json_model_compiler-2.0b36/site → json_model_compiler-2.0b38}/README.md +5 -5
  10. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/SPEC.md +5 -5
  11. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/TUTO.md +8 -7
  12. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/about.sh +8 -7
  13. json_model_compiler-2.0b36/docker/Dockerfile → json_model_compiler-2.0b38/container/Containerfile +1 -1
  14. json_model_compiler-2.0b38/container/Makefile +87 -0
  15. {json_model_compiler-2.0b36/docker → json_model_compiler-2.0b38/container}/README.md +8 -8
  16. json_model_compiler-2.0b38/container/jmc +64 -0
  17. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/analyze.py +23 -8
  18. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/clang.py +51 -27
  19. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/convert.py +29 -16
  20. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/jmc.pod +13 -3
  21. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/export.py +1 -1
  22. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/irep.py +103 -38
  23. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/java.py +30 -9
  24. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/javascript.py +23 -9
  25. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/language.py +57 -39
  26. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/model.py +27 -17
  27. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/mtypes.py +16 -0
  28. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/objmerge.py +2 -1
  29. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/optim.py +95 -30
  30. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/perl.py +32 -14
  31. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/plpgsql.py +34 -14
  32. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/python.py +28 -9
  33. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/recurse.py +7 -2
  34. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/resolver.py +8 -7
  35. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/__init__.py +31 -0
  36. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/c/Makefile +7 -1
  37. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/c/json-model.c +17 -8
  38. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/c/json-model.h +2 -0
  39. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/c/main.c +61 -28
  40. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/env.bash +1 -1
  41. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Main.java +28 -14
  42. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Runtime.java +7 -0
  43. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/pom.xml +2 -2
  44. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/js/main.js +26 -17
  45. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/js/package.json +1 -1
  46. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/Changes +4 -0
  47. json_model_compiler-2.0b38/json_model/runtime/pl/env.bash +4 -0
  48. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/lib/JSON/JsonModel.pm +49 -20
  49. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/support.py +30 -14
  50. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/script.py +68 -42
  51. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/utils.py +91 -43
  52. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/xstatic.py +172 -68
  53. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38/json_model_compiler.egg-info}/PKG-INFO +7 -7
  54. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/SOURCES.txt +65 -43
  55. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/requires.txt +1 -1
  56. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/cypress.model.json +7 -2
  57. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/geo-easy.model.json +1 -1
  58. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/geo.model.json +3 -4
  59. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/jmc-ir.model.json +2 -1
  60. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/pyproject.toml +2 -2
  61. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38/site}/BACKLOG.md +60 -15
  62. json_model_compiler-2.0b38/site/BENCH.md +131 -0
  63. json_model_compiler-2.0b38/site/DEV.md +69 -0
  64. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38/site}/DOC.md +2 -0
  65. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/site/HOWTO.md +6 -4
  66. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38/site}/PUBS.md +1 -1
  67. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38/site}/README.md +5 -5
  68. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/site/SPEC.md +5 -5
  69. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/site/TUTO.md +8 -7
  70. json_model_compiler-2.0b38/site/benchmarks/2026010600.csv +172 -0
  71. json_model_compiler-2.0b38/site/benchmarks/2026010600.json +296 -0
  72. json_model_compiler-2.0b38/site/benchmarks/2026010600.md +215 -0
  73. json_model_compiler-2.0b38/site/benchmarks/2026010900.csv +172 -0
  74. json_model_compiler-2.0b38/site/benchmarks/2026010900.json +296 -0
  75. json_model_compiler-2.0b38/site/benchmarks/2026010900.md +215 -0
  76. json_model_compiler-2.0b38/site/benchmarks/2026011500.csv +172 -0
  77. json_model_compiler-2.0b38/site/benchmarks/2026011500.json +296 -0
  78. json_model_compiler-2.0b38/site/benchmarks/2026011500.md +215 -0
  79. json_model_compiler-2.0b38/site/benchmarks/2026012000.csv +172 -0
  80. json_model_compiler-2.0b38/site/benchmarks/2026012000.json +296 -0
  81. json_model_compiler-2.0b38/site/benchmarks/2026012000.md +215 -0
  82. json_model_compiler-2.0b38/site/benchmarks/2026012200.csv +173 -0
  83. json_model_compiler-2.0b38/site/benchmarks/2026012200.json +296 -0
  84. json_model_compiler-2.0b38/site/benchmarks/2026012200.md +216 -0
  85. json_model_compiler-2.0b38/site/benchmarks/2026012400.csv +173 -0
  86. json_model_compiler-2.0b38/site/benchmarks/2026012400.json +296 -0
  87. json_model_compiler-2.0b38/site/benchmarks/2026012400.md +216 -0
  88. json_model_compiler-2.0b38/site/benchmarks/2026012700.csv +173 -0
  89. json_model_compiler-2.0b38/site/benchmarks/2026012700.json +296 -0
  90. json_model_compiler-2.0b38/site/benchmarks/2026012700.md +216 -0
  91. json_model_compiler-2.0b38/site/benchmarks/2026020500.csv +167 -0
  92. json_model_compiler-2.0b38/site/benchmarks/2026020500.json +296 -0
  93. json_model_compiler-2.0b38/site/benchmarks/2026020500.md +211 -0
  94. json_model_compiler-2.0b38/site/benchmarks/2026020600.csv +173 -0
  95. json_model_compiler-2.0b38/site/benchmarks/2026020600.json +296 -0
  96. json_model_compiler-2.0b38/site/benchmarks/2026020600.md +217 -0
  97. json_model_compiler-2.0b38/site/benchmarks/2026021000.csv +171 -0
  98. json_model_compiler-2.0b38/site/benchmarks/2026021000.json +296 -0
  99. json_model_compiler-2.0b38/site/benchmarks/2026021000.md +215 -0
  100. json_model_compiler-2.0b38/site/benchmarks/2026021300.csv +171 -0
  101. json_model_compiler-2.0b38/site/benchmarks/2026021300.json +296 -0
  102. json_model_compiler-2.0b38/site/benchmarks/2026021300.md +215 -0
  103. json_model_compiler-2.0b38/site/benchmarks/2026021700.csv +171 -0
  104. json_model_compiler-2.0b38/site/benchmarks/2026021700.json +296 -0
  105. json_model_compiler-2.0b38/site/benchmarks/2026021700.md +214 -0
  106. json_model_compiler-2.0b38/site/benchmarks/2026021701.csv +171 -0
  107. json_model_compiler-2.0b38/site/benchmarks/2026021701.json +296 -0
  108. json_model_compiler-2.0b38/site/benchmarks/2026021701.md +214 -0
  109. json_model_compiler-2.0b38/site/benchmarks/2026021702.csv +171 -0
  110. json_model_compiler-2.0b38/site/benchmarks/2026021702.json +296 -0
  111. json_model_compiler-2.0b38/site/benchmarks/2026021702.md +214 -0
  112. json_model_compiler-2.0b38/site/benchmarks/2026021900.csv +171 -0
  113. json_model_compiler-2.0b38/site/benchmarks/2026021900.json +296 -0
  114. json_model_compiler-2.0b38/site/benchmarks/2026021900.md +214 -0
  115. json_model_compiler-2.0b38/site/benchmarks/2026022000.csv +171 -0
  116. json_model_compiler-2.0b38/site/benchmarks/2026022000.json +296 -0
  117. json_model_compiler-2.0b38/site/benchmarks/2026022000.md +214 -0
  118. json_model_compiler-2.0b38/site/benchmarks/2026022400.csv +171 -0
  119. json_model_compiler-2.0b38/site/benchmarks/2026022400.json +296 -0
  120. json_model_compiler-2.0b38/site/benchmarks/2026022400.md +214 -0
  121. json_model_compiler-2.0b38/site/benchmarks/2026030700.csv +169 -0
  122. json_model_compiler-2.0b38/site/benchmarks/2026030700.json +296 -0
  123. json_model_compiler-2.0b38/site/benchmarks/2026030700.md +213 -0
  124. json_model_compiler-2.0b38/site/benchmarks/2026030703.csv +169 -0
  125. json_model_compiler-2.0b38/site/benchmarks/2026030703.json +296 -0
  126. json_model_compiler-2.0b38/site/benchmarks/2026030703.md +213 -0
  127. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/site/cover.md +1 -1
  128. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/site/index.html +60 -40
  129. json_model_compiler-2.0b36/BENCH.md +0 -77
  130. json_model_compiler-2.0b36/DEV.md +0 -24
  131. json_model_compiler-2.0b36/docker/Makefile +0 -83
  132. json_model_compiler-2.0b36/docker/jmc +0 -42
  133. json_model_compiler-2.0b36/site/BENCH.md +0 -77
  134. json_model_compiler-2.0b36/site/DOCKER.md +0 -99
  135. json_model_compiler-2.0b36/site/benchmarks/2025102200.csv +0 -164
  136. json_model_compiler-2.0b36/site/benchmarks/2025102200.json +0 -296
  137. json_model_compiler-2.0b36/site/benchmarks/2025102200.md +0 -209
  138. json_model_compiler-2.0b36/site/benchmarks/2025102201.csv +0 -164
  139. json_model_compiler-2.0b36/site/benchmarks/2025102201.json +0 -296
  140. json_model_compiler-2.0b36/site/benchmarks/2025102201.md +0 -209
  141. json_model_compiler-2.0b36/site/benchmarks/202510220b.csv +0 -164
  142. json_model_compiler-2.0b36/site/benchmarks/202510220b.json +0 -296
  143. json_model_compiler-2.0b36/site/benchmarks/202510220b.md +0 -207
  144. json_model_compiler-2.0b36/site/benchmarks/2025102400.csv +0 -158
  145. json_model_compiler-2.0b36/site/benchmarks/2025102400.json +0 -296
  146. json_model_compiler-2.0b36/site/benchmarks/2025102400.md +0 -207
  147. json_model_compiler-2.0b36/site/benchmarks/2025102402.csv +0 -164
  148. json_model_compiler-2.0b36/site/benchmarks/2025102402.json +0 -296
  149. json_model_compiler-2.0b36/site/benchmarks/2025102402.md +0 -208
  150. json_model_compiler-2.0b36/site/benchmarks/2025102700.csv +0 -164
  151. json_model_compiler-2.0b36/site/benchmarks/2025102700.json +0 -296
  152. json_model_compiler-2.0b36/site/benchmarks/2025102700.md +0 -208
  153. json_model_compiler-2.0b36/site/benchmarks/2025102705.csv +0 -164
  154. json_model_compiler-2.0b36/site/benchmarks/2025102705.json +0 -296
  155. json_model_compiler-2.0b36/site/benchmarks/2025102705.md +0 -208
  156. json_model_compiler-2.0b36/site/benchmarks/2025102900.csv +0 -166
  157. json_model_compiler-2.0b36/site/benchmarks/2025102900.json +0 -296
  158. json_model_compiler-2.0b36/site/benchmarks/2025102900.md +0 -211
  159. json_model_compiler-2.0b36/site/benchmarks/2025103000.csv +0 -166
  160. json_model_compiler-2.0b36/site/benchmarks/2025103000.json +0 -296
  161. json_model_compiler-2.0b36/site/benchmarks/2025103000.md +0 -211
  162. json_model_compiler-2.0b36/site/benchmarks/2025110100.csv +0 -166
  163. json_model_compiler-2.0b36/site/benchmarks/2025110100.json +0 -296
  164. json_model_compiler-2.0b36/site/benchmarks/2025110100.md +0 -211
  165. json_model_compiler-2.0b36/site/benchmarks/2025110500.csv +0 -166
  166. json_model_compiler-2.0b36/site/benchmarks/2025110500.json +0 -296
  167. json_model_compiler-2.0b36/site/benchmarks/2025110500.md +0 -211
  168. json_model_compiler-2.0b36/site/benchmarks/2025111100.csv +0 -166
  169. json_model_compiler-2.0b36/site/benchmarks/2025111100.json +0 -296
  170. json_model_compiler-2.0b36/site/benchmarks/2025111100.md +0 -211
  171. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/.gitignore +0 -0
  172. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/.gitmodules +0 -0
  173. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/API.md +0 -0
  174. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/DESIGN.md +0 -0
  175. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/INTEGRATION.md +0 -0
  176. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/MANIFEST.in +0 -0
  177. {json_model_compiler-2.0b36/docker → json_model_compiler-2.0b38/container}/.dockerignore +0 -0
  178. {json_model_compiler-2.0b36/docker → json_model_compiler-2.0b38/container}/.gitignore +0 -0
  179. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/README.md +0 -0
  180. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/__init__.py +0 -0
  181. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/clang_entry.c +0 -0
  182. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/clang_free.c +0 -0
  183. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/clang_init.c +0 -0
  184. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/clang_pcre2_fun.c +0 -0
  185. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/clang_re2_fun.c +0 -0
  186. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/java_free.java +0 -0
  187. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/java_init.java +0 -0
  188. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/javascript_exe.js +0 -0
  189. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/javascript_foot.js +0 -0
  190. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/javascript_free.js +0 -0
  191. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/javascript_head.js +0 -0
  192. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/javascript_init.js +0 -0
  193. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/javascript_main.js +0 -0
  194. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/perl_entry.pl +0 -0
  195. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/perl_exe.pl +0 -0
  196. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/perl_free.pl +0 -0
  197. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/perl_init.pl +0 -0
  198. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/perl_main.pl +0 -0
  199. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/perl_pkg.pl +0 -0
  200. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/plpgsql_entry.sql +0 -0
  201. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/python_entry.py +0 -0
  202. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/python_exe.py +0 -0
  203. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/python_free.py +0 -0
  204. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/python_init.py +0 -0
  205. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/data/python_main.py +0 -0
  206. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/Makefile +0 -0
  207. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/.gitignore +0 -0
  208. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/Makefile +0 -0
  209. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/README.md +0 -0
  210. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Checker.java +0 -0
  211. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/GSON.java +0 -0
  212. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/JSON.java +0 -0
  213. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/JSONP.java +0 -0
  214. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Jackson.java +0 -0
  215. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  216. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Path.java +0 -0
  217. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Report.java +0 -0
  218. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/js/README.md +0 -0
  219. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/js/index.js +0 -0
  220. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/.gitignore +0 -0
  221. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/LICENSE +0 -0
  222. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/MANIFEST +0 -0
  223. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/Makefile.PL +0 -0
  224. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/README +0 -0
  225. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/ignore.txt +0 -0
  226. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/t/00-load.t +0 -0
  227. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/t/manifest.t +0 -0
  228. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  229. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/t/pod.t +0 -0
  230. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  231. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/sql/META.json +0 -0
  232. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/sql/Makefile +0 -0
  233. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/sql/json_model--2.0.sql +0 -0
  234. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/sql/json_model.control +0 -0
  235. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/runtime/types.py +0 -0
  236. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model/url_cache.py +0 -0
  237. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  238. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/entry_points.txt +0 -0
  239. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/top_level.txt +0 -0
  240. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/ansiblelint-meta.model.json +0 -0
  241. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/diploma-arrete.model.json +0 -0
  242. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/diploma-export.model.json +0 -0
  243. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/everything.model.json +0 -0
  244. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/fresq.model.json +0 -0
  245. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-model-latest.model.json +0 -0
  246. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-model-moschin.model.json +0 -0
  247. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-model-no-merge.model.json +0 -0
  248. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-model-v1.model.json +0 -0
  249. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-model-v2-en.model.json +0 -0
  250. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-model-v2.model.json +0 -0
  251. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-model.model.json +0 -0
  252. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-01-fuzzy.model.json +0 -0
  253. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-01-nesting.model.json +0 -0
  254. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-01.model.json +0 -0
  255. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-02-fuzzy.model.json +0 -0
  256. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-02-nesting.model.json +0 -0
  257. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-02.model.json +0 -0
  258. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-03-fuzzy.model.json +0 -0
  259. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-03-nesting.model.json +0 -0
  260. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-03.model.json +0 -0
  261. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-04-fuzzy.model.json +0 -0
  262. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-04-mongodb.model.json +0 -0
  263. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-04-nesting.model.json +0 -0
  264. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-04.model.json +0 -0
  265. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-06-fuzzy.model.json +0 -0
  266. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-06.model.json +0 -0
  267. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-07-fuzzy.model.json +0 -0
  268. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-07.model.json +0 -0
  269. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
  270. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-2019-09.model.json +0 -0
  271. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
  272. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-2020-12-tight.model.json +0 -0
  273. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-2020-12.model.json +0 -0
  274. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-next-fuzzy.model.json +0 -0
  275. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-next.model.json +0 -0
  276. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-tight.model.json +0 -0
  277. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-tighter-loose.model.json +0 -0
  278. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-draft-tighter.model.json +0 -0
  279. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/json-schema-linter.model.json +0 -0
  280. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/jsound.model.json +0 -0
  281. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/l10n.model.json +0 -0
  282. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/lazygit.model.json +0 -0
  283. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/openapi-311-fuzzy.model.json +0 -0
  284. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/openapi-311-models.model.json +0 -0
  285. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/openapi-311.model.json +0 -0
  286. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/person.model.json +0 -0
  287. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/person2.model.json +0 -0
  288. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/pgxn.model.json +0 -0
  289. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/models/test-schema.model.json +0 -0
  290. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/package.json +0 -0
  291. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/setup.cfg +0 -0
  292. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/site/API.md +0 -0
  293. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/site/favicon.ico +0 -0
  294. {json_model_compiler-2.0b36 → json_model_compiler-2.0b38}/site/json_logo.svg +0 -0
@@ -2,21 +2,27 @@
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] pr: publish python jmc package
6
+ - [x] static: add support for `.in` with constraints
7
+ - [x] optim: fix constraint simplification mixup
8
+ - [x] tests: add _stats_ target
9
+ - [x] perf: add missing warmup to C runtime for jsonschema benchmark
10
+ - [x] perl-backend: be resilient on missing RE2 module
11
+ - [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
12
+ - [ ] optim: recognize typed not: _"" ^ "xxx"_
13
+ - [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
14
+ - [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
15
+ - [ ] doc: add _known limitations_ stuff
16
+ - [ ] optim: implement stupid any type but one constrained optimization (jsu)
17
+ - [ ] backend: optimize pattern `if (res) { res = True; if (res) ... }`
18
+ - [ ] optim: merge `&` list when possible, eg inclusions or compatibility
19
+ - [ ] test: add test categories (mark?)
20
+ - [ ] doc: improve developer documentation
21
+ - [ ] test: allow to skip some tests by category
22
+ - [ ] docker: enable user remap
23
+ - [ ] export: java classes
24
+ - [ ] export: go interfaces
25
+ - [ ] static: make regex groups non capturing when appropriate?
20
26
  - [ ] static: xor acceleration based on distinct mandatory props
21
27
  - [ ] static: merge partial mandatory prop discriminants
22
28
  - [ ] static: merge may/must property handling, or not?
@@ -81,17 +87,20 @@
81
87
  - [ ] static: shorten xor exit?
82
88
  - [ ] perf: profile some cases
83
89
  - [ ] c-backend: use vector instructions for larger strcmp?
90
+ - [ ] export: sqlalchemy
84
91
 
85
92
  ## Re Do
86
93
 
87
94
  - [ ] pr: publish web page
88
95
  - [ ] pr: publish python jmc package
96
+ - [ ] pr: publish python jsu package
89
97
  - [ ] pr: publish js runtime package
90
98
  - [ ] pr: publish pgxn package
91
99
  - [ ] pr: publish docker image
92
100
  - [ ] pr: publish perl package
93
101
  - [ ] pr: publish java package
94
102
  - [ ] pr: check jsonschema-benchmark integration
103
+ - [ ] pr: check jsu jsts coverage
95
104
  - [ ] pr: renew domain
96
105
 
97
106
  ## To Do
@@ -742,3 +751,39 @@
742
751
  - [x] perf: test max strcmp cset to set default default
743
752
  - [x] pr: move out schema-to-model conversion
744
753
  - [x] pr: adjust radar display to visible datasets
754
+ - [x] tests: check how clang compares to gcc (maybe a few pc better)
755
+ - [x] static: partition long lists of properties based on first bytes
756
+ - [x] static: use more bytes for str hashing depending on min len
757
+ - [x] static: generate hexa constants for partition limits tests
758
+ - [x] static: use `continue` instead of long multi-if statements
759
+ - [x] c-backend: partition inlined str cset
760
+ - [x] static: or acceleration based on full or partial distinct mandatory props
761
+ - [x] static: set default C partition threshold to _6_
762
+ - [x] c-backend: replace `strcmp` with `memcmp` in runtime
763
+ - [x] backend: improve if patterns in some cases
764
+ - [x] pr: add explicit winner column to per case perf
765
+ - [x] model: simplify `{"": "$NONE"}`
766
+ - [x] ~model: avoid dead code in `mv-0f/dedup-002`~ (simple pair ok, multiple seldom useful)
767
+ - [x] test: improve output determinism
768
+ - [x] container: allow to use `podman` instead of `docker`
769
+ - [x] perf: estimate measure overhead over 100 iterations
770
+ - [x] perf: share overhead estimation between tests
771
+ - [x] perf: try to prevent performance loops from being optimized out with some computation
772
+ - [x] container: add podman-in-podman or docker-in-docker
773
+ - [x] python-backend: add support for embedded nul characters in strings
774
+ - [x] optim: fix inappriopriate model deduplication in or-lists
775
+ - [x] dynamic: allow arbitrary options to dynamic interfaces
776
+ - [x] lang: extend list of predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION
777
+ - [x] bug: fix unwise regex optimization
778
+ - [x] python-backend: add support for `.mo`
779
+ - [x] optim: remove bad transform _A & (T ^ B)) != A ^ B_
780
+ - [x] python-backend: escape more strange characters in string constants
781
+ - [x] perf: do not report broken count if nothing is broken
782
+ - [x] python-backend: numerical workarounds for .mo extension implementation
783
+ - [x] backend: add support for `.in` extension without other constraints
784
+ - [x] tests: minimal tests for `.mo` and `.in`
785
+ - [x] \*-backend:: add support for `.mo` and `.in` extensions
786
+ - [x] optim: optimize typed and _"" & "xxx"_ involving references
787
+ - [x] optim: arbitrary guard against infinite loops
788
+ - [x] ir: fix stupid bug in ir opts
789
+ - [x] tests: rerun with updated JSTS before release
@@ -0,0 +1,131 @@
1
+ # JSON Model Compiler Benchmark Artifacts
2
+
3
+ These artifacts compare
4
+ [JSON Model Compiler (jmc)](https://github.com/clairey-zx81/json-model) generated code using the
5
+ [JSON Schema Utils (jsu)](https://hub.docker.com/repository/docker/zx80/json-schema-utils)
6
+ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon) and Python with
7
+ [Sourcemeta Blaze CLI (sbc)](https://github.com/sourcemeta/jsonschema) using test cases from
8
+ [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
9
+
10
+ ## Recent Artifacts
11
+
12
+ - [2026030703](benchmarks/2026030703.md) clang, no predefs, jmc 2.0b37 vs sbc 14.14.2, 11 runs, 1000 iterations.
13
+ - [2026030700](benchmarks/2026030700.md) clang, no predefs, jmc 2.0b37 vs sbc 14.13.4, 5 runs, 1000 iterations.
14
+ - [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.4, 11 runs, 1000 iterations.
15
+ - [2026022000](benchmarks/2026022000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.3, 11 runs, 1000 iterations.
16
+ - [2026021900](benchmarks/2026021900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.1, 11 runs, 1000 iterations.
17
+ - [2026021702](benchmarks/2026021702.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.0, 11 runs, 1000 iterations.
18
+ - [2026021701](benchmarks/2026021701.md) clang, no predefs, jmc 2.0b36 vs sbc 14.12.0, 11 runs, 1000 iterations.
19
+ - [2026021700](benchmarks/2026021700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.11.0, 11 runs, 1000 iterations.
20
+ - [2026021300](benchmarks/2026021300.md) clang, no predefs, jmc 2.0b36 vs sbc 14.10.0, 11 runs, 1000 iterations.
21
+ - [2026021000](benchmarks/2026021000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.2, 11 runs, 1000 iterations.
22
+ - [2026020600](benchmarks/2026020600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.1, 11 runs, 1000 iterations.
23
+ - [2026020500](benchmarks/2026020500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.6.1, 11 runs, 1000 iterations.
24
+ - [2026012700](benchmarks/2026012700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.5.0, 11 runs, 1000 iterations.
25
+ - [2026012400](benchmarks/2026012400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.4.0, 11 runs, 1000 iterations.
26
+ - [2026012200](benchmarks/2026012200.md) clang, no predefs, jmc 2.0b36 vs sbc 14.2.0, 11 runs, 1000 iterations.
27
+ - [2026012000](benchmarks/2026012000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.1.0, 11 runs, 1000 iterations.
28
+ - [2026011500](benchmarks/2026011500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.4, 11 runs, 1000 iterations.
29
+ - [2026010900](benchmarks/2026010900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.3, 11 runs, 1000 iterations.
30
+ - [2026010600](benchmarks/2026010600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.2, 11 runs, 1000 iterations.
31
+
32
+ ## Benchmarking Script
33
+
34
+ The [benchmarking script](https://github.com/clairey-zx81/json-model/blob/main/tests/perf/benchmark.sh)
35
+ is provided as docker image [docker.io/zx80/jmc-bench](https://hub.docker.com/repository/docker/zx80/jmc-bench).
36
+ It downloads the benchmark schemas and test values, and runs through docker-in-docker
37
+ [docker.io/zx80/jmc](https://hub.docker.com/repository/docker/zx80/jmc) for JMC runs and
38
+ [ghcr.io/sourcemeta/jsonschema](https://github.com/sourcemeta/jsonschema/pkgs/container/jsonschema)
39
+ for comparison using the Blaze CLI.
40
+
41
+ It is typically started on a large host with the
42
+ [`start_bench.sh` script](https://github.com/clairey-zx81/json-model/blob/main/tests/perf/start_bench.sh)
43
+ which will spawn the necessary containers:
44
+
45
+ ```sh
46
+ JMC=latest JMC_OPTS="--no-predef --cc=clang-20" \
47
+ nohup ./start_bench.sh latest -p 16 -l 1000 -r 5 &
48
+ # in the generated directory, look for the summary markdown and radar json files.
49
+ ```
50
+
51
+ The main script options are:
52
+
53
+ - `-p PARA` parallelism (a little less that the number of available cores, default is _8_)
54
+ - `-l LOOP` loop iterations for performance average (at least _1000_, the default)
55
+ - `-r RUNS` number of runs (odd number, default is _3_)
56
+ - `--no-cap-py` do _not_ reduce python iterations by a factor of 10 (default is to reduce)
57
+
58
+ ## Benchmarking Conditions
59
+
60
+ JSON schemas for the benchmark are translated to models based on
61
+ [JSON Schema Utils](https://github.com/zx80/json-schema-utils).
62
+ This is mostly an automatic conversion of the test schema to a model, but
63
+ for a few cases which have a _native_ model which is used instead.
64
+
65
+ Runs are performed in _fast_ mode: the rejection reasons are not collected, and
66
+ the run stops as soon as possible.
67
+
68
+ - To smooth out the wide range of collected performances (from 10 ns to
69
+ over 300 µs for validating one value), a relative comparison ratio is shown.
70
+ - Compilation times are the _minimum_ encountered over the runs.
71
+ whereas performance times are the _median_ over the runs.
72
+ - The C backend also includes the _runtime_ compilation from sources.
73
+ - JSON Schema to JSON Model conversion times are also recorded separately for information.
74
+
75
+ Note that performance figures **must** be taken with a pinch of salt, please consider
76
+ the following caveats, and others:
77
+
78
+ - do you value latency or throuput or resource consumption? the answer is not so obvious,
79
+ probably you should prefer a high throuput _if_ the latency is good enough, but these
80
+ benchmark actually measure raw latency.
81
+ - test cases may or may not be representative of specific use cases,
82
+ especially wrt schema/model and value sizes.
83
+ - the overall load on the host can impact measures.
84
+ - compilers, libraries and other design and updates can have dramatic effects:
85
+ for faster parsing, a library may use linked-list for properties, which means
86
+ that retrieving a given property value will cost more than a library which uses
87
+ a hash table which is more costly to build.
88
+ - blaze does _not_ implement checking string values (eg dates, url…),
89
+ so these checks may be disactivated (see `JMC_OPTS`) for fairness.
90
+ - blaze uses its own special-purpose JSON representation: if interfaced from another
91
+ ecosystem, the cost of translating the JSON representation should be taken into account;
92
+ jmc uses native JSON representations and generate validation code around it.
93
+ - due to intrinsic limitations of the underlying libraries and the quality of models or schemas,
94
+ some results may differ, mostly for good reasons: regex incompatibilities, stricter
95
+ model definitions compared to lax schemas…
96
+ - it is unclear whether JIT optimizations (eg Java and JS) may work around the
97
+ benchmarking loops and report undue very fast performances, eg on the GeoJSON case.
98
+ - some execution environment (eg Java) may take advantage of parallelism with threads,
99
+ which may or may not be a blessing: it can reduce the apparent latency (eg the gc runs
100
+ in another thread) but have a detrimental overall effect on throughput as more cpu ressources
101
+ are spent on the same task.
102
+
103
+ ## Other Artifacts
104
+
105
+ [Sourcemeta](https://sourcemeta.com)
106
+ [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark)
107
+ also provides
108
+ [benchmark artifacts](https://github.com/sourcemeta-research/jsonschema-benchmark/actions)
109
+ which includes 15 JSON Schema validation tools including our JSON Model Compiler with
110
+ C, JS and Python backends.
111
+ Overall, JMC comes ahead of Blaze C++ on about 2/3 of the test cases (as of 2026-01-22).
112
+
113
+ On Feb 5, 2026 the JMC-based implementations on this benchmark have been
114
+ [removed](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/67dc4dfc7ad2d4a8e92a920b71fb813d8f3fb6a4)
115
+ without prior notice nor discussion.
116
+ The maintainer wants to focus on comparisons with JSON Schema direct implementations only
117
+ and thus avoid some confusion.
118
+ As a side effect, their Blaze C++ tool took back the performance leadership.
119
+
120
+ It should be noted that benchmarking conditions are quite different:
121
+
122
+ 1. There is no loop to compute an average performance, but an initial _cold_ one-shot measure,
123
+ a warming phase loop and a _hot_ one-shot measure: This may tend to mask effects from
124
+ occasional GC runs.
125
+ 2. The benchmark focuses on schema conformance, including (buggy) schemas which
126
+ are mostly dead code: It rejects tools which do not validate all strictly conformant
127
+ values, even if these values would be rejected by the target application.
128
+
129
+ This latest point explains the under 100% validation results displayed JMC for
130
+ _ansible-meta_, _cypress_ and _yamllint_ tests: the model translation or native models
131
+ 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.0b38
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.9.0
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,9 @@ 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 is faster than Blaze C++.
162
+ Moreover, JMC-JS and JMC-Java/GSON native implementations are only about 50% slower
163
+ than Blaze C++, which given the intrinsic language capabilities is quite honorable.
164
164
 
165
165
  ## More Information
166
166
 
@@ -172,7 +172,7 @@ and links to [research papers](PAPERS.md) for explanations about the design.
172
172
  ## JSON Model Distribution
173
173
 
174
174
  - [PYPI Package](https://pypi.org/project/json-model-compiler/)
175
- - [Docker Image](https://hub.docker.com/r/zx80/jmc)
175
+ - [Container Image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc)
176
176
  - [JS Runtime](https://www.npmjs.com/package/json_model_runtime)
177
177
  - [Postgres Runtime](https://pgxn.org/dist/json_model/)
178
178
  - [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,9 @@ 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 is faster than Blaze C++.
131
+ Moreover, JMC-JS and JMC-Java/GSON native implementations are only about 50% slower
132
+ than Blaze C++, which given the intrinsic language capabilities is quite honorable.
133
133
 
134
134
  ## More Information
135
135
 
@@ -141,7 +141,7 @@ and links to [research papers](PAPERS.md) for explanations about the design.
141
141
  ## JSON Model Distribution
142
142
 
143
143
  - [PYPI Package](https://pypi.org/project/json-model-compiler/)
144
- - [Docker Image](https://hub.docker.com/r/zx80/jmc)
144
+ - [Container Image `docker.io/zx80/jmc`](https://hub.docker.com/r/zx80/jmc)
145
145
  - [JS Runtime](https://www.npmjs.com/package/json_model_runtime)
146
146
  - [Postgres Runtime](https://pgxn.org/dist/json_model/)
147
147
  - [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