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

Investigate compiling 3em executor into web assembly. #29

Closed
andreespirela opened this issue Dec 2, 2021 · 2 comments
Closed

Investigate compiling 3em executor into web assembly. #29

andreespirela opened this issue Dec 2, 2021 · 2 comments
Assignees

Comments

@andreespirela
Copy link
Collaborator

We want to investigate compiling 3em executor into web assembly. So this won't only be used as a CLI, but also as a Web API for browser, nodejs and Deno, or any other runtime that supports web assembly.

Ready when

  • Investigation is complete: Whether it is or it is not possible.

Possible refers to

  • Same input in the CLI leads to the same output in web assembly.
  • Smartweave globals (ops) are respected.
  • It's viable to run 3em in web assembly (performance wise, and size of the module wise)
@andreespirela
Copy link
Collaborator Author

Tagging @t8 for accountability as he was interested in this.

@t8 Opened 2 other tickets too, in case you'd like to take a look

@littledivy
Copy link
Contributor

Seperate checklist for this:

  • Investigation is complete: Whether it is or it is not possible. (It is.)
  • Same input in the CLI leads to the same output in web assembly. (See JavaScript library for 3em js executor #53)
  • It's viable to run 3em in web assembly (performance wise, and size of the module wise)

image

Pretty fast. Only EVM is compiled to WASM. JS and WASM executors are hand written in JS.

  • Smartweave globals (ops) are respected.

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

No branches or pull requests

2 participants