liveBook · Manning

Atomic type

As explained in Fast Python: High performance techniques for large datasets

An atomic type is a type whose supported accesses and operations are indivisible with respect to concurrent execution and provide defined synchronization semantics.

An atomic type provides indivisible supported accesses and defined synchronization semantics during concurrent execution. A numeric dtype answers a different question: how values are represented. Choosing NumPy uint8 affects image arithmetic and overflow; choosing pandas column types affects memory use and precision. Neither example establishes atomic access, and no atomic API or synchronization rule is specified here. section 4.2.3 section 7.1.2 section 7.1.3

How Fast Python: High performance techniques for large datasets covers it

How deep it goes
Works through width conversion and precision checks, but does not define atomic operations or synchronization.
Examples
Tests uint8 grayscale overflow and float32 taxi-fare error; neither example tests concurrent access.
How it connects
Connects numeric types to NumPy arrays, pandas columns, and Cython universal functions, not to a concurrency model.

Also explained in

Compare how 17 books explain atomic type →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fast Python: High performance techniques for large datasets. The section links point to the parts of the book it draws on.