Read Differentiable Programming documentation in Swift
Run through Differentiable Programming documentation.
Side note: it’s smart how illustration images are embed in this markdown file.
Passed over Generic Math(s) Functions Swift proposal introducing to the standard library two new protocols ElementaryFunctions
and Real
to provide “basic math functions” in generic contexts for floating-point and SIMD types, and provide a path to extend that functionality to planned complex types in the future. The third piece of the proposal is the Math
module. Unlike the previous two additions, the availability of these functions is gated on Swift 5.1.
Passed over Make Numeric
Refine a new AdditiveArithmetic
Protocol proposal. Already in Swift 5.
Passed over SIMD additions and SIMD Vectors Swift proposals. Already in Swift 5.1.
Today I was reviewing coding test of job candidate where I found developer was casting Swift String
into NSString
just to call enumerateSubstrings(in:,options:,using:)
. The problem is that this function is available on String
as well. If you know it exists, just start typing its name and Xcode will help you with code completion. But what if you don’t know about this function or you forgot its name, what can you do? You can’t find this function in help, it’s not listed in String
documentation. In Objective-C time I in such case I would just jump into String Programming Guide where all information about strings processing in Objective-C is available. Apple used to have such programming guides on all important topics, let it be Cryptographic Services Guide or Local and Remote Notification Programming Guide.
TODO: Consider completing PR for this FIXME.