quiet / quiet-js

Transmit data with sound using Web Audio -- Javascript binding for libquiet
BSD 3-Clause "New" or "Revised" License
2.19k stars 150 forks source link

Fully investigate GC issues #2

Open brian-armstrong opened 8 years ago

brian-armstrong commented 8 years ago

It seems that right now Firefox GC is likely collecting the receiver some short time after it is created. This is a regression. I'd like to fully solve these sorts of issues once and for all.

lastmjs commented 7 years ago

I imagine compiling to wasm might fix this and all other gc issues, since the wasm VM doesn't even support GC yet.

lastmjs commented 7 years ago

And wasm has it's own VM designed for non-GC languages like C/C++, so your compiled code isn't running in a GC VM at all once compiled to wasm.

brian-armstrong commented 7 years ago

wasm would definitely be a better fit. I'm not sure it was really an option when I put this together.

It's worth noting that the GC pause issue I'm seeing here may just be WebAudio pausing and not quiet.js, not sure