Skip to content

Example of using s7 Scheme with web assembly and emscripten

License

Notifications You must be signed in to change notification settings

iainctduncan/s7-wasm

Repository files navigation

s7-wasm

Overview

This is a work in progress that will become a minimal example of using s7 Scheme with web assembly.

Status:

  • evaluating scheme from JS and showing results works
  • error output is not yet captured and displayed (though it shows in the console)

Building :

You will need s7 and emscripten installed.

Build s7 to wasm:

emcc -c s7.c -o s7.wasm

Build the app:

emcc simple.c s7.wasm --js-library mergeinto.js -o simple.js -L. -I. -ldl -lm -s EXPORTED_RUNTIME_METHODS=['ccall','UTF8ToString']

Serve it up:

python -m http.server

View:

open localhost:8080/host.html

About

Example of using s7 Scheme with web assembly and emscripten

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published