tshort / WebAssemblyCompiler.jl

Create WebAssembly with Julia
https://tshort.github.io/WebAssemblyCompiler.jl/
MIT License
77 stars 4 forks source link

mobile/Android and some questions #15

Open PallHaraldsson opened 8 months ago

PallHaraldsson commented 8 months ago

First, since WebAssembly supports mobile, Android and iOS, do you need more than just wasm to support mobile as well as desktop? I'm thinking this might be the best way to support mobile, in the same restrictive form you do, and eventually without restrictions.

You already support Strings, and Dicts, but not Dicts with Strings which seems strange.

The memory type is merged, in 1.11, so what does it enable, i.e. are the docs outdated? GC support enables much, not as much as I thought, why not the rest (you document as missing), is much more work needed for the rest?

Seemingly 99% of mobile could be supported (unless you need the newer version, and it's not yet popular, but it will be as popular), a killer app for your code: https://caniuse.com/wasm

Do you see any problem for iOS specifically after Android works?

tshort commented 8 months ago

For mobile, wasm on websites should work. I suspect it already works on Chrome on Android. I think Safari and iOS are still behind, so it doesn't work there, yet.

Once we get Memory support, it will be easier to support multi-dimensional arrays. I just haven't gotten to that, yet. It may help with String support, but I'm not sure. Strings have limitations in WASM's garbage collection system.