Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Can lucet compile and run on iOS using AOT modules? Web? #509

Open
warvstar opened this issue Apr 27, 2020 · 1 comment
Open

Can lucet compile and run on iOS using AOT modules? Web? #509

warvstar opened this issue Apr 27, 2020 · 1 comment

Comments

@warvstar
Copy link

Can lucet compile and run on iOS using AOT modules?

Is there anything preventing lucet from been compiled and run on the web?

Thanks

@pchickey
Copy link
Contributor

Hi @warvstar,

We have not investigated whether Lucet is compatible with iOS. At the moment, we only support x86_64 on Mac OS and Linux, but Cranelift support for Aarch64 has been improving, so that may be possible to support, though it will require some work on various bits of architecture-specific code for setting up and switching stacks. My understanding is that, even if Lucet worked on iOS, App Store policies may prevent it from being very useful. Our team doesn't have any iOS experts so if that is something you wanted to pursue, you'd mostly be on your own.

Lucet's compiler generates x86_64 from Wasm. It wouldn't be possible to execute that code natively in a Web context, but the compiler could probably be compiled to Wasm and run in a browser if you wanted. The Lucet's runtime would not be usable in a Web context, because it needs to execute native code and directly use a lot of low-level operating system features.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants