FORKS? POOLS? ASYNC? Solving Wordle with Python’s concurrency tools
summary
Demonstrates a Wordle statistics bot implemented in Python that scores every candidate by expected information gain, then narrows the 2,300-answer list until one solution remains. Uses concurrent.futures with a process pool executor (8 cores → 4.8x speedup; naive threading shows no gain from the GIL), manual chunking to cut IPC and shave seconds, and experiments with no GIL builds (mixed results). Solver hits ~97.5% success in hard mode after removing obvious plurals.
AI-written summary · about
chapters (13)
- 0:00Introduction and welcome
- 1:04Talk overview and disclaimer
- 2:27Wordle as a human and computer
- 4:56Wordle player statistics
- 6:42Information theory in Wordle
- 10:13Python solver implementation
- 13:26Thread pools for concurrency
- 16:35Process pools for speed
- 19:43Async and the GIL
- 20:27No GIL and performance
- 22:36Hard mode and solver tweaks
- 24:20Testing solver against Wordle answers
- 27:30Recap and resources
