What if instead of trying to make standalone programs that run everywhere someone took the approach the browser took, but more on the native side?
Make a runtime that can run a bunch of quasi-native code and make it download code from URLs and execute that.
The experience for the user would be to type "myapp.com" on the URL bar and then get a full native app running inside that browser window -- except instead of bloated JavaScript it would be this new language thing with more powerful native-like APIs and without 32 years of bloated history on its back.
3.3.2 An Application may not download or install executable code.
Interpreted code may only be used in an Application if all scripts, code
and interpreters are packaged in the Application and not downloaded
You would have to ship a new copy of it with each application.
There is Pythonista 3 for iOS which allows you to deploy code that is not shipped with the app e.g., it can be used to implement "download audio" button for youtube for iphone (and other supported by youtube-dl video sites)
Apple won't allow that. The only interpreted code is JS and must run on the built-in engine. Plus "dynamically added" code/content must first be approved by Apple or your app can be revoked.
Basically there is no shortcut here. Which is why the OP and others like Fyne (https://fyne.io) are taking the approach of write once, compile for anywhere.
Make a runtime that can run a bunch of quasi-native code and make it download code from URLs and execute that.
The experience for the user would be to type "myapp.com" on the URL bar and then get a full native app running inside that browser window -- except instead of bloated JavaScript it would be this new language thing with more powerful native-like APIs and without 32 years of bloated history on its back.
I'm sorry if this is too confusing.