json-model-compiler 2.0b42__tar.gz → 2.0b44__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 (246) hide show
  1. {json_model_compiler-2.0b42/site → json_model_compiler-2.0b44}/BACKLOG.md +68 -64
  2. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/BENCH.md +2 -0
  3. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/Makefile +26 -6
  4. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/PKG-INFO +1 -1
  5. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/optim.py +1 -1
  6. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/Changes +2 -0
  7. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/Makefile.PL +1 -0
  8. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/script.py +15 -15
  9. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model_compiler.egg-info/PKG-INFO +1 -1
  10. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model_compiler.egg-info/SOURCES.txt +7 -1
  11. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/pyproject.toml +1 -1
  12. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44/site}/BACKLOG.md +68 -64
  13. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/BENCH.md +2 -0
  14. json_model_compiler-2.0b44/site/benchmarks/2026042001.csv +176 -0
  15. json_model_compiler-2.0b44/site/benchmarks/2026042001.json +296 -0
  16. json_model_compiler-2.0b44/site/benchmarks/2026042001.md +221 -0
  17. json_model_compiler-2.0b44/site/benchmarks/2026042400.csv +176 -0
  18. json_model_compiler-2.0b44/site/benchmarks/2026042400.json +296 -0
  19. json_model_compiler-2.0b44/site/benchmarks/2026042400.md +221 -0
  20. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/.gitignore +0 -0
  21. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/.gitmodules +0 -0
  22. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/API.md +0 -0
  23. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/DESIGN.md +0 -0
  24. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/DEV.md +0 -0
  25. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/DOC.md +0 -0
  26. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/HOWTO.md +0 -0
  27. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/INTEGRATION.md +0 -0
  28. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/MANIFEST.in +0 -0
  29. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/PUBS.md +0 -0
  30. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/README.md +0 -0
  31. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/SPEC.md +0 -0
  32. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/TUTO.md +0 -0
  33. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/about.sh +0 -0
  34. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/container/.dockerignore +0 -0
  35. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/container/.gitignore +0 -0
  36. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/container/Makefile +0 -0
  37. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/container/README.md +0 -0
  38. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/container/base.container +0 -0
  39. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/container/jmc +0 -0
  40. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/container/jmc.container +0 -0
  41. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/README.md +0 -0
  42. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/__init__.py +0 -0
  43. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/analyze.py +0 -0
  44. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/clang.py +0 -0
  45. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/convert.py +0 -0
  46. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/clang_entry.c +0 -0
  47. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/clang_free.c +0 -0
  48. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/clang_init.c +0 -0
  49. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/clang_pcre2_fun.c +0 -0
  50. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/clang_re2_fun.c +0 -0
  51. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/java_free.java +0 -0
  52. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/java_init.java +0 -0
  53. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/javascript_exe.js +0 -0
  54. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/javascript_foot.js +0 -0
  55. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/javascript_free.js +0 -0
  56. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/javascript_head.js +0 -0
  57. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/javascript_init.js +0 -0
  58. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/javascript_main.js +0 -0
  59. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/jmc.pod +0 -0
  60. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/perl_entry.pl +0 -0
  61. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/perl_exe.pl +0 -0
  62. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/perl_free.pl +0 -0
  63. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/perl_init.pl +0 -0
  64. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/perl_main.pl +0 -0
  65. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/perl_pkg.pl +0 -0
  66. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/plpgsql_entry.sql +0 -0
  67. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/python_entry.py +0 -0
  68. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/python_exe.py +0 -0
  69. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/python_free.py +0 -0
  70. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/python_init.py +0 -0
  71. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/data/python_main.py +0 -0
  72. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/export.py +0 -0
  73. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/irep.py +0 -0
  74. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/java.py +0 -0
  75. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/javascript.py +0 -0
  76. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/language.py +0 -0
  77. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/model.py +0 -0
  78. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/mtypes.py +0 -0
  79. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/objops.py +0 -0
  80. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/perl.py +0 -0
  81. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/plpgsql.py +0 -0
  82. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/predefs.py +0 -0
  83. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/python.py +0 -0
  84. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/recurse.py +0 -0
  85. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/resolver.py +0 -0
  86. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/Makefile +0 -0
  87. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/__init__.py +0 -0
  88. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/c/Makefile +0 -0
  89. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/c/json-model.c +0 -0
  90. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/c/json-model.h +0 -0
  91. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/c/main.c +0 -0
  92. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/.gitignore +0 -0
  93. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/Makefile +0 -0
  94. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/README.md +0 -0
  95. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/env.sh +0 -0
  96. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/Checker.java +0 -0
  97. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/GSON.java +0 -0
  98. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/JSON.java +0 -0
  99. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/JSONP.java +0 -0
  100. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/Jackson.java +0 -0
  101. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/Main.java +0 -0
  102. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  103. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/Path.java +0 -0
  104. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/Report.java +0 -0
  105. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/json_model/Runtime.java +0 -0
  106. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/java/pom.xml +0 -0
  107. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/js/README.md +0 -0
  108. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/js/index.js +0 -0
  109. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/js/main.js +0 -0
  110. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/js/package.json +0 -0
  111. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/.gitignore +0 -0
  112. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/LICENSE +0 -0
  113. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/MANIFEST +0 -0
  114. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/README +0 -0
  115. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/env.sh +0 -0
  116. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/ignore.txt +0 -0
  117. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/lib/JSON/JsonModel.pm +0 -0
  118. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/t/00-load.t +0 -0
  119. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/t/manifest.t +0 -0
  120. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  121. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/t/pod.t +0 -0
  122. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  123. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/sql/META.json +0 -0
  124. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/sql/Makefile +0 -0
  125. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/sql/json_model--2.0.sql +0 -0
  126. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/sql/json_model.control +0 -0
  127. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/support.py +0 -0
  128. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/runtime/types.py +0 -0
  129. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/submodel.py +0 -0
  130. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/url_cache.py +0 -0
  131. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/utils.py +0 -0
  132. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model/xstatic.py +0 -0
  133. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  134. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model_compiler.egg-info/entry_points.txt +0 -0
  135. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model_compiler.egg-info/requires.txt +0 -0
  136. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/json_model_compiler.egg-info/top_level.txt +0 -0
  137. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/ansiblelint-meta.model.json +0 -0
  138. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/cypress.model.json +0 -0
  139. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/diploma-arrete.model.json +0 -0
  140. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/diploma-export.model.json +0 -0
  141. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/everything.model.json +0 -0
  142. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/fresq.model.json +0 -0
  143. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/geo-easy.model.json +0 -0
  144. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/geo.model.json +0 -0
  145. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/jmc-ir.model.json +0 -0
  146. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-model-latest.model.json +0 -0
  147. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-model-moschin.model.json +0 -0
  148. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-model-no-merge.model.json +0 -0
  149. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-model-v1.model.json +0 -0
  150. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-model-v2-en.model.json +0 -0
  151. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-model-v2.model.json +0 -0
  152. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-model.model.json +0 -0
  153. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-01-fuzzy.model.json +0 -0
  154. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-01-nesting.model.json +0 -0
  155. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-01.model.json +0 -0
  156. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-02-fuzzy.model.json +0 -0
  157. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-02-nesting.model.json +0 -0
  158. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-02.model.json +0 -0
  159. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-03-fuzzy.model.json +0 -0
  160. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-03-nesting.model.json +0 -0
  161. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-03.model.json +0 -0
  162. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-04-fuzzy.model.json +0 -0
  163. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-04-mongodb.model.json +0 -0
  164. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-04-nesting.model.json +0 -0
  165. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-04.model.json +0 -0
  166. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-06-fuzzy.model.json +0 -0
  167. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-06.model.json +0 -0
  168. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-07-fuzzy.model.json +0 -0
  169. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-07.model.json +0 -0
  170. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
  171. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-2019-09.model.json +0 -0
  172. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
  173. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-2020-12-tight.model.json +0 -0
  174. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-2020-12.model.json +0 -0
  175. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-next-fuzzy.model.json +0 -0
  176. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-next.model.json +0 -0
  177. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-tight.model.json +0 -0
  178. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-tighter-loose.model.json +0 -0
  179. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-draft-tighter.model.json +0 -0
  180. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/json-schema-linter.model.json +0 -0
  181. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/jsound.model.json +0 -0
  182. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/l10n.model.json +0 -0
  183. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/lazygit.model.json +0 -0
  184. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/openapi-311-fuzzy.model.json +0 -0
  185. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/openapi-311-models.model.json +0 -0
  186. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/openapi-311.model.json +0 -0
  187. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/person.model.json +0 -0
  188. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/person2.model.json +0 -0
  189. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/pgxn.model.json +0 -0
  190. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/models/test-schema.model.json +0 -0
  191. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/package.json +0 -0
  192. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/setup.cfg +0 -0
  193. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/API.md +0 -0
  194. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/DEV.md +0 -0
  195. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/DOC.md +0 -0
  196. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/HOWTO.md +0 -0
  197. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/PUBS.md +0 -0
  198. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/README.md +0 -0
  199. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/SPEC.md +0 -0
  200. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/TUTO.md +0 -0
  201. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030700.csv +0 -0
  202. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030700.json +0 -0
  203. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030700.md +0 -0
  204. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030703.csv +0 -0
  205. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030703.json +0 -0
  206. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030703.md +0 -0
  207. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030901.csv +0 -0
  208. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030901.json +0 -0
  209. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026030901.md +0 -0
  210. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031000.csv +0 -0
  211. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031000.json +0 -0
  212. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031000.md +0 -0
  213. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031300.csv +0 -0
  214. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031300.json +0 -0
  215. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031300.md +0 -0
  216. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031400.csv +0 -0
  217. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031400.json +0 -0
  218. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031400.md +0 -0
  219. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031900.csv +0 -0
  220. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031900.json +0 -0
  221. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026031900.md +0 -0
  222. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032500.csv +0 -0
  223. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032500.json +0 -0
  224. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032500.md +0 -0
  225. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032700.csv +0 -0
  226. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032700.json +0 -0
  227. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032700.md +0 -0
  228. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032801.csv +0 -0
  229. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032801.json +0 -0
  230. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026032801.md +0 -0
  231. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040200.csv +0 -0
  232. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040200.json +0 -0
  233. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040200.md +0 -0
  234. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040300.csv +0 -0
  235. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040300.json +0 -0
  236. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040300.md +0 -0
  237. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040400.csv +0 -0
  238. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040400.json +0 -0
  239. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040400.md +0 -0
  240. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040700.csv +0 -0
  241. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040700.json +0 -0
  242. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/benchmarks/2026040700.md +0 -0
  243. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/cover.md +0 -0
  244. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/favicon.ico +0 -0
  245. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/index.html +0 -0
  246. {json_model_compiler-2.0b42 → json_model_compiler-2.0b44}/site/json_logo.svg +0 -0
@@ -2,69 +2,10 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
- - [x] \*-backend: remove `--jsonschema-benchmark` handling as it is moved to this repo
6
- - [x] command: add `--no-comment` option not to generate comments in source code
7
- - [x] \*-backend: support for embedded nul characters in strings, when possible (not SQL nor C)
8
- - [x] ir: use json name instead of python type names
9
- - [x] perf: add speed in lines per µs which seems more significant
10
- - [x] command: add `-mtune=native` to C compilation
11
- - [x] optim: simplify _&_ with same props and regs plus optional wildcards
12
- - [x] optim: simplify _X & Y_ to _X_ when _X_ is a submodel of _Y_
13
- - [x] py-backend: add predefs IP4 IP6 HOST
14
- - [x] \*-backend: use a common predef for RFC3339 DURATION UUID EMAIL JSONPT
15
- - [x] \*-backend: add approximated backup regex for predefs when not implemented by runtime
16
- - [x] predefs: add `$__EXTENSION_COLOR`
17
- - [x] predefs: refactor multiple instances in the sources into `predefs.py`
18
- - [x] predefs: add `$ETH` for ethernet (mac) addresses
19
- - [x] static: recognize and generate better code for typed _not_: _"" ^ "xxx"_
20
- - [x] ir: add forward substitution between assignments when used once
21
- - [x] py-backend: filter out zone id suffix from ip6
22
- - [x] predefs: add `$CARD` for 16 digits credit card numbers with Luhn's checksum
23
- - [x] predefs: add `$CARD` to js, perl, java and sql runtime.
24
- - [x] predefs: filter predef extensions with `--extend`
25
- - [x] ~static: if only one open prop, just look for it~ depends on language and costs
26
- - [x] ir: improve forward subs, move bool decl to first assignment in seq
27
- - [x] static: use combined assignment and test if possible on discriminator extraction
28
- - [x] static: fix any-by-one pattern on string predefs
29
- - [x] py-runtime: allow lowercase tz in datetime
30
- - [x] py-runtime: add workarounds for leap seconds and other intricacies
31
- - [x] predefs: add `$__EXTENSION_REL_JSONPT` as a regex
32
- - [x] predefs: distinguish simple time and time with mandatory tz for jsu `time` format
33
- - [x] static: avoid double type checks on or with predefs (java, sql, perl)
34
- - [x] ~ir: remove simple redundant checks _(X && (X && Z) || (X && Y))_ is _X && (Z || Y)_~ (see previous)
35
- - [x] c-backend: simple regex compiler for special character classes and repeat
36
- - [x] c-backend: simple regex compiler cache is okay with existing regex cache
37
- - [x] c-backend: add custom character classes based on benchmarks (ident, space, up/low/hexa/num/…)
38
- - [x] optim: `/.+/` is `/./`, `/(.+)/`, `/(.*)/`
39
- - [x] optim: remove unescaped `.*` at end of regex, also `.+/` is `./`
40
- - [x] c-backend: normalize before character class matching
41
- - [x] c-backend: extend simple regex with constant prefix
42
- - [x] c-backend: extend simple regex without end-of-text (`$`)
43
- - [x] optim: apply simpler re to property names
44
- - [x] optim: improve model intersection to simplify `&` in more cases
45
- - [x] optim: improve intersect on single open constraint object case
46
- - [x] optim: avoid reference expansion in and combine optimization
47
- - [x] c-backend: optimize special regex `/./` `/./s` `/^.*$/` `/^.+$/`
48
- - [x] static: detect or of any-but-some type to generate a not instead, beware of looseness
49
- - [x] static: do not create a separate function for an basic object check
50
- - [x] static: generate messages in newly added shortcuts
51
- - [x] c-backend: regex list of words to enum?
52
- - [x] c-backend: fast ic str comparison by switching to _lower char_ with a set test?
53
- - [x] c-backend: improve regex opt cset prettyprinting
54
- - [x] c-backend: extend simple regex to sequences of prefix/chars/repeats
55
- - [x] c-backend: add custom char class `[A-Za-z0-9_\\-:]` `[1-9]`
56
- - [x] container: separate base from specific installs to improve cache/no-cache build
57
- - [x] static: improve pattern matching for starts with/ends with/eq regex optim
58
- - [x] static: improve endswith pattern recognition with escapes, eg `/\\.js$/`
59
- - [x] c-backend: improve startwith code with fast str eq when string is a function call
60
- - [x] c-backend: improve `str_cmp` with fast str eq when string is a function call
61
- - [x] c-backend: check str cmp optims with utf8 strings
62
- - [x] static: preserve prop order by default
63
- - [x] c-backend: add custom character classes `[-a-z0-9_]` variants
64
- - [x] c-backend: use counter for multithreaded tests
65
- - [x] c-backend: fix multiple brace repeats in simple regex optimization
66
- - [x] model: add option to `s` on regex? else `.` is any but `\n` and sometimes `\r`
67
- - [x] optim: `/^.{1,256}$/`? only under `/s` though…
5
+ - [x] optim: override simpler regex props if stricter
6
+ - [x] front: allow to call script as a function
7
+ - [ ] perl-backend: do not import RE2 unless required in generated script
8
+ - [ ] perl-backend: improve resilience to missing dependencies, eg `Algorithm::LUHN`.
68
9
  - [ ] perf: show schema to model conversion times
69
10
  - [ ] js-backend: remove useless braces
70
11
  - [ ] c-backend: use str cmp for ends with optimization as well
@@ -884,4 +825,67 @@
884
825
  - [x] command: show runtime directory with `--runtime`
885
826
  - [x] optim: better merge `&` list when possible, including regex prefix incompatibilities
886
827
  - [x] js-backend: export model map
887
- - [x] pl-backend: add and export `_mapper` function
828
+ - [x] pl-backend: add and export `mapper` function
829
+ - [x] \*-backend: remove `--jsonschema-benchmark` handling as it is moved to this repo
830
+ - [x] command: add `--no-comment` option not to generate comments in source code
831
+ - [x] \*-backend: support for embedded nul characters in strings, when possible (not SQL nor C)
832
+ - [x] ir: use json name instead of python type names
833
+ - [x] perf: add speed in lines per µs which seems more significant
834
+ - [x] command: add `-mtune=native` to C compilation
835
+ - [x] optim: simplify _&_ with same props and regs plus optional wildcards
836
+ - [x] optim: simplify _X & Y_ to _X_ when _X_ is a submodel of _Y_
837
+ - [x] py-backend: add predefs IP4 IP6 HOST
838
+ - [x] \*-backend: use a common predef for RFC3339 DURATION UUID EMAIL JSONPT
839
+ - [x] \*-backend: add approximated backup regex for predefs when not implemented by runtime
840
+ - [x] predefs: add `$__EXTENSION_COLOR`
841
+ - [x] predefs: refactor multiple instances in the sources into `predefs.py`
842
+ - [x] predefs: add `$ETH` for ethernet (mac) addresses
843
+ - [x] static: recognize and generate better code for typed _not_: _"" ^ "xxx"_
844
+ - [x] ir: add forward substitution between assignments when used once
845
+ - [x] py-backend: filter out zone id suffix from ip6
846
+ - [x] predefs: add `$CARD` for 16 digits credit card numbers with Luhn's checksum
847
+ - [x] predefs: add `$CARD` to js, perl, java and sql runtime.
848
+ - [x] predefs: filter predef extensions with `--extend`
849
+ - [x] ~static: if only one open prop, just look for it~ depends on language and costs
850
+ - [x] ir: improve forward subs, move bool decl to first assignment in seq
851
+ - [x] static: use combined assignment and test if possible on discriminator extraction
852
+ - [x] static: fix any-by-one pattern on string predefs
853
+ - [x] py-runtime: allow lowercase tz in datetime
854
+ - [x] py-runtime: add workarounds for leap seconds and other intricacies
855
+ - [x] predefs: add predef `EXTENSION_REL_JSONPT` as a regex
856
+ - [x] predefs: distinguish simple time and time with mandatory tz for jsu `time` format
857
+ - [x] static: avoid double type checks on or with predefs (java, sql, perl)
858
+ - [x] ~ir: remove simple redundant checks _(X && (X && Z) || (X && Y))_ is _X && (Z || Y)_~ (see previous)
859
+ - [x] c-backend: simple regex compiler for special character classes and repeat
860
+ - [x] c-backend: simple regex compiler cache is okay with existing regex cache
861
+ - [x] c-backend: add custom character classes based on benchmarks (ident, space, up/low/hexa/num/…)
862
+ - [x] optim: `/.+/` is `/./`, `/(.+)/`, `/(.*)/`
863
+ - [x] optim: remove unescaped `.*` at end of regex, also `.+/` is `./`
864
+ - [x] c-backend: normalize before character class matching
865
+ - [x] c-backend: extend simple regex with constant prefix
866
+ - [x] c-backend: extend simple regex without end-of-text (`$`)
867
+ - [x] optim: apply simpler re to property names
868
+ - [x] optim: improve model intersection to simplify `&` in more cases
869
+ - [x] optim: improve intersect on single open constraint object case
870
+ - [x] optim: avoid reference expansion in and combine optimization
871
+ - [x] c-backend: optimize special regex `/./` `/./s` `/^.*$/` `/^.+$/`
872
+ - [x] static: detect or of any-but-some type to generate a not instead, beware of looseness
873
+ - [x] static: do not create a separate function for an basic object check
874
+ - [x] static: generate messages in newly added shortcuts
875
+ - [x] c-backend: regex list of words to enum?
876
+ - [x] c-backend: fast ic str comparison by switching to _lower char_ with a set test?
877
+ - [x] c-backend: improve regex opt cset prettyprinting
878
+ - [x] c-backend: extend simple regex to sequences of prefix/chars/repeats
879
+ - [x] c-backend: add custom char class `[A-Za-z0-9_\\-:]` `[1-9]`
880
+ - [x] container: separate base from specific installs to improve cache/no-cache build
881
+ - [x] static: improve pattern matching for starts with/ends with/eq regex optim
882
+ - [x] static: improve endswith pattern recognition with escapes, eg `/\\.js$/`
883
+ - [x] c-backend: improve startwith code with fast str eq when string is a function call
884
+ - [x] c-backend: improve `str_cmp` with fast str eq when string is a function call
885
+ - [x] c-backend: check str cmp optims with utf8 strings
886
+ - [x] static: preserve prop order by default
887
+ - [x] c-backend: add custom character classes `[-a-z0-9_]` variants
888
+ - [x] c-backend: use counter for multithreaded tests
889
+ - [x] c-backend: fix multiple brace repeats in simple regex optimization
890
+ - [x] model: add option to `s` on regex? else `.` is any but `\n` and sometimes `\r`
891
+ - [x] optim: `/^.{1,256}$/`? only under `/s` though…
@@ -9,6 +9,8 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
9
9
 
10
10
  ## Recent Artifacts
11
11
 
12
+ - [2026042400](benchmarks/2026042400.md) clang, no predefs, jsu 0.9.4/jmc 2.0b43 vs sbc 15.0.0, 11 runs, 1000 iterations.
13
+ - [2026042001](benchmarks/2026042001.md) clang, no predefs, jsu 0.9.3/jmc 2.0b42 vs sbc 14.20.2, 11 runs, 1000 iterations.
12
14
  - [2026040700](benchmarks/2026040700.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.20.2, 11 runs, 1000 iterations.
13
15
  - [2026040400](benchmarks/2026040400.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.19.0, 11 runs, 1000 iterations.
14
16
  - [2026040300](benchmarks/2026040300.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.18.0, 11 runs, 1000 iterations.
@@ -1,6 +1,10 @@
1
1
  SHELL = /bin/bash
2
2
  .ONESHELL:
3
3
 
4
+ #
5
+ # SETUP DEV ENVIRONMENT
6
+ #
7
+
4
8
  MODULE = json_model
5
9
 
6
10
  ifndef PYTHON
@@ -33,26 +37,41 @@ dev.js: node_modules
33
37
  node_modules:
34
38
  npm install
35
39
 
40
+ # FIXME get jar dependencies? rely on mvn?
36
41
  .PHONY: dev.java
37
42
  dev.java:
38
43
  $(MAKE) -C json_model/runtime/java jar
39
44
 
45
+ #
46
+ # CLEANUP
47
+ #
48
+
40
49
  .PHONY: clean
41
50
  clean: clean.site
42
- $(RM) $~ jmc.1
43
- $(RM) -r .pytest_cache/ .ruff_cache/ dist/
44
- find . -type d -name __pycache__ | xargs $(RM) -r
51
+ $(RM) *~ jmc.1
45
52
  $(MAKE) -C tests clean
46
53
  $(MAKE) -C json_model/runtime clean
47
54
 
55
+ .PHONY: clean.js
56
+ clean.js:
57
+ $(RM) package-lock.json
58
+ $(RM) -r node_modules
59
+
48
60
  .PHONY: clean.site
49
61
  clean.site:
50
62
  $(RM) site/MODELS.md site/JMC.md site/ABOUT.md
51
63
 
64
+ .PHONY: clean.py
65
+ clean.py:
66
+ $(RM) -r .pytest_cache .ruff_cache dist venv $(MODULE).egg-info build
67
+ find . -type d -name __pycache__ | xargs $(RM) -r
68
+
52
69
  .PHONY: clean.dev
53
- clean.dev: clean
54
- $(RM) -r venv $(MODULE).egg-info build dist node_modules
55
- $(RM) package-lock.json
70
+ clean.dev: clean clean.js clean.site clean.py
71
+
72
+ #
73
+ # CHECK
74
+ #
56
75
 
57
76
  .PHONY: check.src
58
77
  check.src: check.ruff check.pyright
@@ -97,6 +116,7 @@ site/MODELS.md: Makefile models/
97
116
  done
98
117
  } > $@
99
118
 
119
+ # pod2markdown: libpod-markdown-perl
100
120
  site/JMC.md: json_model/data/jmc.pod
101
121
  pod2markdown $< > $@
102
122
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b42
3
+ Version: 2.0b44
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -873,7 +873,7 @@ def simpler_regex(jm: JsonModel) -> bool:
873
873
  for p in list(model):
874
874
  if p and p[0] == "/":
875
875
  pp = _simpler_regex(p)
876
- if pp != p and pp not in model:
876
+ if pp != p and (pp not in model or pp in model and model[pp] == "$ANY"):
877
877
  changes += 1
878
878
  model[pp] = model[p]
879
879
  del model[p]
@@ -12,3 +12,5 @@ Revision history for JSON::JsonModel
12
12
  Remove "JSON Schema Benchmark" stuff.
13
13
  Remove "is_valid_email" and "is_valid_uuid".
14
14
  Add "is_valid_card".
15
+ 2.0b43 2026-04-23
16
+ Add missing new dependency declaration.
@@ -23,6 +23,7 @@ my %WriteMakefileArgs = (
23
23
  'Time::HiRes' => '0',
24
24
  'Pod::Usage' => '0',
25
25
  'List::Util' => '0',
26
+ 'Algorithm::LUHN' => 0,
26
27
  },
27
28
  dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
28
29
  clean => { FILES => 'JSON-JsonModel-*' },
@@ -277,7 +277,7 @@ def java_compile(java_code: str, args):
277
277
  java_file.unlink()
278
278
  assert status == 0, f"Java compilation succeeded: {command}"
279
279
 
280
- def jmc_script():
280
+ def jmc_script(xargs: list[str]|None = None) -> int:
281
281
 
282
282
  import argparse
283
283
 
@@ -484,15 +484,15 @@ def jmc_script():
484
484
  arg("--model", dest="model_option", type=str, help="JSON model as an option")
485
485
  arg("model", nargs="?", help="JSON model source (file or url or \"-\" for stdin)")
486
486
  arg("values", nargs="*", help="JSON values to testing")
487
- args = ap.parse_args()
487
+ args = ap.parse_args(xargs)
488
488
 
489
489
  if args.version:
490
490
  print(pkg_version("json_model_compiler"))
491
- sys.exit(0)
491
+ return 0
492
492
 
493
493
  if args.runtime:
494
494
  print(files("json_model.runtime"))
495
- sys.exit(0)
495
+ return 0
496
496
 
497
497
  # POD - Plain Old Documentation
498
498
  if args.doc:
@@ -504,7 +504,7 @@ def jmc_script():
504
504
  v = "2" if args.doc == "man" else "1" if args.doc == "help" else "0"
505
505
  f = "Pod::Text::Termcap" if args.doc == "man" else "Pod::Text"
506
506
  subprocess.run(["pod2usage", "-v", v, "-formatter", f], input=pod.encode("utf8"))
507
- sys.exit(0)
507
+ return 0
508
508
 
509
509
  # manage model option vs model parameter
510
510
  if args.model_option is None:
@@ -570,7 +570,7 @@ def jmc_script():
570
570
  stem = Path(args.output).stem
571
571
  if "-" in stem:
572
572
  log.error(f"java class files cannot contain '-': {args.output}")
573
- sys.exit(1)
573
+ return 1
574
574
  args.entry = args.entry or Path(args.output).stem.replace("-", "_")
575
575
  elif args.output.endswith(".schema.json"):
576
576
  args.format = args.format or "json"
@@ -607,28 +607,28 @@ def jmc_script():
607
607
  args.format = args.format or "json"
608
608
  if args.format not in ("json", "yaml"):
609
609
  log.error(f"unexpected format {args.format} for operation {args.op}")
610
- sys.exit(1)
610
+ return 1
611
611
  elif args.op == "E":
612
612
  args.format = args.format or "json"
613
613
  if args.format not in ("json", "yaml", "py"):
614
614
  log.error(f"unexpected format {args.format} for operation {args.op}")
615
- sys.exit(1)
615
+ return 1
616
616
  elif args.op == "C":
617
617
  args.format = args.format or "py"
618
618
  if args.format not in LANG:
619
619
  log.error(f"unexpected format {args.format} for operation {args.op}")
620
- sys.exit(1)
620
+ return 1
621
621
  else: # pragma: no cover
622
622
  log.error(f"unexpected operation {args.op}")
623
- sys.exit(1)
623
+ return 1
624
624
 
625
625
  if args.values and (args.op != "C" or args.format != "py"):
626
626
  log.error(f"Testing JSON values requires -C for Python: {args.op} {args.format}")
627
- sys.exit(1)
627
+ return 1
628
628
  if args.gen == "source" and (args.op != "C" or args.format not in LANG):
629
629
  log.error("Showing code requires -C for C, Java, JavaScript, Perl, Python and PL/pgSQL: "
630
630
  f"{args.op} {args.format}")
631
- sys.exit(1)
631
+ return 1
632
632
 
633
633
  # strict/loose numbers
634
634
  if args.loose_number is not None:
@@ -656,7 +656,7 @@ def jmc_script():
656
656
  cache_ignore=args.cache_ignore)
657
657
  if args.cache_clear:
658
658
  resolver.clear()
659
- sys.exit(0)
659
+ return 0
660
660
 
661
661
  log.info(f"processing {args.model}")
662
662
 
@@ -673,7 +673,7 @@ def jmc_script():
673
673
  raise
674
674
  else:
675
675
  log.error(f"invalid model {args.model}")
676
- sys.exit(2)
676
+ return 2
677
677
 
678
678
  # NOTE preprocessing already done in create_model
679
679
  # TODO check why iterating changes things (eg ref to predefs substitions)
@@ -847,4 +847,4 @@ def jmc_script():
847
847
  log.debug(e, exc_info=args.verbose)
848
848
  print(f"{fn}: ERROR")
849
849
 
850
- sys.exit(4 if nerrors > 0 else 0)
850
+ return 4 if nerrors > 0 else 0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b42
3
+ Version: 2.0b44
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -236,4 +236,10 @@ site/benchmarks/2026040400.json
236
236
  site/benchmarks/2026040400.md
237
237
  site/benchmarks/2026040700.csv
238
238
  site/benchmarks/2026040700.json
239
- site/benchmarks/2026040700.md
239
+ site/benchmarks/2026040700.md
240
+ site/benchmarks/2026042001.csv
241
+ site/benchmarks/2026042001.json
242
+ site/benchmarks/2026042001.md
243
+ site/benchmarks/2026042400.csv
244
+ site/benchmarks/2026042400.json
245
+ site/benchmarks/2026042400.md
@@ -20,7 +20,7 @@ readme = "README.md"
20
20
  requires-python = ">=3.12" # for "type"
21
21
  license = "CC0-1.0"
22
22
  classifiers = [ "Topic :: Software Development" ]
23
- version = "2.0b42"
23
+ version = "2.0b44"
24
24
  # NOTE this mixes dependencies for the compiler and the runtime, which overlap
25
25
  dependencies = [
26
26
  "requests", "google-re2", "pyyaml", "validators", "fqdn",
@@ -2,69 +2,10 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
- - [x] \*-backend: remove `--jsonschema-benchmark` handling as it is moved to this repo
6
- - [x] command: add `--no-comment` option not to generate comments in source code
7
- - [x] \*-backend: support for embedded nul characters in strings, when possible (not SQL nor C)
8
- - [x] ir: use json name instead of python type names
9
- - [x] perf: add speed in lines per µs which seems more significant
10
- - [x] command: add `-mtune=native` to C compilation
11
- - [x] optim: simplify _&_ with same props and regs plus optional wildcards
12
- - [x] optim: simplify _X & Y_ to _X_ when _X_ is a submodel of _Y_
13
- - [x] py-backend: add predefs IP4 IP6 HOST
14
- - [x] \*-backend: use a common predef for RFC3339 DURATION UUID EMAIL JSONPT
15
- - [x] \*-backend: add approximated backup regex for predefs when not implemented by runtime
16
- - [x] predefs: add `$__EXTENSION_COLOR`
17
- - [x] predefs: refactor multiple instances in the sources into `predefs.py`
18
- - [x] predefs: add `$ETH` for ethernet (mac) addresses
19
- - [x] static: recognize and generate better code for typed _not_: _"" ^ "xxx"_
20
- - [x] ir: add forward substitution between assignments when used once
21
- - [x] py-backend: filter out zone id suffix from ip6
22
- - [x] predefs: add `$CARD` for 16 digits credit card numbers with Luhn's checksum
23
- - [x] predefs: add `$CARD` to js, perl, java and sql runtime.
24
- - [x] predefs: filter predef extensions with `--extend`
25
- - [x] ~static: if only one open prop, just look for it~ depends on language and costs
26
- - [x] ir: improve forward subs, move bool decl to first assignment in seq
27
- - [x] static: use combined assignment and test if possible on discriminator extraction
28
- - [x] static: fix any-by-one pattern on string predefs
29
- - [x] py-runtime: allow lowercase tz in datetime
30
- - [x] py-runtime: add workarounds for leap seconds and other intricacies
31
- - [x] predefs: add `$__EXTENSION_REL_JSONPT` as a regex
32
- - [x] predefs: distinguish simple time and time with mandatory tz for jsu `time` format
33
- - [x] static: avoid double type checks on or with predefs (java, sql, perl)
34
- - [x] ~ir: remove simple redundant checks _(X && (X && Z) || (X && Y))_ is _X && (Z || Y)_~ (see previous)
35
- - [x] c-backend: simple regex compiler for special character classes and repeat
36
- - [x] c-backend: simple regex compiler cache is okay with existing regex cache
37
- - [x] c-backend: add custom character classes based on benchmarks (ident, space, up/low/hexa/num/…)
38
- - [x] optim: `/.+/` is `/./`, `/(.+)/`, `/(.*)/`
39
- - [x] optim: remove unescaped `.*` at end of regex, also `.+/` is `./`
40
- - [x] c-backend: normalize before character class matching
41
- - [x] c-backend: extend simple regex with constant prefix
42
- - [x] c-backend: extend simple regex without end-of-text (`$`)
43
- - [x] optim: apply simpler re to property names
44
- - [x] optim: improve model intersection to simplify `&` in more cases
45
- - [x] optim: improve intersect on single open constraint object case
46
- - [x] optim: avoid reference expansion in and combine optimization
47
- - [x] c-backend: optimize special regex `/./` `/./s` `/^.*$/` `/^.+$/`
48
- - [x] static: detect or of any-but-some type to generate a not instead, beware of looseness
49
- - [x] static: do not create a separate function for an basic object check
50
- - [x] static: generate messages in newly added shortcuts
51
- - [x] c-backend: regex list of words to enum?
52
- - [x] c-backend: fast ic str comparison by switching to _lower char_ with a set test?
53
- - [x] c-backend: improve regex opt cset prettyprinting
54
- - [x] c-backend: extend simple regex to sequences of prefix/chars/repeats
55
- - [x] c-backend: add custom char class `[A-Za-z0-9_\\-:]` `[1-9]`
56
- - [x] container: separate base from specific installs to improve cache/no-cache build
57
- - [x] static: improve pattern matching for starts with/ends with/eq regex optim
58
- - [x] static: improve endswith pattern recognition with escapes, eg `/\\.js$/`
59
- - [x] c-backend: improve startwith code with fast str eq when string is a function call
60
- - [x] c-backend: improve `str_cmp` with fast str eq when string is a function call
61
- - [x] c-backend: check str cmp optims with utf8 strings
62
- - [x] static: preserve prop order by default
63
- - [x] c-backend: add custom character classes `[-a-z0-9_]` variants
64
- - [x] c-backend: use counter for multithreaded tests
65
- - [x] c-backend: fix multiple brace repeats in simple regex optimization
66
- - [x] model: add option to `s` on regex? else `.` is any but `\n` and sometimes `\r`
67
- - [x] optim: `/^.{1,256}$/`? only under `/s` though…
5
+ - [x] optim: override simpler regex props if stricter
6
+ - [x] front: allow to call script as a function
7
+ - [ ] perl-backend: do not import RE2 unless required in generated script
8
+ - [ ] perl-backend: improve resilience to missing dependencies, eg `Algorithm::LUHN`.
68
9
  - [ ] perf: show schema to model conversion times
69
10
  - [ ] js-backend: remove useless braces
70
11
  - [ ] c-backend: use str cmp for ends with optimization as well
@@ -884,4 +825,67 @@
884
825
  - [x] command: show runtime directory with `--runtime`
885
826
  - [x] optim: better merge `&` list when possible, including regex prefix incompatibilities
886
827
  - [x] js-backend: export model map
887
- - [x] pl-backend: add and export `_mapper` function
828
+ - [x] pl-backend: add and export `mapper` function
829
+ - [x] \*-backend: remove `--jsonschema-benchmark` handling as it is moved to this repo
830
+ - [x] command: add `--no-comment` option not to generate comments in source code
831
+ - [x] \*-backend: support for embedded nul characters in strings, when possible (not SQL nor C)
832
+ - [x] ir: use json name instead of python type names
833
+ - [x] perf: add speed in lines per µs which seems more significant
834
+ - [x] command: add `-mtune=native` to C compilation
835
+ - [x] optim: simplify _&_ with same props and regs plus optional wildcards
836
+ - [x] optim: simplify _X & Y_ to _X_ when _X_ is a submodel of _Y_
837
+ - [x] py-backend: add predefs IP4 IP6 HOST
838
+ - [x] \*-backend: use a common predef for RFC3339 DURATION UUID EMAIL JSONPT
839
+ - [x] \*-backend: add approximated backup regex for predefs when not implemented by runtime
840
+ - [x] predefs: add `$__EXTENSION_COLOR`
841
+ - [x] predefs: refactor multiple instances in the sources into `predefs.py`
842
+ - [x] predefs: add `$ETH` for ethernet (mac) addresses
843
+ - [x] static: recognize and generate better code for typed _not_: _"" ^ "xxx"_
844
+ - [x] ir: add forward substitution between assignments when used once
845
+ - [x] py-backend: filter out zone id suffix from ip6
846
+ - [x] predefs: add `$CARD` for 16 digits credit card numbers with Luhn's checksum
847
+ - [x] predefs: add `$CARD` to js, perl, java and sql runtime.
848
+ - [x] predefs: filter predef extensions with `--extend`
849
+ - [x] ~static: if only one open prop, just look for it~ depends on language and costs
850
+ - [x] ir: improve forward subs, move bool decl to first assignment in seq
851
+ - [x] static: use combined assignment and test if possible on discriminator extraction
852
+ - [x] static: fix any-by-one pattern on string predefs
853
+ - [x] py-runtime: allow lowercase tz in datetime
854
+ - [x] py-runtime: add workarounds for leap seconds and other intricacies
855
+ - [x] predefs: add predef `EXTENSION_REL_JSONPT` as a regex
856
+ - [x] predefs: distinguish simple time and time with mandatory tz for jsu `time` format
857
+ - [x] static: avoid double type checks on or with predefs (java, sql, perl)
858
+ - [x] ~ir: remove simple redundant checks _(X && (X && Z) || (X && Y))_ is _X && (Z || Y)_~ (see previous)
859
+ - [x] c-backend: simple regex compiler for special character classes and repeat
860
+ - [x] c-backend: simple regex compiler cache is okay with existing regex cache
861
+ - [x] c-backend: add custom character classes based on benchmarks (ident, space, up/low/hexa/num/…)
862
+ - [x] optim: `/.+/` is `/./`, `/(.+)/`, `/(.*)/`
863
+ - [x] optim: remove unescaped `.*` at end of regex, also `.+/` is `./`
864
+ - [x] c-backend: normalize before character class matching
865
+ - [x] c-backend: extend simple regex with constant prefix
866
+ - [x] c-backend: extend simple regex without end-of-text (`$`)
867
+ - [x] optim: apply simpler re to property names
868
+ - [x] optim: improve model intersection to simplify `&` in more cases
869
+ - [x] optim: improve intersect on single open constraint object case
870
+ - [x] optim: avoid reference expansion in and combine optimization
871
+ - [x] c-backend: optimize special regex `/./` `/./s` `/^.*$/` `/^.+$/`
872
+ - [x] static: detect or of any-but-some type to generate a not instead, beware of looseness
873
+ - [x] static: do not create a separate function for an basic object check
874
+ - [x] static: generate messages in newly added shortcuts
875
+ - [x] c-backend: regex list of words to enum?
876
+ - [x] c-backend: fast ic str comparison by switching to _lower char_ with a set test?
877
+ - [x] c-backend: improve regex opt cset prettyprinting
878
+ - [x] c-backend: extend simple regex to sequences of prefix/chars/repeats
879
+ - [x] c-backend: add custom char class `[A-Za-z0-9_\\-:]` `[1-9]`
880
+ - [x] container: separate base from specific installs to improve cache/no-cache build
881
+ - [x] static: improve pattern matching for starts with/ends with/eq regex optim
882
+ - [x] static: improve endswith pattern recognition with escapes, eg `/\\.js$/`
883
+ - [x] c-backend: improve startwith code with fast str eq when string is a function call
884
+ - [x] c-backend: improve `str_cmp` with fast str eq when string is a function call
885
+ - [x] c-backend: check str cmp optims with utf8 strings
886
+ - [x] static: preserve prop order by default
887
+ - [x] c-backend: add custom character classes `[-a-z0-9_]` variants
888
+ - [x] c-backend: use counter for multithreaded tests
889
+ - [x] c-backend: fix multiple brace repeats in simple regex optimization
890
+ - [x] model: add option to `s` on regex? else `.` is any but `\n` and sometimes `\r`
891
+ - [x] optim: `/^.{1,256}$/`? only under `/s` though…
@@ -9,6 +9,8 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
9
9
 
10
10
  ## Recent Artifacts
11
11
 
12
+ - [2026042400](benchmarks/2026042400.md) clang, no predefs, jsu 0.9.4/jmc 2.0b43 vs sbc 15.0.0, 11 runs, 1000 iterations.
13
+ - [2026042001](benchmarks/2026042001.md) clang, no predefs, jsu 0.9.3/jmc 2.0b42 vs sbc 14.20.2, 11 runs, 1000 iterations.
12
14
  - [2026040700](benchmarks/2026040700.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.20.2, 11 runs, 1000 iterations.
13
15
  - [2026040400](benchmarks/2026040400.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.19.0, 11 runs, 1000 iterations.
14
16
  - [2026040300](benchmarks/2026040300.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.18.0, 11 runs, 1000 iterations.