WASM Bindings #163
donaldcampbelljr
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A discussion thread regarding the implementation of WASM bindings for our
gtarscrate. Given our success with python bindings for gtars, we naturally looked at other languages where bindings would offer a benefit for user experience.Pros and Potential Wins:
Web browser workflows may appear more accessible to the end user (this is, of course, subjective).
Undoubtedly, there is a "cool" factor to having some of our tools running in a browser.
Will the two items above lead to more tool adoption, especially if they are featured in future publication?
Cons and Challenges:
In my very limited testing, it appears that the WASM code executing is a bit slower than when just using rust (I have zero evidence to back this up, just pure anecdote).
Depending on the code we are trying to wrap with bindings, there may be a need to rewrite some of the original Rust code such that it is compatible with WASM. I recently had to do this in pilot work when creating bindings for the GlobalRefgetStore as some of the digest functions seemed incompatible with a web browser workflow.
More feature gate-keeping will need to be implemented as a result of WASM compatibility.
Current Tools and will they benefit from WASM (WIP, please fill in)
bbcache
fragsplit
igd
overlap
refget
tokenizers
uniwig
Related issues and PRs
#144
#150
#161
#162 and #148 (because we will probably need to create a workspace for proper feature gate keeping to implement WASM bindings)
Beta Was this translation helpful? Give feedback.
All reactions