Tagged articles
8 articles
Page 1 of 1
21CTO
21CTO
Dec 4, 2025 · Information Security

How Ferrocene’s Certified Rust Core Enables Safety‑Critical Embedded Systems

Ferrocene, an open‑source Rust compiler toolchain, has achieved IEC 61508 SIL 2 certification for its core library, highlighting Rust’s growing role in memory‑safe, safety‑critical embedded devices and outlining the implications of SIL levels, certification bodies, and real‑world industrial use cases.

FerroceneIEC 61508Memory Safety
0 likes · 5 min read
How Ferrocene’s Certified Rust Core Enables Safety‑Critical Embedded Systems
Sohu Smart Platform Tech Team
Sohu Smart Platform Tech Team
Aug 9, 2025 · Mobile Development

Unveiling Swift’s Array: Memory Allocation, SIL Insights, and Copy‑On‑Write Mechanics

This article dives deep into Swift's Array implementation, explaining how the language allocates memory, the role of SIL and internal structs like _Array, _ArrayBody, and _ContiguousArrayStorage, and how copy‑on‑write ensures efficient mutation handling, all illustrated with real code snippets and debugger output.

Copy-on-WriteMemory ManagementSIL
0 likes · 20 min read
Unveiling Swift’s Array: Memory Allocation, SIL Insights, and Copy‑On‑Write Mechanics
Sohu Smart Platform Tech Team
Sohu Smart Platform Tech Team
Aug 8, 2025 · Mobile Development

Unlocking Swift Closures on iOS: Deep Dive into Implementation and Capture Mechanics

This article provides a comprehensive, step‑by‑step exploration of Swift closures on iOS, covering their definition, different forms, practical usage scenarios, the compiler’s SIL generation process, capture list behavior, memory storage details, and best practices for avoiding reference cycles.

Capture ListMemory ManagementSIL
0 likes · 17 min read
Unlocking Swift Closures on iOS: Deep Dive into Implementation and Capture Mechanics
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jun 5, 2023 · Fundamentals

Understanding Swift SIL and Method Dispatch Mechanisms

Swift inserts the high‑level SIL intermediate representation between source code and LLVM, exposing type declarations, method blocks, and virtual tables, while supporting three dispatch strategies—direct for value types and final methods, VTable for regular class methods, and Objective‑C message dispatch for @objc dynamic methods—crucial for debugging mixed Swift/Objective‑C and protocol‑extension behavior.

LLVMMethod DispatchSIL
0 likes · 20 min read
Understanding Swift SIL and Method Dispatch Mechanisms
Sohu Tech Products
Sohu Tech Products
Jan 11, 2023 · Mobile Development

Deep Dive into Swift Array Implementation and Copy‑On‑Write Mechanics

This article provides a comprehensive, low‑level exploration of Swift's Array type, detailing its memory layout, the SIL generation process, buffer allocation, internal structures such as _ArrayBuffer and _ContiguousArrayStorage, and the copy‑on‑write behavior that governs mutation and reference counting.

ArrayCopy-on-WriteLow-Level Debugging
0 likes · 18 min read
Deep Dive into Swift Array Implementation and Copy‑On‑Write Mechanics
Sohu Tech Products
Sohu Tech Products
Aug 5, 2020 · Fundamentals

Exploring Swift Enum Implementation: SIL, Memory Layout, Raw Values, Associated Values, and Protocols

This article delves into the inner workings of Swift enums—covering their compilation to SIL, memory representation, use of MemoryLayout for size and alignment, techniques for retrieving variable addresses, the role of raw values and associated values, and how default protocols like Equatable and Hashable are automatically provided.

Associated ValueRawValueSIL
0 likes · 19 min read
Exploring Swift Enum Implementation: SIL, Memory Layout, Raw Values, Associated Values, and Protocols
Sohu Tech Products
Sohu Tech Products
Jan 15, 2020 · Mobile Development

Understanding Swift Thunk Functions and SIL: Why UITableViewDelegate Methods May Not Be Invoked

This article examines a real iOS project case where a UITableView delegate method does not fire, explores Swift Intermediate Language (SIL) and thunk functions, explains the role of @objc and dynamic dispatch, and demonstrates how generic base classes affect Objective‑C visibility of delegate methods.

Message DispatchObjective‑CSIL
0 likes · 16 min read
Understanding Swift Thunk Functions and SIL: Why UITableViewDelegate Methods May Not Be Invoked