Hacker News new | ask | show | jobs
by SeanAnderson 960 days ago
Yeah, fair, ants shouldn't die. I will think on it. Maybe they just go low on energy and hibernate. :)

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

1 comments

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