Do you think you can make it run in Jupyter as a Kernel?
How we built an interpreter for Swift
31–39 of 39 posts
Re: How we built an interpreter for Swift
#32Re: How we built an interpreter for Swift
#33Do you plan to support iPad? If so, how high is it on the backlog?
Re: How we built an interpreter for Swift
#34Very very neat. What's the performance like?
There's definitely a cost: everything is type-erased and there's a lot more indirection than there would be if the code was compiled. But you usually don't hit performance issues because most app code (especially in the UI) is just a thin layer calling into the OS frameworks. The framework code does the heavy lifting and is all compiled. The places you can hit performance issues are things like when the app itself ha…
Re: How we built an interpreter for Swift
#35Re: How we built an interpreter for Swift
#36This is really cool, will definitely try it out. Does it allow you to move this to your computer later and actually publish the apps? What’s the end goal here?
We also have functionality in bitrig to build your app and send it to App Store Connect so you can deploy it on TestFlight.
Re: How we built an interpreter for Swift
#37Could you use this to support hot module replacement? Replacing a SwiftUI view in a live app without restarting the process?
Yeah you could! The only caveat is that either the whole app, or at least the part of the app showing the view you want to replace, would have to be running via the interpreter. We're very interested in using the interpreter to improve the Swift developer experience in more ways like that.
Re: How we built an interpreter for Swift
#38Re: How we built an interpreter for Swift
#39I thought Apple didn't allow any apps that do any kind of code generation or running of user or downloaded code.