~/talk

Creating generative art with PHP!

Talkat Laracon EU Online 2021 · 2021-01-18..01-22· [creative-coding, php]
name:Blackfire
links:none on file
slides:none on file

Recreates the open source primitive algorithm in PHP using imagex / imaging and profiles it with Blackfire to find real bottlenecks: repeated export_image_pixels and compare_images calls. Implements a pixel cache, replaces pixel iterators with indexed loops, narrows RMSD to a bounding box and rewrites the difference routine, and iteratively measures gains. Results show dramatic cuts in IO and memory and about a 90% speedup vs the initial PHP run with final timed runs around 22 seconds compared to JavaScript 2m30s.

AI-written summary · about

  1. 0:00Start
  2. 3:44Optimizing the Performance
  3. 6:26Random Triangles
  4. 14:11Scaling the Target Image
  5. 15:35Calculating the Average Color of an Image
  6. 18:13Step Three
  7. 21:04Mutate Shape Function
  8. 22:39Profiling Tools
  9. 33:46Color Value
  10. 35:45Optimization Graph
  11. 38:21Takeaways
~/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.