Posts
- Sunday Preview – Christmas Army Boxes Are the Best Presents Around
- Warhammer 40,000 Battleforces – Six Awesome Boxed Sets to Kickstart Your Winter Season
Boxes
- Da Red Gobbo’s Surprise
import Foundation | |
import os.lock | |
public struct OSAllocatedUnfairLock<State>: @unchecked Sendable { | |
private let buffer: ManagedBuffer<State, os_unfair_lock_s> | |
public init(uncheckedState initialState: State) { | |
self.buffer = ManagedBuffer.create(minimumCapacity: 1, makingHeaderWith: { _ in | |
initialState | |
}) |
import Foundation | |
public final class ThreadExecutor: SerialExecutor, @unchecked Sendable { | |
private static let threadLocalName = "ThreadExecutor" | |
public static var current: ThreadExecutor? { | |
Thread.current.threadDictionary[threadLocalName] as? ThreadExecutor | |
} | |
public static func detached( |
alias huist='tuist' |
mkdir Developer | |
mkdir Sites |
iOS | Description | Name |
---|---|---|
10 | Prefetch | UICollectionViewDataSourcePrefetching |
13 | Diff | UICollectionViewDiffableDataSource |
13 | AppStore layout | UICollectionViewCompositionalLayout |
14 | List layout (table) | UICollectionLayoutListConfiguration |
14 | List cell (table) | UICollectionViewListCell |
14 | Reusing views in cell | UIListContentConfiguration |
https://hsivonen.fi/string-length/
language | code |
---|---|
JavaScript | "🤦🏼♂️".length == 7 |
Kotln | "🤦🏼♂️".length == 7 |
Ruby | "🤦🏼♂️".length == 5 |
Python | len("🤦🏼♂️") == 5 |
WWDC18 What's New in LLVM at 16:48
Performance implications: slowdown and hangs
__block NSString *taskName = nil;
dispatch_semaphore_t sema = dispatch_semaphore_create(0);
public final actor TaskQueue { | |
private final class Condition { | |
private var _continuation: CheckedContinuation<Void, Never>? | |
func wait() async { | |
await withCheckedContinuation { continuation in | |
_continuation = continuation | |
} | |
} |