Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What Web Developers can Learn from Game Developers

What Web Developers can Learn from Game Developers

DJUGL presentation about queues (again!)

Armin Ronacher

June 26, 2013
Tweet

More Decks by Armin Ronacher

Other Decks in Programming

Transcript

  1. a
    What Web Developers can Learn
    from Game Developers
    Armin Ronacher for DJUGL June 2013

    View Slide

  2. Hello, I'm Armin!
    I do Computers - with Python.
    Currently at Fireteam / Splash Damage.
    We do Internet for Pointy Shooty Games. c
    w

    View Slide

  3. Web/Backend Game/Core-Tech Art/Sound
    *

    View Slide

  4. Web/Backend Game/Core-Tech Art/Sound
    *

    View Slide

  5. Why is Python not used in Games?

    View Slide

  6. Slow?

    View Slide

  7. Slow?

    View Slide

  8. C & C

    View Slide

  9. Community & Concurrency

    View Slide

  10. others follow
    someone starts
    gets successful

    View Slide

  11. others follow
    someone starts
    gets successful
    and that's why everybody used PHP

    View Slide

  12. nobody has been fired for choosing Unreal

    View Slide

  13. 60FPS

    View Slide

  14. Each Actor runs a “Thread”
    work -> suspend -> wait -> work -> suspend -> work -> …

    View Slide

  15. Lua
    Unreal Script
    C#
    JavaScript
    The Industry Standard

    View Slide

  16. Playstation 3
    256MB + 256MB RAM
    3.2 GHz Processor
    6 + 1 SPUs

    View Slide

  17. Playstation 3
    256MB + 256MB RAM
    3.2 GHz Processor
    6 + 1 SPUs
    that's not a lot

    View Slide

  18. #9
    Core

    View Slide

  19. #9
    Core

    View Slide

  20. #9
    Core

    View Slide

  21. #9
    Core

    View Slide

  22. What does that have to do with Web?

    View Slide

  23. Remember the Heroku Rap-Genius Incident?

    View Slide

  24. Task Queues >> Random Routing

    View Slide

  25. we do things because others do it too
    and that's not always good :-(

    View Slide

  26. Python is not going to get better at
    concurrency :-(

    View Slide

  27. Qua e
    Tn!

    View Slide

  28. ALL THE THINGS!

    View Slide

  29. Optimize the right things

    View Slide

  30. Tools are Important

    View Slide

  31. That's it.
    Now ask questions.
    And add me on twitter: @mitsuhiko
    Like my work? gittip.com/mitsuhiko
    Slides at lucumr.pocoo.org/talks
    ?

    View Slide