diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-03-06 20:52:45 +0000 |
|---|---|---|
| committer | Sam Nystrom <15555332-SamNystrom1@users.noreply.replit.com> | 2024-03-06 20:52:45 +0000 |
| commit | ac83dd4a08bdbab6df270d6dae8d9e2d6d619342 (patch) | |
| tree | d928f552d7fb89a96b757b00899d4dbc0639cacd /src/wasm.ts | |
init
Diffstat (limited to 'src/wasm.ts')
| -rw-r--r-- | src/wasm.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wasm.ts b/src/wasm.ts new file mode 100644 index 0000000..3a308b2 --- /dev/null +++ b/src/wasm.ts @@ -0,0 +1,9 @@ +import { instantiate } from '../build/out.js'; +import url from '../build/out.wasm'; +export const { + memory, + linspace, + intersperse, + dft, + fft, +} = await instantiate(await WebAssembly.compileStreaming(fetch(url)));
\ No newline at end of file |
