basedpl 0.1.49__tar.gz → 0.1.51__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.
- {basedpl-0.1.49 → basedpl-0.1.51}/.github/workflows/speed.yml +1 -1
- {basedpl-0.1.49 → basedpl-0.1.51}/.github/workflows/test.yml +3 -2
- {basedpl-0.1.49 → basedpl-0.1.51}/Cargo.lock +21 -21
- {basedpl-0.1.49 → basedpl-0.1.51}/Cargo.toml +5 -2
- {basedpl-0.1.49 → basedpl-0.1.51}/DEV.md +16 -11
- {basedpl-0.1.49 → basedpl-0.1.51}/PKG-INFO +1 -1
- {basedpl-0.1.49 → basedpl-0.1.51}/build.rs +7 -9
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/jetbrains/BPL.xml +0 -5
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/assignment.ipynb +3 -3
- basedpl-0.1.51/nbs/glyphs/circle-backslash.qmd +83 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/dot.qmd +0 -2
- basedpl-0.1.51/nbs/glyphs/partial.qmd +61 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/right-left-arrows.qmd +16 -17
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/right-shoe.qmd +6 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs.qmd +1 -1
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/llms.txt +5 -4
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/python.ipynb +3 -3
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/styles.css +2 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/prefs.qmd +3 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/py/src/lib.rs +54 -82
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/bpltests.py +34 -14
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/worker.py +1 -3
- basedpl-0.1.51/src/agreement.rs +283 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/src/array/storage.rs +220 -248
- {basedpl-0.1.49 → basedpl-0.1.51}/src/array/text.rs +30 -73
- {basedpl-0.1.49 → basedpl-0.1.51}/src/array.rs +243 -202
- {basedpl-0.1.49 → basedpl-0.1.51}/src/canvas.rs +5 -17
- {basedpl-0.1.49 → basedpl-0.1.51}/src/csv.rs +27 -51
- {basedpl-0.1.49 → basedpl-0.1.51}/src/data.rs +29 -69
- {basedpl-0.1.49 → basedpl-0.1.51}/src/date.rs +11 -28
- basedpl-0.1.51/src/derivative.rs +783 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/src/display.rs +122 -191
- {basedpl-0.1.49 → basedpl-0.1.51}/src/distribution.rs +22 -54
- {basedpl-0.1.49 → basedpl-0.1.51}/src/element.rs +21 -42
- {basedpl-0.1.49 → basedpl-0.1.51}/src/error.rs +8 -34
- {basedpl-0.1.49 → basedpl-0.1.51}/src/eval/assign.rs +36 -60
- {basedpl-0.1.49 → basedpl-0.1.51}/src/eval/binder.rs +61 -235
- {basedpl-0.1.49 → basedpl-0.1.51}/src/eval/dissect.rs +3 -10
- {basedpl-0.1.49 → basedpl-0.1.51}/src/eval/operators.rs +262 -171
- {basedpl-0.1.49 → basedpl-0.1.51}/src/eval/session.rs +77 -98
- {basedpl-0.1.49 → basedpl-0.1.51}/src/eval.rs +178 -256
- {basedpl-0.1.49 → basedpl-0.1.51}/src/execution.rs +6 -25
- {basedpl-0.1.49 → basedpl-0.1.51}/src/files.rs +28 -66
- basedpl-0.1.51/src/fusion.rs +602 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/src/host.rs +24 -62
- {basedpl-0.1.49 → basedpl-0.1.51}/src/host_web.rs +9 -24
- {basedpl-0.1.49 → basedpl-0.1.51}/src/image/codecs.rs +4 -13
- {basedpl-0.1.49 → basedpl-0.1.51}/src/image/imageio.rs +35 -60
- {basedpl-0.1.49 → basedpl-0.1.51}/src/image.rs +18 -45
- {basedpl-0.1.49 → basedpl-0.1.51}/src/inspection.rs +7 -15
- {basedpl-0.1.49 → basedpl-0.1.51}/src/js.rs +45 -87
- {basedpl-0.1.49 → basedpl-0.1.51}/src/json.rs +11 -24
- {basedpl-0.1.49 → basedpl-0.1.51}/src/keyed.rs +33 -65
- {basedpl-0.1.49 → basedpl-0.1.51}/src/lib.rs +2 -0
- basedpl-0.1.51/src/linear.rs +591 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/src/number.rs +284 -307
- {basedpl-0.1.49 → basedpl-0.1.51}/src/number_theory.rs +5 -15
- {basedpl-0.1.49 → basedpl-0.1.51}/src/optimize.rs +86 -71
- {basedpl-0.1.49 → basedpl-0.1.51}/src/pervasive.rs +292 -589
- {basedpl-0.1.49 → basedpl-0.1.51}/src/plot.rs +60 -190
- {basedpl-0.1.49 → basedpl-0.1.51}/src/polynomial.rs +31 -121
- {basedpl-0.1.49 → basedpl-0.1.51}/src/primitive/indexing.rs +33 -54
- {basedpl-0.1.49 → basedpl-0.1.51}/src/primitive/numeric.rs +121 -177
- {basedpl-0.1.49 → basedpl-0.1.51}/src/primitive/search.rs +38 -75
- {basedpl-0.1.49 → basedpl-0.1.51}/src/primitive/structural.rs +226 -149
- {basedpl-0.1.49 → basedpl-0.1.51}/src/primitive.rs +95 -282
- {basedpl-0.1.49 → basedpl-0.1.51}/src/protocol.rs +13 -26
- {basedpl-0.1.49 → basedpl-0.1.51}/src/reference.rs +42 -78
- {basedpl-0.1.49 → basedpl-0.1.51}/src/regex.rs +2 -13
- {basedpl-0.1.49 → basedpl-0.1.51}/src/search.rs +56 -114
- {basedpl-0.1.49 → basedpl-0.1.51}/src/selection.rs +10 -18
- {basedpl-0.1.49 → basedpl-0.1.51}/src/symbols.rs +56 -182
- {basedpl-0.1.49 → basedpl-0.1.51}/src/syntax.rs +68 -179
- {basedpl-0.1.49 → basedpl-0.1.51}/src/system.rs +54 -126
- {basedpl-0.1.49 → basedpl-0.1.51}/src/timing.rs +28 -45
- {basedpl-0.1.49 → basedpl-0.1.51}/src/xml.rs +22 -53
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/core.rs +24 -58
- basedpl-0.1.51/tests/derivatives.rs +181 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/core.bpl +355 -39
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference.rs +17 -26
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/scaling.rs +34 -74
- basedpl-0.1.51/tests/speed.rs +29 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/speed.txt +53 -7
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_api.py +3 -3
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_kernel.py +1 -1
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/units.rs +22 -63
- basedpl-0.1.51/tests/wasm-speed.mjs +38 -0
- basedpl-0.1.49/nbs/glyphs/circle-backslash.qmd +0 -37
- basedpl-0.1.49/nbs/glyphs/partial.qmd +0 -37
- basedpl-0.1.49/src/agreement.rs +0 -140
- basedpl-0.1.49/src/fusion.rs +0 -288
- basedpl-0.1.49/tests/speed.rs +0 -29
- basedpl-0.1.49/tests/wasm-speed.mjs +0 -24
- {basedpl-0.1.49 → basedpl-0.1.51}/.cargo/config.toml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/.gitattributes +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/.github/workflows/ci.yml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/.github/workflows/docs.yml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/.gitignore +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/CONTRIBUTING.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/LICENSE +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/README.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/_config.yml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/_layouts/default.html +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/jetbrains/BPL.tmbundle/Syntaxes/bpl.tmLanguage.json +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/jetbrains/BPL.tmbundle/info.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/jetbrains/README.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-de.bundle/Contents/Info.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-de.bundle/Contents/Resources/BasedPL-de.icns +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-de.bundle/Contents/Resources/BasedPL-de.keylayout +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-de.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-de.bundle/Contents/version.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-de.txt +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-es.bundle/Contents/Info.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-es.bundle/Contents/Resources/BasedPL-es.icns +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-es.bundle/Contents/Resources/BasedPL-es.keylayout +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-es.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-es.bundle/Contents/version.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-es.txt +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-fr.bundle/Contents/Info.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-fr.bundle/Contents/Resources/BasedPL-fr.icns +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-fr.bundle/Contents/Resources/BasedPL-fr.keylayout +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-fr.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-fr.bundle/Contents/version.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-fr.txt +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-uk.bundle/Contents/Info.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-uk.bundle/Contents/Resources/BasedPL-uk.icns +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-uk.bundle/Contents/Resources/BasedPL-uk.keylayout +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-uk.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-uk.bundle/Contents/version.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-uk.txt +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-us.bundle/Contents/Info.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-us.bundle/Contents/Resources/BasedPL-us.icns +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-us.bundle/Contents/Resources/BasedPL-us.keylayout +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-us.bundle/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-us.bundle/Contents/version.plist +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/macos/BasedPL-us.txt +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/vim/ftdetect/bpl.vim +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/vim/syntax/bpl.vim +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/windows/README.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/windows/build.ps1 +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/windows/install.ps1 +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/windows/keyboard.c +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/windows/keyboard.def +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/windows/keyboard.rc +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/editors/windows/layout.h +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/index_files/figure-commonmark/cell-17-output-1.svg +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/index_files/figure-commonmark/cell-18-output-1.svg +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/index_files/figure-html/cell-17-output-1.svg +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/index_files/figure-html/cell-18-output-1.svg +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/LICENSE-april +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/README.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/array.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/dyalog.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/graph.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/numeric.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/power.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/regex.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/string.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/lib/tree.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/.gitignore +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/_quarto.yml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/arrays.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/bpl.xml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/bqn.xml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/bracket-types.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/cli.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/comparison.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/data.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/dfns.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/distributions.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/driver.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/dyalog.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/dyalog.xml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/evaluation.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/fonts/LICENSE-SAX2 +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/fonts/README.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/fonts/SAX2B.ttf +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/fonts/SAX2B.woff2 +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/fonts.css +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/attractor.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/boids.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/dragon.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/flow.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/mandelbrot.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/mandelbrot32.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/orbits.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/phyllotaxis.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/prefs.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery/reaction.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/gallery.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/getting-started.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/_metadata.yml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/alpha-underbar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/alpha.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/at.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/backslash-bar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/backslash.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/braces.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/brackets.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/bullet.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/circle-bar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/circle-diaeresis.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/circle-divide.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/circle-slash.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/circle-star.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/circle-stile.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/circle-times.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/circle.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/colon.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/comma-bar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/comma.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/del-diaeresis.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/del-stile.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/del.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/delta-stile.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/diaeresis.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/diamond-underbar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/diamond.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/domino.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/down-arrow.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/down-shoe.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/down-tack.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/downstile.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/epsilon-underbar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/epsilon.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/equal-underbar-slash.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/equal-underbar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/equals.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/error-guard.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/exclamation.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/greater-than-or-equal.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/greater-than.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/hash.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/hydrant.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/infinity.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/inverted-question.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/iota-underbar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/iota.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/jot-diaeresis.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/jot.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/lamp.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/left-arrow.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/left-shoe-underbar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/left-shoe.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/left-tack.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/left-tail-arrow.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/less-than-or-equal.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/less-than.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/minus.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/not-equals.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/obelus.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/omega-underbar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/omega.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/overbar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/parentheses.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/pi.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/plus.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/quad-colon.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/quad-diamond.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/quad-equal.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/quad-jot.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/quad.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/question.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/quote.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/radical.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/rho.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/right-arrow-from-bar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/right-tack.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/right-tail-arrow.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/slash-bar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/slash.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/squad.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/star-diaeresis.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/star.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/stile-tilde.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/stile.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/thorn.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/tilde-diaeresis.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/tilde.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/times.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/up-arrow.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/up-down-arrow.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/up-shoe.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/up-tack.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/upstile.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/vee-bar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/vee.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/wedge-bar.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/wedge.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/glyphs/zilde.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/hanzi-notation-zh.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/hanzi-notation.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/index.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/introspection.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/keyboard.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/keyed.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/magics.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/modules.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/nbdev.yml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/notebooks.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/numbers.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/overview.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/papers/aplwiki-arrays.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/papers/brickman-depth-1-scalars.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/papers/mercer-based-system.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/playground/bpl.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/playground/gallery.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/playground/monaco-worker.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/playground/page.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/playground/worker.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/playground.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/plot.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/principles.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/processes.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/puppy.jpg +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/regex.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/repl.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/scripts.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/sidebar.yml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/strings.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/syntax.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/_metadata.yml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/c.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/canvas.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/constants.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/copy.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/csv.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/date.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/decompose.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/deflate.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/delay.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/distribution.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/element.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/ex.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/fetch.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/float.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/hash.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/host.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/image.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/js.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/json.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/literal.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/load.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/metadata.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/mime.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/mkdir.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/nc.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/nget.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/nl.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/normalize.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/nput.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/path.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/plot.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/r.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/rand.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/readdir.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/remove.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/rename.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/signal.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/src.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/storage.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/svg.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/time.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/ucs.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/uuid.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/vfi.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system/xml.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/system-functions.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/terms.qmd +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/web.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/nbs/xml.ipynb +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/package-lock.json +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/package.json +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/provenance/README.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/provenance/aplcart.jsonl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/provenance/april.jsonl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/provenance/bqn.jsonl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/provenance/core.jsonl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/provenance/dyalog.jsonl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/provenance/ngn.jsonl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/py/Cargo.toml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/py/build.rs +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/pyproject.toml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/__init__.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/_modidx.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/bpl.tmLanguage.json +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/dyalog.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/editors.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/font.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/fonts.css +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/functions.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/input.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/ipython.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/keyboards.json +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/keyboards.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/layout.json +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/lb.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/notebook_runner.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/notebooks.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/printing.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/reference.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/syntax.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/python/basedpl/windows_keyboard.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/rustfmt.toml +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/scripts/install-macos.sh +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/scripts/prep.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/src/canvas.js +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/conftest.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/highlighting.mjs +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/input.mjs +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/LICENSE-aplcart +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/LICENSE-april +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/LICENSE-bqn +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/LICENSE-bqncrate +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/LICENSE-dyalog +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/LICENSE-ngn +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/README.md +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/aplcart.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/april.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/bqn.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/distributions.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/dyalog.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/graphics.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/lib.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/ngn.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/regex.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/support/april.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/support/avl.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/support/redblack.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/support/sbst.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/reference/support/splay.bpl +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_basic.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_bpltests.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_glyphs.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_graphics.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_ipython.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_keylayout.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_notebooks.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_reference.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_repl.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_windows_keyboard.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/test_worker.py +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/timing-lock.mjs +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/wasm-pkg.mjs +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/wasm.mjs +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/tests/windows_keyboard.c +0 -0
- {basedpl-0.1.49 → basedpl-0.1.51}/wheel/data/share/jupyter/kernels/bpl/kernel.json +0 -0
|
@@ -22,7 +22,8 @@ jobs:
|
|
|
22
22
|
with:
|
|
23
23
|
shared-key: native
|
|
24
24
|
- run: grep -m1 'model name' /proc/cpuinfo
|
|
25
|
-
|
|
25
|
+
# With `BASEDPL_COSTS`, the speed tests here and in the `wasm` job log every case's cost, which `basedpl.bpltests.logged_costs` reads.
|
|
26
|
+
- run: BASEDPL_COSTS=1 cargo test
|
|
26
27
|
- uses: actions/setup-python@v7
|
|
27
28
|
with:
|
|
28
29
|
python-version: '3.12'
|
|
@@ -46,4 +47,4 @@ jobs:
|
|
|
46
47
|
- run: cargo wasm --strip
|
|
47
48
|
- run: node --test tests/wasm.mjs
|
|
48
49
|
- run: grep -m1 'model name' /proc/cpuinfo
|
|
49
|
-
- run: node --no-liftoff --test tests/wasm-speed.mjs
|
|
50
|
+
- run: BASEDPL_COSTS=1 node --no-liftoff --test tests/wasm-speed.mjs
|
|
@@ -93,7 +93,7 @@ checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
|
|
|
93
93
|
|
|
94
94
|
[[package]]
|
|
95
95
|
name = "basedpl"
|
|
96
|
-
version = "0.1.
|
|
96
|
+
version = "0.1.51"
|
|
97
97
|
dependencies = [
|
|
98
98
|
"base64 0.23.1",
|
|
99
99
|
"bytemuck",
|
|
@@ -140,7 +140,7 @@ dependencies = [
|
|
|
140
140
|
|
|
141
141
|
[[package]]
|
|
142
142
|
name = "basedpl-cli"
|
|
143
|
-
version = "0.1.
|
|
143
|
+
version = "0.1.51"
|
|
144
144
|
dependencies = [
|
|
145
145
|
"async-trait",
|
|
146
146
|
"basedpl",
|
|
@@ -154,7 +154,7 @@ dependencies = [
|
|
|
154
154
|
|
|
155
155
|
[[package]]
|
|
156
156
|
name = "basedpl-py"
|
|
157
|
-
version = "0.1.
|
|
157
|
+
version = "0.1.51"
|
|
158
158
|
dependencies = [
|
|
159
159
|
"basedpl",
|
|
160
160
|
"bytemuck",
|
|
@@ -169,7 +169,7 @@ dependencies = [
|
|
|
169
169
|
|
|
170
170
|
[[package]]
|
|
171
171
|
name = "basedpl-wasm"
|
|
172
|
-
version = "0.1.
|
|
172
|
+
version = "0.1.51"
|
|
173
173
|
dependencies = [
|
|
174
174
|
"basedpl",
|
|
175
175
|
"js-sys",
|
|
@@ -871,9 +871,9 @@ dependencies = [
|
|
|
871
871
|
|
|
872
872
|
[[package]]
|
|
873
873
|
name = "kernmini"
|
|
874
|
-
version = "0.1.
|
|
874
|
+
version = "0.1.20"
|
|
875
875
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
876
|
-
checksum = "
|
|
876
|
+
checksum = "4ba8e9bfee7c661fa640e38a41f878edfd3052387d54f51611148713efa6941e"
|
|
877
877
|
dependencies = [
|
|
878
878
|
"async-trait",
|
|
879
879
|
"bytes",
|
|
@@ -1215,9 +1215,9 @@ checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"
|
|
|
1215
1215
|
|
|
1216
1216
|
[[package]]
|
|
1217
1217
|
name = "pyo3"
|
|
1218
|
-
version = "0.
|
|
1218
|
+
version = "0.30.1"
|
|
1219
1219
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1220
|
-
checksum = "
|
|
1220
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
1221
1221
|
dependencies = [
|
|
1222
1222
|
"libc",
|
|
1223
1223
|
"num-bigint",
|
|
@@ -1231,18 +1231,18 @@ dependencies = [
|
|
|
1231
1231
|
|
|
1232
1232
|
[[package]]
|
|
1233
1233
|
name = "pyo3-build-config"
|
|
1234
|
-
version = "0.
|
|
1234
|
+
version = "0.30.1"
|
|
1235
1235
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1236
|
-
checksum = "
|
|
1236
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
1237
1237
|
dependencies = [
|
|
1238
1238
|
"target-lexicon",
|
|
1239
1239
|
]
|
|
1240
1240
|
|
|
1241
1241
|
[[package]]
|
|
1242
1242
|
name = "pyo3-ffi"
|
|
1243
|
-
version = "0.
|
|
1243
|
+
version = "0.30.1"
|
|
1244
1244
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1245
|
-
checksum = "
|
|
1245
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
1246
1246
|
dependencies = [
|
|
1247
1247
|
"libc",
|
|
1248
1248
|
"pyo3-build-config",
|
|
@@ -1250,26 +1250,26 @@ dependencies = [
|
|
|
1250
1250
|
|
|
1251
1251
|
[[package]]
|
|
1252
1252
|
name = "pyo3-macros"
|
|
1253
|
-
version = "0.
|
|
1253
|
+
version = "0.30.1"
|
|
1254
1254
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1255
|
-
checksum = "
|
|
1255
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
1256
1256
|
dependencies = [
|
|
1257
1257
|
"proc-macro2",
|
|
1258
1258
|
"pyo3-macros-backend",
|
|
1259
1259
|
"quote",
|
|
1260
|
-
"syn
|
|
1260
|
+
"syn 3.0.9",
|
|
1261
1261
|
]
|
|
1262
1262
|
|
|
1263
1263
|
[[package]]
|
|
1264
1264
|
name = "pyo3-macros-backend"
|
|
1265
|
-
version = "0.
|
|
1265
|
+
version = "0.30.1"
|
|
1266
1266
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1267
|
-
checksum = "
|
|
1267
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
1268
1268
|
dependencies = [
|
|
1269
1269
|
"heck",
|
|
1270
1270
|
"proc-macro2",
|
|
1271
1271
|
"quote",
|
|
1272
|
-
"syn
|
|
1272
|
+
"syn 3.0.9",
|
|
1273
1273
|
]
|
|
1274
1274
|
|
|
1275
1275
|
[[package]]
|
|
@@ -1417,9 +1417,9 @@ dependencies = [
|
|
|
1417
1417
|
|
|
1418
1418
|
[[package]]
|
|
1419
1419
|
name = "rustymath"
|
|
1420
|
-
version = "0.1.
|
|
1420
|
+
version = "0.1.23"
|
|
1421
1421
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1422
|
-
checksum = "
|
|
1422
|
+
checksum = "68d6ca8642cde8e878e288fa97fcb8823846185430a4901e0d431ae4d29a56c7"
|
|
1423
1423
|
dependencies = [
|
|
1424
1424
|
"half",
|
|
1425
1425
|
"hashbrown 0.17.1",
|
|
@@ -2083,7 +2083,7 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
|
|
|
2083
2083
|
|
|
2084
2084
|
[[package]]
|
|
2085
2085
|
name = "xtask"
|
|
2086
|
-
version = "0.1.
|
|
2086
|
+
version = "0.1.51"
|
|
2087
2087
|
dependencies = [
|
|
2088
2088
|
"anyhow",
|
|
2089
2089
|
"serde_json",
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
[workspace]
|
|
2
2
|
members = ["py"]
|
|
3
3
|
|
|
4
|
+
[workspace.metadata.fastfmt]
|
|
5
|
+
join_comments = true
|
|
6
|
+
|
|
4
7
|
[workspace.package]
|
|
5
|
-
version = "0.1.
|
|
8
|
+
version = "0.1.51"
|
|
6
9
|
edition = "2021"
|
|
7
10
|
rust-version = "1.98"
|
|
8
11
|
license = "Apache-2.0"
|
|
@@ -57,7 +60,7 @@ num-complex = { version = ">=0.4.6, <1", features = ["bytemuck"] }
|
|
|
57
60
|
num-bigint = ">=0.4.6, <0.5"
|
|
58
61
|
num-traits = ">=0.2.19, <1"
|
|
59
62
|
half = { version = ">=2.7.1, <3", features = ["num-traits", "bytemuck"] }
|
|
60
|
-
rustymath = { version = ">=0.1.
|
|
63
|
+
rustymath = { version = ">=0.1.23, <1", default-features = false }
|
|
61
64
|
strength_reduce = ">=0.2.4, <1"
|
|
62
65
|
rand = ">=0.10.2, <1"
|
|
63
66
|
# AnswerDotAI's fork measures text with a canvas, which works in a Web Worker: plotters-rs/plotters#746.
|
|
@@ -20,15 +20,17 @@ Build nothing else without discussion: no scratch crates, alternate target direc
|
|
|
20
20
|
|
|
21
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
22
|
|
|
23
|
-
Measure with `BASEDPL_COSTS=1 cargo test --test speed
|
|
23
|
+
Measure with `BASEDPL_COSTS=1 cargo test --test speed` or `basedpl.bpltests.time_cases(cases)`. Both count costs in copies. A copy is the time to write as many floats as the data has items, each negated, into a second buffer. Budgets are single-thread measurements. Use `time_cases(..., threads=...)` separately for scaling. `speed_costs()` reads the cases in `tests/speed.txt`. `cases=` selects expressions, `wasm=DIR` selects a browser build, and `native=True` times rustymath's own linear algebra, which dev builds compile in. `logged_costs(log)` reads CI output, and `cargo_costs(path)` runs either project's speed test.
|
|
24
24
|
|
|
25
|
-
The manual `Speed` workflow measures the native and wasm builds on CI. When you review a run, look mainly for costs that changed by more than 20%, especially where several similar operations changed by similar amounts. Never raise budgets mechanically from a run's costs, because mechanical rises can lock in poor performance. Study each slowdown until you know its cause. Raise a budget only for a slowdown you've judged reasonable, never for a minor variation. `set_budgets(native, wasm, cases=cases)` applies the rule in the budget file to the cases that `cases` names. Name only the cases whose budgets should change. Without `cases`, it changes every case with a cost. A case can appear in more than one section, such as `[copies]` and `[widths]`. `sections=` limits the change to the sections it names. Pass `run=` only when the run sets every budget. It replaces the header line that names the run all the CI figures come from. `path=` selects rustymath's `tests/speed.txt`.
|
|
25
|
+
The manual `Speed` workflow measures the native and wasm builds on CI. On each push, the `Test` workflow also logs every native cost in its `test` job and every wasm cost in its `wasm` job. `logged_costs` reads those logs like a `Speed` run's. When you review a run, look mainly for costs that changed by more than 20%, especially where several similar operations changed by similar amounts. Never raise budgets mechanically from a run's costs, because mechanical rises can lock in poor performance. Study each slowdown until you know its cause. Raise a budget only for a slowdown you've judged reasonable, never for a minor variation. `set_budgets(native, wasm, cases=cases)` applies the rule in the budget file to the cases that `cases` names. Name only the cases whose budgets should change. Without `cases`, it changes every case with a cost. A case can appear in more than one section, such as `[copies]` and `[widths]`. `sections=` limits the change to the sections it names. For a new case that CI hasn't timed, pass this Mac's costs with `untimed=True`. A budget in copies is then four times the Mac cost, as the budget file's header says. Pass `run=` only when the run sets every budget. It replaces the header line that names the run all the CI figures come from. `path=` selects rustymath's `tests/speed.txt`.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
The speed tests and the scaling test time each failing case again after the rest, after each pause in `basedpl::timing::RETRY_PAUSES`, and fail only for a case that fails every time. Each retry prints the case's earlier and new costs, even in a passing run. `logged_costs` keeps a retried case's lowest cost. Study a case that needs a retry in most runs, as you would a slowdown.
|
|
28
|
+
|
|
29
|
+
For a change meant to make something faster, or a change to code that every call goes through, time the cases it affects with the installed `bpl` before your first `cargo develop`, and again after it. Editing doesn't change the installed `bpl`. Only `cargo develop` replaces it, including another agent's. Because costs in copies correct for the machine's overall speed, the two timings compare directly at the 20% level that review looks for. A budget allows twice a case's worst cost. The speed test alone misses any smaller slowdown. Other changes need only the speed test. Don't restore old code in the shared tree to get a baseline. On macOS, native timings of matrix products and decompositions mostly measure Accelerate. Rustymath's DEV.md says how to time rustymath's own kernels.
|
|
28
30
|
|
|
29
31
|
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. After 30 seconds, an exclusive wait prints the processes with the lock file open. The list can include processes that are only waiting for 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.
|
|
30
32
|
|
|
31
|
-
Run `cargo wasm` during development only for browser work. Agents use `cargo wasm --out DIR
|
|
33
|
+
Run `cargo wasm` during development only for browser work. Agents use `cargo wasm --out DIR`, then run the browser tests against that build with `basedpl.bpltests.wasm_test(DIR)` for `tests/wasm.mjs` and `wasm_test(DIR, speed=True)` for `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`.
|
|
32
34
|
|
|
33
35
|
### X86-64 machine code
|
|
34
36
|
|
|
@@ -82,9 +84,10 @@ Use `cargo build --lib --bins --profile test --timings` to inspect the normal bu
|
|
|
82
84
|
| `eval.rs`, `eval/session.rs`, `eval/operators.rs`, `eval/assign.rs` | Shared calls, sessions/modules, operators, scopes and assignments. |
|
|
83
85
|
| `execution.rs`, `error.rs` | Cancellation, deadlines, input/output and retained diagnostics. |
|
|
84
86
|
| `array.rs`, `array/storage.rs`, `array/text.rs` | Values, layouts, compact/mixed storage, gathering and source formatting. |
|
|
85
|
-
| `agreement.rs`, `keyed.rs`, `selection.rs` | Broadcasting, named/keyed alignment and selection/writeback. |
|
|
87
|
+
| `agreement.rs`, `keyed.rs`, `selection.rs` | Broadcasting, named/keyed alignment, composing `Steps` maps for fusion, and selection/writeback. |
|
|
86
88
|
| `primitive.rs`, `primitive/` | Primitive metadata, ranks/axes, inverses and array operations. |
|
|
87
|
-
| `number.rs`, `element.rs`, `pervasive.rs`, `fusion.rs` | Numeric domains, item operations, compact kernels and pending
|
|
89
|
+
| `number.rs`, `element.rs`, `pervasive.rs`, `fusion.rs` | Numeric domains, item operations, compact kernels, and pending arrays with the graphs that compute them. |
|
|
90
|
+
| `derivative.rs`, `linear.rs` | `∂`: duals, tags, seeding, the partials table and the rules for operators, and the record of linear calls that reverse mode transposes. |
|
|
88
91
|
| `search.rs`, `number_theory.rs`, `polynomial.rs`, `distribution.rs` | Array-level adapters to rustymath. |
|
|
89
92
|
| `system.rs`, `data.rs` | System-function metadata, native functions, options and import rules. |
|
|
90
93
|
| `csv.rs`, `json.rs`, `xml.rs`, `image.rs`, `plot.rs`, `canvas.rs`, `display.rs` | Formats, rich values and rendering. |
|
|
@@ -115,7 +118,7 @@ Tail calls reuse frames while preserving lexical dependencies. Handlers disable
|
|
|
115
118
|
|
|
116
119
|
## Values, layouts and assignment
|
|
117
120
|
|
|
118
|
-
`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. An array holds its layout and its storage in one allocation. Its `Shape` holds ranks 0 to 2 inline, so a small array allocates no shape. Constructors take `impl Into<Shape>`: pass a slice, or an array such as `[n]`, rather than building a `Vec`. A shape, key or name change on a shared array makes a view of the base array's storage and copies no items. `Buffer`, `Value::buffer` and `from_buffer` are the public width-preserving frontend boundary.
|
|
121
|
+
`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. An array holds its layout and its storage in one allocation. Its `Shape` holds ranks 0 to 2 inline, so a small array allocates no shape. Constructors take `impl Into<Shape>`: pass a slice, or an array such as `[n]`, rather than building a `Vec`. A shape, key or name change on a shared array makes a view of the base array's storage and copies no items. A large result of a fusible float call holds a pending call in place of its storage, and computes the storage on the first read (`fusion.rs`). `Buffer`, `Value::buffer` and `from_buffer` are the public width-preserving frontend boundary.
|
|
119
122
|
|
|
120
123
|
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`.
|
|
121
124
|
|
|
@@ -169,13 +172,15 @@ Custom elementwise closures use `rustymath::pairs` and its uninitialized append
|
|
|
169
172
|
|
|
170
173
|
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.
|
|
171
174
|
|
|
172
|
-
`fusion.rs`
|
|
175
|
+
`fusion.rs` defers eligible float calls: `Primitive::pervasive_mapped` gives a pending array (`Data::Node` holding a `fusion::Pending`) in place of the result. Pending arrays survive assignment and link to the pending arrays they read. Reading one forces it through `ArrayData::storage`, which builds a `Graph` from the pending calls that only that graph reads and runs it block by block through the same pervasive kernels. Readers that need only the shape, kind or prototype, such as `Value::len` and `Value::environment`, answer without forcing. `Value::force` forces a result, as timing does. Each node writes a block to a buffer that later nodes reuse once its readers have run. Small graphs run unfused unless a supported reduction consumes them directly. Node-making code stays out of line from dispatch, because inlined code grows the frame that stays on the stack at every recursion level. The module doc owns eligibility rules and limits; don't copy its thresholds here. A structural copy of one source through rustymath `Steps` (`remapped`) whose result has at least `MIN_ITEMS` items gives a pending copy (`fusion::copy`) for any compact kind. Its map is a `Mapping::Steps` with one entry for each result axis. Broadcasting's maps use the same variant. Forcing composes a read of a copy with the copy's map, and moves a read with no repeat or fill under the pervasive calls it reaches (`Pending::resolved`), so `2×⌽v+1` reads `v` backwards in one graph. `expanded` reads a forward run in place, and copies anything else through `gather::walk_range`. A copy that no call reads through is walked as `remapped` walks it. Fused and ordinary folds share rustymath's `reduce::along`/`fold_into` traversal.
|
|
176
|
+
|
|
177
|
+
`derivative.rs` implements `∂`. A dual is a tag, a primal and a tangent: `Repr::Dual` for a number and `Data::Dual` for an array, whose primal and tangent can be pending. `call_axis` sends a call with a dual argument to `derivative::call`. It applies the partials table to pervasive glyphs and its own rule to `⌻`, and calls glyphs whose results carry no tangent on the primals. Structural glyphs, Under and selective assignment need no rules, because `Gather` copies a dual's primal and tangent together. Mix of a dual whose primal is nested mixes the primal and the tangent apart (`Rule::Parts`). `fold` and scans with `+`, `×`, `⌈` and `⌊`, `+.×` and outer products have rules, and kernels that read numbers directly leave active arguments to their general paths. `Function::apply` sends a call of `⌹` or `⊥` with an active argument to `derivative::operated`, because their rules call `+.×` and scans, which need a `&mut Context` that `call_axis` doesn't have. `expansion` sends monadic `-.×` to `derivative::determinant`. The rules for `⌹` and `-.×` keep the glyph's own result as the primal, so that a function computes the same values with or without `∂`. Their tangents and transposes multiply by `R`, the inverse that `numeric::matrix_inverse` takes from one factorization through rustymath's `linalg::inverse`. `regular_inverse` gives UNSUPPORTED where rustymath's regularity test finds the matrix singular. With only `B` active, `R` is `⌹A`, a pseudoinverse included. With one number in `x`, `f∂ x` runs `f` once with `x` seeded along it. With more, `linearized` runs `f` once with each part of `x` seeded with a record from `linear.rs`: a tangent whose items are never computed, which the same rules extend into a graph of linear calls. `reverse` then reads the Jacobian from the record, by a transpose for each result item or a forward evaluation for each number of `x`, whichever are fewer. A function with a JVP rule that `f∂←g` attached calls the rule with `⍺` a dual of zeros whose tangent is the argument's, so in reverse mode the rule extends the record too (`derivative::attached`). A call of such a function with two arguments gives DOMAIN ERROR wherever `∂` needs a derivative through it (`derivative::two_arguments`). Code that reads a dual array's storage gets its items as number duals, which is correct at per-item speed. A number that reaches code that can't differentiate it gives an UNSUPPORTED error. Writes to bindings outside a `∂` call are recorded and stripped when it returns.
|
|
173
178
|
|
|
174
179
|
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.
|
|
175
180
|
|
|
176
|
-
The automatic Rayon scheduler serves rustymath elementwise `many` and `pairs`, folds through `reduce::along`, fused
|
|
181
|
+
The automatic Rayon scheduler serves rustymath elementwise `many` and `pairs`, folds through `reduce::along`, fused graphs and matrix products. Scans don't split. Decompositions split in the products of their blocked updates, the passes of their Hermitian and bidiagonal reductions, and their divide-and-conquer merges. `rank` sends dyadic `+.×` and `⌹`, monadic `⌹` and `-.×`, and `•decompose` over the 2-cells of an unkeyed stack with compact storage to `primitive::stacked` and `stacked_decompositions`. They run each cell through the rustymath function it uses alone. A pervasive operand, or Rank nested down to one, runs as one call: each argument gets length-1 axes after each level's frame, so leading-axis agreement pairs frames with frames and cells with cells. Arguments with axis names still go cell by cell. Rustymath's `parallel::stack_with` splits whole cells across threads in rounds, with `check_now` between rounds. A caller whose checks run far apart, such as a round or a rustymath `_with` callback, calls `check_now`, because `Context::check` reads the clock only on every 64th call. The scheduler adapts to call cost, uses `RAYON_NUM_THREADS` by default and accepts current-thread overrides through `parallel::set_threads` (0 default, 1 serial). `Session::evaluation` applies a session's `•prefs ["threads":n]` to each of its evaluations, then restores the thread's own setting. A session that never sets it keeps the evaluating thread's setting, such as the timing harness's one thread. Nested Rayon work does not split again; wasm is serial. A fused graph splits in pieces of whole blocks: an elementwise graph through `parallel::extended`, and a folded one through `reduce::fold_pieces`. On one thread an elementwise graph appends straight to its result, because copying each block into a piece's slots cost up to 1.2 copies there. Small converted chunks limit the work available to the scheduler. Don't infer multicore execution from a large array alone.
|
|
177
182
|
|
|
178
|
-
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.
|
|
183
|
+
Packed numeric, Boolean and equality-count inner products use `rustymath::linalg`. Integer calls use `Inner::checked` before relying on an exact compact result. `pervasive::inner` takes each operand's `Orientation`. Its float and complex products read a transposed operand in place, as reverse mode's `product_transpose` needs. 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.
|
|
179
184
|
|
|
180
185
|
## Evaluation and frontend boundaries
|
|
181
186
|
|
|
@@ -219,7 +224,7 @@ The playground and gallery load released assets from jsDelivr, or local `nbs/pla
|
|
|
219
224
|
|
|
220
225
|
`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.
|
|
221
226
|
|
|
222
|
-
`optimize.rs` implements `⇄` on `rustymath::optimize`. The left argument holds the options. `Goal` evaluates the function at points in the start's layout for `minimize`.
|
|
227
|
+
`optimize.rs` implements `⇄` on `rustymath::optimize`. The left argument holds the options. When the method can use a derivative (none named, L-BFGS, Levenberg–Marquardt, CG or MINRES), one linearisation at the start (`derivative::linearized`) finds whether `∂` differentiates the function, and gives its value there. `Goal` evaluates the function at points in the start's layout for `minimize`. When the search runs L-BFGS, each value comes from a linearisation that `gradient` then transposes at the same point (`linearized_at`), so a value and its gradient run the function once. With `"solve":$t`, `Residual` is the `Mapping` that `solve` takes, or that `solve_affine` takes with `"linear":$t` as well. Where `∂` differentiates the function, `Residual` gives JVPs and vector–Jacobian products from one record at each point, or from the start's record for an affine function. At a later point where `∂` gives an UNSUPPORTED error, `Residual::jvp` declines, and rustymath takes forward differences for that Jacobian and later ones. A square linear system takes no products with the transpose, so it runs GMRES on A, not the normal equations. The function in option `precondition` gives the preconditioner.
|
|
223
228
|
|
|
224
229
|
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⁻¹`.
|
|
225
230
|
|
|
@@ -2,9 +2,7 @@ use std::{env, fs, path::Path};
|
|
|
2
2
|
|
|
3
3
|
/// Sets `cfg(web)` for the browser target, `wasm32-unknown-unknown`, and embeds the help text.
|
|
4
4
|
///
|
|
5
|
-
/// The help is the glyph pages in `nbs/glyphs` and the system pages in `nbs/system`, each embedded whole. A glyph page's key is its
|
|
6
|
-
/// file stem. A system page's keys are the `•` and `$` names in backticks in its headings, such as `•json` in a title, or `$a` in a
|
|
7
|
-
/// section of the constants page. Embedded links are relative to the documentation root.
|
|
5
|
+
/// The help is the glyph pages in `nbs/glyphs` and the system pages in `nbs/system`, each embedded whole. A glyph page's key is its file stem. A system page's keys are the `•` and `$` names in backticks in its headings, such as `•json` in a title, or `$a` in a section of the constants page. Embedded links are relative to the documentation root.
|
|
8
6
|
fn main() {
|
|
9
7
|
println!("cargo::rustc-check-cfg=cfg(web)");
|
|
10
8
|
if env::var("CARGO_CFG_TARGET_ARCH").is_ok_and(|a| a == "wasm32") && env::var("CARGO_CFG_TARGET_OS").is_ok_and(|o| o == "unknown") {
|
|
@@ -13,11 +11,8 @@ fn main() {
|
|
|
13
11
|
let mut entries = Vec::new();
|
|
14
12
|
for dir in ["glyphs", "system"] {
|
|
15
13
|
println!("cargo::rerun-if-changed=nbs/{dir}");
|
|
16
|
-
let paths: Vec<_> = fs::read_dir(format!("nbs/{dir}"))
|
|
17
|
-
.
|
|
18
|
-
.map(|entry| entry.unwrap().path())
|
|
19
|
-
.filter(|path| path.extension().is_some_and(|s| s == "qmd"))
|
|
20
|
-
.collect();
|
|
14
|
+
let paths: Vec<_> = fs::read_dir(format!("nbs/{dir}")).unwrap().map(|entry| entry.unwrap().path())
|
|
15
|
+
.filter(|path| path.extension().is_some_and(|s| s == "qmd")).collect();
|
|
21
16
|
for path in &paths {
|
|
22
17
|
let mut help = fs::read_to_string(path).unwrap();
|
|
23
18
|
for target in &paths {
|
|
@@ -27,7 +22,10 @@ fn main() {
|
|
|
27
22
|
let help = help.replace("](../", "](");
|
|
28
23
|
let keys: Vec<&str> = if dir == "glyphs" { vec![path.file_stem().unwrap().to_str().unwrap()] } else {
|
|
29
24
|
let mut fenced = false;
|
|
30
|
-
let headings = help.lines().filter(|line| {
|
|
25
|
+
let headings = help.lines().filter(|line| {
|
|
26
|
+
fenced ^= line.starts_with("```");
|
|
27
|
+
!fenced && line.starts_with('#')
|
|
28
|
+
});
|
|
31
29
|
headings.flat_map(|line| line.split('`').skip(1).step_by(2)).filter(|name| name.starts_with(['•', '$'])).collect()
|
|
32
30
|
};
|
|
33
31
|
for key in keys { entries.push(format!("({key:?}, {help:?})")); }
|
|
@@ -1259,11 +1259,6 @@
|
|
|
1259
1259
|
<option name="OTHER" value="true" />
|
|
1260
1260
|
</context>
|
|
1261
1261
|
</template>
|
|
1262
|
-
<template name="vjp" value="∂" description="∂" shortcut="TAB">
|
|
1263
|
-
<context>
|
|
1264
|
-
<option name="OTHER" value="true" />
|
|
1265
|
-
</context>
|
|
1266
|
-
</template>
|
|
1267
1262
|
<template name="wedge" value="∧" description="∧" shortcut="TAB">
|
|
1268
1263
|
<context>
|
|
1269
1264
|
<option name="OTHER" value="true" />
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
"id": "46f0fb79",
|
|
528
528
|
"metadata": {},
|
|
529
529
|
"source": [
|
|
530
|
-
"`f∂←g` attaches `g` as the derivative, which [`∂`](glyphs/partial.qmd) and [`⇄`](glyphs/right-left-arrows.qmd) call. `g` gives the
|
|
530
|
+
"`f∂←g` attaches `g` as the derivative, which [`∂`](glyphs/partial.qmd) and [`⇄`](glyphs/right-left-arrows.qmd) call. `g` is a JVP rule: `t g x` gives the derivative of `f` at `x` along the direction `t`, and must be linear in `t`. `∂` calls it with `t` set to each direction it needs:"
|
|
531
531
|
]
|
|
532
532
|
},
|
|
533
533
|
{
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
"outputs": [],
|
|
539
539
|
"source": [
|
|
540
540
|
"sq←{⍵×⍵}\n",
|
|
541
|
-
"sq∂←{
|
|
541
|
+
"sq∂←{⍺×2×⍵}\n",
|
|
542
542
|
"sq∂3"
|
|
543
543
|
]
|
|
544
544
|
},
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
"outputs": [],
|
|
559
559
|
"source": [
|
|
560
560
|
"sq⁻¹←{⍵*0.5}\n",
|
|
561
|
-
"[sq 3;
|
|
561
|
+
"[sq 3;sq∂ 3;sq⁻¹ 9]"
|
|
562
562
|
]
|
|
563
563
|
},
|
|
564
564
|
{
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# `⍉` — Transpose / Reorder axes
|
|
2
|
+
|
|
3
|
+
Function. Keys: `Alt-o Backslash`. Ranks: `∞` monadic, `1 ∞` dyadic
|
|
4
|
+
|
|
5
|
+
`⍉Y` reverses axis order.
|
|
6
|
+
|
|
7
|
+
```bpl
|
|
8
|
+
⍉2 3⍴⍳6 ⍝ [0 3⋄1 4⋄2 5]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
In `A⍉Y`, each item of `A` is a number that gives the result axis for the corresponding leading axis of `Y`. The axes of `Y` that `A` doesn't reach fill the unused result axes in order, as in BQN. Together, the selected and filled axes run from 0 with no gaps. A key on an item names its result axis. A name in place of a number gives DOMAIN ERROR. To select axes by name, use `⍉⁻¹`.
|
|
12
|
+
|
|
13
|
+
```bpl
|
|
14
|
+
1 0⍉2 3⍴⍳6 ⍝ [0 3⋄1 4⋄2 5]
|
|
15
|
+
⍴1⍉2 3 4⍴⍳24 ⍝ [3 2 4]ₓ
|
|
16
|
+
["rows":1 "cols":0]⍉2 3⍴⍳6
|
|
17
|
+
⍝ ["cols":3 "rows":2]⍴[0 3⋄1 4⋄2 5]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Repeated destinations select diagonals, taking the smallest participating dimension. A diagonal keeps the keys and name that its axes agree on, as mix does.
|
|
21
|
+
|
|
22
|
+
```bpl
|
|
23
|
+
0 0⍉3 3⍴⍳9 ⍝ 0 4 8
|
|
24
|
+
⍴["i":0 0]⍉3 3⍴⍳9 ⍝ ["i":3]ₓ
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
A left argument of higher rank transposes `Y` once for each row, and stacks the results.
|
|
28
|
+
|
|
29
|
+
```bpl
|
|
30
|
+
[0 1⋄1 0]⍉2 3⍴⍳6 ⍝ [[0 1 2⋄3 4 5]⋄[0 3⋄1 4⋄2 5]]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Split and route
|
|
34
|
+
|
|
35
|
+
A nested list splits one input axis. Each of its items is a `[destination size]` pair, optionally keyed by the new axis's name. One size can be `∞`, which `⍉` infers. The sizes must multiply to exactly the input axis's length. Unlike `⍴`, a split never cycles or truncates data.
|
|
36
|
+
|
|
37
|
+
```bpl
|
|
38
|
+
x←2 3 8⍴⍳48
|
|
39
|
+
⍴[0 2 [1 2;3 ∞]]⍉x ⍝ [2 2 3 4]ₓ
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
The last axis splits into sizes `2 4`, which go to result axes `1 3`. This turns `batch tokens packed` into `batch heads tokens features`. A key on an unsplit item names its result axis. Keys within a group name the factors. A key on a group names the axis that the inverse merges.
|
|
43
|
+
|
|
44
|
+
```bpl
|
|
45
|
+
x←["b":2 "t":3 "d":8]⍴⍳48
|
|
46
|
+
f←["b":0 "t":2 "d":["h":1 2;"f":3 ∞]]⍉
|
|
47
|
+
⍴f x ⍝ ["b":2 "h":2 "t":3 "f":4]ₓ
|
|
48
|
+
(f⁻¹f x)≡x ⍝ $t
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Keys only name axes. Item `i` still describes input axis `i`, whatever its key.
|
|
52
|
+
|
|
53
|
+
## Inverse
|
|
54
|
+
|
|
55
|
+
`⍉⁻¹Y` is `⍉Y`. In `X⍉⁻¹Y`, `X` lists the source axes in output order, as einops does. A numeric `X` reverses `X⍉`. A name in `X` selects that axis of `Y`.
|
|
56
|
+
|
|
57
|
+
```bpl
|
|
58
|
+
2 0 1⍉⁻¹2 0 1⍉2 3 4⍴⍳24 ⍝ 2 3 4⍴⍳24
|
|
59
|
+
⍴2⍉⁻¹2 3 4⍴⍳24 ⍝ [4 2 3]ₓ
|
|
60
|
+
x←["b":2 "h":3 "w":4]⍴⍳24
|
|
61
|
+
⍴["w" "b" "h"]⍉⁻¹x ⍝ ["w":4 "b":2 "h":3]ₓ
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
A nested list merges the axes it selects, in that order. Its items can also be `[source size]` pairs, as a split's are. Each size must match its axis's length. A size of `∞` matches any length. The inverse of a bound split reads its pairs this way.
|
|
65
|
+
|
|
66
|
+
```bpl
|
|
67
|
+
x←2 3 8⍴⍳48
|
|
68
|
+
f←[0 2 [1 2;3 ∞]]⍉
|
|
69
|
+
(f⁻¹f x)≡x ⍝ $t
|
|
70
|
+
[0 2 [1 3]]⍉⁻¹f x ⍝ 2 3 8⍴⍳48
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Names let `⍉⁻¹` reorder and merge the factors of a split. For 16 by 16 image patches, split height and width into patch and pixel axes, then merge them into one patch axis and one pixel axis:
|
|
74
|
+
|
|
75
|
+
```bpl
|
|
76
|
+
images←["b":8 "h":224 "w":224 "c":3]⍴0
|
|
77
|
+
patches←["b":0 "h":["i":1 ∞;"y":3 16] "w":["j":2 ∞;"x":4 16] "c":5]⍉images
|
|
78
|
+
⍴patches ⍝ ["b":8 "i":14 "j":14 "y":16 "x":16 "c":3]ₓ
|
|
79
|
+
⍴["b" "patch":["i" "j"] "pixel":["y" "x" "c"]]⍉⁻¹patches
|
|
80
|
+
⍝ ["b":8 "patch":196 "pixel":768]ₓ
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Splitting or merging drops position keys on the changed axes. A changed axis takes its name from a key in the left argument, and has none without one. Untouched axes keep their keys and names, unless a key renames them. A named `X⍉⁻¹` doesn't record the original axis order. Inverting it gives DOMAIN ERROR. A numeric left argument inverts in both directions when each group is a list of pairs with sizes. Under writes back through every form of `⍉` and `⍉⁻¹`.
|
|
@@ -11,8 +11,6 @@ Dyadic operator
|
|
|
11
11
|
|
|
12
12
|
Singleton contraction axes extend. Empty contractions use the reduction identity. `g⊗` is [outer product](circle-times.qmd).
|
|
13
13
|
|
|
14
|
-
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.
|
|
15
|
-
|
|
16
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.
|
|
17
15
|
|
|
18
16
|
```bpl
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# `∂` — Derivative
|
|
2
|
+
|
|
3
|
+
Monadic operator. Keys: `Alt-f`
|
|
4
|
+
|
|
5
|
+
`f∂X` gives the Jacobian of `f` at `X`, with the keys, axis names and nesting of `(f X)×⊗X`. For a number result, that's the gradient, in `X`'s structure. `W f∂ X` differentiates `W f X` with respect to `X`.
|
|
6
|
+
|
|
7
|
+
```bpl
|
|
8
|
+
{⍵×⍵}∂3 ⍝ 6
|
|
9
|
+
{+/⍵×⍵}∂ 1 2 3 ⍝ 2 4 6
|
|
10
|
+
cart←{[r t]←⍵ ⋄ [r×2○t; r×1○t]} ⋄ -.×cart∂ 2 0.5 ⍝ 2
|
|
11
|
+
3 {⍺×⍵×⍵}∂ 2 ⍝ 12
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`∂` differentiates through the primitives that `f` calls, inside dfns, trains and operators alike. An exact argument gives an exact derivative, and a record argument gives a record gradient:
|
|
15
|
+
|
|
16
|
+
```bpl
|
|
17
|
+
{⍵×⍵}∂2ᵣ3 ⍝ 4ᵣ3
|
|
18
|
+
p←["a":1 "b":2] ⋄ {(⍵.a)×⍵.b}∂ p ⍝ ["a":2 "b":1]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For the derivative at each item of a function that works item by item, differentiate at rank 0, or along a unit argument in one pass:
|
|
22
|
+
|
|
23
|
+
```bpl
|
|
24
|
+
x←0 0.5 1
|
|
25
|
+
1○∂⍤0 x ⍝ 1 0.8775825619 0.5403023059
|
|
26
|
+
{1○x+⍵}∂0 ⍝ 1 0.8775825619 0.5403023059
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`f∂∂` differentiates `f∂`, so nested `∂` gives higher and mixed derivatives:
|
|
30
|
+
|
|
31
|
+
```bpl
|
|
32
|
+
{⍵×⍵×⍵}∂∂∂2 ⍝ 6
|
|
33
|
+
{⍵₀×⍵₁}∂∂ 2 3 ⍝ [0 1⋄1 0]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`C⌻` differentiates with respect to the point and to the coefficients `C`. `C⌻` is a train that binds `C`, the same as `C↣⌻`.
|
|
37
|
+
|
|
38
|
+
```bpl
|
|
39
|
+
f←[1 2 3]ₓ⌻ ⋄ f∂2ₓ ⍝ 14ₓ
|
|
40
|
+
{⍵⌻2ₓ}∂ [1 2 3]ₓ ⍝ [1 2 4]ₓ
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`∂` runs `f` once. With more than one number in `X`, it records the linear steps of the derivative as `f` runs, then reads the Jacobian from that record: once for each result item, or once for each number in `X`, whichever is fewer. A gradient therefore costs a small multiple of one run of `f`, however many numbers `X` holds. The record keeps the values those steps need until `∂` finishes, so memory grows with the work that `f` does. A value that `f` writes to an outer name loses its tangents when `∂` returns.
|
|
44
|
+
|
|
45
|
+
Arithmetic, the mathematical glyphs, the circle codes, `⌈` and `⌊`, structural and selection glyphs, Under, sorting, folds and scans, `+.×`, outer products, `⌻` and `⊥` all differentiate, and so does any operator whose operands do. `⌹` and the determinant `-.×` differentiate at an invertible matrix, and `B⌹A` differentiates with respect to `B` for any matrix `A`. Comparisons, floor, ceiling, grade, `⍳` and `⍸` give no tangent. `∂` doesn't differentiate complex numbers.
|
|
46
|
+
|
|
47
|
+
`f∂←g` attaches `g` as the derivative of the function that `f` names, as [assignment](../assignment.ipynb#inverses-and-derivatives) describes. `g` is a JVP rule: `T g X` gives the derivative of `f` at `X` along the direction `T`, which has `X`'s structure. `g` must be linear in `T`. `f` still applies itself, and `∂` uses `g` wherever `f` is called with one argument, alone or inside another function. For a gradient, `∂` transposes the steps that `g` takes on `T`. A rule describes a function of one argument, so `∂` through a call of `f` with two arguments gives an error. Bind the left argument first, as in `bound←10↣f ⋄ bound∂←g`. `⁻¹` inverts `f`, and [`⇄`](right-left-arrows.qmd) takes its derivatives through `∂`.
|
|
48
|
+
|
|
49
|
+
```bpl
|
|
50
|
+
r←{⍵×⍵} ⋄ r∂←{⍺×2×⍵}
|
|
51
|
+
r 3 ⍝ 9
|
|
52
|
+
r∂3 ⍝ 6
|
|
53
|
+
{1+r ⍵}∂3 ⍝ 6
|
|
54
|
+
s←{+/⍵×⍵} ⋄ s∂←{+/⍺×2×⍵} ⋄ s∂ 1 2 3 ⍝ 2 4 6
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Errors
|
|
58
|
+
|
|
59
|
+
- `DOMAIN`: an argument or a result that isn't numeric, a nested result for an array argument, or a call with two arguments of a function that has an attached derivative
|
|
60
|
+
- `UNSUPPORTED`: a glyph or system function that `∂` can't differentiate yet, such as `¿`, a derivative of `⌹` or `-.×` with respect to a singular matrix, or a complex argument
|
|
61
|
+
- `SYNTAX`: a left argument for a function that takes only one argument, such as `C↣⌻`
|