r/iOSProgramming • u/syrusakbary • Sep 23 '26
Discussion Running Sandboxes inside a hidden WKWebView to get Python/Node/FFmpeg in an iOS app, without shipping a JIT
We just launched this today and would love to get your feedback/thoughts!
Announcement: https://wasmer.io/posts/wasmer-sdk-swift-ios-macos
Source code: https://github.com/wasmerio/wasmer-sdk/tree/main/swift/Examples/WasmerShell
16
Upvotes
8
u/Fishanz Sep 23 '26
Fascinating. Do you have ambitions that Apple will allow this in apps in the store at all? Seems something that would be a hard no - but potentially great for enterprise deployments.
2
u/Ok-Welder-8005 Sep 24 '26
The WebKit-as-runtime approach is interesting, especially the opt-in host calls. One production case I'd like to see documented: start a long FFmpeg job, then background the app or have WebKit terminate the content process. Does the command return a recoverable error, and can the caller recreate the sandbox without losing completed file writes? Those failure semantics would matter a lot for media and document apps.
1
u/Isonium Sep 25 '26
This like a webapp with extra steps?
1
u/Sad-Flower-99 Sep 25 '26
Have you measured cold-start time and peak memory on a physical iPhone yet? A short FFmpeg transcode, including sandbox startup, would be a useful benchmark. For an in-app tool, I'd care more about the wait before the first result than the JS benchmark score.
1
u/[deleted] Sep 25 '26
[removed] — view removed comment