cpitclaudel / fstar.js

F* running in the browser
Apache License 2.0
21 stars 2 forks source link

============== fstar.js

This repo contains a scripts, wrappers, and libraries to run F* <https://github.com/FStarLang/FStar/>_ in the browser. More precisely, it includes the following:

Loading Z3 and F and downloading F libraries is fairly slow (~15 seconds on Chrome, though less than 1 second on Firefox), but verification performance is fairly good (typically within a factor 2-5 of native on Chrome, and 3-10 of native on Firefox).

Pre-built archives are available at https://github.com/cpitclaudel/fstar.js/releases.

Building

Using the generated code

The recommended way to integrate F*.js in your documents is to use fslit <https://github.com/FStarLang/fstar-mode.el/tree/master/etc/fslit>_ and Sphinx.

Other options are listed below:

Notes

The build script places all artefacts in dist/:

The JavaScript libraries are built from TypeScript sources in lib/: each file has a small header summarizing its purpose.