-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Jouni's GBZ reader into WebAssembly and demo it as a tube map backend #379
Comments
OK, I've looked at this a bit. On Mac, you need to use Homebrew to install
Then you need to use
Then we can get the code:
For rusqlite, we need to go get a C compiler for WASI. In theory Clang can get away with just headers and a standard library blob, but GCC probably can't.
Apparently there's a With that set we can |
I think I have a fix for |
OK, with 486ac7bf140a1cc8dcc4de86dbbc3e7439e3b6e0 which uses my wasm-buildable
Then (assuming I also build for the host), I can make a database:
And with a WASM runner that supports WASI (
I get what looks to be the right GFA file out. @jltsiren is right that there is trouble with
|
I had wanted to use the Unfortunately, you can't have it in the same project as Also, So I think I'm going to have to write the core local implementation of each server-side function in Rust, and then export it as a C ABI function from the Rust code, which will be visible as a WASM export that JS can find and call. That should work, though I might need to so some !!fun!! things for strings? |
I have this working now in 9a7d5ff. I'm using a WASI build and just invoking the CLI I'm running the WASM in a web worker, and fetching bits of the data it needs synchronously with |
This is the other half of #367, or the other third if we count implementing the JS wrapper.
We need to be able to build https://github.com/jltsiren/gbz-base for WebAssembly and get the result into the SequenceTubeMap build process.
The text was updated successfully, but these errors were encountered: