New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/mobile: example ivy demo on ios should not require a Go installation #48694
Comments
Actually it's probably my job to fix this. |
@robpike does it work on macOS? |
Yes, provided there is a Go compiler installed. |
Instead of making it a separate program, stitch it in to the binary itself, meaning that the demo can be run without a Go compiler. The idea was to make it easier for mobile users to see the demo, (see golang/go#48694), but that may be a false hope as I/O on mobile does everything possible to avoid the Unix idea of stdin and stdout. Still, it does clean up the way the demo works, and allows us to remove the runner and explain about it. Use embedding to interpolate the script into the code. We could use go generate to avoid needign such a modern feature of Go, but meh.
was done with the intent of helping here, but I naively assumed that the window on iOS had stdin and stdout. Silly me. Still the refactoring may help. The way the mobile connection works now is easy but inflexible. I might just put in a mechanism so the )demo command can know we're on mobile and give other directions for the demo. |
Important note: There is a Demo menu item on Android and it works fine, but on iOS there is only a Help button. The right thing to do is probably to find a way provide a similar Demo button or menu item on iOS. In either case, as mentioned earlier, the )demo special command could tell the user what to do on mobile. |
I just pushed an update to ivy to clarify things a bit: robpike/ivy@670bccd The solution I am committing to is to have the demo be run by the wrapper, as it is on Android. So we need a Demo button on iOS. I'll reach out to the community for help. |
Change https://golang.org/cl/357977 mentions this issue: |
The ")demo" special command runs an interactive demonstration of ivy's abilities, but only prints an error message about the lack of a Go compiler when on iOS.
Fix that. Might require a change to how the demo runs in ivy proper, but should be isolatable to mobile if that makes more sense.
The text was updated successfully, but these errors were encountered: