
A developer built KahootP2P, an iOS quiz game that runs entirely over local peer-to-peer networking with no internet dependency. Using Couchbase Lite Enterprise's P2P replication and Bonjour for device discovery, the app solves the conference Wi-Fi bottleneck problem by keeping all data traffic local. The architecture models game state as Couchbase Lite documents — questions, answers, scores, and leaderboard — with bidirectional replication between a host device and player devices in a star topology. The post covers device discovery via Bonjour, scoring with the host's monotonic clock to avoid NTP dependency, reactive UI with Combine, and Codable integration for clean Swift model mapping. End-to-end latency from host action to player screen update is under 100ms on local Wi-Fi.
Nguồn: https://www.couchbase.com/blog/zero-latency-quizzing-how-p2p-replication-solved-the-conference-wi-fi-problem. 8sync News chỉ tóm tắt và dẫn link; bản quyền nội dung thuộc tác giả và nguồn gốc.
Apple mua lại Swift Package Index (SPI), công cụ tìm kiếm các gói Swift nguồn mở, và người sáng tạo Dave Verwer sẽ gia nhập Apple để tiếp tục phát triển. SPI vẫn duy trì mã nguồn mở theo giấy phép Apache 2.0, nhưng Apple cam kết đẩy nhanh phát triển, bao gồm ký gói, tính năng nhận dạng, và đặc biệt là loại bỏ sự phụ thuộc lâu nay vào GitHub. SPI hiện lưu trữ hơn 11.000 gói và sẽ chuyển dần sang mô hình registry độc lập với nền tảng lưu trữ nguồn. Một số nhà phát triển lo ngại về việc tài nguyên cộng đồng độc lập rơi vào sự kiểm soát hoàn toàn của doanh nghiệp.
Lập trình viên nên đọc bài này để hiểu cách Apple có thể cải thiện tính độc lập và hiệu quả của hệ sinh thái phát triển Swift bằng cách loại bỏ sự phụ thuộc vào GitHub và xây dựng một nền tảng mở, an toàn hơn cho cộng đồng.
Rayfish là mạng VPN ngang hàng (mesh VPN) mới hoạt động hoàn toàn peer-to-peer, không cần máy chủ trung tâm hay tài khoản, dựa trên iroh để xử lý kết nối QUIC mã hóa, NAT traversal và hole punching. Nó hỗ trợ nhiều mạng riêng tư cùng lúc, tường lửa theo thiết bị, cấu hình khai báo YAML, DNS ảo và truyền file trực tiếp giữa các thiết bị, nhưng có tốc độ thấp hơn Tailscale do dùng QUIC userspace thay vì WireGuard kernel.
Lập trình viên nên đọc bài này để khám phá cách xây dựng một giải pháp VPN mesh tự chủ, dựa trên kiến thức về cryptographic identity và QUIC, giúp tối ưu hóa cho ứng dụng riêng của họ về tính riêng tư, không cần server trung tâm và giao diện đơn giản hóa cho người dùng cuối.

Vị trí lưu trạng thái loading trong SwiftUI được thảo luận qua ba cách: dùng @State local, nhúng vào enum generic, hoặc đưa vào store. Tác giả đề xuất tách biệt trạng thái loading (ở view) khỏi dữ liệu (ở store) để tránh lặp trạng thái và giữ store làm nguồn sự thật duy nhất, mặc dù cách này có thể tăng độ phức tạp khi xử lý mutations như addProduct.
Lập trình viên nên đọc bài này để hiểu cách tối ưu hóa quản lý trạng thái tải (loading state) trong SwiftUI, tránh rắc rối về sự phân tán giữa view và store, và áp dụng kiến trúc đơn nhất để giữ cho ứng dụng linh hoạt và dễ bảo trì.
The Swift defer keyword executes code just before leaving a scope, making it useful for cleanup tasks like closing file handles or ensuring completion callbacks are always called. Multiple defer blocks execute in reverse order. Swift 6.4 (SE-0493) adds support for await inside defer blocks when the surrounding context is async, allowing asynchronous cleanup without unstructured Tasks. Key rules: async defer only works in async contexts, blocks still run in reverse order, cleanup is awaited before scope exit, and task cancellation is still observable inside defer.

SwiftUI bổ sung các API Toolbar mới giúp kiểm soát rõ ràng hơn về hiển thị và hành vi của toolbar items trên nhiều nền tảng, bao gồm visibilityPriority, ToolbarOverflowMenu, topBarPinnedTrailing, và toolbarMinimizeBehavior. Các tính năng này cân bằng giữa khả năng thích ứng của SwiftUI với sự điều khiển trực tiếp từ nhà phát triển trên iOS, iPadOS và macOS.
Nếu bạn đang phát triển ứng dụng iOS/iPadOS/macOS với SwiftUI và muốn tối ưu hóa giao diện người dùng bằng cách điều khiển chính xác các mục toolbar theo từng trường hợp sử dụng cụ thể, hãy đọc bài này để khám phá các API mới nhất giúp bạn kiểm soát tính năng hiển thị và tương tác của toolbar một cách linh hoạt.
A developer newsletter covering two main themes: the philosophical shift of Linux from a desktop platform to invisible infrastructure powering containers and AI agent runtimes, and a collection of SwiftUI-focused content. The Linux discussion explores how native container support in both Windows 11 and macOS signals Linux's 'commoditization' as a default runtime rather than a user-facing OS. SwiftUI content includes debugging animation bugs, using DynamicProperty for reusable stateful logic, SwiftUI's flat 3D rendering model, a MapKit/TCA camera feedback loop fix, Safari's new MCP server for AI coding agents, and the release of SwipeCell v3 with a rewritten API supporting ScrollView and macOS.
Sneakerweb is a peer-to-peer web publishing protocol that requires no DNS servers, domain registrars, or web hosts. Websites are stored on user devices and shared via physical storage media using .snk files. A CLI tool lets users claim domains, publish static sites, import/export collections, and browse them locally in a standard browser. The protocol is built on top of Willow, which handles forgery prevention, data merging, and compact file formats.

Couchbase Mobile is a cloud-to-edge-to-device data platform designed to keep enterprise mobile apps running during network outages. It combines an embedded NoSQL database (Couchbase Lite) with a sync layer (Sync Gateway/Capella App Services) and an edge server, enabling offline-first operation with automatic sync when connectivity returns. The latest release (version 4.1) adds Bluetooth peer-to-peer sync for fully disconnected environments, React Native SDK support, rolling upgrades in Sync Gateway, and expanded Edge Server security and platform support. Customers like PepsiCo, Emirates, and Princess Cruise Lines rely on it for mission-critical operations. On-device vector search and RAG support position it for Edge AI use cases.