I'm planning to build an application that compiles down to WebAssembly (WASM) and I want to keep traditional web technologies to a minimum, using them mainly as a wrapper. My background has always been in non-native app development, and I'm curious about how to structure components and views in a native context. I'm aware the approach might vary depending on the programming language I choose, which leads me to seek insights from others who have experience in this area. This will be a side project for me, and I'm considering either sticking with Go or branching out to C++ or Rust to gain some experience with those languages.
3 Answers
Check out some frameworks like Yew or Dioxus. They can help you manage your UI in a more structured way with Rust. It’s worth exploring if you want to dive into native app development while using WASM.
I usually stick to JavaScript for the UI, even with WASM, since it integrates so seamlessly. Using JS keeps things simple, especially if you're looking to minimize web tech in your project. But hey, you might want to find communities focused on C++ or Rust for more tailored advice!
WebAssembly is quite low-level, so there isn't a one-size-fits-all solution for structuring your app. If you want to jump in quickly, consider using AssemblyScript. It’s a friendly way to get started without necessarily learning C or Rust right away, although any language can compile to WASM as you get deeper into it. Just keep in mind dynamic code can be a bit trickier!

Yeah, I think I might do that! I'm looking for ways to use web technologies as little as possible and would appreciate input from those specialized in C++ or Rust.