Useful Python decorators for data scientists
I show toy implementations of Python decorator patterns that may be useful for Data Scientists.
I wrote the same small async message queue server five times — in Python, JavaScript, C++, Rust and Go — all speaking one wire protocol and passing one shared test suite. Then I probed them at the byte level and found at least six ways they quietly disagree, every one of them slipping past the tests.
Visit bytepawn.com → RSS feedOn Hacker News May 2022 – Sep 2024
I show toy implementations of Python decorator patterns that may be useful for Data Scientists.
The article explains the Bell inequality using Monte Carlo simulations in Python, and shows how non-local action-at-a-distance can be used to break it with entangled qubits.
I discuss various models of biased bit sequences, and how to extract uniform random (or close to it) output bit sequences from them, illustrated with Python code.