~/talk

FORKS? POOLS? ASYNC? Solving Wordle with Python’s concurrency tools

Talkat PyBay 2023 · on Sunday, 2023-10-08· [concurrency, python]
slides:none on file

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

  1. 0:00Introduction and welcome
  2. 1:04Talk overview and disclaimer
  3. 2:27Wordle as a human and computer
  4. 4:56Wordle player statistics
  5. 6:42Information theory in Wordle
  6. 10:13Python solver implementation
  7. 13:26Thread pools for concurrency
  8. 16:35Process pools for speed
  9. 19:43Async and the GIL
  10. 20:27No GIL and performance
  11. 22:36Hard mode and solver tweaks
  12. 24:20Testing solver against Wordle answers
  13. 27:30Recap and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.