selfint / code-blocks

Manipulate code as blocks
https://marketplace.visualstudio.com/items?itemName=selfint.code-blocks
MIT License
5 stars 0 forks source link

Precompile .wasm parsers #149

Closed selfint closed 6 days ago

selfint commented 1 year ago

Use workflow_dispatch and write a workflow that:

This way the clients don't need to have tree-sitter installed, and so also not emcc or docker.

selfint commented 1 year ago

Or, simply precompile all parsers on a weekly schedule.

selfint commented 1 year ago

Finally, how bad is it really to package all the parsers inside the extension?

selfint commented 1 year ago

Finally, how bad is it really to package all the parsers inside the extension?

Terrible

selfint commented 1 year ago

This is the way to go though, since an internet is connection is required for it to work anyway, this just means they don't need to install emscripten.

This option can also be opt-in. A choice popup can let the user choose to download prebuilt or to build locally.

selfint commented 1 year ago

Maybe implement like this:

  1. Use npm api to get latest version of parser.
  2. Check if that version has a pre-compiled parser.
  3. If not, call the pre-compile task and wait for it to complete.
  4. Download the parser.
selfint commented 6 days ago

This is irrelevant now that #125 is working.