In Molecules of Swift #011, I explore scope boundaries, cleanup order, and why cleanup should be registered only after successful acquisition.
#SwiftLang
https://ivantokar.com/posts/defer-put-cleanup-next-to-setup/

In Molecules of Swift #011, I explore scope boundaries, cleanup order, and why cleanup should be registered only after successful acquisition.
#SwiftLang
https://ivantokar.com/posts/defer-put-cleanup-next-to-setup/
The resulting pipeline supports the same transformations as an encoded image source. You can resize the pixels and export them in another format without first creating an intermediate image file.
#SwiftLang #ServerSideSwift #OpenSource
https://ivantokar.com/oss/hokusai/sources-input/raw-pixels/
swift-atproto 0.47.0 is out with support for Atproto Spaces (permissioned data): space Lexicons, at:space/ URIs, space credentials, and the new ATProtoSync module. See the release notes for breaking changes.
github.com/nnabeyang/sw...
A separate, initially non-blocking sanitizer job is one way to build confidence before making it a merge requirement.
🏆 Repocharts Awards · 5 December
🔥 app-privacy-policy-generator @nisrulz.com 30 days in GitHub Apps
🔥 Dash-iOS @kapeli.bsky.social 30 days in GitHub Apps
🔥 CodeEdit @codeedit.app 30 days in GitHub Apps
🔥 marimo @marimo.io 30 days in GitHub Dev Tools
Congrats, builders! 👇
8 Swift Evolution proposals changed status this week.
The tracker checks the official metadata daily and keeps a readable history, so you don't have to monitor every proposal manually.
Extend Swift’s string interpolation to define custom behavior, such as value formatting, directly inside string literals: nilcoalescing.com/blog/Definin...
#SwiftLang #OpenSource
https://ivantokar.com/posts/swift-collections-heap-two-ends-one-priority-queue/
This gives a backend a clear startup contract: choose the limits, initialize the native runtime, then start serving requests. There is no public shutdown method to add to your server lifecycle.
#SwiftLang #ServerSideSwift #OpenSource
https://ivantokar.com/oss/hokusai/runtime-performance/runtime/
For server code, the interesting question is how we can make unchecked assumptions about external input visible without treating every array access as a memory-safety violation. #SwiftLang #ServerSideSwift
https://forums.swift.org/t/pre-pitch-mark-array-subscripts-as-unsafe/91284
Voy a subir explicaciones de #AdventOfCode a YouTube por si alguien quiere practicar #SwiftLang -- Aquí video del día 1 - youtu.be/G61gdUrRKUc
In this Swift OSS Overview, I look at how the library handles native view discovery and lifecycle.
#SwiftLang #SwiftUI
https://ivantokar.com/posts/swiftui-introspect-finding-views-without-private-apis/
I like the separation between state for display and state for decisions. A progress view needs a coherent picture, not necessarily every individual mutation.
#SwiftLang #SwiftUI
https://forums.swift.org/t/pitch-observable-actors-and-actor-snapshots/91324
A valid Int isn't always a valid CLI option. Swift Argument Parser separates decoding from domain validation with validate(). More in Swift OSS Overview #009.
#SwiftLang
https://ivantokar.com/posts/swift-argument-parser-one-model-for-cli-commands/
Hokusai checks source dimensions and intermediate image sizes separately. A small final image doesn't mean every step was small. Pixel limits aren't a full memory budget.
#SwiftLang #ServerSideSwift #OpenSource
https://github.com/ivantokar/hokusai#behaviour-you-can-rely-on
Swift could let tests live next to implementation code. The colocated-tests pitch uses a Testing availability domain to keep test-only code out of distribution builds. The mechanism is still under discussion.
#SwiftLang
https://forums.swift.org/t/pitch-colocated-tests/91282
Just stumbled across this old crash investigation of mine that exposed a #SwiftLang compiler bug. I have no memory of this, so it’s been a fun read 😆
Could Swift macros avoid a SwiftSyntax build for consumers? Experimental Wasm macro support on compiler main makes precompiled plugins possible. SwiftPM integration is still a separate challenge.