Comment

Comment by chaosprint

Looks great!

For SharedArrayBuffer and CORS, I have some experience and it's not difficult to deal with.

You can check my project for music live coding in browsers:

https://glicol.org

All the audio library and langauge parser are written in Rust and compiled to WebAssembly, running in AudioWorklet thread.

The control parameter is constantly shared from main thread to AudioWorklet thread with my customised ringbuf.js to avoid GC from JS in real-time audio:

https://github.com/chaosprint/glicol

I use vite.js for development; for local dev server CORS, check:

https://github.com/vitejs/vite/issues/3909

For deployment CORS, e.g. Netlify, just edit the '_header' file as:

/*

  Cross-Origin-Opener-Policy: same-origin

  Cross-Origin-Embedder-Policy: require-corp
in the 'public' folder.
parent chaosprint 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton