Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

[155] Issue #155 - March 12, 2020 #502

Closed
BasThomas opened this issue Feb 27, 2020 · 19 comments
Closed

[155] Issue #155 - March 12, 2020 #502

BasThomas opened this issue Feb 27, 2020 · 19 comments
Assignees

Comments

@BasThomas
Copy link
Contributor

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
Copy link
Contributor Author

https://twitter.com/tkremenek/status/1233168661805879297

Announcing a new command line argument parser library for Swift https://swift.org/blog/argument-parser/

@BasThomas
Copy link
Contributor Author

BasThomas commented Feb 28, 2020

https://twitter.com/jckarter/status/1233233283116257283

If you're interested in ARMv8.3's pointer authentication feature and how language implementations can take advantage of it, we're upstreaming our arm64e support for Swift swiftlang/swift#30112

OMG this means we finally won’t have a billion arm64e merge conflicts every single week thank fuck

Pointer authentication is the same kind of thing as W^X or ASLR - it mitigates the damage that an attacker can do once they’ve already managed to exploit a security flaw somewhere. Really happy to see this work open sourced!

@fassko
Copy link
Member

fassko commented Feb 28, 2020

Tuples conform to Equatable, Comparable, and Hashable

Introduction
Introduce Equatable, Comparable, and Hashable conformance for all tuples whose elements are themselves Equatable, Comparable, and Hashable.

Swift-evolution thread: Tuples Conform to Equatable, Comparable, and Hashable

Motivation
Tuples in Swift currently lack the ability to conform to protocols. This has led many users to stop using tuples altogether in favor of structures that they can them conform protocols to. The shift from tuples to structures have made tuples almost feel like a second class type in the language because of them not being able to do simple operations that should just work.

Consider the following snippet of code that naively tries to use tuples for simple operations, but instead is faced with ugly errors.

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

@fassko
Copy link
Member

fassko commented Mar 1, 2020

Introducing “Time”

Today is Leap Day, so I'd like to introduce you to a new Swift package I've been working on for over 2 years
Time is a package that makes date and time calculations more expressive and safe in Swift. It's built on the power of Foundation's APIs, but smooths away their many rough and ambiguous edges. It relies heavily on Swift's generics to guarantee that the calculations you're performing are calendrically correct. If you'd like an overview of how it works, be sure to check out the documentation

https://forums.swift.org/t/introducing-time/34196

@fassko
Copy link
Member

fassko commented Mar 1, 2020

Yet another chunked sequence/collection idea

Continuing the discussion from Add Sequence.split(maxLength:):

The linked gist is (another) try-out of a chunked sequence. There are separate versions for Sequence and Collection because the sequence version is capable of passing on single-pass and/or infinite sources and the collection version is fixed at using its source's SubSequence for elements

https://forums.swift.org/t/yet-another-chunked-sequence-collection-idea/34198

@BasThomas
Copy link
Contributor Author

Finally https://twitter.com/jckarter/status/1234598045511106561

@BasThomas
Copy link
Contributor Author

https://twitter.com/dgregor79/status/1234652471810650112

I still need to write lots of tests, and I’m sure there are lots of bugs hidden here, but... #SwiftLang function builders support for “switch” statements is starting to work! swiftlang/swift#30174

@BasThomas
Copy link
Contributor Author

BasThomas commented Mar 3, 2020

@BasThomas
Copy link
Contributor Author

https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md in review

@fassko
Copy link
Member

fassko commented Mar 3, 2020

Update on SE-0057

https://forums.swift.org/t/update-on-se-0057/34246

@BasThomas
Copy link
Contributor Author

https://twitter.com/dgregor79/status/1234888627160670249

Yay for code review. @pathofshrines noted a subtle omission in constraint generation that affected the semantics of switch statements in function builders. The fix was trivial but the implications are really interesting: swiftlang/swift@ea8d143:

@fassko
Copy link
Member

fassko commented Mar 4, 2020

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

@fassko
Copy link
Member

fassko commented Mar 5, 2020

Swift on Server WorkGroup February 19th, 2020 meeting notes

https://forums.swift.org/t/february-19th-2020/34310

@fassko
Copy link
Member

fassko commented Mar 6, 2020

ABI compatibility: hazards and new language proposals

https://forums.swift.org/t/abi-compatibility-hazards-and-new-language-proposals/34347

@fassko
Copy link
Member

fassko commented Mar 6, 2020

WebAssembly + SwiftPM

https://forums.swift.org/t/webassembly-swiftpm/34343

@fassko
Copy link
Member

fassko commented Mar 7, 2020

[Discussion] OpenAPIKit

Codable implementation of OpenAPI Spec v3.x

https://forums.swift.org/t/discussion-openapikit/34374

@fassko
Copy link
Member

fassko commented Mar 10, 2020

Great thread with lot’s of resources and links previously talked about this topic.

Shorthand for guard else empty return statement

https://forums.swift.org/t/shorthand-for-guard-else-empty-return-statement/34404

@BasThomas
Copy link
Contributor Author

https://twitter.com/Catfish_Man/status/1237428181591666689

Tim K and I collaborated on a nice little speedup for bridging ObjC collections containing NSStrings here: swiftlang/swift#30329

Turns out a surprisingly large chunk of the time went into looking up the correct bridging functions to call, rather than the actual work they do.

@fassko
Copy link
Member

fassko commented Mar 12, 2020

https://twitter.com/mishaldshah/status/1237854747714940928

BasThomas added a commit that referenced this issue Mar 12, 2020
References #502
BasThomas added a commit that referenced this issue Mar 12, 2020
References #502
@BasThomas BasThomas unpinned this issue Mar 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants