Swiftweekly.github.io: [159] Issue #159 - May 7, 2020

Created on 23 Apr 2020  ·  39Comments  ·  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

An update on WebAssembly support:

An update on the current status: if you don't care about binary size, it's more or less usable right now as in this demo. Swift can't run dead code elimination on unused protocol conformances yet, so the minimum produced binary size is ~10M raw and ~1.5M when optimized and compressed with 3rd-party tools, as tracked in swiftwasm/swift#7. Building with SwiftPM works, as long as you don't use Foundation or Dispatch due to a few technical reasons (swiftwasm/swift#592, swiftwasm/swift#658, swiftwasm/swift#647), but I hope that a minimalistic bare-bones subset of Foundation can alleviate that pain in the meantime.

https://forums.swift.org/t/wasm-support/16087/26

All 39 comments

Swift Package Installation

It would be desirable to simplify the use of executables that have been compiled with swift build and installing the binary, payloads and other requirements into either a global location usable by all users on the system, or make it available only to the current user.

This would simplify the distribution and usage of Swift-authored tools, as instructions for installing the software would be as simple as directing the user to type swift tool install.

Other ecosystems like Node and .NET have made it easy for consumers of software to grab software and make it accessible with a single command. In the Node/NPM world this is achieved with the npm install tool and in .NET with the dotnet tool install command.

https://forums.swift.org/t/swift-package-installation/35728

Subclassing non-open / final classes in unit tests with @testable

https://forums.swift.org/t/subclassing-non-open-final-classes-in-unit-tests-with-testable/35666

71: “Polymorphic interfaces” with special guest Dave Abrahams

https://swiftbysundell.com/podcast/71/

Add default parameter values to DecodingContainer decode overloads

https://forums.swift.org/t/add-default-parameter-values-to-decodingcontainer-decode-overloads/35856

An update on WebAssembly support:

An update on the current status: if you don't care about binary size, it's more or less usable right now as in this demo. Swift can't run dead code elimination on unused protocol conformances yet, so the minimum produced binary size is ~10M raw and ~1.5M when optimized and compressed with 3rd-party tools, as tracked in swiftwasm/swift#7. Building with SwiftPM works, as long as you don't use Foundation or Dispatch due to a few technical reasons (swiftwasm/swift#592, swiftwasm/swift#658, swiftwasm/swift#647), but I hope that a minimalistic bare-bones subset of Foundation can alleviate that pain in the meantime.

https://forums.swift.org/t/wasm-support/16087/26

https://twitter.com/k__mahar/status/1255601788067119104

Our SSWG proposal for the MongoDB Swift driver is in review from today through May 13. Would love for you to read it and share your feedback! https://forums.swift.org/t/feedback-mongodb-swift-driver/35989

Fix inconsistency for Sequence.max

Pitch: I'd like to propose that we modify the behavior of the Sequence.max algorithms to match the free max(...) functions in cases where there is more than one "maximum" element

https://forums.swift.org/t/fix-inconsistency-for-sequence-max/36063

Manually select overloaded functions

I would like to pitch an idea of allowing the programmer to optionally inform the compiler of a function parameter's type at call site, instead of always having the compiler infer the type.

Motivation

Overloaded functions are common in Swift. All of them rely on the compiler to infer at call site. Some times, there is no ambiguity between overloaded functions, and the compiler can always reliably infer which function is the correct one.

https://forums.swift.org/t/manually-select-overloaded-functions/36031/3

282 returned for revision

SE-0283: Tuples conform to Equatable, Comparable, and Hashable

https://forums.swift.org/t/se-0283-tuples-conform-to-equatable-comparable-and-hashable/36140

https://twitter.com/tomerdoron/status/1257745600788881408

More exciting swift-server news 🔥

@ktosopl and myself will be @gsoc mentors this year, working with @slashmodev to build distributed tracing support for swift-server: https://swift.org/gsoc2020/. Can't wait to get started!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gregheo picture gregheo  ·  3Comments

jessesquires picture jessesquires  ·  9Comments

jonniedarko picture jonniedarko  ·  3Comments

jessesquires picture jessesquires  ·  6Comments

jessesquires picture jessesquires  ·  10Comments