▲ | bsaul 3 months ago | |||||||||||||||||||||||||
Interesting, thanks. Do you have a resource that shows basic examples for android & web ? Rust also has a very extensive set of tools to generate bindings ( wasm bindgen & uniffi), and a wide ecosystem of crate for all platforms (rustsqlite, web_sys, reqwest, etc). What's the experience like in swift for you ? What part of the swift libraries ecosystem can you use in practice, and how does bindings work ? Let's say i want to expose an async call to a local sqlite instance on android. How would that work, and how would that look like from kotlin pov ? Also, how is the size of the wasm packages ? how much cruft does swift need to embed ? PS: reading the thread a bit more, it seems like you still need some special options, and some specific version of the toolchain. Is it still the case, or can i try it with the default toolchain distributed with xcode ? | ||||||||||||||||||||||||||
▲ | frizlab 2 months ago | parent [-] | |||||||||||||||||||||||||
> Let's say i want to expose an async call to a local sqlite instance on android. I don’t know, I don’t do android dev. I just made sure my library was running on it then moved on. I know Swift is working on having bidirectional interoperability with Java[1], so I guess when they do it’ll just work? But I did not dig more on the subject. Regarding the size I’m not sure as I never compiled a binary that is actually useful. I make sure everything runs, but as I’m building a library this goes to building the tests then running them on WASI and that’s it. Regarding the Swift toolchain version, using swiftly[2] is recommended nowadays if you don’t need Xcode. Using the default toolchain provided by Xcode usually brings trouble when using SDKs. Using swiftly you’ll get the same experience as on Linux basically. (This will probably change, but it is like so currently.) | ||||||||||||||||||||||||||
|