squiggle/packages/squiggle-lang/scripts
2022-09-28 14:14:35 +10:00
..
bench-map-reduce.mjs refactor scripts 2022-09-20 00:57:20 +04:00
bench-map.mjs refactor scripts 2022-09-20 00:57:20 +04:00
bench-sampleset-to-pointset.mjs sampleset benchmark reports errors and accepts SAMPLE_COUNT 2022-09-20 01:26:19 +04:00
lib.mjs Add project serialization and run project 2022-09-28 14:14:35 +10:00
README.md .mjs for all scripts 2022-09-18 19:18:10 +04:00
run-file.mjs refactor scripts 2022-09-20 00:57:20 +04:00
run-project.mjs Add project serialization and run project 2022-09-28 14:14:35 +10:00
run.mjs fix scripts, support SAMPLE_COUNT 2022-09-20 20:54:26 +04:00

Various scripts used for development, benchmarking and testing.

None of these are bundled in the NPM package yet.

run.mjs

scripts/run.mjs allows quick testing of Squiggle programs:

$ ./scripts/run.mjs '2+2'
Running 2+2
Ok 4
@{__result__: 4}

run-file.mjs

scripts/run-file.mjs can be used to run and benchmark squiggle scripts stored in files:

$ ./scripts/run-file.mjs ./path/to/file.squiggle
Time: 3.18 Ok

To see the result and bindings, add the -o or --output flag.