basedpl 0.1.43__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 (434) hide show
  1. {basedpl-0.1.43 → basedpl-0.1.45}/.gitignore +0 -1
  2. {basedpl-0.1.43 → basedpl-0.1.45}/Cargo.lock +43 -8
  3. {basedpl-0.1.43 → basedpl-0.1.45}/Cargo.toml +6 -2
  4. basedpl-0.1.45/DEV.md +251 -0
  5. {basedpl-0.1.43 → basedpl-0.1.45}/PKG-INFO +1 -1
  6. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/data.ipynb +1 -1
  7. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/and.qmd +1 -1
  8. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/domino.qmd +1 -1
  9. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/dot.qmd +3 -1
  10. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/or.qmd +1 -1
  11. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/numbers.qmd +4 -4
  12. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/decompose.qmd +1 -1
  13. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/bpltests.py +39 -21
  14. {basedpl-0.1.43 → basedpl-0.1.45}/src/array/storage.rs +160 -331
  15. {basedpl-0.1.43 → basedpl-0.1.45}/src/array/text.rs +3 -3
  16. {basedpl-0.1.43 → basedpl-0.1.45}/src/array.rs +29 -34
  17. {basedpl-0.1.43 → basedpl-0.1.45}/src/data.rs +5 -4
  18. {basedpl-0.1.43 → basedpl-0.1.45}/src/element.rs +10 -12
  19. {basedpl-0.1.43 → basedpl-0.1.45}/src/eval/assign.rs +84 -18
  20. {basedpl-0.1.43 → basedpl-0.1.45}/src/eval/operators.rs +33 -20
  21. {basedpl-0.1.43 → basedpl-0.1.45}/src/eval.rs +30 -2
  22. {basedpl-0.1.43 → basedpl-0.1.45}/src/fusion.rs +19 -65
  23. {basedpl-0.1.43 → basedpl-0.1.45}/src/host.rs +51 -10
  24. {basedpl-0.1.43 → basedpl-0.1.45}/src/host_web.rs +2 -2
  25. {basedpl-0.1.43 → basedpl-0.1.45}/src/js.rs +2 -3
  26. {basedpl-0.1.43 → basedpl-0.1.45}/src/number.rs +181 -94
  27. {basedpl-0.1.43 → basedpl-0.1.45}/src/pervasive.rs +831 -528
  28. {basedpl-0.1.43 → basedpl-0.1.45}/src/polynomial.rs +21 -29
  29. {basedpl-0.1.43 → basedpl-0.1.45}/src/primitive/indexing.rs +52 -21
  30. {basedpl-0.1.43 → basedpl-0.1.45}/src/primitive/numeric.rs +94 -280
  31. {basedpl-0.1.43 → basedpl-0.1.45}/src/primitive/search.rs +120 -94
  32. {basedpl-0.1.43 → basedpl-0.1.45}/src/primitive/structural.rs +11 -10
  33. {basedpl-0.1.43 → basedpl-0.1.45}/src/primitive.rs +7 -5
  34. {basedpl-0.1.43 → basedpl-0.1.45}/src/protocol.rs +61 -24
  35. {basedpl-0.1.43 → basedpl-0.1.45}/src/reference.rs +33 -14
  36. {basedpl-0.1.43 → basedpl-0.1.45}/src/search.rs +30 -22
  37. {basedpl-0.1.43 → basedpl-0.1.45}/src/timing.rs +37 -15
  38. basedpl-0.1.45/tests/conftest.py +15 -0
  39. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/april.bpl +30 -30
  40. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/core.bpl +27 -26
  41. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference.rs +10 -7
  42. {basedpl-0.1.43 → basedpl-0.1.45}/tests/speed.rs +1 -1
  43. basedpl-0.1.45/tests/speed.txt +252 -0
  44. basedpl-0.1.45/tests/timing-lock.mjs +39 -0
  45. basedpl-0.1.45/tests/units.rs +149 -0
  46. {basedpl-0.1.43 → basedpl-0.1.45}/tests/wasm-speed.mjs +1 -30
  47. basedpl-0.1.43/tests/conftest.py +0 -8
  48. basedpl-0.1.43/tests/speed.txt +0 -223
  49. basedpl-0.1.43/tests/units.rs +0 -74
  50. {basedpl-0.1.43 → basedpl-0.1.45}/.cargo/config.toml +0 -0
  51. {basedpl-0.1.43 → basedpl-0.1.45}/.gitattributes +0 -0
  52. {basedpl-0.1.43 → basedpl-0.1.45}/.github/workflows/ci.yml +0 -0
  53. {basedpl-0.1.43 → basedpl-0.1.45}/.github/workflows/docs.yml +0 -0
  54. {basedpl-0.1.43 → basedpl-0.1.45}/.github/workflows/speed.yml +0 -0
  55. {basedpl-0.1.43 → basedpl-0.1.45}/.github/workflows/test.yml +0 -0
  56. {basedpl-0.1.43 → basedpl-0.1.45}/CONTRIBUTING.md +0 -0
  57. {basedpl-0.1.43 → basedpl-0.1.45}/LICENSE +0 -0
  58. {basedpl-0.1.43 → basedpl-0.1.45}/README.md +0 -0
  59. {basedpl-0.1.43 → basedpl-0.1.45}/_config.yml +0 -0
  60. {basedpl-0.1.43 → basedpl-0.1.45}/_layouts/default.html +0 -0
  61. {basedpl-0.1.43 → basedpl-0.1.45}/build.rs +0 -0
  62. {basedpl-0.1.43 → basedpl-0.1.45}/editors/jetbrains/BPL.tmbundle/Syntaxes/bpl.tmLanguage.json +0 -0
  63. {basedpl-0.1.43 → basedpl-0.1.45}/editors/jetbrains/BPL.tmbundle/info.plist +0 -0
  64. {basedpl-0.1.43 → basedpl-0.1.45}/editors/jetbrains/BPL.xml +0 -0
  65. {basedpl-0.1.43 → basedpl-0.1.45}/editors/jetbrains/README.md +0 -0
  66. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/Info.plist +0 -0
  67. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/Resources/BasedPL-de.icns +0 -0
  68. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/Resources/BasedPL-de.keylayout +0 -0
  69. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  70. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-de.bundle/Contents/version.plist +0 -0
  71. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-de.txt +0 -0
  72. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/Info.plist +0 -0
  73. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/Resources/BasedPL-es.icns +0 -0
  74. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/Resources/BasedPL-es.keylayout +0 -0
  75. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  76. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-es.bundle/Contents/version.plist +0 -0
  77. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-es.txt +0 -0
  78. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/Info.plist +0 -0
  79. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/Resources/BasedPL-fr.icns +0 -0
  80. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/Resources/BasedPL-fr.keylayout +0 -0
  81. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  82. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-fr.bundle/Contents/version.plist +0 -0
  83. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-fr.txt +0 -0
  84. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/Info.plist +0 -0
  85. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/Resources/BasedPL-uk.icns +0 -0
  86. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/Resources/BasedPL-uk.keylayout +0 -0
  87. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  88. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-uk.bundle/Contents/version.plist +0 -0
  89. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-uk.txt +0 -0
  90. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/Info.plist +0 -0
  91. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/Resources/BasedPL-us.icns +0 -0
  92. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/Resources/BasedPL-us.keylayout +0 -0
  93. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  94. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-us.bundle/Contents/version.plist +0 -0
  95. {basedpl-0.1.43 → basedpl-0.1.45}/editors/macos/BasedPL-us.txt +0 -0
  96. {basedpl-0.1.43 → basedpl-0.1.45}/editors/vim/ftdetect/bpl.vim +0 -0
  97. {basedpl-0.1.43 → basedpl-0.1.45}/editors/vim/syntax/bpl.vim +0 -0
  98. {basedpl-0.1.43 → basedpl-0.1.45}/editors/windows/README.md +0 -0
  99. {basedpl-0.1.43 → basedpl-0.1.45}/editors/windows/build.ps1 +0 -0
  100. {basedpl-0.1.43 → basedpl-0.1.45}/editors/windows/install.ps1 +0 -0
  101. {basedpl-0.1.43 → basedpl-0.1.45}/editors/windows/keyboard.c +0 -0
  102. {basedpl-0.1.43 → basedpl-0.1.45}/editors/windows/keyboard.def +0 -0
  103. {basedpl-0.1.43 → basedpl-0.1.45}/editors/windows/keyboard.rc +0 -0
  104. {basedpl-0.1.43 → basedpl-0.1.45}/editors/windows/layout.h +0 -0
  105. {basedpl-0.1.43 → basedpl-0.1.45}/index_files/figure-commonmark/cell-17-output-1.svg +0 -0
  106. {basedpl-0.1.43 → basedpl-0.1.45}/index_files/figure-commonmark/cell-18-output-1.svg +0 -0
  107. {basedpl-0.1.43 → basedpl-0.1.45}/index_files/figure-html/cell-17-output-1.svg +0 -0
  108. {basedpl-0.1.43 → basedpl-0.1.45}/index_files/figure-html/cell-18-output-1.svg +0 -0
  109. {basedpl-0.1.43 → basedpl-0.1.45}/lib/LICENSE-april +0 -0
  110. {basedpl-0.1.43 → basedpl-0.1.45}/lib/README.md +0 -0
  111. {basedpl-0.1.43 → basedpl-0.1.45}/lib/array.bpl +0 -0
  112. {basedpl-0.1.43 → basedpl-0.1.45}/lib/dyalog.bpl +0 -0
  113. {basedpl-0.1.43 → basedpl-0.1.45}/lib/graph.bpl +0 -0
  114. {basedpl-0.1.43 → basedpl-0.1.45}/lib/numeric.bpl +0 -0
  115. {basedpl-0.1.43 → basedpl-0.1.45}/lib/power.bpl +0 -0
  116. {basedpl-0.1.43 → basedpl-0.1.45}/lib/regex.bpl +0 -0
  117. {basedpl-0.1.43 → basedpl-0.1.45}/lib/string.bpl +0 -0
  118. {basedpl-0.1.43 → basedpl-0.1.45}/lib/tree.bpl +0 -0
  119. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/.gitignore +0 -0
  120. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/_quarto.yml +0 -0
  121. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/arrays.ipynb +0 -0
  122. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/assignment.ipynb +0 -0
  123. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/bpl.xml +0 -0
  124. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/bqn.xml +0 -0
  125. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/bracket-types.ipynb +0 -0
  126. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/cli.qmd +0 -0
  127. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/comparison.qmd +0 -0
  128. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/dfns.ipynb +0 -0
  129. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/distributions.ipynb +0 -0
  130. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/driver.js +0 -0
  131. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/dyalog.ipynb +0 -0
  132. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/dyalog.xml +0 -0
  133. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/evaluation.qmd +0 -0
  134. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/fonts/LICENSE-SAX2 +0 -0
  135. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/fonts/README.md +0 -0
  136. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/fonts/SAX2B.ttf +0 -0
  137. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/fonts/SAX2B.woff2 +0 -0
  138. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/fonts.css +0 -0
  139. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/attractor.bpl +0 -0
  140. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/boids.bpl +0 -0
  141. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/dragon.bpl +0 -0
  142. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/flow.bpl +0 -0
  143. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/mandelbrot.bpl +0 -0
  144. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/mandelbrot32.bpl +0 -0
  145. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/orbits.bpl +0 -0
  146. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/phyllotaxis.bpl +0 -0
  147. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/prefs.bpl +0 -0
  148. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery/reaction.bpl +0 -0
  149. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/gallery.qmd +0 -0
  150. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/getting-started.ipynb +0 -0
  151. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/_metadata.yml +0 -0
  152. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/add.qmd +0 -0
  153. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/after.qmd +0 -0
  154. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/agenda.qmd +0 -0
  155. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/alpha-underbar.qmd +0 -0
  156. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/alpha.qmd +0 -0
  157. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/assign.qmd +0 -0
  158. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/atop.qmd +0 -0
  159. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/axis.qmd +0 -0
  160. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/backslash-bar.qmd +0 -0
  161. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/backslash.qmd +0 -0
  162. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/before.qmd +0 -0
  163. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/braces.qmd +0 -0
  164. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/brackets.qmd +0 -0
  165. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/bullet.qmd +0 -0
  166. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/ceiling.qmd +0 -0
  167. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/circle.qmd +0 -0
  168. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/colon.qmd +0 -0
  169. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/comma.qmd +0 -0
  170. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/comment.qmd +0 -0
  171. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/commute.qmd +0 -0
  172. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/dash.qmd +0 -0
  173. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/decode.qmd +0 -0
  174. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/del-diaeresis.qmd +0 -0
  175. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/del.qmd +0 -0
  176. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/derivative.qmd +0 -0
  177. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/diamond.qmd +0 -0
  178. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/div.qmd +0 -0
  179. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/drop.qmd +0 -0
  180. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/each.qmd +0 -0
  181. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/enclose.qmd +0 -0
  182. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/encode.qmd +0 -0
  183. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/equal.qmd +0 -0
  184. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/error-guard.qmd +0 -0
  185. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/execute.qmd +0 -0
  186. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/factor.qmd +0 -0
  187. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/factorial.qmd +0 -0
  188. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/find.qmd +0 -0
  189. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/floor.qmd +0 -0
  190. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/format.qmd +0 -0
  191. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/grade-down.qmd +0 -0
  192. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/grade-up.qmd +0 -0
  193. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/greater-or-equal.qmd +0 -0
  194. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/greater.qmd +0 -0
  195. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/hash.qmd +0 -0
  196. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/infinity.qmd +0 -0
  197. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/intersection.qmd +0 -0
  198. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/inverse-pair.qmd +0 -0
  199. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/inverted-question.qmd +0 -0
  200. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/iota.qmd +0 -0
  201. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/key.qmd +0 -0
  202. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/left.qmd +0 -0
  203. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/less-or-equal.qmd +0 -0
  204. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/less.qmd +0 -0
  205. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/log.qmd +0 -0
  206. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/match.qmd +0 -0
  207. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/member.qmd +0 -0
  208. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/mix.qmd +0 -0
  209. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/mul.qmd +0 -0
  210. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/nand.qmd +0 -0
  211. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/nest.qmd +0 -0
  212. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/nor.qmd +0 -0
  213. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/not-equal.qmd +0 -0
  214. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/omega-underbar.qmd +0 -0
  215. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/omega.qmd +0 -0
  216. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/outer-product.qmd +0 -0
  217. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/over.qmd +0 -0
  218. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/overbar.qmd +0 -0
  219. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/parentheses.qmd +0 -0
  220. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/pi.qmd +0 -0
  221. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/polynomial.qmd +0 -0
  222. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/power.qmd +0 -0
  223. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/prime.qmd +0 -0
  224. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/quad.qmd +0 -0
  225. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/question.qmd +0 -0
  226. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/quote.qmd +0 -0
  227. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/range.qmd +0 -0
  228. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/rank.qmd +0 -0
  229. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/reverse-first.qmd +0 -0
  230. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/reverse.qmd +0 -0
  231. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/rho.qmd +0 -0
  232. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/right.qmd +0 -0
  233. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/root.qmd +0 -0
  234. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/slash-bar.qmd +0 -0
  235. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/slash.qmd +0 -0
  236. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/squad.qmd +0 -0
  237. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/star.qmd +0 -0
  238. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/stencil.qmd +0 -0
  239. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/stile.qmd +0 -0
  240. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/table.qmd +0 -0
  241. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/take.qmd +0 -0
  242. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/tally.qmd +0 -0
  243. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/tilde.qmd +0 -0
  244. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/transpose.qmd +0 -0
  245. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/under.qmd +0 -0
  246. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/union.qmd +0 -0
  247. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/valences.qmd +0 -0
  248. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/where.qmd +0 -0
  249. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/windows.qmd +0 -0
  250. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs/zilde.qmd +0 -0
  251. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/glyphs.qmd +0 -0
  252. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/index.ipynb +0 -0
  253. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/introspection.ipynb +0 -0
  254. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/keyboard.qmd +0 -0
  255. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/keyed.ipynb +0 -0
  256. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/llms.txt +0 -0
  257. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/magics.ipynb +0 -0
  258. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/modules.qmd +0 -0
  259. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/nbdev.yml +0 -0
  260. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/notebooks.ipynb +0 -0
  261. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/overview.ipynb +0 -0
  262. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/papers/aplwiki-arrays.md +0 -0
  263. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/papers/brickman-depth-1-scalars.md +0 -0
  264. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/papers/mercer-based-system.md +0 -0
  265. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/playground/bpl.js +0 -0
  266. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/playground/gallery.js +0 -0
  267. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/playground/monaco-worker.js +0 -0
  268. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/playground/page.js +0 -0
  269. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/playground/worker.js +0 -0
  270. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/playground.qmd +0 -0
  271. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/plot.ipynb +0 -0
  272. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/principles.ipynb +0 -0
  273. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/processes.qmd +0 -0
  274. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/puppy.jpg +0 -0
  275. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/python.ipynb +0 -0
  276. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/regex.ipynb +0 -0
  277. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/repl.qmd +0 -0
  278. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/scripts.ipynb +0 -0
  279. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/sidebar.yml +0 -0
  280. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/strings.ipynb +0 -0
  281. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/styles.css +0 -0
  282. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/syntax.qmd +0 -0
  283. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/_metadata.yml +0 -0
  284. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/c.qmd +0 -0
  285. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/canvas.qmd +0 -0
  286. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/constants.qmd +0 -0
  287. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/copy.qmd +0 -0
  288. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/csv.qmd +0 -0
  289. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/date.qmd +0 -0
  290. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/deflate.qmd +0 -0
  291. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/delay.qmd +0 -0
  292. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/distribution.qmd +0 -0
  293. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/element.qmd +0 -0
  294. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/ex.qmd +0 -0
  295. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/fetch.qmd +0 -0
  296. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/float.qmd +0 -0
  297. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/hash.qmd +0 -0
  298. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/host.qmd +0 -0
  299. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/image.qmd +0 -0
  300. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/js.qmd +0 -0
  301. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/json.qmd +0 -0
  302. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/literal.qmd +0 -0
  303. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/load.qmd +0 -0
  304. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/metadata.qmd +0 -0
  305. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/mime.qmd +0 -0
  306. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/mkdir.qmd +0 -0
  307. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/nc.qmd +0 -0
  308. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/nget.qmd +0 -0
  309. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/nl.qmd +0 -0
  310. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/normalize.qmd +0 -0
  311. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/nput.qmd +0 -0
  312. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/path.qmd +0 -0
  313. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/plot.qmd +0 -0
  314. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/prefs.qmd +0 -0
  315. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/r.qmd +0 -0
  316. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/rand.qmd +0 -0
  317. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/readdir.qmd +0 -0
  318. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/remove.qmd +0 -0
  319. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/rename.qmd +0 -0
  320. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/signal.qmd +0 -0
  321. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/src.qmd +0 -0
  322. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/storage.qmd +0 -0
  323. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/svg.qmd +0 -0
  324. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/time.qmd +0 -0
  325. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/ucs.qmd +0 -0
  326. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/uuid.qmd +0 -0
  327. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/vfi.qmd +0 -0
  328. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system/xml.qmd +0 -0
  329. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/system-functions.qmd +0 -0
  330. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/terms.qmd +0 -0
  331. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/web.ipynb +0 -0
  332. {basedpl-0.1.43 → basedpl-0.1.45}/nbs/xml.ipynb +0 -0
  333. {basedpl-0.1.43 → basedpl-0.1.45}/provenance/README.md +0 -0
  334. {basedpl-0.1.43 → basedpl-0.1.45}/provenance/aplcart.jsonl +0 -0
  335. {basedpl-0.1.43 → basedpl-0.1.45}/provenance/april.jsonl +0 -0
  336. {basedpl-0.1.43 → basedpl-0.1.45}/provenance/bqn.jsonl +0 -0
  337. {basedpl-0.1.43 → basedpl-0.1.45}/provenance/core.jsonl +0 -0
  338. {basedpl-0.1.43 → basedpl-0.1.45}/provenance/dyalog.jsonl +0 -0
  339. {basedpl-0.1.43 → basedpl-0.1.45}/provenance/ngn.jsonl +0 -0
  340. {basedpl-0.1.43 → basedpl-0.1.45}/py/Cargo.toml +0 -0
  341. {basedpl-0.1.43 → basedpl-0.1.45}/py/build.rs +0 -0
  342. {basedpl-0.1.43 → basedpl-0.1.45}/py/src/lib.rs +0 -0
  343. {basedpl-0.1.43 → basedpl-0.1.45}/pyproject.toml +0 -0
  344. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/__init__.py +0 -0
  345. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/_modidx.py +0 -0
  346. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/bpl.tmLanguage.json +0 -0
  347. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/dyalog.py +0 -0
  348. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/editors.py +0 -0
  349. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/font.py +0 -0
  350. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/fonts.css +0 -0
  351. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/functions.py +0 -0
  352. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/input.js +0 -0
  353. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/ipython.py +0 -0
  354. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/keyboards.json +0 -0
  355. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/keyboards.py +0 -0
  356. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/layout.json +0 -0
  357. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/lb.js +0 -0
  358. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/notebook_runner.py +0 -0
  359. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/notebooks.py +0 -0
  360. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/printing.py +0 -0
  361. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/reference.py +0 -0
  362. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/syntax.py +0 -0
  363. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/windows_keyboard.py +0 -0
  364. {basedpl-0.1.43 → basedpl-0.1.45}/python/basedpl/worker.py +0 -0
  365. {basedpl-0.1.43 → basedpl-0.1.45}/rustfmt.toml +0 -0
  366. {basedpl-0.1.43 → basedpl-0.1.45}/scripts/install-macos.sh +0 -0
  367. {basedpl-0.1.43 → basedpl-0.1.45}/scripts/prep.py +0 -0
  368. {basedpl-0.1.43 → basedpl-0.1.45}/src/agreement.rs +0 -0
  369. {basedpl-0.1.43 → basedpl-0.1.45}/src/canvas.js +0 -0
  370. {basedpl-0.1.43 → basedpl-0.1.45}/src/canvas.rs +0 -0
  371. {basedpl-0.1.43 → basedpl-0.1.45}/src/csv.rs +0 -0
  372. {basedpl-0.1.43 → basedpl-0.1.45}/src/date.rs +0 -0
  373. {basedpl-0.1.43 → basedpl-0.1.45}/src/display.rs +0 -0
  374. {basedpl-0.1.43 → basedpl-0.1.45}/src/distribution.rs +0 -0
  375. {basedpl-0.1.43 → basedpl-0.1.45}/src/error.rs +0 -0
  376. {basedpl-0.1.43 → basedpl-0.1.45}/src/eval/binder.rs +0 -0
  377. {basedpl-0.1.43 → basedpl-0.1.45}/src/eval/dissect.rs +0 -0
  378. {basedpl-0.1.43 → basedpl-0.1.45}/src/eval/session.rs +0 -0
  379. {basedpl-0.1.43 → basedpl-0.1.45}/src/execution.rs +0 -0
  380. {basedpl-0.1.43 → basedpl-0.1.45}/src/files.rs +0 -0
  381. {basedpl-0.1.43 → basedpl-0.1.45}/src/image.rs +0 -0
  382. {basedpl-0.1.43 → basedpl-0.1.45}/src/inspection.rs +0 -0
  383. {basedpl-0.1.43 → basedpl-0.1.45}/src/json.rs +0 -0
  384. {basedpl-0.1.43 → basedpl-0.1.45}/src/keyed.rs +0 -0
  385. {basedpl-0.1.43 → basedpl-0.1.45}/src/lib.rs +0 -0
  386. {basedpl-0.1.43 → basedpl-0.1.45}/src/number_theory.rs +0 -0
  387. {basedpl-0.1.43 → basedpl-0.1.45}/src/plot.rs +0 -0
  388. {basedpl-0.1.43 → basedpl-0.1.45}/src/regex.rs +0 -0
  389. {basedpl-0.1.43 → basedpl-0.1.45}/src/selection.rs +0 -0
  390. {basedpl-0.1.43 → basedpl-0.1.45}/src/symbols.rs +0 -0
  391. {basedpl-0.1.43 → basedpl-0.1.45}/src/syntax.rs +0 -0
  392. {basedpl-0.1.43 → basedpl-0.1.45}/src/system.rs +0 -0
  393. {basedpl-0.1.43 → basedpl-0.1.45}/src/xml.rs +0 -0
  394. {basedpl-0.1.43 → basedpl-0.1.45}/tests/core.rs +0 -0
  395. {basedpl-0.1.43 → basedpl-0.1.45}/tests/highlighting.mjs +0 -0
  396. {basedpl-0.1.43 → basedpl-0.1.45}/tests/input.mjs +0 -0
  397. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/LICENSE-aplcart +0 -0
  398. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/LICENSE-april +0 -0
  399. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/LICENSE-bqn +0 -0
  400. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/LICENSE-bqncrate +0 -0
  401. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/LICENSE-dyalog +0 -0
  402. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/LICENSE-ngn +0 -0
  403. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/README.md +0 -0
  404. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/aplcart.bpl +0 -0
  405. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/bqn.bpl +0 -0
  406. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/distributions.bpl +0 -0
  407. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/dyalog.bpl +0 -0
  408. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/graphics.bpl +0 -0
  409. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/lib.bpl +0 -0
  410. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/ngn.bpl +0 -0
  411. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/regex.bpl +0 -0
  412. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/support/april.bpl +0 -0
  413. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/support/avl.bpl +0 -0
  414. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/support/redblack.bpl +0 -0
  415. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/support/sbst.bpl +0 -0
  416. {basedpl-0.1.43 → basedpl-0.1.45}/tests/reference/support/splay.bpl +0 -0
  417. {basedpl-0.1.43 → basedpl-0.1.45}/tests/scaling.rs +0 -0
  418. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_api.py +0 -0
  419. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_basic.py +0 -0
  420. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_bpltests.py +0 -0
  421. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_glyphs.py +0 -0
  422. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_graphics.py +0 -0
  423. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_ipython.py +0 -0
  424. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_kernel.py +0 -0
  425. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_keylayout.py +0 -0
  426. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_notebooks.py +0 -0
  427. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_reference.py +0 -0
  428. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_repl.py +0 -0
  429. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_windows_keyboard.py +0 -0
  430. {basedpl-0.1.43 → basedpl-0.1.45}/tests/test_worker.py +0 -0
  431. {basedpl-0.1.43 → basedpl-0.1.45}/tests/wasm-pkg.mjs +0 -0
  432. {basedpl-0.1.43 → basedpl-0.1.45}/tests/wasm.mjs +0 -0
  433. {basedpl-0.1.43 → basedpl-0.1.45}/tests/windows_keyboard.c +0 -0
  434. {basedpl-0.1.43 → 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.43"
96
+ version = "0.1.45"
91
97
  dependencies = [
92
98
  "base64 0.23.1",
93
99
  "bytemuck",
@@ -102,6 +108,7 @@ dependencies = [
102
108
  "image",
103
109
  "js-sys",
104
110
  "json5",
111
+ "libc",
105
112
  "nix",
106
113
  "num-bigint",
107
114
  "num-complex",
@@ -132,7 +139,7 @@ dependencies = [
132
139
 
133
140
  [[package]]
134
141
  name = "basedpl-cli"
135
- version = "0.1.43"
142
+ version = "0.1.45"
136
143
  dependencies = [
137
144
  "async-trait",
138
145
  "basedpl",
@@ -140,12 +147,13 @@ dependencies = [
140
147
  "foldhash",
141
148
  "kernmini",
142
149
  "rustyline",
150
+ "serde",
143
151
  "serde_json",
144
152
  ]
145
153
 
146
154
  [[package]]
147
155
  name = "basedpl-py"
148
- version = "0.1.43"
156
+ version = "0.1.45"
149
157
  dependencies = [
150
158
  "basedpl",
151
159
  "bytemuck",
@@ -160,10 +168,11 @@ dependencies = [
160
168
 
161
169
  [[package]]
162
170
  name = "basedpl-wasm"
163
- version = "0.1.43"
171
+ version = "0.1.45"
164
172
  dependencies = [
165
173
  "basedpl",
166
174
  "js-sys",
175
+ "talc",
167
176
  "wasm-bindgen",
168
177
  ]
169
178
 
@@ -650,7 +659,7 @@ version = "0.17.1"
650
659
  source = "registry+https://github.com/rust-lang/crates.io-index"
651
660
  checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
652
661
  dependencies = [
653
- "allocator-api2",
662
+ "allocator-api2 0.2.21",
654
663
  "equivalent",
655
664
  "foldhash",
656
665
  ]
@@ -913,6 +922,15 @@ version = "0.8.3"
913
922
  source = "registry+https://github.com/rust-lang/crates.io-index"
914
923
  checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
915
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
+
916
934
  [[package]]
917
935
  name = "log"
918
936
  version = "0.4.34"
@@ -1380,9 +1398,9 @@ dependencies = [
1380
1398
 
1381
1399
  [[package]]
1382
1400
  name = "rustymath"
1383
- version = "0.1.12"
1401
+ version = "0.1.14"
1384
1402
  source = "registry+https://github.com/rust-lang/crates.io-index"
1385
- checksum = "1e423e6e3ab1f3abe33b1f05db77f9d855ffe47b911bea20849b6edcd04306fa"
1403
+ checksum = "9c4b9032437f945f3db8fa14a4382bec40d21cb4edf1adb8711af6c43b1bb4c5"
1386
1404
  dependencies = [
1387
1405
  "half",
1388
1406
  "hashbrown 0.17.1",
@@ -1392,6 +1410,7 @@ dependencies = [
1392
1410
  "num-rational",
1393
1411
  "num-traits",
1394
1412
  "rand",
1413
+ "rayon",
1395
1414
  "strength_reduce",
1396
1415
  ]
1397
1416
 
@@ -1410,6 +1429,12 @@ dependencies = [
1410
1429
  "winapi-util",
1411
1430
  ]
1412
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
+
1413
1438
  [[package]]
1414
1439
  name = "semver"
1415
1440
  version = "1.0.28"
@@ -1606,6 +1631,16 @@ dependencies = [
1606
1631
  "syn 3.0.9",
1607
1632
  ]
1608
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
+
1609
1644
  [[package]]
1610
1645
  name = "target-lexicon"
1611
1646
  version = "0.13.5"
@@ -2017,7 +2052,7 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
2017
2052
 
2018
2053
  [[package]]
2019
2054
  name = "xtask"
2020
- version = "0.1.43"
2055
+ version = "0.1.45"
2021
2056
  dependencies = [
2022
2057
  "anyhow",
2023
2058
  "serde_json",
@@ -2,7 +2,7 @@
2
2
  members = ["py"]
3
3
 
4
4
  [workspace.package]
5
- version = "0.1.43"
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.9, <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.
@@ -73,6 +73,10 @@ chrono = ">=0.4.45, <0.5"
73
73
  rustix = { version = ">=1.1.5, <2", features = ["termios", "fs"] }
74
74
  nix = { version = ">=0.31.3, <1", default-features = false, features = ["user"] }
75
75
 
76
+ [target.'cfg(target_vendor = "apple")'.dependencies]
77
+ # The timing lock's QoS call, which keeps a timing on the performance cores.
78
+ libc = ">=0.2.190, <1"
79
+
76
80
  [target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies]
77
81
  chrono = { version = ">=0.4.45, <0.5", features = ["unstable-locales"] }
78
82
  icu_normalizer = ">=2, <3"
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.43
3
+ Version: 0.1.45
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Requires-Dist: fastcore
@@ -846,7 +846,7 @@
846
846
  "source": [
847
847
  "A column of integers uses integer storage when every value fits in 64 bits. Larger integers stay exact. A value with a decimal point or an exponent is approximate. A column's numbers combine by the rule in [Numeric input](#numeric-input).\n",
848
848
  "\n",
849
- "Missing numeric cells become NaN, written `$n`. A missing cell never makes a column float. An integer column with a gap stays exact, in integer storage. Missing text cells become `\"\"`. Entirely missing columns are text unless forced numeric."
849
+ "Missing numeric cells become NaN, written `$n`. An integer column with a gap becomes floats. A column that also holds an integer too large for a float to hold exactly keeps each item's kind, in mixed storage. Missing text cells become `\"\"`. Entirely missing columns are text unless forced numeric."
850
850
  ]
851
851
  },
852
852
  {
@@ -17,7 +17,7 @@ Keys: `Alt-0`. Ranks: `0` monadic, `0 0` dyadic
17
17
  ∧/1 1 0 ⍝ 0
18
18
  ```
19
19
 
20
- Includes rational and complex LCM. Inputs are finite. Empty reduction identity: one.
20
+ Includes rational and complex LCM. Inputs are finite. Empty reduction identity: one, or `$t` on Booleans.
21
21
 
22
22
  ## Inverse
23
23
 
@@ -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
@@ -17,7 +19,7 @@ Singleton contraction axes extend. Empty contractions use the reduction identity
17
19
  ⌈.⌊[1 5⋄4 2] ⍝ 4
18
20
  ```
19
21
 
20
- The expansion is `C f.g D`, where `C` is the matrix's first column and `D` holds the expansions of its minors. Each minor leaves out the first column and one row. A matrix with no columns gives `g/` of no items, `g`'s identity. Every expansion ends there. `g` therefore needs an identity, as in J. A vector counts as one column. A number counts as a 1-by-1 matrix. Over every way to pick one item from each row and column, `⌈.⌊` gives the largest of the picks' smallest items. `-.×` on a square matrix of floats or complex numbers takes an LU factorization. On exact numbers it gives an exact result, through row reduction. Other functions take time that doubles with each row. They accept at most 64 rows.
22
+ The expansion is `C f.g D`, where `C` is the matrix's first column and `D` holds the expansions of its minors. Each minor leaves out the first column and one row. A minor that the expansion meets more than once is expanded only once. `f` and `g` run once for each distinct minor. A matrix with no columns gives `g/` of no items, `g`'s identity. Every expansion ends there. `g` therefore needs an identity, as in J. A vector counts as one column. A number counts as a 1-by-1 matrix. Over every way to pick one item from each row and column, `⌈.⌊` gives the largest of the picks' smallest items. `-.×` on a square matrix of floats or complex numbers takes an LU factorization. On exact numbers it gives an exact result, through row reduction. Other functions take time that doubles with each row. They accept at most 64 rows.
21
23
 
22
24
  After an array, `.name` reads a [keyed array](../keyed.ipynb) value: `T.name` is `"name"⊃T`. It also works as an assignment target. Plain assignment creates missing records along the path.
23
25
 
@@ -18,7 +18,7 @@ Keys: `Alt-9`. Ranks: `0` monadic, `0 0` dyadic
18
18
  ∨/0 0 1 ⍝ 1
19
19
  ```
20
20
 
21
- Includes rational and complex GCD. Inputs are finite. Empty reduction identity: zero.
21
+ Includes rational and complex GCD. Inputs are finite. Empty reduction identity: zero, or `$f` on Booleans.
22
22
 
23
23
  For approximate real inputs, GCD reconstructs the ratio of their magnitudes using continued fractions. It chooses the first convergent equal to that ratio within the [comparison tolerance](../system/prefs.qmd). Integer convergents are computed exactly. The result is the larger magnitude divided by the convergent's numerator. Exact inputs use exact GCD. Complex inputs use Gaussian-integer Euclidean iteration.
24
24
 
@@ -168,14 +168,14 @@ $n≡$n ⍝ $t
168
168
 
169
169
  Complex arithmetic follows the `num_complex` crate. A complex number can have infinite or NaN parts.
170
170
 
171
- Joining infinities or NaN to exact integers keeps the integers exact. Exact integers, infinities and NaN share integer storage:
171
+ An infinity or NaN is a float. Joining one to exact integers makes them floats, as any float does:
172
172
 
173
173
  ```bpl
174
- ⍳3ₓ , ∞ ⍝ [0 1 2 ∞]ₓ
175
- •storage ⍳3ₓ , ∞ ⍝ "integer"
174
+ ⍳3ₓ , ∞ ⍝ 0 1 2 ∞
175
+ •storage ⍳3ₓ , ∞ ⍝ "float64"
176
176
  ```
177
177
 
178
- CSV and JSON imports give NaN for a missing number. An integer column with gaps then stays exact.
178
+ CSV and JSON imports give NaN for a missing number. An integer column with gaps then becomes floats. A column that also holds an integer too large for a float to hold exactly keeps each item's kind, in mixed storage.
179
179
 
180
180
  `⌊` and `⌈` return an exact argument unchanged beside an infinity. Beside NaN they give NaN:
181
181
 
@@ -10,7 +10,7 @@
10
10
  | `"cholesky"` | `l` | `m` is `l+.×+⍉l`, with `l` lower triangular |
11
11
  | `"lu"` | `l`, `u`, `p` | `[p]⌷m` is `l+.×u`, with `l` lower triangular with 1 on its diagonal, `u` upper triangular, and `p` the rows' positions |
12
12
 
13
- The SVD and the QR decomposition are thin, unless option `complete` asks for the complete QR. For an `r`-by-`c` matrix, `u` and `q` have `r⌊c` columns. The factors are floats, apart from `"lu"`'s positions `p`. A real matrix gives real factors, apart from complex eigenvalues and their eigenvectors. A Hermitian matrix, one equal to its conjugate transpose, has real eigenvalues in ascending order and orthonormal eigenvectors. Each eigenvector of a real matrix has unit length, with its largest component real and positive. [`⌹`](../glyphs/domino.qmd) solves linear systems.
13
+ The SVD and the QR decomposition are thin, unless option `complete` asks for the complete QR. For an `r`-by-`c` matrix, `u` and `q` have `r⌊c` columns. The factors are floats, apart from `"lu"`'s positions `p`. A real matrix gives real factors, apart from complex eigenvalues and their eigenvectors. A Hermitian matrix, one equal to its conjugate transpose, has real eigenvalues in ascending order and orthonormal eigenvectors. Each eigenvector of a real matrix has unit length. [`⌹`](../glyphs/domino.qmd) solves linear systems.
14
14
 
15
15
  ```bpl
16
16
  ("svd" •decompose [1 2⋄3 4⋄5 6]).s ⍝ 9.525518091565104 0.5143005806586441