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.
- 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).
- 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.
- For time being, we'll have two runtimes – all JS/Elixir APIs should work the same regardless of VM.
- OTP and demo at this point use apps packaged into tgz. This is better approach than custom binary format.
- 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.
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.
build-otp.shwhich clones, patches, and builds OTP. Callable frommise, caching whatever we can (repo already has some pretty good scripts, most likely we can clone and use them).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.