[swift-server-dev] Crypto Library

Chris Lattner clattner at apple.com
Thu Nov 10 14:02:28 CST 2016


> On Nov 8, 2016, at 2:18 PM, Helge Heß via swift-server-dev <swift-server-dev at swift.org> wrote:
> 
> On 8 Nov 2016, at 16:45, Chris Bailey via swift-server-dev <swift-server-dev at swift.org> wrote:
>> Whilst there's legitimate debate on the use of C vs. Swift for HTTP parsing, I think the situation for the security libraries in general is more clear.
> 
> This is really a bit off topic but I disagree with that. Either you:
> a) are OK with C libs and deal with it
> b) deal with C libs as a temporary measure but the goal is Swift
> c) reject C libs from the start

Just my personal opinion, but I don’t see why “pure swift” is a goal or even interesting to thing about.  The goal should be provide expressive and natural Swift APIs for server development tasks.  The implementation should not show through that API.

If (and only if) there is some advantage to rewriting C code in Swift (e.g. for performance, memory, correctness, or capability reasons) then it is certainly interesting to talk about that of course.

A relevant comparison is to corelibs-foundation, which uses a significant amount of C code in its implementation.  

-Chris


More information about the swift-server-dev mailing list