[webkit-dev] Swift in WebKit

David Farler dfarler at apple.com
Mon Jul 28 12:47:52 PDT 2014

Hello all,

I have the following bug to help build out support for layout tests in the iOS Simulator.

iOS Simulator LayoutTestRelay
https://bugs.webkit.org/show_bug.cgi?id=135269 <https://bugs.webkit.org/show_bug.cgi?id=135269>

I'd like to include this as a new tool written in Swift.

Why I think it's fine in this case:
- This tool is specific to the iOS and OS X platforms
- Swift is a fully supported, albeit new, language starting in Xcode 6.
- Swift is probably the best way to get Objective-C bridging "for free" in the long term
- Swift supports script-like "immediate mode" with good JIT-compiled performance
- The tool's size and scope is sufficiently small with no complex or WebKit-specific dependencies

I understand that its freshness and continual evolution means that we won't reviewer support relative to our C family languages. I would argue that it will be difficult to subjectively tell when the time is "right", that a good way to solve that is to start using the language itself, and take an incremental approach to crafting the Swift story in WebKit. Using it for some simple tools is a good place to start.

The larger discussion of using Swift in larger AOT-compiled contexts but is probably going to happen in this thread anyway, so let's have it:

What of future use of Swift in WebKit?

David Farler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20140728/b9b5160e/attachment.html>

More information about the webkit-dev mailing list