Show HN: TypeScript Implementation of Sequential Random Sampling
npmjs.com
npmjs.com
Numerical code like this is also a prime candidate for implementation via WebAssembly, but while I've been able to produce a working transformed version of the code which acts like a restartable co-routine (i.e., manually, without relying on language-supported generators), getting the compiled WASM to actually run correctly in a JS environment has not worked out so far. I expect that will be version 2.0.0.