XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Swift Forums - Latest posts

Latest posts

[Accepted] SE-0550: `@instrumentation` attribute for functions [was: `@noSanitize` attribute for functions]

Hello, Swift community! The review of SE-0550: @instrumentation attribute for functions ended on October 20th. Feedback on this proposal was that the feature itself was generally useful, with most of the discussion revolving around the spelling and about specific implementation details. The review period was extended to give the community time to comment on changes that were requested by the Language Steering Group during its initial review. Those changes were: Rename the attribute to…

Developer main unable to build packages

That really doesn't belong on the swift-installer-scripts repo, the installer is not responsible for issues related to clang. If you look at the error: 13 | #include <stdlib.h> | `- error: 'stdlib.h' file not found it seems like a user error: missing a standard header implies that your Visual Studio installation is corrupt or missing.

Swift95, a Windows-95 inspired components library for SwiftUI

Hello everyone! I want to share a small funny project I did recently. A Windows 95 inspired components kit in SwiftUI. What's inside: Supprot iOS 18+, macOS 15+ 25+ reusable components Built-in Workspace navigation, including Task Bar and Windows. Primitives like Theme, Fonts, Colors, etc. You can use the controls individually, or built-in workspace navigation. Define a route, give it some SwiftUI content, and add a link to open it: import SwiftUI import Swift95 enum Screen: Hashable { case…

[Pitch] A noncopyable Win32.FileHandle: ownership and closing

Yeah the underlying object being wrapped is a HANDLE, which is an opaque identifier similar to a file descriptor. A client could use unsafeRawHandle to get this HANDLE and call CloseHandle on it, but that's misuse like Slava mentioned. The reason we offer unsafeRawHandle is so clients can adopt Win32.FileHandle even if System doesn't support the Win32 functions they need yet. There's also relinquish(), which consumes the Win32.FileHandle, for when a client needs to pass ownership of the…

[Accepted] SE-0557: Add `RawSpan` primitive to `Hasher`

Hi everyone. The review of SE-0557, Add RawSpan primitive to Hasher, ran from October 12 through October 20, 2026, and the Language Steering Group has decided to accept this proposal. It is a straightforward adaptation of the existing Hasher.combine(bytes: UnsafeRawBufferPointer) API to also work with the safe RawSpan type. Reviewers raised a couple of points of feedback, which the Language Steering Group does not believe require changes to the proposal as written: Unsafety of accessors…

[Pitch] A noncopyable Win32.FileHandle: ownership and closing

tera: Is there an actual system/kernel object (like a file descriptor or socket) under the hood here, with this new API acting as a wrapper on top? If so, what happens if that underlying handle gets closed out from under it? The wrapper would still think it's valid and try to use it, right? And if the system recycles that exact same ID for a completely new, unrelated file descriptor, would the wrapper accidentally override or mess with that new file's data? Well, this is no different than if I…

[Pitch] Extending Build Tool Plugins for Customizing Targets

This pitch looks really exciting -- thanks for sharing! I have a build tool plugin that generates a C header and module map into a target that otherwise holds only the adopter's Swift code. Right now that needs the adopter to have a second, almost-empty C target to carry the generated files, with a placeholder .c and a .gitkeep in include/. I'm hoping the new changes in SwiftPM will avoid that additional target. With the pitch PoC this works for a library target without an include/ directory…

[Pitch] A noncopyable Win32.FileHandle: ownership and closing

Neither constraint applies to new Windows APIs, so we should pursue an owning, noncopyable type instead. A double close or use after close then becomes a compile error, a dropped handle is closed rather than leaked, and every signature says clearly whether it borrows or consumes. Is there an actual system/kernel object (like a file descriptor or socket) under the hood here, with this new API acting as a wrapper on top? If so, what happens if that underlying handle gets closed out from under it?…

[Pitch] A noncopyable Win32.FileHandle: ownership and closing

Therefore, close() and deinit trap in debug builds if CloseHandle fails with .invalidHandle. FWIW, SwiftNIO hard-traps on EBADF/EFAULT and I think that's the right decision. Not doing so is hiding potentially very severe bugs. (Over a decade ago I worked on software where EBADF just errored and we accidentally sent customer data into a HTTP connection because a file descriptor got reused... Had we hard-trapped on EBADF, it's very very very likely we would've caught this issue early on in…

Swift Crypto 5.0.3: VOPRF blind and evaluate APIs do not enforce the RFC 9497 input length limit (CVE-2026-86983)

@beaumont Not sure what's the best move here but I do want to mention that there are lots of libraries that are still not on v5. These are only the Apple ones. I had an LLM dig through the repos: # apple/… · branch Now → proposed swift-crypto after swift package resolve 1 swift-nio-ssh · main "1.0.0"..<"5.0.0" → ..<"6.0.0" 5.0.3 2 swift-nio-oblivious-http · main from: "4.0.0" → "4.0.0"..<"6.0.0"; beta path → ..<"6.0.0-beta.max" 5.0.3 3 swift-cassandra-client · main "3.0.0"..<"5.0.0" →…

Announcing Swift Kafka Client v1.0.0-beta.1

I am happy that kafka client is moving forward. Thank you! We have a fork of this client that moved quite away from the origin. One of the things that we eventually did differently was propagating events and messages through the single stream (or rather call) - that is very useful for synchronization, especially for rebalance events. That turned to be the most convenient API for us: synchronized, back pressured (by librdkafka) and performant at the same time. Plus EOFs for partitions. That is…

Resolve mismatch between `withoutActuallyEscaping` documentation and function signature

Well, we can’t promise to diagnose the abstract violation of the rules, but we can diagnose the problem dynamically if it happens to occur in this execution. The current check — that there are no outstanding references to the function value on scope exit — should be enough for that, and I think that should be enough to make it safe. It would be safe regardless if the function isn’t @Sendable.

[Pitch] A noncopyable Win32.FileHandle: ownership and closing

I mean that FlushFileBuffers blocks waiting for all writes to be committed to disk, so we don't want to call it in close(), which would cause serious performance degradation for common use cases. CloseHandle can block for some network/serial port edge cases I think, but it doesn't wait for a flush. So we should separate flush() and close() to make sure flushing is only used when it's really needed.

[Pitch] Split continuation

FranzBusch: I noticed that the proposed APIs here are leaving open a race when trying to handle task priority: try await withContinuation(of: Int.self, throwing: IOError.self) { (continuation, awaiter) async throws(IOError) -> Int in let id = queue.submit( operation: operation, priority: Task.currentPriority, continuation: continuation ) return try await awaiter.wait( onCancel: { queue.cancel(id) }, onEscalate: { newPriority in queue.escalate(id, to: newPriority) } ) } Between the call to…

[Pitch] A noncopyable Win32.FileHandle: ownership and closing

tera: Therefore, close() and deinit trap in debug builds if CloseHandle fails with .invalidHandle. Isn't it safer to trap in all builds? I worry that having debug and release configurations exercise different code paths could allow a critical production error to go unnoticed. Sure, I'll make it trap in all builds. .invalidHandle means someone misused the unsafe HANDLE APIs (closing a handle early or storing one that can't be closed), so as much as I don't like trapping in production, this seems…