> To do predictive correctly, you'd need to share logic between the server and the client.
>
> One possible solution […] is to write all game logic in gleam […]
Rust, with Uniffi, can also be a good candidate. You’d be targeting WebAssembly.
Is there a way to emit WebAssembly with Uniffi? I looked for it before, but I couldn't find it (I'm using it in a project to share login between the backend and Kotlin/Swift apps. I wanted to share it with JS for a web frontend, but didn't find any docs mentioning it)