Skip to content

Conversation

rhysd
Copy link
Owner

@rhysd rhysd commented Jun 11, 2019

Closes #10
Fixes #29

Please read README for more details.

👍 Benefits:

  • Pure Wasm (not Emterpreter byte code)!
  • Program is more stable
  • Total binary size is smaller since emterpretify.data has gone
  • Compilation is much faster
  • User interaction is not prevented as Vim is running in worker thread

👎 Downside:

  • JavaScript codebase is a bit more complicated because it is separated into main thread and worker thread
  • Browser support of SharedArrayBuffer is very limited in several major browsers due to Spectre. Only Chrome (and Chromium based browsers) enables it by default thanks to site-isolation

@zingus
Copy link

zingus commented Jan 12, 2020

Yeah... any workaround to that SharedArrayBuffer thing? Firefox isn't backing up on that.

@rhysd
Copy link
Owner Author

rhysd commented Jan 12, 2020

Please see #35. New Asyncify is an option. Though it is not acceptable to merge into master for now, it just works even on Firefox. You could try the branch.

@rhysd
Copy link
Owner Author

rhysd commented Jan 12, 2020

FYI: And Firefox is trying to enable SAB again.

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

Successfully merging this pull request may close these issues.

Build sometimes fails with bad memory access
2 participants