Hacker News new | past | comments | ask | show | jobs | submit login

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.



Thanks! Glicol looks very cool. Ya I am familiar with those headers and I've actually tested it with this, the issue was that I rely on iframes for a few of my apps (Browser & Video Player w/YouTube), and those headers break it. I had some hope with `COEP: credentialless` (https://github.com/WICG/credentiallessness/blob/main/explain...) but it still didn't solve my issue, so I am waiting now for anonymous iframes (https://github.com/camillelamy/explainers/blob/main/anonymou...).


Cool. Really look forward to your update.


Wow, I checked your website/desktop (https://dustinbrett.com/) again and tried to open your browser to make some music there. Apparently for Glicol you need to enable CORS. I think that's the only thing that stops the website to make sound now.

But my another project QuaverSeries, the precursor of Glicol, works like a charm in your browser: https://quaverseries.web.app


Your first GitHub Link is 404


Now it should be fine. Thanks. :)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: