Replies: 2 comments 4 replies
-
[disclaimer: totally ignorant, but] I feel like a missing thing, on any device/platform, is a kind of "wasm viewer". You can get most of the way there by picking one of several browsers, opening a separate window, undoing all the usual browser menu and UI garbage... I guess Chrome "Apps" are what I'm thinking of, roughly. It'd be nice if, for any platform you care to pick, there is a nice "wasm viewer" that does the above, more or less, but isn't a whole dern web browser that you have to install. Does any of that make sense? I'm ready to blame myself if not. And in the case of this fancy dedicated native application, wasm can still be "sandboxed", but YOU can decide what is plumbed up and what is not. You can have USB, bluetooth, direct disk access... whatever arbitrary thing you like... defined as a layer between your OS and the wasm "sandbox" provided by this hypothetical app. It might be something like a hypervisor, in the sense that it has complete control over the world view of whatever is running "inside". So, this hopefully-simple app can be compiled for linux, mac, android, iOS ... ;-) No idea what kind of gatekeeping exists for the various platforms (apple store would be an example of the most painful kind), but that's not a technical problem, and it only needs to be solved once. You just need to install "the iphone wasm viewer thing". "That's so crazy it just might not work." |
Beta Was this translation helpful? Give feedback.
-
as much as i like egui, its not the first thing that i think of mobile UI toolkits. battery life / native integration features like notifications or gestures / god tier text rendering / a decent number of pre-existing widgets / components etc.. are very important which egui doesn't provide by itself. wasm is still not ready today. not even close. wasmtime / wasmer have probably gone through multiple designs at this point. the interface types proposal also changed with the component model. witx being abandoned for the new wit. for all the hype, there's still no stable proposal for WASI standards. wasmer is cool for when it is self contained serialized input / output like serverless functions / computing, but interaction with external world directly is pretty hard right now. not to mention it would still be hard to make rust <-> wasm bindings without a stable ABI. I know because i looked around for a plugin system to let mods use egui API. apparently, to expose bindings to wasm, you need to back to good old extern C bindings with no_mangle. until component model becomes mainstream, wasm cannot really interact with outside world smoothly. |
Beta Was this translation helpful? Give feedback.
-
We already have a ubiquitous way to send C++ or Rust code to mobile phones in a secure way it is WebAssembly. WebAssembly could be updated to be applications on both iOS/Linux. Quick diagnosis of Apple and Google are doing.
Apple - unrestricted native applications
Unprecedented that a proprietary computer software company is expecting application developers to remake their application specifically for less than 10% of the market. Looking at hotfix code in user interfaces on the web made for Apple devices their computers interact different across the internet.
Google - Java virtual machines
Android applications are generally garbage, slower to load than iOS apps. Java/Kotlin nothing more to talk about.
Linux Future - WebAssembly
WebAssembly would open applications faster than Android in a sandbox environment. Real programming languages instead of the Java or Apple nonsense.
Rhai support
Beta Was this translation helpful? Give feedback.
All reactions