Re:Show HN: Symbiants – digital ant farm / mental health com...
by ramikalai on Sunday November 05, 2023 @09:28AM
(#38151412)
Afraid I don't have much in the way of experience with Rust or WASM so can't help there.
Maybe instead of lat/long, you expose a dropdown of popular cities? Again not bulletproof but does make the user's life easier
Yeah. All of this code is written in Rust and running in WASM. I found it challenging to interface async JS callbacks with my Rust code. After I spent a bit of time trying to get what I thought the easiest route was to work (geolocation API) and failed on a simple callback, I decided to just throw in the lat/long inputs and see if people liked the feature at all. I agree that the best solution is one where the user doesn't even have to think about this feature