Swiftweekly.github.io: [148] Issue #148 - November 21, 2019

Created on 7 Nov 2019  路  28Comments  路  Source: SwiftWeekly/swiftweekly.github.io

To contribute to this issue, simply leave a comment here. Please also review our contributing guidelines.

The current draft for this issue in _drafts/. If you want to contribute directly, feel free to open a pull request.

full issue notes

Most helpful comment

I think I have a better finally 馃槄

https://twitter.com/uliwitness/status/1193166769688580097

All 28 comments

Swift Numerics

Swift Numerics provides a set of modules that support numerical computing in Swift.

https://swift.org/blog/numerics/

https://forums.swift.org/t/swift-numerics/30576

https://github.com/apple/swift-numerics

Rename Encodable.CodingKeys?

The documentation on enumerations 1 clearly reads,

Give enumeration types singular rather than plural names, so that they read as self-evident:

var directionToHead = CompassPoint.west

It looks like CodingKeys is an exception to this. New adopters of Swift will encounter it and suppose that their own enumeration types should likewise have plural names.

The name CodingKey is already used as a protocol. We could rename either CodingKey or CodingKeys.

https://forums.swift.org/t/rename-encodable-codingkeys/30571

We just released a fantastic new #SwiftNIO 2.10.0 with all the patches from #serversideswiftconf by @siemensik
@HeidiPuk @_cweinberger and many others whose Twitter handles I don't know. Thank you all so much!! https://github.com/apple/swift-nio/releases/tag/2.10.0

https://twitter.com/johannesweiss/status/1192521097494892545

Sent with GitHawk

Swift 5.1.2 has been released and is available for download.

Along with an assortment of bug-fixes, Swift 5.1.2 contains an improved type-checking algorithm that has significant performance benefits on code using function builders (such as SwiftUI code).

https://forums.swift.org/t/swift-5-1-2-released/30620

I think I have a better finally 馃槄

https://twitter.com/uliwitness/status/1193166769688580097

Guerilla marketing huh, JP?

Guerilla marketing huh, JP?

Nah, just made me laugh. Too real.

SE-0270: Add Collection Operations on Noncontiguous Elements

The review of SE-0270: Add Collection Operations on Noncontiguous Elements begins now and runs through November 21, 2019.

https://forums.swift.org/t/se-0270-add-collection-operations-on-noncontiguous-elements/30691

SE-0271: Package Manager Resources

The review of SE-0271 鈥淧ackage Manager Resources" begins now and runs through November 19, 2019.

https://forums.swift.org/t/se-0271-package-manager-resources/30730

I'm proud to announce Binding Tools for Swift, a set of tools for @xamarinhq which allows C# to interoperate with Apple's #Swift programming language.

https://twitter.com/_plinth_/status/1194696147018944512

All core libraries have been migrated to modern CMake

This is to announce that the last of the staging is now complete. All of the core libraries (libdispatch, foundation, XCTest) are now being built with CMake 3.15.1. This is largely transparent for most people (though a clean build won't hurt).

The biggest advantage that this brings is that the builds are much simpler, with largely a declaration of the sources and the libraries that they correspond to. ...

https://forums.swift.org/t/all-core-libraries-have-been-migrated-to-modern-cmake/30770

SE-0272 Package Manager Binary Dependencies

The review of SE-0272 鈥淧ackage Manager Binary Dependencies" begins now and runs through November 20, 2019.

https://forums.swift.org/t/se-0272-package-manager-binary-dependencies/30753

[Pre-Pitch] Runtime Type Guarantees

Motivation
There is always a tradeoff between safety and performance when writing reusable code. Low level code either has to make assumptions about the values being passed to it (e.g. a value is non-zero, or an array is non-empty) or it has to check those assumptions. When these functions call one another, but could also be called from the outside, you often find them repeatedly performing the same check.

https://forums.swift.org/t/pre-pitch-runtime-type-guarantees/30842

Infer associated types as generic parameters more eagerly

Introduction
This proposal changes associated type inference behavior to short-circuit a large amount of inference work in the case where the conforming type defines a generic parameter with the same name as an associated type.

This breaks source compatibility with certain valid programs; in Swift 5.1, it is possible for an associated type and a generic parameter with the same name to have different types. However, the name lookup behavior in this case was already very fragile.

https://forums.swift.org/t/infer-associated-types-as-generic-parameters-more-eagerly/30833

Cross-Import Overlays

Say we have a pair of frameworks NumericKit and FormatKit where NumericKit covers numerical simulations and FormatKit covers serialization and deserialization for a bunch of data formats. Ideally, a downstream project that depends on both of these frameworks would "automatically" get cross-cutting functionality. In this example, it could be something like serializing complex data using the HDF5 format (say).

https://forums.swift.org/t/cross-import-overlays/30868

[Returned for revision] SE-0272 Package Manager Binary Dependencies

The review for SE-0272 has concluded. We had a uniformly positive response to the idea of supporting binary dependencies in SwiftPM and the high-level design, but there are a number of concerns that came up during review.

https://forums.swift.org/t/returned-for-revision-se-0272-package-manager-binary-dependencies/30994

Swift CI Holiday Schedule

During Thanksgiving week and in the last couple weeks of the year, most of the people who do the day to day maintenance of the continuous integration bots and infrastructure will be on vacation in observance of the various (US) winter holidays.

https://forums.swift.org/t/swift-ci-holiday-schedule/30985

Starter tasks:

SR-11805 [Standard Library] Revisit Eager Bridging for the Hashed Collections
SR-11795 [Compiler] Replace OSX with macOS pretty much everywhere

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jessesquires picture jessesquires  路  10Comments

jessesquires picture jessesquires  路  10Comments

jessesquires picture jessesquires  路  8Comments

jessesquires picture jessesquires  路  10Comments

jessesquires picture jessesquires  路  7Comments