SIMD in Pure Python
Date: 1/13/2024 · Tags: #python, #simd, #good-reading- Python Has infinite precision integers (Python also has a
bytearray
type) - Python has bitwise operation (
&
,|
,^
,~
,<<
,>>
) - Leverage compiler optimizations (CPython compiles your code into a bytecode format)
That's enough to implement simple SIMD operations in pure Python.
Awesome!