Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Load more
@ivantokar.bsky.socialDec 5, 2026, 7:00 PM

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/

ivantokar.comdefer: Put Cleanup Next to SetupKeep resource cleanup close to acquisition in Swift, understand scope exit and reverse execution order, and avoid subtle defer mistakes.
@ivantokar.bsky.socialDec 5, 2026, 4:00 PM

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/

ivantokar.comRaw pixelsCreate a pipeline from pixels you hold, and read pixels back out with a fully described layout.
?Unknown authorDec 5, 2026, 1:20 PM

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...

#atproto #swiftlang

github.comRelease v0.47.0 · nnabeyang/swift-atprotoWhat's Changed This release adds support for permissioned data spaces, following the Spaces public beta. It includes breaking changes, so read Migrating to 0.47 before updating. New Features Space...
@ivantokar.bsky.socialDec 5, 2026, 1:00 PM

A separate, initially non-blocking sanitizer job is one way to build confidence before making it a merge requirement.

#SwiftLang
https://forums.swift.org/t/should-the-core-swift-packages-run-their-tests-under-thread-sanitizer/91326

forums.swift.orgShould the core Swift packages run their tests under Thread Sanitizer?Hi all. I'm fairly new to contributing to Swift, so please read this as a question from someone who may be missing context, not as a criticism. I recently tried running the tests of swift-collections, swift-async-algorithms and swift-platform-executors with Thread Sanitizer. I expected them to be clean. Instead, I couldn't build them at first, and once I worked around that I found one real race, a flaky test, and two kinds of false report. I'd like to ask whether running these packages' tests un...
R@repocharts.comDec 5, 2026, 8:45 AM

🏆 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

#opensource #swiftlang

Congrats, builders! 👇

repocharts.comapp-privacy-policy-generator: 30 days in GitHub AppsDaily awards for fast-growing open-source projects on Repocharts.
@avanderlee.comDec 5, 2026, 8:13 AM

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.

swiftlee-weekly.com/swift-evolut...

#swiftlang #iosdev

Photo, no description
@nilcoalescing.comDec 4, 2026, 7:51 PM

Extend Swift’s string interpolation to define custom behavior, such as value formatting, directly inside string literals: nilcoalescing.com/blog/Definin...

#SwiftLang #iOSDev

nilcoalescing.comDefining custom string interpolation behavior in SwiftExtend Swift’s string interpolation to define custom behavior, such as value formatting, directly inside string literals.
@ivantokar.bsky.socialDec 4, 2026, 5:00 PM

#SwiftLang #OpenSource
https://ivantokar.com/posts/swift-collections-heap-two-ends-one-priority-queue/

ivantokar.comSwift Collections: Two Ends of One Priority QueueHow Swift Collections uses a min-max heap to expose both priority extremes without sorting every element.
@ivantokar.bsky.socialDec 4, 2026, 4:00 PM

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/

ivantokar.comRuntime configurationInitialise, configure and observe the native runtime: concurrency, queueing, limits and capabilities.
@ivantokar.bsky.socialDec 4, 2026, 2:00 PM

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

forums.swift.org[Pre-pitch] Mark array subscripts as `@unsafe`As we fix yet another security advisory caused by accessing an array out of bounds, I thought I'd open this can of worms again. I know changing Swift's array subscripts to optional is unlikely to ever get accepted. There have been a number of discussions about adding a safe accessor that have never reached a definite conclusion. My suggestion would be to mark the API as @unsafe so that if you enable .strictMemorySafety() you must explicitly opt-in to the unsafe behaviour and consider how you us...
@ivantokar.bsky.socialDec 4, 2026, 1:00 PM

#SwiftLang #Xcode
https://forums.swift.org/t/compilation-caching-incremental-and-clean-builds-produce-different-swiftmodule-bytes-so-cache-keys-depend-on-build-history/91358

forums.swift.orgCompilation caching: incremental and clean builds produce different .swiftmodule bytes, so cache keys depend on build historyWith Xcode compilation caching on, an incremental build and a clean build of the same source produce different .swiftmodule bytes. Everything that imports the affected module then gets a different cache key, so machines with different build histories can't share cache entries. Reproduced on Xcode 27.2 (Swift 6.4.2, swift-driver 1.168.6), Xcode 27.1 (Swift 6.4) and Xcode 26.4.1 (Swift 6.3.1, swift-driver 1.148.6). Setup. Four package targets, Base ‚Üê Middle ‚Üê Top ‚Üê App. Middle uses Base.Use...
@focotaku.bsky.socialDec 3, 2026, 7:30 PM

Voy a subir explicaciones de #AdventOfCode a YouTube por si alguien quiere practicar #SwiftLang -- Aquí video del día 1 - youtu.be/G61gdUrRKUc

FFocotaku@focotaku.bsky.socialDec 1, 2026, 10:47 AM

I just completed "Dusty Shed" - Day 1 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/1

adventofcode.comDay 1 - Advent of Code 2026
youtu.be🎅 AoC 2026 Día 1 Adviento en Swift 💻 FrecuenciasYouTube video by Algoritmos en Swift
@ivantokar.bsky.socialDec 3, 2026, 5:18 PM

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/

ivantokar.comSwiftUI Introspect: Finding Views Without Private APIsHow SwiftUI Introspect finds the right UIKit or AppKit view with paired markers, bounded traversal, and explicit OS version rules.
@ivantokar.bsky.socialDec 3, 2026, 2:00 PM

#SwiftLang #ServerSideSwift
https://forums.swift.org/t/pitch-deprecate-string-utf8string-in-favor-of-the-stdlibs-validating-initializers/91298

forums.swift.org[Pitch] Deprecate String(utf8String:) in favor of the stdlib's validating initializersIn swiftlang/swift-foundation#2430 I tried to add String(utf8String:) to FoundationEssentials. @jmschonfeld pointed out that it does the same as String(validatingCString:) from the standard library, and suggested deprecating it instead. This is that pitch. What it does today In swift-corelibs-foundation, String(utf8String:) with a pointer calls String(validatingCString:), and if that fails, NSString(utf8String:), which calls String(validatingCString:) again. The [CChar] overload cuts the array...
@ivantokar.bsky.socialDec 3, 2026, 1:08 PM

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

forums.swift.org[Pitch] Observable actors and actor snapshotsThis is a back-to-back follow-on from the [Pitch] Observation performance and modeling improvements post. I am putting this up so firstly folks can have context for where that other pitch is going (and perhaps some additional motivation of why it is useful as an evolutionary step). Introduction Work that must not block the main thread lives in actors: downloads, databases, sync engines, device connections. The views that present that work live on the main actor, are written synchronously, and a...
@ivantokar.bsky.socialDec 2, 2026, 6:00 PM

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/

ivantokar.comSwift Argument Parser: One Model for CLI CommandsA source-level look at how Swift Argument Parser turns property wrappers and command types into parsing rules, validation, usage, and help.
@ivantokar.bsky.socialDec 2, 2026, 4:00 PM

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

github.comGitHub - ivantokar/hokusai: High-performance Swift image processing powered by libvips, with a first-party CLI.High-performance Swift image processing powered by libvips, with a first-party CLI. - ivantokar/hokusai
@ivantokar.bsky.socialDec 2, 2026, 2:00 PM

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

forums.swift.org[Pitch] Colocated TestsHello Swift Testing enthusiasts! Since time immemorial, packages have required a separate test target. This adds an extra step whenever you want to add new tests or find relevant tests. A separate target also can't access private declarations for testing purposes. To address these limitations, I've written a proposal about "colocated tests", where library targets can place tests alongside implementation code. In Practice Opt-in to colocated tests in Package.swift: // Package.swift let packa...
@finestructure.mastodon.social.ap.brid.gyDec 2, 2026, 10:08 AM

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 😆

github.com/SwiftPackage…

github.comInvestigate `DocRoute` related crashes · Issue #3021 · SwiftPackageIndex/SwiftPackageIndex-ServerHow to test deploy to prod (currently no other way to reproduce) run doc-test typically has at least one 521 failure, perhaps run a couple of times if not three runs without errors nor crashes is s...
@ivantokar.bsky.socialDec 2, 2026, 10:00 AM

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.

#SwiftLang
https://github.com/swiftlang/swift/pull/73031

github.com[Macros] Add support for wasm macros by kabiroberai · Pull Request #73031 · swiftlang/swiftThis PR introduces support for WebAssembly-based macros via -load-plugin-executable Foo.wasm#Foo. Wasm macros are blazing fast (no SwiftSyntax build required for consumers!) and secure (fully sandb...