Tagged articles
6 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Aug 3, 2022 · Fundamentals

Why Python Has No Pointers and How to Simulate Them

This article explains why native pointers do not exist in Python, describes the underlying object model, immutable versus mutable objects, the distinction between variables and names, and demonstrates several practical ways to emulate pointer behavior using mutable containers, custom classes, and the ctypes module.

Memory ManagementMutable TypesPython
0 likes · 18 min read
Why Python Has No Pointers and How to Simulate Them
MaGe Linux Operations
MaGe Linux Operations
Jan 15, 2021 · Fundamentals

Why Everything in Python Is an Object: Unraveling Types, Instances, and Metaclasses

This article explains Python’s core principle that everything is an object, detailing the distinction between type objects, instance objects, and metaclasses, how built‑in types like int and str fit into the hierarchy, the role of the object base class, variable naming as pointers, and the differences between mutable, immutable, fixed‑length and variable‑length objects.

ImmutableMemory ManagementMutable
0 likes · 23 min read
Why Everything in Python Is an Object: Unraveling Types, Instances, and Metaclasses
Alibaba Cloud Developer
Alibaba Cloud Developer
May 20, 2020 · Fundamentals

Unveiling Git’s Hidden Architecture: Objects, Packfiles, and Storage Models Explained

This article systematically explores Git’s underlying architecture, detailing the lifecycle of objects, core data structures, packfile formats, indexing mechanisms, and the algorithms used for object retrieval, while providing practical command examples and visual diagrams to demystify Git’s storage and retrieval models.

Gitgit internalsindexing
0 likes · 18 min read
Unveiling Git’s Hidden Architecture: Objects, Packfiles, and Storage Models Explained
Sohu Tech Products
Sohu Tech Products
Jul 17, 2019 · Mobile Development

Understanding Swift Object Creation, Method Dispatch, and Memory Layout – A C‑Style Pseudocode Exploration

This article explains how Swift objects are created and destroyed, how method calls are implemented compared with Objective‑C, the memory layout of Swift classes, the role of virtual tables, the impact of compiler optimizations, and the feasibility of runtime method replacement, illustrated with extensive C‑style pseudocode examples.

Compiler OptimizationMethod DispatchRuntime
0 likes · 34 min read
Understanding Swift Object Creation, Method Dispatch, and Memory Layout – A C‑Style Pseudocode Exploration