5 ms·
Anyone know how Swift Playgrounds work? Do they interpret the Swift code or compile it against a set of mock APIs?
by sudhirj 9y ago
Anyone know how Swift Playgrounds work? Do they interpret the Swift code or compile it against a set of mock APIs?
- antfarm 9y agohttps://stackoverflow.com/questions/40593918/how-does-apples-swift-playgrounds-app-for-ipad-execute-code https://stackoverflow.com/questions/40593918/how-does-apples...
- saagarjha 9y agoThe code is compiled on-the-fly and dynamically linked.
- IMcD23 9y agoIt has a full Clang/LLVM built in, and runs Playgrounds in a separate process. Most of this uses private app extensions and XPC, which other developers are not able to use.