SANGUIS IN WEB PAGES
====================

sanguis-floor.wasm is the Sanguis floor (toolchain/boot/bc_exec.c) built as WebAssembly, compiler.bc is the same compiler as
seed/compiler.bc, and sanguis.js connects them to a page. A page compiles and runs Sanguis with the same code as your
computer, and gets the same bytes back.

Put the three files beside your page, then:

  <script src="sanguis.js"></script>
  <script type="text/sanguis">
  cell main() -> float { print("Hello from Sanguis."); output 0.0; }
  </script>

The script is compiled and run in the background when the page loads, and what it prints appears below it. From
JavaScript: Sanguis.background().exec(source) or .compile(source) / .run(bc, entry), each returning a promise.
A program compiled ahead of time loads at once: <script type="text/sanguis" data-bc="app.bc"></script>

Browsers do not run WebAssembly from file:// pages, so serve the folder over HTTP (for example: python -m http.server).

If your page has a Content-Security-Policy, add 'wasm-unsafe-eval' to script-src. It allows WebAssembly and nothing
else: JavaScript eval stays blocked.

Programs see what the page gives them: their files, their arguments, their output. No clock, no network.
