Replace Python server with Guile

This commit is contained in:
2026-03-02 17:47:22 +00:00
parent 6c30d96e96
commit a0e3706db7
3 changed files with 48 additions and 22 deletions

View File

@@ -19,19 +19,18 @@ To run, first compile the WebAssembly module:
wat2wasm --enable-threads wipforth.wat
```
Then run the server:
Then run the development server:
```
python3 server.py
guile server.scm
```
You should then be able to open <http://localhost:8080> in a browser
and use the system from there.
**NOTE**: The server is just a very simple instantiation of Python's
built-in `http.server.HTTPServer`, configured to set the cross-origin
headers required for `SharedMemoryBuffer` use. You could use any HTTP
server that sets these headers.
**NOTE**: The server is very simple and just serves the files with the
cross-origin isolation headers required for `SharedMemoryBuffer` use.
You could use any HTTP server that sets these headers.
## Peripherals