Yikai is here

Swift Concurrency: Rethinking Actor Boundaries Through ViewModels and ViewControllers

Many teams do not start taking Swift Concurrency seriously because they fully understand Actors first. They usually start because they enable stricter concurrency checking and suddenly face hundreds, sometimes thousands, of data-race-safety warnings. The official Swift migration guide is explicit that this can happen during a real migration. At the

Structured vs. Unstructured Concurrency in Swift

This article provides a comprehensive, production-oriented explanation of Swift Concurrency with a focus on structured vs. unstructured concurrency, written as a senior-level technical sharing but suitable for a broad engineering audience. All APIs referenced are part of the official Apple Developer Documentation. 1. Why Swift Introduced Structured Concurrency Before Swift

Swift Concurrency: From Synchronous Code to Structured Task

This article is based entirely on the official Swift Concurrency design and APIs as documented in Apple Developer Documentation. Its goal is to provide a systematic, end‑to‑end introduction to the Swift Concurrency model, focusing on its core abstractions, semantics, and execution principles. Historical comparisons and migration details are

Running Trojan and Nginx on the Same VPS with HAProxy

If you want to host a normal HTTPS website and run a Trojan server on the same VPS, you will quickly run into a classic problem: only one process can bind to port 443 at a time. This article documents a clean and production-ready solution using HAProxy with SNI-based TCP

Swift Concurrency: A Practical Guide from GCD to Actors

Swift Concurrency is Apple’s modern concurrency model introduced to make asynchronous and concurrent programming safer, clearer, and easier to reason about. This article walks through Swift Concurrency from a practical perspective, comparing it with Grand Central Dispatch (GCD) and covering async/await, parallelism, asynchronous sequences, tasks, task groups, cancellation,

Yikai is here © 2026