DEVELOPMENT EDITION · 769442725406
Examples

APL tour

The APL chapter's examples as complete projects. Each project's main evaluates APL text over two vectors and a matrix and prints the results, and its arrays unit holds APL one-liners as functions with the contracts that let them prove.

Project Expected result
vada prove proves every check; run (JIT) and build (native) print expected.stdout; translate --to vada --plain-ada gives Ada that GNAT compiles and runs with the same output
varc The Vada tour in Varc: proves, and prints expected.stdout
vibe The tour's functions in Vibe: proves; prints vibe/expected.stdout in the JIT, natively, and under CPython with the test suite's verada module (PYTHONPATH=test/vibe)

Run them from a copy or in place, for example:

veradic prove --project docs/manuals/examples/apl/vada/verada.toml
veradic run --project docs/manuals/examples/apl/vada/verada.toml

veradic translate --to vibe of the Vada tour gives a Vibe program that proves and prints expected.stdout too (Ada's images, as image()); the vibe project is the tour written as Vibe is usually written, with Python's images. The observed results are recorded in apl-validation.json.