basedpl 0.1.44__tar.gz → 0.1.45__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.

Potentially problematic release.


This version of basedpl might be problematic. Click here for more details.

Files changed (431) hide show
  1. {basedpl-0.1.44 → basedpl-0.1.45}/.gitignore +0 -1
  2. {basedpl-0.1.44 → basedpl-0.1.45}/Cargo.lock +41 -8
  3. {basedpl-0.1.44 → basedpl-0.1.45}/Cargo.toml +2 -2
  4. basedpl-0.1.45/DEV.md +251 -0
  5. {basedpl-0.1.44 → basedpl-0.1.45}/PKG-INFO +1 -1
  6. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/domino.qmd +1 -1
  7. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/dot.qmd +2 -0
  8. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/bpltests.py +17 -18
  9. {basedpl-0.1.44 → basedpl-0.1.45}/src/element.rs +1 -1
  10. {basedpl-0.1.44 → basedpl-0.1.45}/src/eval/assign.rs +72 -25
  11. {basedpl-0.1.44 → basedpl-0.1.45}/src/eval/operators.rs +1 -1
  12. {basedpl-0.1.44 → basedpl-0.1.45}/src/eval.rs +20 -6
  13. {basedpl-0.1.44 → basedpl-0.1.45}/src/host.rs +42 -8
  14. {basedpl-0.1.44 → basedpl-0.1.45}/src/host_web.rs +1 -1
  15. {basedpl-0.1.44 → basedpl-0.1.45}/src/pervasive.rs +240 -93
  16. {basedpl-0.1.44 → basedpl-0.1.45}/src/primitive/indexing.rs +32 -14
  17. {basedpl-0.1.44 → basedpl-0.1.45}/src/primitive/search.rs +1 -1
  18. {basedpl-0.1.44 → basedpl-0.1.45}/src/timing.rs +3 -1
  19. {basedpl-0.1.44 → basedpl-0.1.45}/tests/conftest.py +1 -1
  20. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/core.bpl +6 -0
  21. {basedpl-0.1.44 → basedpl-0.1.45}/tests/speed.txt +183 -179
  22. basedpl-0.1.45/tests/timing-lock.mjs +39 -0
  23. {basedpl-0.1.44 → basedpl-0.1.45}/tests/units.rs +56 -2
  24. {basedpl-0.1.44 → basedpl-0.1.45}/tests/wasm-speed.mjs +1 -30
  25. {basedpl-0.1.44 → basedpl-0.1.45}/.cargo/config.toml +0 -0
  26. {basedpl-0.1.44 → basedpl-0.1.45}/.gitattributes +0 -0
  27. {basedpl-0.1.44 → basedpl-0.1.45}/.github/workflows/ci.yml +0 -0
  28. {basedpl-0.1.44 → basedpl-0.1.45}/.github/workflows/docs.yml +0 -0
  29. {basedpl-0.1.44 → basedpl-0.1.45}/.github/workflows/speed.yml +0 -0
  30. {basedpl-0.1.44 → basedpl-0.1.45}/.github/workflows/test.yml +0 -0
  31. {basedpl-0.1.44 → basedpl-0.1.45}/CONTRIBUTING.md +0 -0
  32. {basedpl-0.1.44 → basedpl-0.1.45}/LICENSE +0 -0
  33. {basedpl-0.1.44 → basedpl-0.1.45}/README.md +0 -0
  34. {basedpl-0.1.44 → basedpl-0.1.45}/_config.yml +0 -0
  35. {basedpl-0.1.44 → basedpl-0.1.45}/_layouts/default.html +0 -0
  36. {basedpl-0.1.44 → basedpl-0.1.45}/build.rs +0 -0
  37. {basedpl-0.1.44 → basedpl-0.1.45}/editors/jetbrains/BPL.tmbundle/Syntaxes/bpl.tmLanguage.json +0 -0
  38. {basedpl-0.1.44 → basedpl-0.1.45}/editors/jetbrains/BPL.tmbundle/info.plist +0 -0
  39. {basedpl-0.1.44 → basedpl-0.1.45}/editors/jetbrains/BPL.xml +0 -0
  40. {basedpl-0.1.44 → basedpl-0.1.45}/editors/jetbrains/README.md +0 -0
  41. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/Info.plist +0 -0
  42. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/Resources/BasedPL-de.icns +0 -0
  43. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/Resources/BasedPL-de.keylayout +0 -0
  44. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  45. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/version.plist +0 -0
  46. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-de.txt +0 -0
  47. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/Info.plist +0 -0
  48. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/Resources/BasedPL-es.icns +0 -0
  49. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/Resources/BasedPL-es.keylayout +0 -0
  50. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  51. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/version.plist +0 -0
  52. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-es.txt +0 -0
  53. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/Info.plist +0 -0
  54. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/Resources/BasedPL-fr.icns +0 -0
  55. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/Resources/BasedPL-fr.keylayout +0 -0
  56. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  57. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/version.plist +0 -0
  58. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-fr.txt +0 -0
  59. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/Info.plist +0 -0
  60. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/Resources/BasedPL-uk.icns +0 -0
  61. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/Resources/BasedPL-uk.keylayout +0 -0
  62. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  63. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/version.plist +0 -0
  64. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-uk.txt +0 -0
  65. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/Info.plist +0 -0
  66. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/Resources/BasedPL-us.icns +0 -0
  67. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/Resources/BasedPL-us.keylayout +0 -0
  68. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  69. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/version.plist +0 -0
  70. {basedpl-0.1.44 → basedpl-0.1.45}/editors/macos/BasedPL-us.txt +0 -0
  71. {basedpl-0.1.44 → basedpl-0.1.45}/editors/vim/ftdetect/bpl.vim +0 -0
  72. {basedpl-0.1.44 → basedpl-0.1.45}/editors/vim/syntax/bpl.vim +0 -0
  73. {basedpl-0.1.44 → basedpl-0.1.45}/editors/windows/README.md +0 -0
  74. {basedpl-0.1.44 → basedpl-0.1.45}/editors/windows/build.ps1 +0 -0
  75. {basedpl-0.1.44 → basedpl-0.1.45}/editors/windows/install.ps1 +0 -0
  76. {basedpl-0.1.44 → basedpl-0.1.45}/editors/windows/keyboard.c +0 -0
  77. {basedpl-0.1.44 → basedpl-0.1.45}/editors/windows/keyboard.def +0 -0
  78. {basedpl-0.1.44 → basedpl-0.1.45}/editors/windows/keyboard.rc +0 -0
  79. {basedpl-0.1.44 → basedpl-0.1.45}/editors/windows/layout.h +0 -0
  80. {basedpl-0.1.44 → basedpl-0.1.45}/index_files/figure-commonmark/cell-17-output-1.svg +0 -0
  81. {basedpl-0.1.44 → basedpl-0.1.45}/index_files/figure-commonmark/cell-18-output-1.svg +0 -0
  82. {basedpl-0.1.44 → basedpl-0.1.45}/index_files/figure-html/cell-17-output-1.svg +0 -0
  83. {basedpl-0.1.44 → basedpl-0.1.45}/index_files/figure-html/cell-18-output-1.svg +0 -0
  84. {basedpl-0.1.44 → basedpl-0.1.45}/lib/LICENSE-april +0 -0
  85. {basedpl-0.1.44 → basedpl-0.1.45}/lib/README.md +0 -0
  86. {basedpl-0.1.44 → basedpl-0.1.45}/lib/array.bpl +0 -0
  87. {basedpl-0.1.44 → basedpl-0.1.45}/lib/dyalog.bpl +0 -0
  88. {basedpl-0.1.44 → basedpl-0.1.45}/lib/graph.bpl +0 -0
  89. {basedpl-0.1.44 → basedpl-0.1.45}/lib/numeric.bpl +0 -0
  90. {basedpl-0.1.44 → basedpl-0.1.45}/lib/power.bpl +0 -0
  91. {basedpl-0.1.44 → basedpl-0.1.45}/lib/regex.bpl +0 -0
  92. {basedpl-0.1.44 → basedpl-0.1.45}/lib/string.bpl +0 -0
  93. {basedpl-0.1.44 → basedpl-0.1.45}/lib/tree.bpl +0 -0
  94. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/.gitignore +0 -0
  95. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/_quarto.yml +0 -0
  96. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/arrays.ipynb +0 -0
  97. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/assignment.ipynb +0 -0
  98. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/bpl.xml +0 -0
  99. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/bqn.xml +0 -0
  100. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/bracket-types.ipynb +0 -0
  101. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/cli.qmd +0 -0
  102. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/comparison.qmd +0 -0
  103. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/data.ipynb +0 -0
  104. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/dfns.ipynb +0 -0
  105. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/distributions.ipynb +0 -0
  106. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/driver.js +0 -0
  107. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/dyalog.ipynb +0 -0
  108. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/dyalog.xml +0 -0
  109. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/evaluation.qmd +0 -0
  110. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/fonts/LICENSE-SAX2 +0 -0
  111. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/fonts/README.md +0 -0
  112. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/fonts/SAX2B.ttf +0 -0
  113. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/fonts/SAX2B.woff2 +0 -0
  114. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/fonts.css +0 -0
  115. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/attractor.bpl +0 -0
  116. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/boids.bpl +0 -0
  117. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/dragon.bpl +0 -0
  118. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/flow.bpl +0 -0
  119. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/mandelbrot.bpl +0 -0
  120. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/mandelbrot32.bpl +0 -0
  121. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/orbits.bpl +0 -0
  122. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/phyllotaxis.bpl +0 -0
  123. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/prefs.bpl +0 -0
  124. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery/reaction.bpl +0 -0
  125. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/gallery.qmd +0 -0
  126. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/getting-started.ipynb +0 -0
  127. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/_metadata.yml +0 -0
  128. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/add.qmd +0 -0
  129. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/after.qmd +0 -0
  130. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/agenda.qmd +0 -0
  131. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/alpha-underbar.qmd +0 -0
  132. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/alpha.qmd +0 -0
  133. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/and.qmd +0 -0
  134. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/assign.qmd +0 -0
  135. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/atop.qmd +0 -0
  136. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/axis.qmd +0 -0
  137. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/backslash-bar.qmd +0 -0
  138. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/backslash.qmd +0 -0
  139. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/before.qmd +0 -0
  140. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/braces.qmd +0 -0
  141. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/brackets.qmd +0 -0
  142. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/bullet.qmd +0 -0
  143. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/ceiling.qmd +0 -0
  144. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/circle.qmd +0 -0
  145. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/colon.qmd +0 -0
  146. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/comma.qmd +0 -0
  147. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/comment.qmd +0 -0
  148. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/commute.qmd +0 -0
  149. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/dash.qmd +0 -0
  150. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/decode.qmd +0 -0
  151. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/del-diaeresis.qmd +0 -0
  152. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/del.qmd +0 -0
  153. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/derivative.qmd +0 -0
  154. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/diamond.qmd +0 -0
  155. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/div.qmd +0 -0
  156. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/drop.qmd +0 -0
  157. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/each.qmd +0 -0
  158. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/enclose.qmd +0 -0
  159. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/encode.qmd +0 -0
  160. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/equal.qmd +0 -0
  161. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/error-guard.qmd +0 -0
  162. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/execute.qmd +0 -0
  163. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/factor.qmd +0 -0
  164. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/factorial.qmd +0 -0
  165. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/find.qmd +0 -0
  166. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/floor.qmd +0 -0
  167. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/format.qmd +0 -0
  168. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/grade-down.qmd +0 -0
  169. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/grade-up.qmd +0 -0
  170. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/greater-or-equal.qmd +0 -0
  171. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/greater.qmd +0 -0
  172. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/hash.qmd +0 -0
  173. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/infinity.qmd +0 -0
  174. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/intersection.qmd +0 -0
  175. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/inverse-pair.qmd +0 -0
  176. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/inverted-question.qmd +0 -0
  177. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/iota.qmd +0 -0
  178. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/key.qmd +0 -0
  179. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/left.qmd +0 -0
  180. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/less-or-equal.qmd +0 -0
  181. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/less.qmd +0 -0
  182. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/log.qmd +0 -0
  183. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/match.qmd +0 -0
  184. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/member.qmd +0 -0
  185. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/mix.qmd +0 -0
  186. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/mul.qmd +0 -0
  187. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/nand.qmd +0 -0
  188. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/nest.qmd +0 -0
  189. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/nor.qmd +0 -0
  190. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/not-equal.qmd +0 -0
  191. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/omega-underbar.qmd +0 -0
  192. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/omega.qmd +0 -0
  193. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/or.qmd +0 -0
  194. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/outer-product.qmd +0 -0
  195. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/over.qmd +0 -0
  196. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/overbar.qmd +0 -0
  197. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/parentheses.qmd +0 -0
  198. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/pi.qmd +0 -0
  199. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/polynomial.qmd +0 -0
  200. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/power.qmd +0 -0
  201. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/prime.qmd +0 -0
  202. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/quad.qmd +0 -0
  203. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/question.qmd +0 -0
  204. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/quote.qmd +0 -0
  205. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/range.qmd +0 -0
  206. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/rank.qmd +0 -0
  207. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/reverse-first.qmd +0 -0
  208. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/reverse.qmd +0 -0
  209. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/rho.qmd +0 -0
  210. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/right.qmd +0 -0
  211. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/root.qmd +0 -0
  212. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/slash-bar.qmd +0 -0
  213. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/slash.qmd +0 -0
  214. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/squad.qmd +0 -0
  215. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/star.qmd +0 -0
  216. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/stencil.qmd +0 -0
  217. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/stile.qmd +0 -0
  218. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/table.qmd +0 -0
  219. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/take.qmd +0 -0
  220. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/tally.qmd +0 -0
  221. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/tilde.qmd +0 -0
  222. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/transpose.qmd +0 -0
  223. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/under.qmd +0 -0
  224. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/union.qmd +0 -0
  225. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/valences.qmd +0 -0
  226. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/where.qmd +0 -0
  227. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/windows.qmd +0 -0
  228. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs/zilde.qmd +0 -0
  229. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/glyphs.qmd +0 -0
  230. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/index.ipynb +0 -0
  231. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/introspection.ipynb +0 -0
  232. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/keyboard.qmd +0 -0
  233. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/keyed.ipynb +0 -0
  234. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/llms.txt +0 -0
  235. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/magics.ipynb +0 -0
  236. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/modules.qmd +0 -0
  237. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/nbdev.yml +0 -0
  238. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/notebooks.ipynb +0 -0
  239. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/numbers.qmd +0 -0
  240. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/overview.ipynb +0 -0
  241. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/papers/aplwiki-arrays.md +0 -0
  242. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/papers/brickman-depth-1-scalars.md +0 -0
  243. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/papers/mercer-based-system.md +0 -0
  244. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/playground/bpl.js +0 -0
  245. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/playground/gallery.js +0 -0
  246. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/playground/monaco-worker.js +0 -0
  247. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/playground/page.js +0 -0
  248. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/playground/worker.js +0 -0
  249. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/playground.qmd +0 -0
  250. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/plot.ipynb +0 -0
  251. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/principles.ipynb +0 -0
  252. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/processes.qmd +0 -0
  253. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/puppy.jpg +0 -0
  254. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/python.ipynb +0 -0
  255. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/regex.ipynb +0 -0
  256. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/repl.qmd +0 -0
  257. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/scripts.ipynb +0 -0
  258. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/sidebar.yml +0 -0
  259. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/strings.ipynb +0 -0
  260. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/styles.css +0 -0
  261. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/syntax.qmd +0 -0
  262. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/_metadata.yml +0 -0
  263. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/c.qmd +0 -0
  264. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/canvas.qmd +0 -0
  265. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/constants.qmd +0 -0
  266. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/copy.qmd +0 -0
  267. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/csv.qmd +0 -0
  268. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/date.qmd +0 -0
  269. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/decompose.qmd +0 -0
  270. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/deflate.qmd +0 -0
  271. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/delay.qmd +0 -0
  272. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/distribution.qmd +0 -0
  273. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/element.qmd +0 -0
  274. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/ex.qmd +0 -0
  275. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/fetch.qmd +0 -0
  276. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/float.qmd +0 -0
  277. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/hash.qmd +0 -0
  278. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/host.qmd +0 -0
  279. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/image.qmd +0 -0
  280. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/js.qmd +0 -0
  281. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/json.qmd +0 -0
  282. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/literal.qmd +0 -0
  283. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/load.qmd +0 -0
  284. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/metadata.qmd +0 -0
  285. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/mime.qmd +0 -0
  286. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/mkdir.qmd +0 -0
  287. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/nc.qmd +0 -0
  288. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/nget.qmd +0 -0
  289. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/nl.qmd +0 -0
  290. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/normalize.qmd +0 -0
  291. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/nput.qmd +0 -0
  292. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/path.qmd +0 -0
  293. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/plot.qmd +0 -0
  294. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/prefs.qmd +0 -0
  295. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/r.qmd +0 -0
  296. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/rand.qmd +0 -0
  297. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/readdir.qmd +0 -0
  298. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/remove.qmd +0 -0
  299. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/rename.qmd +0 -0
  300. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/signal.qmd +0 -0
  301. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/src.qmd +0 -0
  302. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/storage.qmd +0 -0
  303. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/svg.qmd +0 -0
  304. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/time.qmd +0 -0
  305. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/ucs.qmd +0 -0
  306. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/uuid.qmd +0 -0
  307. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/vfi.qmd +0 -0
  308. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system/xml.qmd +0 -0
  309. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/system-functions.qmd +0 -0
  310. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/terms.qmd +0 -0
  311. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/web.ipynb +0 -0
  312. {basedpl-0.1.44 → basedpl-0.1.45}/nbs/xml.ipynb +0 -0
  313. {basedpl-0.1.44 → basedpl-0.1.45}/provenance/README.md +0 -0
  314. {basedpl-0.1.44 → basedpl-0.1.45}/provenance/aplcart.jsonl +0 -0
  315. {basedpl-0.1.44 → basedpl-0.1.45}/provenance/april.jsonl +0 -0
  316. {basedpl-0.1.44 → basedpl-0.1.45}/provenance/bqn.jsonl +0 -0
  317. {basedpl-0.1.44 → basedpl-0.1.45}/provenance/core.jsonl +0 -0
  318. {basedpl-0.1.44 → basedpl-0.1.45}/provenance/dyalog.jsonl +0 -0
  319. {basedpl-0.1.44 → basedpl-0.1.45}/provenance/ngn.jsonl +0 -0
  320. {basedpl-0.1.44 → basedpl-0.1.45}/py/Cargo.toml +0 -0
  321. {basedpl-0.1.44 → basedpl-0.1.45}/py/build.rs +0 -0
  322. {basedpl-0.1.44 → basedpl-0.1.45}/py/src/lib.rs +0 -0
  323. {basedpl-0.1.44 → basedpl-0.1.45}/pyproject.toml +0 -0
  324. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/__init__.py +0 -0
  325. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/_modidx.py +0 -0
  326. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/bpl.tmLanguage.json +0 -0
  327. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/dyalog.py +0 -0
  328. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/editors.py +0 -0
  329. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/font.py +0 -0
  330. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/fonts.css +0 -0
  331. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/functions.py +0 -0
  332. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/input.js +0 -0
  333. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/ipython.py +0 -0
  334. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/keyboards.json +0 -0
  335. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/keyboards.py +0 -0
  336. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/layout.json +0 -0
  337. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/lb.js +0 -0
  338. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/notebook_runner.py +0 -0
  339. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/notebooks.py +0 -0
  340. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/printing.py +0 -0
  341. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/reference.py +0 -0
  342. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/syntax.py +0 -0
  343. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/windows_keyboard.py +0 -0
  344. {basedpl-0.1.44 → basedpl-0.1.45}/python/basedpl/worker.py +0 -0
  345. {basedpl-0.1.44 → basedpl-0.1.45}/rustfmt.toml +0 -0
  346. {basedpl-0.1.44 → basedpl-0.1.45}/scripts/install-macos.sh +0 -0
  347. {basedpl-0.1.44 → basedpl-0.1.45}/scripts/prep.py +0 -0
  348. {basedpl-0.1.44 → basedpl-0.1.45}/src/agreement.rs +0 -0
  349. {basedpl-0.1.44 → basedpl-0.1.45}/src/array/storage.rs +0 -0
  350. {basedpl-0.1.44 → basedpl-0.1.45}/src/array/text.rs +0 -0
  351. {basedpl-0.1.44 → basedpl-0.1.45}/src/array.rs +0 -0
  352. {basedpl-0.1.44 → basedpl-0.1.45}/src/canvas.js +0 -0
  353. {basedpl-0.1.44 → basedpl-0.1.45}/src/canvas.rs +0 -0
  354. {basedpl-0.1.44 → basedpl-0.1.45}/src/csv.rs +0 -0
  355. {basedpl-0.1.44 → basedpl-0.1.45}/src/data.rs +0 -0
  356. {basedpl-0.1.44 → basedpl-0.1.45}/src/date.rs +0 -0
  357. {basedpl-0.1.44 → basedpl-0.1.45}/src/display.rs +0 -0
  358. {basedpl-0.1.44 → basedpl-0.1.45}/src/distribution.rs +0 -0
  359. {basedpl-0.1.44 → basedpl-0.1.45}/src/error.rs +0 -0
  360. {basedpl-0.1.44 → basedpl-0.1.45}/src/eval/binder.rs +0 -0
  361. {basedpl-0.1.44 → basedpl-0.1.45}/src/eval/dissect.rs +0 -0
  362. {basedpl-0.1.44 → basedpl-0.1.45}/src/eval/session.rs +0 -0
  363. {basedpl-0.1.44 → basedpl-0.1.45}/src/execution.rs +0 -0
  364. {basedpl-0.1.44 → basedpl-0.1.45}/src/files.rs +0 -0
  365. {basedpl-0.1.44 → basedpl-0.1.45}/src/fusion.rs +0 -0
  366. {basedpl-0.1.44 → basedpl-0.1.45}/src/image.rs +0 -0
  367. {basedpl-0.1.44 → basedpl-0.1.45}/src/inspection.rs +0 -0
  368. {basedpl-0.1.44 → basedpl-0.1.45}/src/js.rs +0 -0
  369. {basedpl-0.1.44 → basedpl-0.1.45}/src/json.rs +0 -0
  370. {basedpl-0.1.44 → basedpl-0.1.45}/src/keyed.rs +0 -0
  371. {basedpl-0.1.44 → basedpl-0.1.45}/src/lib.rs +0 -0
  372. {basedpl-0.1.44 → basedpl-0.1.45}/src/number.rs +0 -0
  373. {basedpl-0.1.44 → basedpl-0.1.45}/src/number_theory.rs +0 -0
  374. {basedpl-0.1.44 → basedpl-0.1.45}/src/plot.rs +0 -0
  375. {basedpl-0.1.44 → basedpl-0.1.45}/src/polynomial.rs +0 -0
  376. {basedpl-0.1.44 → basedpl-0.1.45}/src/primitive/numeric.rs +0 -0
  377. {basedpl-0.1.44 → basedpl-0.1.45}/src/primitive/structural.rs +0 -0
  378. {basedpl-0.1.44 → basedpl-0.1.45}/src/primitive.rs +0 -0
  379. {basedpl-0.1.44 → basedpl-0.1.45}/src/protocol.rs +0 -0
  380. {basedpl-0.1.44 → basedpl-0.1.45}/src/reference.rs +0 -0
  381. {basedpl-0.1.44 → basedpl-0.1.45}/src/regex.rs +0 -0
  382. {basedpl-0.1.44 → basedpl-0.1.45}/src/search.rs +0 -0
  383. {basedpl-0.1.44 → basedpl-0.1.45}/src/selection.rs +0 -0
  384. {basedpl-0.1.44 → basedpl-0.1.45}/src/symbols.rs +0 -0
  385. {basedpl-0.1.44 → basedpl-0.1.45}/src/syntax.rs +0 -0
  386. {basedpl-0.1.44 → basedpl-0.1.45}/src/system.rs +0 -0
  387. {basedpl-0.1.44 → basedpl-0.1.45}/src/xml.rs +0 -0
  388. {basedpl-0.1.44 → basedpl-0.1.45}/tests/core.rs +0 -0
  389. {basedpl-0.1.44 → basedpl-0.1.45}/tests/highlighting.mjs +0 -0
  390. {basedpl-0.1.44 → basedpl-0.1.45}/tests/input.mjs +0 -0
  391. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/LICENSE-aplcart +0 -0
  392. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/LICENSE-april +0 -0
  393. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/LICENSE-bqn +0 -0
  394. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/LICENSE-bqncrate +0 -0
  395. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/LICENSE-dyalog +0 -0
  396. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/LICENSE-ngn +0 -0
  397. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/README.md +0 -0
  398. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/aplcart.bpl +0 -0
  399. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/april.bpl +0 -0
  400. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/bqn.bpl +0 -0
  401. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/distributions.bpl +0 -0
  402. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/dyalog.bpl +0 -0
  403. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/graphics.bpl +0 -0
  404. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/lib.bpl +0 -0
  405. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/ngn.bpl +0 -0
  406. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/regex.bpl +0 -0
  407. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/support/april.bpl +0 -0
  408. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/support/avl.bpl +0 -0
  409. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/support/redblack.bpl +0 -0
  410. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/support/sbst.bpl +0 -0
  411. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference/support/splay.bpl +0 -0
  412. {basedpl-0.1.44 → basedpl-0.1.45}/tests/reference.rs +0 -0
  413. {basedpl-0.1.44 → basedpl-0.1.45}/tests/scaling.rs +0 -0
  414. {basedpl-0.1.44 → basedpl-0.1.45}/tests/speed.rs +0 -0
  415. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_api.py +0 -0
  416. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_basic.py +0 -0
  417. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_bpltests.py +0 -0
  418. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_glyphs.py +0 -0
  419. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_graphics.py +0 -0
  420. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_ipython.py +0 -0
  421. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_kernel.py +0 -0
  422. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_keylayout.py +0 -0
  423. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_notebooks.py +0 -0
  424. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_reference.py +0 -0
  425. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_repl.py +0 -0
  426. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_windows_keyboard.py +0 -0
  427. {basedpl-0.1.44 → basedpl-0.1.45}/tests/test_worker.py +0 -0
  428. {basedpl-0.1.44 → basedpl-0.1.45}/tests/wasm-pkg.mjs +0 -0
  429. {basedpl-0.1.44 → basedpl-0.1.45}/tests/wasm.mjs +0 -0
  430. {basedpl-0.1.44 → basedpl-0.1.45}/tests/windows_keyboard.c +0 -0
  431. {basedpl-0.1.44 → basedpl-0.1.45}/wheel/data/share/jupyter/kernels/bpl/kernel.json +0 -0
@@ -3,7 +3,6 @@ CLAUDE.md
3
3
  .last_checked
4
4
  links/
5
5
  meta/
6
- DEV.md
7
6
  *.tgz
8
7
  __pycache__/
9
8
  *.py[cod]
@@ -23,6 +23,12 @@ version = "0.2.21"
23
23
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
24
  checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
25
25
 
26
+ [[package]]
27
+ name = "allocator-api2"
28
+ version = "0.4.0"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "c880a97d28a3681c0267bd29cff89621202715b065127cd445fa0f0fe0aa2880"
31
+
26
32
  [[package]]
27
33
  name = "android_system_properties"
28
34
  version = "0.1.6"
@@ -87,7 +93,7 @@ checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
87
93
 
88
94
  [[package]]
89
95
  name = "basedpl"
90
- version = "0.1.44"
96
+ version = "0.1.45"
91
97
  dependencies = [
92
98
  "base64 0.23.1",
93
99
  "bytemuck",
@@ -133,7 +139,7 @@ dependencies = [
133
139
 
134
140
  [[package]]
135
141
  name = "basedpl-cli"
136
- version = "0.1.44"
142
+ version = "0.1.45"
137
143
  dependencies = [
138
144
  "async-trait",
139
145
  "basedpl",
@@ -147,7 +153,7 @@ dependencies = [
147
153
 
148
154
  [[package]]
149
155
  name = "basedpl-py"
150
- version = "0.1.44"
156
+ version = "0.1.45"
151
157
  dependencies = [
152
158
  "basedpl",
153
159
  "bytemuck",
@@ -162,10 +168,11 @@ dependencies = [
162
168
 
163
169
  [[package]]
164
170
  name = "basedpl-wasm"
165
- version = "0.1.44"
171
+ version = "0.1.45"
166
172
  dependencies = [
167
173
  "basedpl",
168
174
  "js-sys",
175
+ "talc",
169
176
  "wasm-bindgen",
170
177
  ]
171
178
 
@@ -652,7 +659,7 @@ version = "0.17.1"
652
659
  source = "registry+https://github.com/rust-lang/crates.io-index"
653
660
  checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
654
661
  dependencies = [
655
- "allocator-api2",
662
+ "allocator-api2 0.2.21",
656
663
  "equivalent",
657
664
  "foldhash",
658
665
  ]
@@ -915,6 +922,15 @@ version = "0.8.3"
915
922
  source = "registry+https://github.com/rust-lang/crates.io-index"
916
923
  checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
917
924
 
925
+ [[package]]
926
+ name = "lock_api"
927
+ version = "0.4.14"
928
+ source = "registry+https://github.com/rust-lang/crates.io-index"
929
+ checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
930
+ dependencies = [
931
+ "scopeguard",
932
+ ]
933
+
918
934
  [[package]]
919
935
  name = "log"
920
936
  version = "0.4.34"
@@ -1382,9 +1398,9 @@ dependencies = [
1382
1398
 
1383
1399
  [[package]]
1384
1400
  name = "rustymath"
1385
- version = "0.1.13"
1401
+ version = "0.1.14"
1386
1402
  source = "registry+https://github.com/rust-lang/crates.io-index"
1387
- checksum = "fddfd8431f35e904efa2bba20b8c8f2e367efc7f1c9ec47e32192b09553b5e15"
1403
+ checksum = "9c4b9032437f945f3db8fa14a4382bec40d21cb4edf1adb8711af6c43b1bb4c5"
1388
1404
  dependencies = [
1389
1405
  "half",
1390
1406
  "hashbrown 0.17.1",
@@ -1394,6 +1410,7 @@ dependencies = [
1394
1410
  "num-rational",
1395
1411
  "num-traits",
1396
1412
  "rand",
1413
+ "rayon",
1397
1414
  "strength_reduce",
1398
1415
  ]
1399
1416
 
@@ -1412,6 +1429,12 @@ dependencies = [
1412
1429
  "winapi-util",
1413
1430
  ]
1414
1431
 
1432
+ [[package]]
1433
+ name = "scopeguard"
1434
+ version = "1.2.0"
1435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1436
+ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
1437
+
1415
1438
  [[package]]
1416
1439
  name = "semver"
1417
1440
  version = "1.0.28"
@@ -1608,6 +1631,16 @@ dependencies = [
1608
1631
  "syn 3.0.9",
1609
1632
  ]
1610
1633
 
1634
+ [[package]]
1635
+ name = "talc"
1636
+ version = "5.1.1"
1637
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1638
+ checksum = "53f8ad14fa1c1b8635114abf9721076fe1e869572a5f26a52690f407292c80dc"
1639
+ dependencies = [
1640
+ "allocator-api2 0.4.0",
1641
+ "lock_api",
1642
+ ]
1643
+
1611
1644
  [[package]]
1612
1645
  name = "target-lexicon"
1613
1646
  version = "0.13.5"
@@ -2019,7 +2052,7 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
2019
2052
 
2020
2053
  [[package]]
2021
2054
  name = "xtask"
2022
- version = "0.1.44"
2055
+ version = "0.1.45"
2023
2056
  dependencies = [
2024
2057
  "anyhow",
2025
2058
  "serde_json",
@@ -2,7 +2,7 @@
2
2
  members = ["py"]
3
3
 
4
4
  [workspace.package]
5
- version = "0.1.44"
5
+ version = "0.1.45"
6
6
  edition = "2021"
7
7
  rust-version = "1.98"
8
8
  license = "Apache-2.0"
@@ -51,7 +51,7 @@ num-complex = { version = ">=0.4.6, <1", features = ["bytemuck"] }
51
51
  num-bigint = ">=0.4.6, <0.5"
52
52
  num-traits = ">=0.2.19, <1"
53
53
  half = { version = ">=2.7.1, <3", features = ["num-traits", "bytemuck"] }
54
- rustymath = ">=0.1.13, <1"
54
+ rustymath = ">=0.1.14, <1"
55
55
  strength_reduce = ">=0.2.4, <1"
56
56
  rand = ">=0.10.2, <1"
57
57
  # AnswerDotAI's fork measures text with a canvas, which works in a Web Worker: plotters-rs/plotters#746.
basedpl-0.1.45/DEV.md ADDED
@@ -0,0 +1,251 @@
1
+ # Development
2
+
3
+ Keep the language concise to write, simple to read and consistent to understand. A design rule is a plan on trial. Discuss it when applying it makes a useful expression harder to read, removes something expressible or requires another special case. APL familiarity and compatibility are not costs in that decision. Change callers with an API change instead of adding compatibility layers.
4
+
5
+ Speed and simplicity come before edge cases no real user meets. Follow IEEE, Rust and CPU behaviour where it gives a reasonable result. Don't add precision, sign normalization or defensive passes without an agreed need.
6
+
7
+ ## You MUST read this ENTIRE section in FULL first
8
+
9
+ LLMS: Read `nbs/llms.txt` in full before doing any work. BPL differs substantially from Dyalog APL in grouping, names, numbers and operators. Use BPL syntax, not APL idioms assumed to carry over.
10
+
11
+ ```bash
12
+ cargo develop
13
+ cargo test
14
+ pytest
15
+ ```
16
+
17
+ Use `cargo develop` to rebuild and install the native extension and `bpl` after Rust changes. It uses the `test` profile shared with `cargo test`. Cargo tests compile missing code but don't install it. Run plain `cargo test` while you work; use one test binary for a focused check. Run `pytest` at the end of a piece of work. Give builds three minutes and test runs one minute; Cargo serializes builds in the same target directory.
18
+
19
+ Build nothing else without discussion: no scratch crates, alternate target directories, `--release`, `-p` or other-target builds. The documented build diagnostics, browser work and x86-64 inspection below are exceptions. Don't use `maturin develop`; its configuration does not reuse the normal local build.
20
+
21
+ An already-running Python process retains its loaded extension. In a kernel, use `from basedpl.worker import fresh; fresh(code)` to check the installed `bpl` in a fresh worker instead of restarting the kernel. A BPL error raises `BplError`. Check one expression and read its result before building on it. `basedpl.bpltests.check_file` and `check_page` check reference files and documentation through the worker without building Rust.
22
+
23
+ Measure with `BASEDPL_COSTS=1 cargo test --test speed -- --nocapture` or `basedpl.bpltests.time_cases(cases)`. Both use copies of the same data as the unit. Budgets are single-thread measurements. Use `time_cases(..., threads=...)` separately for scaling. `speed_costs()` reads the cases in `tests/speed.txt`; `cases=` selects expressions and `wasm=DIR` selects a browser build. `logged_costs(log)` reads CI output, and `cargo_costs(path)` runs either project's speed test. `set_budgets(native, wasm, run)` applies the rule in the budget file; `path=` selects rustymath's `tests/speed.txt`. The manual `Speed` workflow measures the native and wasm builds on CI.
24
+
25
+ Cooperating tools share `/tmp/aai-ws-timing.lock`. Timings take it exclusively. `cargo develop`, `cargo wasm`, the reference test and pytest take it shared. Other Rust tests and bare Cargo commands do not all take it. After five minutes a timing fails; a build/test proceeds without the lock. Never hold it in the shared kernel process or coordinate timings manually. A timing launched there would block behind the hold and stall other agents' kernel calls. Native timings set rustymath's current-thread count to one and request user-interactive macOS QoS to favour performance cores. QoS is not CPU affinity.
26
+
27
+ Run `cargo wasm` during development only for browser work. Agents use `cargo wasm --out DIR` and set `BASEDPL_WASM=DIR` when running `node --test tests/wasm.mjs` and `node --no-liftoff --test tests/wasm-speed.mjs`. This avoids replacing a module another agent is using. For other edits under `cfg(web)` or `host_web.rs`, check compilation with `cargo check -p basedpl --target wasm32-unknown-unknown`.
28
+
29
+ ### X86-64 machine code
30
+
31
+ To inspect x86 code on this Mac, run this in basedpl or rustymath:
32
+
33
+ ```bash
34
+ cargo build --lib --release --target x86_64-apple-darwin --target-dir /tmp/aai-ws-x86
35
+ ```
36
+
37
+ That target is installed here. Its x86-64 config flags match those used for CI's hot loops; the `test` profile inherits release's optimization settings. Run it only to answer an x86-code question. It does not take the timing lock and can disturb timings running alongside it.
38
+
39
+ Read the newest `lib<crate>-<hash>.rlib` under `/tmp/aai-ws-x86/x86_64-apple-darwin/release/deps` with `objdump -d -r --no-show-raw-insn --disassemble-symbols=NAME`. `-r` identifies called functions. `objdump` warns for each archive object without that symbol. `-C` matches demangled names but splits them at commas; for a generic name containing a comma, get its mangled name from `nm` and omit `-C`. Generic code belongs to the crate that instantiates it. Don't use `--emit asm`: the resulting codegen-unit arrangement can inline differently from the build being inspected.
40
+
41
+ ## Workspace, builds and CI
42
+
43
+ | Crate | Responsibility |
44
+ |---|---|
45
+ | `basedpl` | Python-free interpreter and public Rust API. |
46
+ | `cli/` (`basedpl-cli`) | `bpl`, REPL, Jupyter kernel and JSON-lines worker. |
47
+ | `py/` (`basedpl-py`) | Unpublished PyO3 extension, `basedpl._core`. |
48
+ | `wasm/` (`basedpl-wasm`) | Browser bindings. |
49
+ | `xtask/` | Browser package build tooling. |
50
+
51
+ The default workspace members are core, CLI and Python; wasm/xtask build only when requested. Frontends use the core's public API. Core/CLI Rust tests live in `tests/` and `cli/tests/`. Libraries set `test = false` to avoid separate `cfg(test)` builds. PyO3 is in its own crate, not an optional core feature. The core uses `serde_json` for the process protocol and data functions.
52
+
53
+ Rust 1.98 or later supplies algebraic float operations. `test` inherits `release`: opt-level 2, incremental compilation, LTO off, no debug information, overflow checks or debug assertions. `.cargo/config.toml` explicitly enables LLVM's SLP vectorizer and targets x86-64-v3 on x86. Target-specific rustflags repeat the SLP setting because they replace build-wide flags. `dist` disables incremental compilation, enables within-crate LTO and strips symbols. Keep these settings aligned with rustymath's.
54
+
55
+ `fastws`'s `cargo develop` builds profile `test`, installs the extension and stages `bpl` into the venv. `py/` enables PyO3's `extension-module` and supplies its link arguments without libpython. Editable installs use `fastws.build_backend`; they install metadata and a path to `python/` without compiling Rust. After a standalone `uv sync` or editable pip install, run `cargo develop`. `ws-sync` performs that rebuild after syncing. Wheels use maturin for the extension and `cargo stage` for the Python-free CLI. Linux staging runs inside the manylinux container.
56
+
57
+ Use published dependency ranges with the lower bounds required by the APIs in use. `Cargo.toml` names a published rustymath range; the `~/aai-ws` Cargo patch selects the sibling checkout locally. CI resolves published crates. Release rustymath changes before relying on them in basedpl CI. Don't edit fastws-generated Cargo patches, `.git/fastws-cargo-key` or workspace configuration, and don't commit the workspace-generated `Cargo.lock`. `meta/` is ignored planning material, not contributor documentation. `[tool.uv] cache-keys` tracks packaging manifests, not Rust sources.
58
+
59
+ `Test` runs native and wasm jobs on pushes to main and pull requests. Native CI runs `cargo test`, editable installation, `cargo develop`, pytest, `bpl-nb` and `nbdev-test`. Python tests use the same test-profile build. The wasm job builds with `cargo wasm --strip` and runs both Node suites. Both jobs use `ubicloud-standard-4`; speed budgets are set for that runner. They generate a lockfile before restoring `Swatinem/rust-cache`, making dependency changes part of the cache key. `Speed` is manually triggered and restores those caches.
60
+
61
+ `Release` runs separately on `v*` tags on GitHub's runners. It builds dist wheels, sdist, standalone CLI artifacts and the Windows keyboard archive, then publishes Python artifacts and the GitHub release. Its npm job publishes the stripped browser package through trusted publishing and purges jsDelivr's package files to avoid stale unversioned URLs. Release neither runs tests nor waits for the Test workflow.
62
+
63
+ ### Codegen and rebuilds
64
+
65
+ LTO-off incremental builds keep an edit from recompiling every caller that inlined it. Debug line tables increase rebuild work when lines move. Related source is split into child modules to limit those shifts. Children use `use super::*` and expose items to parents/siblings with `pub(super)`; parents own public re-exports.
66
+
67
+ Generic loop instances can concentrate in the defining module's codegen unit. Mark loop helpers `#[inline]` when their instances need to compile with the caller's kernel table, including nested helpers. Kernel tables have separate modules: `booleans`, `wholes`, `float_arithmetic`, `float_kernels` and `complex_kernels`. `at_widths!` gives the concrete widths their own modules. Keep new tables separate and add kernel specializations only for measured gains.
68
+
69
+ Use `cargo build --lib --bins --profile test --timings` to inspect the normal build. Its report under `target/cargo-timings/` separates frontend and codegen time. `BASEDPL_UNITS=1 cargo test --test units -- --nocapture` lists large units and their functions. `BASEDPL_SIZES=pattern cargo test --test units -- --nocapture` measures machine code matching a demangled-name regex. These commands diagnose the current compilation arrangement; don't create scratch builds to approximate it.
70
+
71
+ ## Code map
72
+
73
+ | Files | Responsibility |
74
+ |---|---|
75
+ | `syntax.rs`, `eval/binder.rs` | Structural parse, runtime category binding, trains, dot access and subscripts. |
76
+ | `eval.rs`, `eval/session.rs`, `eval/operators.rs`, `eval/assign.rs` | Shared calls, sessions/modules, operators, scopes and assignments. |
77
+ | `execution.rs`, `error.rs` | Cancellation, deadlines, input/output and retained diagnostics. |
78
+ | `array.rs`, `array/storage.rs`, `array/text.rs` | Values, layouts, compact/mixed storage, gathering and source formatting. |
79
+ | `agreement.rs`, `keyed.rs`, `selection.rs` | Broadcasting, named/keyed alignment and selection/writeback. |
80
+ | `primitive.rs`, `primitive/` | Primitive metadata, ranks/axes, inverses and array operations. |
81
+ | `number.rs`, `element.rs`, `pervasive.rs`, `fusion.rs` | Numeric domains, item operations, compact kernels and pending chains. |
82
+ | `search.rs`, `number_theory.rs`, `polynomial.rs`, `distribution.rs` | Array-level adapters to rustymath. |
83
+ | `system.rs`, `data.rs` | System-function metadata, native functions, options and import rules. |
84
+ | `csv.rs`, `json.rs`, `xml.rs`, `image.rs`, `plot.rs`, `canvas.rs`, `display.rs` | Formats, rich values and rendering. |
85
+ | `protocol.rs`, `reference.rs`, `timing.rs` | Process encoding, semantic checks and measurements. |
86
+ | `host.rs`, `host_web.rs`, `js.rs` | Platform services and JavaScript values/functions. |
87
+ | `symbols.rs`, `inspection.rs` | Shared names, shortcuts, syntax/help metadata and inspection. |
88
+ | `cli/src/`, `py/src/lib.rs`, `wasm/src/lib.rs` | Frontend boundaries. |
89
+
90
+ User-facing language rules belong in `nbs/syntax.qmd`, `evaluation.qmd`, `numbers.qmd`, `arrays.qmd`, `terms.qmd` and the glyph/system pages. Define terms in `terms.qmd` before using them. The sections below record contributor contracts and ownership rather than duplicating the language reference.
91
+
92
+ ## Parser, evaluator and scopes
93
+
94
+ The lexer/parser records byte spans and structural syntax without evaluating expressions. `parse_at` distinguishes complete input, incomplete input and errors at a given float width. Public `parse` uses f64; `Session::parse` uses the session width. `syntax_tree` supplies source tools with structural nodes and recovers invalid chunks as `Error` nodes. `highlight` shares the lexer.
95
+
96
+ The binder resolves runtime categories right to left. It owns unfinished strands, trains and bound arguments; shared function nodes are immutable. Grammatical reduction produces application requests instead of calling functions. Primitive/operator rows own names, operand kinds, ranks, pervasion, axis behaviour and reduction identities. Change those rows instead of duplicating metadata in consumers. A non-extending primitive above its natural ranks runs through Rank; pervasive Each/Outer/Rank paths reuse whole-array kernels.
97
+
98
+ Dot names rewrite to Pick, and dot brackets/subscripts to selection. Dot parentheses evaluate a namespace: `T.(expr)` and `T⍎text` use the keyed entries of `T` as locals, resolve other names in the caller and keep assignments local. They share the scoped execution route and lexical lifetime checks. Between functions, dot remains inner product.
99
+
100
+ Lexical frames use non-owning parent indices. Closures see live bindings, not snapshots. Plain assignment is local; modified/selective assignment updates the nearest existing binding. Retain the resolved owner and original array across modifier calls rather than looking the name up again. Returns and outer writes reject functions, including those nested in arrays/prototypes, whose frames would not survive. Tail calls retain dependencies from arguments and the called function. No collector is used; recheck this lifetime reasoning before permitting escaping lexical captures.
101
+
102
+ Module 0 owns session names. Each `•load` runs in a new module, without the caller's frame and with echo off, and returns its non-private names alphabetically. Modules remain for the session's lifetime. Recursive loading of a canonical path is a DOMAIN error. Paths starting `./` or `../` resolve against the source file; other paths use the working directory. Execute/load do not run the top-level preference header.
103
+
104
+ Dfns run statements in order and return the last statement's value. Final assignments are silent. An absent left argument propagates through the binder's absent-binding rules; default-left assignment runs only when needed. Guard handlers see bindings as they stood at failure; nothing rolls back. Wildcard `∞::` excludes interrupt, timeout and unsupported errors. Explicit named guards can catch them; catching an interrupt clears its flag.
105
+
106
+ Tail calls reuse frames while preserving lexical dependencies. Handlers disable tail reuse. Native call depth is capped at 20,000; the browser cap is 380. A separate 20,000-frame limit bounds retained lexical frames. Late-bound name resolution stops at 128 levels. These are execution limits, not a sandbox against arbitrarily deep source, arrays or function graphs.
107
+
108
+ ## Values, layouts and assignment
109
+
110
+ `Value` holds a number, character, function, operator or shared array. Compact storage holds Booleans, narrow integers, width-specific floats/complex numbers or characters. Mixed storage holds `Value`s and memoizes its prototype and innermost lexical dependency. Other properties are computed when needed. A layout and its shared `Arc<Storage>` can be copied separately; changing axes need not copy items. `Buffer`, `Value::buffer` and `from_buffer` are the public width-preserving frontend boundary.
111
+
112
+ Atoms, rank-0 arrays and singleton vectors are distinct. Function nodes retain handles, not lexical frames or Python objects. Functions match by their parts; dfns and generators match by identity. Operators can be values and can cross the native Python boundary. Values and function nodes are `Send + Sync`.
113
+
114
+ Numeric storage fills with zero and characters with blank. Mixed nonempty arrays derive their prototype from their first item on demand; empty arrays require one explicitly. Builders accept a value or a lazy prototype function and evaluate the function only for an empty result. Preserve function handles inside prototypes.
115
+
116
+ `Layout` owns dimensions, position keys, axis names and optional renderer metadata. Agreement unites keys and broadcasts through index maps. Missing positions read each source's prototype. Agreement pairs equal axis names first. It pairs remaining axes positionally unless both have different names. Result assembly drops colliding axis names; public name attachment rejects duplicates. Contracted axes require equal key sets and retain the first order. Nonempty key lists with no named positions become unkeyed; empty record keys survive.
117
+
118
+ `Gather` owns copying and widening. `Steps` describes strides, ranges/fills, rotations and offset tables. Structural operations should use `remap`/gathering rather than reconstructing `Value`s per item. Equal-shape cells copy in blocks. `Items` reads counts, positions and axes from compact storage without boxing every item. Shape, tally, positions and predicates have dedicated integer/Boolean builders.
119
+
120
+ Selective assignment and structural Under share label-based target discovery. Function-Under applies its selector to both arguments independently before calling its operand; labels then identify writeback into the right argument. Positions-Under passes the left argument whole. Keep those contracts distinct. Keyed values align to selected keys, and nested paths retain empty-cell structure.
121
+
122
+ Selective assignment removes the binding before writing. `Arc::make_mut` copies only when another holder needs the old array. Repeated targets must read values written by earlier occurrences. Pervasive modifiers group repeated targets into rounds or a suitable column scan; they do not apply all targets to the original values. Append updates use `Value::append` when layouts permit it; rank/key/name changes fall back to ordinary catenation. Modified destructuring calls modifiers left to right; ordinary destructuring assigns right to left. An assignment's RHS runs once.
123
+
124
+ Rank/Each/Outer assemble cells through shared layout/prototype rules. A 0-cell preserves an atom or encloses an array item. For custom operands, empty Each/Outer/Rank calls substitute prototypes for empty arguments and use prototype mode. Explicit effects remain observable when a call runs. Catchable prototype-call failures produce prototype zero, but interrupt, timeout and unsupported errors propagate. Restore prototype mode on success and error.
125
+
126
+ Axis nodes select/move axes and reuse Rank when the function has no direct axis meaning. Vector-axis reduction uses the general composed-ravel rule, preserving axis order and the whole seed. Single-axis reductions retain direct kernels. Layout-only changes share storage. Structural results retain renderers where their rank permits; scans and in-place changes copy complete layouts. Match ignores renderers.
127
+
128
+ Inverse nodes propagate fixed-argument sides through composition. Candidate-building primitive inverses validate by applying the primitive again. Inverse scans share forward scan's seed/axis validation. Agenda calls its selector once, then passes the original arguments to the selected branch. Computed operands for Rank, Axis, Stencil and Agenda use shared operand evaluation. Python constructs these nodes directly, not by generating source.
129
+
130
+ ## Numbers and backend ownership
131
+
132
+ `number.rs` owns scalar kinds, promotion and exactness. Integers and BigRational share an exact domain. Overflowing scalar integer arithmetic widens to exact rationals; integral rational results narrow back when possible. Booleans are a distinct kind. Arithmetic reads them as 0/1; logical operations preserve them. Match/search/grade compare their numeric value, while reference checks also distinguish representation and exactness.
133
+
134
+ Joining compact arrays widens Boolean -> integer -> float -> complex, and float widths join at the wider width. Item-by-item construction preserves exact/approximate kinds and stays mixed when needed; only approximate real/complex items widen together. Rearranging or updating mixed storage never scans it for compaction. Fresh computations choose storage from their result path. Keep this distinction between whole-array joining and element assembly.
135
+
136
+ Bare numbers, empty literals and NaN use the parsed float width. Top-level `evaluate_code` first validates the whole syntax, runs leading literal-record `•prefs` statements, then parses the remainder at the new width. A syntax error prevents header execution. The default width also applies to imported numbers, random data and float results from exact operands. Time/date/metadata values use f64. Formatting marks non-default widths; serialization marks every float for width-independent readback.
137
+
138
+ Float operations compute at the wider operand width. Exact operands round to that width first. f16 whole operations run on f32 copies through `pervasive::halves`, rounding exact inputs to f16 before widening and rounding float outputs back. The scalar `Number` path rounds each f16 step. Complex parts have f32/f64 widths; f16 becoming complex uses f32 parts. Scalar Complex32 arithmetic computes at Complex64 and rounds, while kernels can compute at f32. These paths need not agree in their last bits.
139
+
140
+ Floats use IEEE NaN, infinity and signed zero. Comparison treats NaN as unequal; match/search treat it as one value, and grade puts it last. Exact arithmetic involving division by zero can produce those float values. Floor/ceiling retain an exact operand beside infinity and give NaN beside NaN. Monadic floor/ceiling/sign turn whole finite results into exact integers, including big integers; nonfinite results remain floats. Use `Number::float(value, width)` and explicit-width array construction outside `number.rs` instead of implicit f64 conversion.
141
+
142
+ Only f64 comparisons use the session tolerance, from 0 to `1E-14`. f32/f16 compare exactly except fixed-point convergence, which uses four ulps; f64 convergence uses `1E-14` independently of the preference. Index/count/Boolean/character-offset conversion uses `near_integer` with the fixed default tolerance, not the comparison preference. The tolerant types and objects come from rustymath. Keep independent inside/outside-tolerance tests with exact/mixed controls; don't use language comparison as its own oracle.
143
+
144
+ `search.rs` selects compact exact or tolerant backends. Exact integer/Boolean/character storage uses keys; float searches use their width. Integer haystacks accept the whole-number shortcut only for exactly whole float needles. Tolerant indexing validates whole-key matches unless the haystack is exactly whole and falls back to buckets on mismatch. Classification intentionally chains tolerance through sorted runs, so it need not match every member to one representative. Other cells use exact hashes or first-number buckets with `Value::matches` confirmation, falling back to pairwise comparison where indexing is unsuitable. Grade is stable. Position buffers use u32 and become integer storage without another pass.
145
+
146
+ `Domain` and `with_field!` select working reals, Complex64 or BigRational for generic numeric algorithms. Compact storage selects the domain without scanning its items. `number::read` converts once; `Field::array` builds compact float/complex results without a `Number` per item. Each caller lists the domains it supports. Compact complex input does not take a real path merely because all imaginary parts are zero; results built through `Value::complex` can normalize to float storage.
147
+
148
+ Rustymath owns the mathematical algorithms. Basedpl owns pervasion, storage, numeric promotion, axes and language policy. Approximate matrix solve/pseudoinverse and decomposition use native rustymath factorizations. Exact solve/pseudoinverse/determinant use rational field algorithms. Generic permanent and polynomial helpers also run at floating/complex field types. Singular/wide matrix division gives least-norm solutions. LU eligibility and SVD cutoffs are rustymath policy, not duplicated here.
149
+
150
+ `•decompose`/`•decompose⁻¹` share domain reading and `Factor` dispatch, with options for kind, vectors and complete QR. Polynomial adapters choose compact evaluation or generic field operations; gradients differentiate coefficients before evaluating. Number-theory adapters supply cancellation checks and assemble result cells. Distribution constructors expose native density/CDF/quantile/sample functions. Compact continuous calls use slice objects. Discrete samples and finite discrete quantiles are exact integers.
151
+
152
+ `•rand seed` exposes roll/deal over a shared Xoshiro256PlusPlus stream behind a mutex. Its algorithm is fixed, but range/distribution sampler changes can change draws; the reference sequence detects that. Plain `¿` uses the thread-local generator. Sampling from a generator record uses its roll function to recover the same stream.
153
+
154
+ ## Kernels, fusion and threading
155
+
156
+ A dispatch selects a primitive before its loop. Concrete `Kernels` tables call rustymath objects: `many` for slices and `one`/`checked` for scalar Numbers. `at_widths!` writes f32/f64 tables once. Arithmetic, circle-code conventions and scalar policy remain in the numeric modules rather than a second evaluator.
157
+
158
+ Cheap mixed kernels in `Mixed` convert as they read through `Source`. Other kernels use `Chunked`/`Side` to convert reusable chunks before calling one homogeneous implementation. Direct conversion loops are worthwhile for cheap arithmetic; sharing expensive kernels avoids a storage-type cross-product of machine code. Compile only operand pairings that can occur. Same-type arguments can reach rustymath in one call; other shapes expand reused chunks or use block mappings to avoid per-item division.
159
+
160
+ Custom elementwise closures use `rustymath::pairs` and its uninitialized append path. Function objects use their own slice forms. Keep per-item bodies inlinable across codegen units; passing a closure by reference can introduce an uninlined `Fn` shim. Pass it by value, or wrap an existing reference in a new closure. Hot loops use slices and fixed chunks rather than iterator helpers that introduce calls in the incremental build. Avoid captured mutable flags that live in memory and block vectorization.
161
+
162
+ A failed compact kernel leaves placeholder results and triggers a wider/exact/complex or scalar path for the whole call. Complex fallback is shared with `Number` policy. Overflow detection belongs to rustymath's `Overflowing`, checked reductions and checked products. Cheap integer multiplication uses bounds to select an exact width without a per-item overflow check. Add no blanket NaN/signed-zero canonicalization pass; algorithm-specific failure checks and rustymath's SIMD kernels remain part of their algorithms.
163
+
164
+ `fusion.rs` holds pending chains of eligible shape-preserving float calls. The binder extends a chain until it must read the value, including across nested/bound calls. Chains run block by block through the same pervasive kernels. Short chains run unfused unless a supported reduction consumes them directly. The module doc owns eligibility rules; don't copy its thresholds here. Fused and ordinary folds share rustymath's `reduce::along`/`fold_into` traversal.
165
+
166
+ Folds by algebraic float operations can regroup. Contiguous subtraction/division folds use `Alternating`; quotients fall back to item-by-item folding if their products leave the normal range. Boolean scans compose truth-table maps; comparison scans compute both possible totals in bulk and use `reduce::chosen`. Seeds, axis lanes and scalar fallback preserve the language's accumulation direction. Generic reductions stay right-associated and preserve operand call order/effects. Monadic `f.g` is the exception: it memoizes each minor's expansion, and a cached minor does not repeat operand calls or their effects. Determinant/permanent fast paths use the appropriate rustymath backend.
167
+
168
+ The automatic Rayon scheduler currently serves rustymath elementwise `many` and `pairs`, not general matrix products, factorizations or reduction loops. It adapts to call cost, uses `RAYON_NUM_THREADS` by default and accepts current-thread overrides through `parallel::set_threads` (0 default, 1 serial). Nested Rayon work does not split again; wasm is serial. Small converted chunks and fusion's serial outer traversal limit the work available to it. Don't infer multicore execution from a large array alone.
169
+
170
+ Packed numeric, Boolean and equality-count inner products use `rustymath::linalg`. Integer calls use `Inner::checked` before relying on an exact compact result. Structural gather/compress and interval index also reuse rustymath. Measure generic/backend changes in both projects; callers' codegen and layout determine costs that isolated kernels miss.
171
+
172
+ ## Evaluation and frontend boundaries
173
+
174
+ `eval_with`/`call_with` install `EvalOptions`. Echo defaults to true; disabling it suppresses implicit display, not explicit output or display commands. Output is ordered `Output { kind, data }` MIME bundles. An optional sink receives events as produced; otherwise the evaluation retains them. Values, functions, operators, outputs and errors remain separate results.
175
+
176
+ `Context` carries source and session. Checks at interpreter boundaries and long loops count down before reading clocks/flags or calling the poll hook. Individual BigInt operations and bounded native kernels are not preempted. Native functions receive `&Context`; evaluator functions use `&mut Context`. An optional `Input` supplies `⎕` and `•nget "-"`; without one they raise IO. Python uses cooperative cancellation. The process worker can kill an unresponsive process after a grace period, losing its state; requests are never replayed.
177
+
178
+ `Session::call` resolves and calls a function expression on existing arrays without temporary argument bindings. Retained functions use `call_function_with`. Error objects retain source and byte spans, with Unicode-width display diagnostics. Python translates spans to character offsets; process JSON keeps bytes. Native function/operator handles cross the in-process Python boundary, not process JSON.
179
+
180
+ ### Python
181
+
182
+ `python/basedpl/__init__.py` owns the shared `bpl` workspace and `Array`/result/error wrappers. `fn` aliases `bpl.fn`; builtins and magics share that workspace. Plain calls print explicit output and return Array, Function or Operator values. Capturing calls return `Result`. Capture mode is positional-only because keywords bind BPL names. `_Session.eval` and `.call` are the PyO3 entry points; `request` is their internal Rust helper.
183
+
184
+ `functions.py` constructs native nodes and lazy exports from Rust metadata. Builtins win name collisions with workspace names; operation names choose valence/currying. `__all__` omits Python-builtin collisions but leaves explicit imports available. Function calls with keywords use a keyed left argument. A single positional argument stays the right argument unchanged; zero or multiple positional arguments form a vector. Operator properties and `_Pending` assemble native nodes, never generated BPL source. `printing.py` reads node parts without evaluating or resolving names.
185
+
186
+ `.fn()` retains a late-bound expression. Calls resolve affected nodes against the calling session while sharing unaffected graph nodes. This preserves primitive fast paths, inverses and reduction identities. The binder still resolves ordinary names during execution. Cyclic resolution is a LIMIT error.
187
+
188
+ Arrays retain native values. `.py` and `.np` make copies; NumPy is optional and lazy. Integer/float/complex buffers preserve supported widths, except signed bytes import as int16 and wider unsigned integers as int64; uint64 above int64 raises ValueError. Boolean/f16/complex buffers use byte/bit/part views for transfer. Exact integers/fractions cross through native integers, not decimal strings. String/object arrays convert per item. Lists follow the shared import rule and dictionaries stay mixed. `syntax.py` wraps the native syntax tree with character spans and span-editing helpers.
189
+
190
+ Each `_Session` request waits for its evaluator mutex without the GIL, then evaluates on the caller's thread with the GIL released. A separate interrupt handle supports interruption from another thread. Signal polling briefly takes the GIL. Python input and optional streaming-output callbacks also cross at explicit boundary adapters. No Python numeric objects enter core values; arrays can be dropped on any thread without an unsafe Send implementation.
191
+
192
+ ### Process, CLI and notebooks
193
+
194
+ `protocol.rs` owns JSON request/value/error/output encoding. Requests are objects with fields such as code, call, args and bindings. Exact integers use arbitrary-precision JSON numbers; fractions and complex values have tags. Output bytes use base64. The worker omits eligible keyed entries holding functions/operators and returns `value: null` for other non-exportable values, retaining display output. JSON data serialization is a separate contract and can reject such values.
195
+
196
+ `cli/src/worker.rs` processes JSON lines in order. A separate reader handles interrupt controls but never evaluates BPL. IDs are optional, and bad requests don't end the session. `python/basedpl/worker.py` owns process lifetime, deadlines and hard-kill fallback. Protocol serialization walks native values directly rather than building an intermediate JSON value tree for every reply.
197
+
198
+ CLI `-e`, files and REPL stream outputs to stdout. Failed writes interrupt execution; a closed pipe exits successfully. `-e`, files and interactive input provide `StandardInput`; program text read from stdin does not. The REPL parses for completeness without evaluating twice. Rustyline owns terminal editing/history/modes; only typed backtick sequences auto-expand. Paste/history/navigation cancel automatic expansion. Shared symbol metadata supplies completion/highlighting. Keep pseudo-terminal tests for Ctrl-C/Ctrl-D and paste behaviour.
199
+
200
+ The Jupyter adapter in `cli/src/kernel.rs` uses kernmini and a `ThreadWorker`. It keeps transport/interrupts responsive, maps explicit output to streams and implicit output to results, and routes notebook input through `input_request`. The wheel and local install use the same kernelspec. `inspection.rs` embeds the glyph/system pages for help and uses the same names as the REPL and Python. Change names and shortcuts in `symbols.rs`/shared layout data, not each frontend.
201
+
202
+ ### Browser
203
+
204
+ `cargo wasm` builds an incremental release-profile npm package with wasm-bindgen glue, language/input assets, grammar and canvas support. `--out DIR` leaves the docs' local playground assets alone; `--strip` removes function-name metadata for distribution. Keep wasm-bindgen glue and crate versions aligned through the workspace lock. Avoid fat LTO here because rebuild cost and enlarged stack frames conflict with browser development and recursion limits.
205
+
206
+ Browser `Session.run` streams MIME events and returns a protocol error or null. `eval` transfers values through `js.rs` but discards output and cannot export BPL functions/operators; `bind` imports page values/functions. Typed arrays transfer without another page-worker copy. JavaScript functions live in a thread-local registry and core function nodes hold slots, preserving Send/Sync values. `host_web.rs` implements the browser's clock, synchronous I/O/fetch and RegExp behaviour. File/URL reads resolve against the configured base. Unsupported native filesystem/locale operations stay unavailable; browser `•nput` writes only stdout and `•js` is browser-only.
207
+
208
+ The playground and gallery load released assets from jsDelivr, or local `nbs/playground/` assets on localhost. Shared `bpl.js` owns editors, worker startup and output. Restarting a trapped/stopped worker loses its state. `worker.js`, `page.js` and `gallery.js` own their respective protocols/UI; `nbs/driver.js` documents canvas drawing data. Gallery demos are `.bpl` sources with shared preferences, checked natively by `language_examples`. Browser recursion tests cover both V8 compilers and fail with LIMIT before stack exhaustion.
209
+
210
+ ## System functions and rendering
211
+
212
+ `system.rs` owns case-insensitive system names, valence, item mapping and result prototypes. Native records use ordinary function nodes and calls. Empty native item mapping returns its declared prototype without calling the function. `data::Options` is the shared keyed-option decoder; formats don't invent separate option parsers.
213
+
214
+ CSV columns, JSON arrays and Python lists share `data::imported`: a non-fill finite float or any nonfinite float triggers float promotion when every number converts losslessly. Finite fills alone do not trigger it. Otherwise items keep their kinds. JSON objects/dictionaries stay mixed. Binary data uses exact bytes. Writes validate before opening and create exclusively unless overwrite is explicit. CSV/JSON/XML exports use `•csv⁻¹`, `•json⁻¹` and `•xml⁻¹`.
215
+
216
+ `regex.rs` shares host regex state between match/replace native functions; hosts retain their own regex syntax. `xml.rs` represents keyed element trees and distinguishes XML escaping/validation from HTML raw script/style and void-element rules. SVG uses its own renderer. `image.rs` owns pixels, PNG/JPEG and APNG animations. Native/browser renderers use the MIME/byte formats their frontends support. `plot.rs` stores specs and draws SVG on demand; the renderer owns defaults/validation. Rendering options belong in their user pages and implementation comments.
217
+
218
+ `display.rs` owns plain/boxed/function display, elision and MIME rendering. Display settings affect implicit presentation, not returned values or `⍕`; explicit output prints all items. `•mime` calls a renderer with echo disabled and cancellation active. Failed implicit rendering falls back to text; interrupts/timeouts propagate. `canvas.rs` serializes drawing data and typed bytes; `canvas.js` and `nbs/driver.js` own browser playback. Keep formatting, serialization and rich output as separate contracts.
219
+
220
+ ## Tests and reference data
221
+
222
+ `tests/core.rs` checks public storage/layout/API behaviour, ownership, parser diagnostics and recovery. Use `equiv_in!` for session workflows and `fails_in` for errors; expected expressions run in fresh sessions. Keep constructors for representation/prototype/buffer checks. Self-contained language cases belong in `tests/reference/core.bpl`. `cli/tests/cli.rs` and Python's pseudo-terminal tests exercise the installed process/editor boundary.
223
+
224
+ `reference.rs` serves Rust tests and worker requests. Every reference case uses a fresh session; documentation examples share a session within each BPL code block. `.bpl` files define active coverage. Captured foreign expectations have no exactness; local expectations compare exactness and structural values independently. Pending gaps belong in inventory JSONL, not passing error tests. See `tests/reference/README.md` for format and review/activation workflow. `python/basedpl/reference.py`, `bpltests.py` and `scripts/reference.py` own import, capture, inventory and worker checks. `lib/*.bpl` are readable dfn examples; modules import other library files with private relative names.
225
+
226
+ `tests/scaling.rs` measures time/allocation growth and result-size allocation budgets. `tests/speed.rs` reads native/browser budgets from `speed.txt` through `timing.rs`; the worker and Python measurement tools reuse it. `tests/units.rs` reads existing incremental object files and checks unit size without building. Python tests cover conversion/cancellation/frontend behaviour, not a second Rust semantic suite. Combine related checks into readable tests.
227
+
228
+ ## Documentation and generated assets
229
+
230
+ `nbs/index.ipynb` generates the homepage and README. Reference pages in `nbs/glyphs/` and `nbs/system/` describe forms/options/errors; concept pages explain them. `sidebar.yml` owns navigation. Edit source notebooks/pages, not generated outputs. `magics.ipynb` and `dyalog.ipynb` export Python modules; other Python modules are hand-written. Cargo owns versions.
231
+
232
+ ```bash
233
+ bpl-nb
234
+ bpl-nb nbs/index.ipynb --save
235
+ nbdev-readme
236
+ nbdev-test --save
237
+ nbdev-test nbs/dyalog.ipynb --flags dyalog
238
+ nbdev-preview
239
+ ```
240
+
241
+ Quarto renders saved outputs. `bpl-nb --save` updates notebook outputs without changing execution counts. Use it for BPL examples/figures and `nbdev-test` for Python notebook code. Rust `language_examples` checks BPL page/gallery examples; pytest checks Python page examples. Use `BASEDPL_PAGE` to focus page checks. Don't run a full documentation build for routine output updates. Release preparation runs `scripts/prep.py` after `cargo develop`; it calls editor generation and nbdev's export/test/clean/README preparation.
242
+
243
+ `basedpl.editors.write()` generates syntax grammars/highlighters, editor templates, keyboard sources/bundles and glyph metadata from shared Rust symbols and keyboard data. It also writes JetBrains assets and Windows `editors/windows/layout.h`. `layout.json` owns composed input; captured `keyboards.json` supports generation without macOS. `basedpl.keyboards.capture()` refreshes native data when needed, and `keyboards.write()` generates regional macOS bundles/maps. Regenerate keyboard sources through these functions, not one-off kernel code. See `editors/jetbrains/README.md`, `editors/windows/README.md` and `scripts/install-macos.sh` for target-specific work. Rebuild the common icon only when its design changes.
244
+
245
+ `nbs/bpl.xml`, the APL/BQN grammars and vim rules share generated glyph classes. TextMate exports feed Monaco/Shiki. `fonts.css` owns the BPL/APL font choices; rerun affected magics after changing them. `tests/highlighting.mjs`, `input.mjs`, keylayout/Windows tests and glyph-page checks cover their respective generated interfaces. All artifact generation belongs in repository functions/scripts, not ad hoc kernel transformations.
246
+
247
+ ## Release
248
+
249
+ Before approval, verify successful tests for the release commit and the relevant installed artifacts. Reserve isolated wheel installs for packaging-sensitive work or release preparation, using a small relevant subset of existing tests. `ship-rs-build --profile dist` builds the distributed configuration; bare `ship-rs-build` uses release for local checks.
250
+
251
+ Confirm the clean tree and `[workspace.package].version`, then run `ship-release` without flags. Python gets that version through `dynamic = ["version"]`. Fastship pushes/tags the current version, leaves publication to the Release workflow and bumps Cargo without rebuilding. There is no changelog step. Never commit, push, tag or publish without approval.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: basedpl
3
- Version: 0.1.44
3
+ Version: 0.1.45
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Requires-Dist: fastcore
@@ -29,7 +29,7 @@ Where many least-squares solutions exist, as for a singular or wide matrix, `⌹
29
29
  ⌹[1 2⋄2 4] ⍝ [0.04 0.08⋄0.08 0.16]
30
30
  ```
31
31
 
32
- Exact arguments stay exact, through row reduction. Approximate real and complex arguments take LU with partial pivoting where a square matrix isn't singular. Other matrices take the SVD.
32
+ Exact arguments stay exact, through row reduction. Approximate real and complex arguments take LU with partial pivoting where a square matrix isn't singular. Other matrices take the SVD. The LU result applies no cutoff: `⌹[1 1e8⋄0 1]` gives the exact inverse `[1 ¯1e8⋄0 1]`, though the SVD's cutoff would count its smaller singular value as zero.
33
33
 
34
34
  ## Inverse
35
35
 
@@ -9,6 +9,8 @@
9
9
 
10
10
  Singleton contraction axes extend. Empty contractions use the reduction identity. `g⊗` is [outer product](outer-product.qmd).
11
11
 
12
+ On complex numbers, `+.×` forms three real products of the parts rather than four and takes about a quarter less time. Its real parts are as accurate as with four products. Across the whole result, its error is about 4 units of roundoff, against about 2.5 with four. An imaginary part's error scales with the size of the whole product. An imaginary part a millionth the size of its real part keeps about 10 of a 64-bit float's 16 digits and about 1 of a 32-bit float's 7.
13
+
12
14
  `f.g Y`, with no left argument, expands the matrix `Y` by minors along its first column, as J's `u .v` does. `-.×` gives the determinant, and `+.×` the permanent.
13
15
 
14
16
  ```bpl
@@ -245,6 +245,7 @@ def check_page(
245
245
 
246
246
  _SPEED = Path(__file__).parents[2]/'tests'/'speed.txt'
247
247
  _PKG = _SPEED.with_name('wasm-pkg.mjs')
248
+ _LOCK_JS = _SPEED.with_name('timing-lock.mjs')
248
249
 
249
250
  class Costs(list):
250
251
  "Each case's cost, as `(code, picoseconds per item, copies)` rows. Copies is `None` where one copy of the data is too quick to time."
@@ -254,12 +255,13 @@ def time_cases(
254
255
  cases, # A BPL expression to time, or a list of them
255
256
  setup=None, # BPL that defines the data and its number of items `n`; None: the first `[setup]` section of `tests/speed.txt`
256
257
  prefs='', # BPL that runs before `setup`, such as `•prefs ["float":32]`
258
+ threads=1, # Threads that each case's rustymath calls split across, for a scaling check; 0: rustymath's default
257
259
  timeout=None # Seconds before the worker is closed
258
260
  ):
259
261
  "Time `cases` in a fresh worker, as `tests/speed.rs` does: the fastest of five runs, per item and in copies of the data."
260
262
  speed = _SPEED.read_text() if setup is None else f'[setup]\n{setup}'
261
263
  cases = [cases] if isinstance(cases, str) else list(cases)
262
- with Worker() as w: r = w.request(dict(timing=dict(speed=speed, prefs=prefs, cases=cases)), timeout)
264
+ with Worker() as w: r = w.request(dict(timing=dict(speed=speed, prefs=prefs, cases=cases, threads=threads)), timeout)
263
265
  if e := r['error']: raise BplError(e, r['output']) if 'display' in e else ValueError(e['message'])
264
266
  return Costs((c['code'], c['seconds']*1e12/r['n'], c['copies']) for c in r['costs'])
265
267
 
@@ -272,26 +274,21 @@ class SpeedCosts(list):
272
274
  rows = ((s, c, cost, '-' if b is None else f'{b:g}', 'over' if b is not None and cost > b else '') for s, c, cost, b in self)
273
275
  return '\n'.join(f'{cost:>9.2f} {b:>9} {over:4} {s} {c}' for s, c, cost, b, over in rows)
274
276
 
275
- # The file whose lock keeps timings apart from builds and `pytest` on this machine, as DEV.md describes. Timings take it
276
- # exclusively. Builds and `pytest` take it shared. The native timings take it in Rust, in `basedpl::timing`.
277
+ # The file whose lock keeps timings apart from builds and `pytest` on this machine, as DEV.md describes. Native timings take it
278
+ # exclusively in Rust, in `basedpl::timing`, and wasm timings through `tests/timing-lock.mjs`. Builds and `pytest` take it shared.
277
279
  _TIMING_LOCK = '/tmp/aai-ws-timing.lock'
278
280
 
279
281
  @contextmanager
280
- def timing_lock(
281
- shared=False # Hold it shared, as builds and `pytest` do, rather than exclusively, as timings do?
282
- ):
283
- "Hold the timing lock, waiting up to 5 minutes for it. An exclusive hold then raises `TimeoutError`. A shared hold goes ahead without it."
282
+ def timing_lock():
283
+ "Hold the timing lock shared, as `pytest` does, waiting up to 5 minutes while a timing holds it, then going ahead without it. Never hold the timing lock in the shared kernel process. A timing started from the kernel would wait on that hold for up to 5 minutes. All that time, every agent's kernel calls wait too."
284
284
  with open(_TIMING_LOCK, 'a') as f:
285
- deadline, waiting = time.monotonic() + 300, False
286
- while True:
285
+ start, waiting = time.monotonic(), False
286
+ while time.monotonic() - start < 300:
287
287
  try:
288
- fcntl.flock(f, (fcntl.LOCK_SH if shared else fcntl.LOCK_EX) | fcntl.LOCK_NB)
288
+ fcntl.flock(f, fcntl.LOCK_SH | fcntl.LOCK_NB)
289
289
  break
290
290
  except BlockingIOError:
291
- if time.monotonic() > deadline:
292
- if shared: break
293
- raise TimeoutError(f'a build or another timing has held {_TIMING_LOCK} for 5 minutes')
294
- if not waiting: print(f'waiting for {"a timing" if shared else "a build or another timing"} to release {_TIMING_LOCK}', file=sys.stderr)
291
+ if not waiting: print(f'waiting for a timing to release {_TIMING_LOCK}', file=sys.stderr)
295
292
  waiting = True
296
293
  time.sleep(0.25)
297
294
  yield
@@ -309,11 +306,13 @@ def speed_costs(
309
306
  if e := r['error']: raise ValueError(e['message'])
310
307
  rows = r['costs']
311
308
  else:
312
- script = f'import {{ costs }} from {json.dumps(_PKG.as_uri())}; import {{ readFileSync }} from "node:fs"; process.stdout.write(JSON.stringify(costs(readFileSync(0, "utf8"), {json.dumps(cases)})))'
313
- with timing_lock():
314
- p = subprocess.run(['node', '--no-liftoff', '--input-type=module', '-e', script], input=speed, capture_output=True, text=True,
315
- timeout=timeout, env=os.environ | dict(BASEDPL_WASM=str(wasm)))
309
+ script = (f'import {{ costs }} from {json.dumps(_PKG.as_uri())}; import {{ timingLock }} from {json.dumps(_LOCK_JS.as_uri())}; '
310
+ f'import {{ readFileSync }} from "node:fs"; const release = await timingLock(); '
311
+ f'try {{ process.stdout.write(JSON.stringify(costs(readFileSync(0, "utf8"), {json.dumps(cases)}))) }} finally {{ release() }}')
312
+ p = subprocess.run(['node', '--no-liftoff', '--input-type=module', '-e', script], input=speed, capture_output=True, text=True,
313
+ timeout=timeout, env=os.environ | dict(BASEDPL_WASM=str(wasm)))
316
314
  if p.returncode: raise ValueError(p.stderr)
315
+ if p.stderr: sys.stderr.write(p.stderr)
317
316
  rows = json.loads(p.stdout)
318
317
  i = 0 if wasm is None else 1
319
318
  return SpeedCosts((c['section'], c['code'], c['cost'], float(c['budgets'][i]) if len(c['budgets']) > i else None) for c in rows)
@@ -12,7 +12,7 @@ use std::borrow::Cow;
12
12
 
13
13
  /// Compact element storage: `bool` for Booleans, the widths `u8`, `i16`, `i32` and `i64` for integers, the widths `half::f16`, `f32` and
14
14
  /// `f64` for floats, `Complex32` and `Complex64` for complex numbers and `char` for characters.
15
- pub(crate) trait Element: Copy {
15
+ pub(crate) trait Element: Copy + Send + Sync {
16
16
  /// The item a missing keyed entry reads as: the fill of its own array, which has this type.
17
17
  const FILL: Self;
18
18
  /// Whether an item of this type can be NaN: floats and complex numbers can, and exact items and characters can't.