31 posts tagged ‘Swift Programming Language’
SpamSieve 3.0.3
SpamSieve 3.0.3 is another maintenance update. The main focus is working around various cases where Apple Mail doesn’t behave properly, resulting in hangs or messages not being filtered or trained. Some interesting bugs were: Some customers were seeing a crash when SpamSieve updated its Dock icon badging. It turns out that setting NSApplication.applicationIconImage will throw […]
GitMounter
Julia Evans: has anyone made a read-only FUSE filesystem for a git repository where every commit is a folder and the folder contains all the files in that commit? Jordan Rose: And I did in fact do something very like that, back when I was playing with FUSE! But I never put it up anywhere […]
How to Control the World
Brandon Williams and Stephen Celis (2018, via Christian Tietze): While unconventional, we hope that it’s obvious that this solution of controlling dependencies is superior to the traditional solutions in use today. It also gives us an opportunity to reevaluate deep-seated beliefs we may have. We should continuously question our assumptions. In this case, we found […]
Triggering Swift Property Observers From Initializers
Natalia Panferova: In Swift, property observers such as willSet and didSet are not called when a property is set in an initializer. This is by design, as the initializer's purpose is to set up the initial state of an object, and during this phase, the object is not yet fully initialized. However, if we need […]
Composable Architecture and Swift Observation
Brandon Williams and Stephen Celis (Mastodon): But now with the Observation framework you get to forget about almost all of that complexity, and just build your features in the most naive way, with basically zero adornments, and it just works. And it works in the most efficient way possible, where only the data accessed in […]
Swift Proposal: Typed Throws
SE-0413: Swift is known for being explicit about semantics and using types to communicate constraints that apply to specific APIs. From that perspective, the fact that all thrown errors are of type any Error feels like an outlier. However, it reflects the view laid out in the original error handling rationale that errors are generally […]
On-Crash Backtraces in Swift
Alastair Houghton: Prior to Swift 5.9, all you would get when your program fails is a message from the parent process (often the shell) telling you that the child process crashed[…] […] Now, instead of the opaque message above, the result looks something like this[…] […] This new feature greatly improves the on-crash debugging experience […]
Swift Proposal: Pack Iteration
SE-0408: Currently, it is possible to express list operations on value packs using pack expansion expressions. This approach requires putting code involving statements into a function or closure. For example, limiting repetition patterns to expressions does not allow for short-circuiting with break or continue statements, so the pattern expression will always be evaluated once for […]