Socket
Socket
Sign inDemoInstall

chez-scheme-js

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chez-scheme-js

Chez Scheme on the web w/ WASM and Workers


Version published
Maintainers
1
Install size
7.43 MB
Created

Readme

Source

chez-scheme-js

Chez Scheme on the web

Browser

chez-scheme-js uses SharedArrayBuffer, which requires the COOP and COEP security headers to be set and for there to be a secure context (either localhost or https).

Cross-Origin-Opener-Policy: same-origin
// And one of:
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Embedder-Policy: credentialless

Node.js

Node.js is currently unsupported. There is no technical reason it couldn't be, but figuring out a build system that will support both Node.js and browsers takes some work. PRs to do this will be accepted.

Development

Run npm i to install dependencies.

This project uses Racket's modified Chez Scheme, which has support for compilation to WASM via Emscripten. The binaries for it are not checked in, and you will need to compile them yourself.

Compiling Chez Scheme

You will need gcc, make, sh, and similar programs. If you are using Windows, I recommend using WSL. You will also need to install Emscripten.

Once you have everything installed, run npm run build-chez. This will generate a custom WebAssembly build of Chez Scheme, copy the relevant artifacts into src/chez, and then patch the JavaScript file so that chez-scheme-js can interface with certain internals.

Building

This project uses Webpack, and it can be compiled with npm run build or watched with npm run watch.

Testing

Currently there are no automated tests. There is a playground which can be run with npm start

FAQs

Last updated on 11 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc