SwiftWeekly / swiftweekly.github.io

A community-driven weekly newsletter about Swift.org
https://swiftweekly.github.io/
Creative Commons Zero v1.0 Universal
325 stars 48 forks source link

[134] Issue #134 - May 16, 2019 #456

Closed BasThomas closed 5 years ago

BasThomas commented 5 years ago

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.

BasThomas commented 5 years ago

https://twitter.com/chriseidhof/status/1124005259708444672 + thread

fassko commented 5 years ago

Adding isPowerOf2 to BinaryInteger

https://forums.swift.org/t/adding-ispowerof2-to-binaryinteger/24087

fassko commented 5 years ago

[Returned for revision] SE-0258: Property Delegates

The review for SE-0258 has concluded. There was a lot of great discussion in this review, leading to some very useful feedback for the Core Team and the proposal authors. That feedback can be broken down into two categories: (1) procedural feedback about the state of the proposal and its review and (2) technical feedback about the actual proposal. Both are useful, and we'll consider each in turn.

https://forums.swift.org/t/returned-for-revision-se-0258-property-delegates/24080

fassko commented 5 years ago

Pitch [stdlib]: making sorting algorithm choosable.

https://forums.swift.org/t/pitch-stdlib-making-sorting-algorithm-choosable/24100

fassko commented 5 years ago

Pitch: Method to sum numeric arrays

https://forums.swift.org/t/pitch-method-to-sum-numeric-arrays/24170

fassko commented 5 years ago

The second review of the revised SE-0253: Callable values of user-defined nominal types begins now and runs through May 13, 2019.

https://forums.swift.org/t/se-0253-callable-values-of-user-defined-nominal-types/24177

BasThomas commented 5 years ago

https://spec.fm/podcasts/swift-unwrapped/295535

fassko commented 5 years ago

Server Workgroup meeting recap

https://forums.swift.org/t/april-18th-2019/24220

fassko commented 5 years ago

Pitch: Protocol Conformance for Tuples / Anonymous Structs

https://forums.swift.org/t/pitch-protocol-conformance-for-tuples-anonymous-structs/24207

BasThomas commented 5 years ago

https://twitter.com/slava_pestov/status/1125843524203765761

Contributor Raj Barik implemented an entire optimizer pass to convert existentials to generic parameters, creating new opportunities for unboxing and devirtualization. All the pieces have landed and it is now on by default: https://github.com/apple/swift/pull/19820

BasThomas commented 5 years ago

https://twitter.com/AirspeedSwift/status/1125917086335639552

I jest, but there's a serious point here: declaring your API binary stable is a major step, and even now you can, not be done without good reason.

What's cool about this evolution feature is it will let you do it gradually, by reserving a lot of flexibility for later changes. https://twitter.com/AirspeedSwift/status/1125843585801154560

BasThomas commented 5 years ago

https://twitter.com/Ilseman/status/1125943551710322688

Case study on applying SE-0255: "Omitting Single-Expression Returns" to String's internal implementation in the standard library.

Includes 393 removed returns, and analyzes 111 declarations where the return couldn't be removed.

https://forums.swift.org/t/omitting-returns-in-string-case-study-of-se-0255/24283

fassko commented 5 years ago

[Pitch] Property delegate composability, backing storage, and $

https://forums.swift.org/t/pitch-property-delegate-composability-backing-storage-and/24291

Based on the discussions in the property delegates pitch and review, it seems that we should push further on the composition angle. So, I had an idea that could use some refinement.

fassko commented 5 years ago

Omitting Returns in String: Case Study of SE-0255

I’m a fan of @nate_chandler’s SE-0255 which allows us to omit the return keyword in a single-expression function or computed variables. Here is a case study of SE-0255 as applied to String’s internal implementation.

This is only to String and related Unicode functionality; other areas such as SIMDVector.swift (@scanon) could similarly benefit.

Omission Wins

SE-0255 allows us to remove 393 single-expression returns. Here is the PR 8. Below are a few common themes in return omission.

https://forums.swift.org/t/omitting-returns-in-string-case-study-of-se-0255/24283

fassko commented 5 years ago

Development open for Swift 5.0.2 for Linux

We are happy to announce the opening of the development phase for Swift 5.0.2 for Linux with a planned release by the middle of June 2019.

https://forums.swift.org/t/development-open-for-swift-5-0-2-for-linux/24321

Sent with GitHawk

fassko commented 5 years ago

https://twitter.com/leoxlzhao/status/1126256414526181381

Sent with GitHawk

BasThomas commented 5 years ago

Finally: https://twitter.com/johannesweiss/status/1126254936801591296

BasThomas commented 5 years ago

https://github.com/apple/swift-evolution/blob/master/proposals/0260-library-evolution.md https://forums.swift.org/t/se-0260-library-evolution/24260/1 review

fassko commented 5 years ago

Preview of cross-platform IDE and GUI framework for Swift

https://forums.swift.org/t/preview-cross-platform-ide-and-gui-framework/24361

BasThomas commented 5 years ago

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

Wow, that is amazing. SwiftWasm! Seriously amazing work @maxdesiatov and co: https://swiftwasm.org

https://twitter.com/maxdesiatov/status/1126937564902981632

Super excited to see Swift on WebAssembly finally working, albeit in some limited form, any further contributions are appreciated! But I'm unfairly credited here, most of the hard work was done by @zhuowei 👏https://twitter.com/johannesweiss/status/1126913408455053312

fassko commented 5 years ago

Feedback: NIOAPNS: NIO-based Apple Push Notification Service

After the discussion thread, we are proposing this as a final revision of this proposal and enter the proposal review phase which will run until the 31st of May 2019.

We have integrated most of the feedback from the discussion thread so even if you have read the previous version, you will find some changes that you hopefully agree with.

NIO-based Apple Push Notification Service

Proposal: SSWG-0006

https://forums.swift.org/t/feedback-nioapns-nio-based-apple-push-notification-service/24393

fassko commented 5 years ago

[PITCH] SortedCollection

Following the topic about SortedCollection I've decided to give some thought to the matter and possible implementation.

https://forums.swift.org/t/pitch-sortedcollection/24386

fassko commented 5 years ago

Jordan Rose explaining about Slightly faster small String on big-endian platforms

https://forums.swift.org/t/slightly-faster-small-string-on-big-endian-platforms/24391

P.S. Accidentally clicked wrong button "close issue" :P

BasThomas commented 5 years ago

Finally: https://twitter.com/Catfish_Man/status/1127305039373000704

Oscillating wildly between “this elegantly expresses the desired operation” and “this is horrible” 😂

@tonyarnold Or s.reduce(nil, { $1 })

BasThomas commented 5 years ago

https://github.com/swift-extended-library/selwg

fassko commented 5 years ago

Really cool project - Swift Online Playground with IntelliSense

https://web-swift-playground.7e14.starter-us-west-2.openshiftapps.com/

https://forums.swift.org/t/swift-online-playground-with-intellisense/24448

fassko commented 5 years ago

Great article by good friend @twostraws "What’s new in Swift 5.1"

https://www.hackingwithswift.com/articles/182/whats-new-in-swift-5-1

Also can't stop recommending he's site https://www.whatsnewinswift.com/?from=5.0&to=5.1 with downloadable Playground.

fassko commented 5 years ago

Swift on Server Workgroup meeting May 2nd, 2019

https://forums.swift.org/t/may-2nd-2019/24548