~/talk

Solving the web most popular code shortening competition in Python.

Talkat EuroPython 2015 · 2015-07-20..07-26· [python]
links:none on file
slides:none on file

Solves SIZECON by shrinking Python until only characters above ASCII 32 count and reaches a record 28 characters above 32. Uses low-level tricks: translate() tables to remap control bytes, octal literals and backslash escapes to compose arbitrary bytes, layered string execs (an nested exec inception) to build and run code, plus custom search and generation tools that enumerate feasible character sets. Submissions are binary files uploaded to SPOJ and verified to run and score.

AI-written summary · about

  1. 0:00Start
  2. 5:55SIZECON problem statement SIZECON - Size Contest
  3. 7:04SIZECON best solutions for Python 2
  4. 8:17The "python golf" master plan
  5. 9:32Reference solutions - 50-ish
  6. 11:04Shortened solutions - down to 33!
  7. 17:49Building ASC1132_decrypt
  8. 22:10"SIZECON2" problem Same as SIZECON, but score is the number of different characters with ASCII 32
  9. 25:09"SIZECON2" problem Octal representation of characters in literal strings!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.