Skip to content

Integrate OTP with Popcorn #510

@jgonet

Description

@jgonet

We should integrate https://github.com/jgonet/otp-wasm and https://github.com/software-mansion-labs/otp-wasm-demo (both private at the moment) with Popcorn.

  1. We should add another script, build-otp.sh which clones, patches, and builds OTP. Callable from mise, caching whatever we can (repo already has some pretty good scripts, most likely we can clone and use them).
  2. We need to extract useful changes from demo (e.g. handling stdin) and others, and move them into Popcorn repo. To be determined where, for now it can live in js/. Maybe it's better to create a small API around OTP inside the OTP repo and do the rest on Popcorn side. To be determined.
  3. For time being, we'll have two runtimes – all JS/Elixir APIs should work the same regardless of VM.
  4. OTP and demo at this point use apps packaged into tgz. This is better approach than custom binary format.
  5. We need to make tests support OTP as well – both JS bridge e2e tests and evaluation tests. We can add more tests for OTP only, as it supports strictly more features.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions