Skip to content
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

Use wasm Stork to build the index? #19

Open
2 tasks done
maphew opened this issue Jan 20, 2023 · 3 comments
Open
2 tasks done

Use wasm Stork to build the index? #19

maphew opened this issue Jan 20, 2023 · 3 comments
Labels
question Further information is requested

Comments

@maphew
Copy link
Contributor

maphew commented Jan 20, 2023

Maybe this is a stupid question born of ignorance, but is there a way to use the wasm version of Stork to build the search index instead of having to compile an executable for the local platform?

  • I have searched the issues (including closed ones) and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

Why: on Windows installing Stork requires downloading ~7 GB of Visual Studio build tools and installing 'Desktop development with C++' kit, on top of Rustup (recipe).

Running wasm locally is reportedly possible: https://blog.devgenius.io/running-wasm-binaries-in-on-your-local-system-69694e100083, though this example also requries a local compiler so, yeah, nothing gained. However that was over 2 years ago so maybe there are other ways?

@maphew maphew added the question Further information is requested label Jan 20, 2023
@maphew
Copy link
Contributor Author

maphew commented Jan 20, 2023

@maphew
Copy link
Contributor Author

maphew commented Feb 2, 2023

well I can report the naive approach doesn't work! ;-)

» winget install wasmer
» refreshenv
» set STORKVERSION="v1.5.0"
» wget https://files.stork-search.net/releases/%STORKVERSION%/stork.wasm

» wasmer run stork.wasm
error: failed to run `stork.wasm`
╰─▶ 1: Error while importing "wbg"."__wbg_new_693216e109162396": unknown import. Expected Function(FunctionType { params: [], results: [I32] })

@justinmayer
Copy link
Contributor

Good to know! Thanks for trying. I agree it'd be nice not to have to rely on platform-specific binaries. I suspect the Stork Discussions forum might be a good place to ask James about this, since he'll certainly know more about the feasibility than I do. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants