SIMD in Pure Python

Date: 1/13/2024 · Tags: #python, #simd, #good-reading
  1. Python Has infinite precision integers (Python also has a bytearray type)
  2. Python has bitwise operation (&, |, ^, ~, <<, >>)
  3. Leverage compiler optimizations (CPython compiles your code into a bytecode format)

That's enough to implement simple SIMD operations in pure Python.

Awesome!