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

Python/py2wasm PoC #20009

Draft
wants to merge 2 commits into
base: cjp/wasm-poc
Choose a base branch
from
Draft

Python/py2wasm PoC #20009

wants to merge 2 commits into from

Conversation

carlpulley-da
Copy link
Contributor

@carlpulley-da carlpulley-da commented Sep 25, 2024

Python/py2wasm WebAssembly Integration PoC

This is sadly a failed experiment!

  • py2wasm has no current ability for an engineer to say which functions should be imported or exported
    • to work around this limitation, we need to use py2wasm to compile to the C source code, monkey patch the generated C sources and then use py2wasm` to generate the WASM binary code
  • py2wasm assumes that a wasmer runtime is present, and this in turn requires that a large number of host functions need to be defined (some of which should definitely not be used within a Canton participant setting)

Note: this PR uses the docker environment built by https://github.com/carlpulley-da/py2wasm-docker

@carlpulley-da carlpulley-da changed the base branch from main to cjp/wasm-poc September 25, 2024 09:18
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.

1 participant