~/talk

Doing stupid things with ASTs

Talkat PyConline AU 2021 · 2021-09-10..09-12· [python]
links:none on file
slides:none on file

Code-level details matter: Python's ast + Inspect + Python 3.9 unparse get real ASTs, and the drawing backend uses the stdlib turtle drawing to render outputs. Genetic-programming techniques — subtree crossover, mutation, pruning and tournament selection — produce new functions by compiling mangled ASTs back to code. The system sometimes generates recognisable flowers but also huge bloat and many nonfunctional programs; the core failure is the fitness metric — measuring “flower-ness” proves as hard as solving the problem, so evolution works but doesn't reliably solve the goal.

AI-written summary · about

  1. 0:00Start
  2. 6:53A stupid idea
  3. 8:07Drawing flowers
  4. 14:54Multiple Generations
  5. 19:03Evolving Code Fitness functions
  6. 23:52Conclusions Don't do this
~/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.