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

Add Wasm2JS Compiler #216

Open
1 of 3 tasks
HarikrishnanBalagopal opened this issue Jan 2, 2024 · 2 comments · May be fixed by #217
Open
1 of 3 tasks

Add Wasm2JS Compiler #216

HarikrishnanBalagopal opened this issue Jan 2, 2024 · 2 comments · May be fixed by #217

Comments

@HarikrishnanBalagopal
Copy link

Please add https://github.com/HarikrishnanBalagopal/wasm2js
This is a compiler from takes in a WASM binary and generates Javascript code.
Published here https://www.npmjs.com/package/@haribala/wasm2js

  • Bug
  • Improvement
  • Other

Description
This library parses WASM binaries and compiles it to valid Javascript instruction by instruction.
This makes it different from similarly named packages like https://github.com/thlorenz/wasm2js
which only embed the WASM binary as is in a JS module.
The library can be used for porting any app in any language that compiles to WASM, to valid Javascript source code.

It includes various demos that you can try out https://github.com/HarikrishnanBalagopal/wasm2js/tree/main/src/demo
Demos taken from https://github.com/binji/raw-wasm and adapted to the library.

image image image image
@Yee1023
Copy link

Yee1023 commented Jan 2, 2024 via email

@icecream0101
Copy link

icecream0101 commented Jan 2, 2024 via email

@HarikrishnanBalagopal HarikrishnanBalagopal linked a pull request Jan 2, 2024 that will close this issue
2 tasks
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 a pull request may close this issue.

3 participants