Tagged articles
3 articles
Page 1 of 1
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Oct 28, 2024 · Fundamentals

How Python Implements Static Lookup for Local Variables and Its Relationship to the Local Namespace

The article explains that CPython stores function local variables in a statically‑indexed array (f_localsplus), accesses them via GETLOCAL/SETLOCAL macros, and builds the locals() dictionary on demand, showing how exec, variable assignment order, and the hidden local namespace interact with this mechanism.

CPythonPythonbytecode
0 likes · 27 min read
How Python Implements Static Lookup for Local Variables and Its Relationship to the Local Namespace
Tencent Music Tech Team
Tencent Music Tech Team
May 5, 2017 · Mobile Development

Understanding iOS Core Audio: Definitions of Sample, Frame, and Packet

The article clarifies Apple’s Core Audio terminology—defining a sample as a single channel value, a frame as simultaneous samples, and a packet as one or more contiguous frames—explains why these terms are often confused across audio, networking, and codec contexts, and demonstrates the definitions with an MP3 parsing example.

Audio ProcessingCore Audioframe
0 likes · 11 min read
Understanding iOS Core Audio: Definitions of Sample, Frame, and Packet