Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Thinking Outside The Box
Search
Armin Ronacher
July 01, 2013
Programming
14
3.3k
Thinking Outside The Box
Keynote for EuroPython 2013.
Armin Ronacher
July 01, 2013
Tweet
Share
More Decks by Armin Ronacher
See All by Armin Ronacher
The Catch in Rye: Seeding Change and Lessons Learned
mitsuhiko
0
150
Runtime Objects in Rust
mitsuhiko
0
310
Rust at Sentry
mitsuhiko
0
330
Overcoming Variable Payloads to Optimize for Performance
mitsuhiko
0
130
Rust API Design Learnings
mitsuhiko
0
450
The Snowball Effect of Open Source
mitsuhiko
0
300
Mobile Games are Living Organisms, Too
mitsuhiko
0
200
We gave a Mouse an NDK
mitsuhiko
0
760
Debug is the new Release
mitsuhiko
1
570
Other Decks in Programming
See All in Programming
WEBエンジニア向けAI活用入門
sutetotanuki
0
310
OpenTelemetryでRailsのパフォーマンス分析を始めてみよう(KoR2024)
ymtdzzz
4
1.7k
リリース8年目のサービスの1800個のERBファイルをViewComponentに移行した方法とその結果
katty0324
5
3.8k
飲食業界向けマルチプロダクトを実現させる開発体制とリアルな現状
hiroya0601
1
400
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
490
RailsのPull requestsのレビューの時に私が考えていること
yahonda
5
2.3k
Content Security Policy入門 セキュリティ設定と 違反レポートのはじめ方 / Introduction to Content Security Policy Getting Started with Security Configuration and Violation Reporting
uskey512
1
440
Synchronizationを支える技術
s_shimotori
1
150
デプロイを任されたので、教わった通りにデプロイしたら障害になった件 ~俺のやらかしを越えてゆけ~
techouse
52
33k
GCCのプラグインを作る / I Made a GCC Plugin
shouth
1
150
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
320
Golang と Erlang
taiyow
8
1.9k
Featured
See All Featured
Happy Clients
brianwarren
97
6.7k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
41
2.1k
Visualization
eitanlees
145
15k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Designing the Hi-DPI Web
ddemaree
280
34k
A Philosophy of Restraint
colly
203
16k
Thoughts on Productivity
jonyablonski
67
4.3k
Transcript
ThinkinG - = outside The box
Hello, I'm Armin! I do Computers - with Python. Currently
at Fireteam / Splash Damage. We do Internet for Pointy Shooty Games. c w
q t t j j d
the box is comfortable X
the comfort is dangerous l
the 9 dots puzzle 0 j 5 (and things of
similar nature)
h - W < å ≥ h ≥ U using
exactly 4 straight lines, without retracing or removing one's pen from the paper connect the dots j
h - W < å ≥ h ≥ U using
exactly 4 straight lines, without retracing or removing one's pen from the paper connect the dots j
g i know it's cliché Ç
J the six thinking hats
J the six thinking hats This
the majority is always wrong: congratulations; you're now a cynical
asshole 7 z “ ”
a change of environment 1 z m
c computer games
˚ 4 * this graph is not very scientific h
≥ Online
˚ 4 * this graph is not very scientific python!!!11
h ≥ Online
community influences your thinking . a - ∫ Î
C++ good; Scripting Languages Bad u
... if it takes you 30 minutes to do a
one line change then you obviously would not want to have runtime type checks ... E
it's too easy to dismiss something on fringe or outdated
experience alone
• never underestimate how much your environment/community influences you 1
• never underestimate how much your environment/community influences you 1
(unfortunately that also includes things like “the GIL is not a problem")
asking the right questions 2 j 5
the wrong questions are easy to spot on others a
- ˚ 4
<redacted> how do I do something after return render_template(...) if
I don't want to register teardown_request for all requests. J
• he was looking for celery / message queue ©
• first expectation was that the user wanted to change
the HTTP response 0
• teardown_request would not have worked anyways O
I don't want my user to wait while I do
some processing on his data v “ ” better:
t j the box was Flask
how to ask the right questions2 - 5 B
• assume you already started out wrong • describe the
•actual• problem =
How do I use Websockets with Flask? z “ ”
How do I notify my user about changes with low
latency. 6 better: “ ”
5 question leaves room for the answer
(a) Server-sent events via WSGI (b) application <-> redis <->
persistent connection server Ô bit.ly/pypush
f Jump on IRC help out other people < >
questioning the right things 3 z m
the worst parts in my libraries are the ones where
I took the design from elsewhere O
it's not because I know better ... ∆ Ò
• most things have some design behind • as people
copy it, the original design gets obscured and forgotten • the original design might no longer apply 1
• starting something new? • question everything! ˝
not with the intention of proving existing design wrong; with
the intention of understanding it. 9
9 paradigm shifts 4 F
Many times we don't even realize that things were an
example of thinking outside the box. (a) "echo" -> Request/Response objects (b) Interactive Interpreters 9
That's also what makes it hard to find examples now
... 9
every idea is a rehash don't get too excited when
you feel all "obviously ..." sometimes all that's necessary is transposing a concept from one industry to the other. 9
9 interesting examples 5 F
• Mill Processor: • Basic Block: One entry, one exit.
• Break instruction bundles in half • Two decoders, one moves left from EBB entry point, one moves to the right =
• Mill Processor: • Basic Block: One entry, one exit.
• Break instruction bundles in half • Two decoders, one moves left from EBB entry point, one moves to the right = two independent units, two separate caches
=a High-level Queues for Request Handling Stateful Frontend Servers Stateless
Workers
• Sending around signed data • Cookies • Access/Refresh Tokens
• Activation Links • Offers ˆ
• The Rust Programming Language • Memory ownership tracking 1
(and otherwise just steal from C++, C, Python, Ruby, Haskell and Scheme)
• Spotify's Native/Web Bridge • spawns HTTP server on localhost:XXXXX
• provides OAuth bridge • JavaScript authenticates with local server, sends commands and retrieves updates. c
That's it; Now ask questions ? @mitsuhiko lucumr.pocoo.org/talks gittip.com/mitsuhiko y
y y d
calibration slide -- 2 2 2 2 2 2 c