[pypy-commit] extradoc extradoc: more tweaks

antocuni noreply at buildbot.pypy.org
Wed Jun 22 18:04:32 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: extradoc
Changeset: r3772:5a1477ddb233
Date: 2011-06-22 18:07 +0200
http://bitbucket.org/pypy/extradoc/changeset/5a1477ddb233/

Log:	more tweaks

diff --git a/talk/ep2011/talk/talk.rst b/talk/ep2011/talk/talk.rst
--- a/talk/ep2011/talk/talk.rst
+++ b/talk/ep2011/talk/talk.rst
@@ -247,12 +247,37 @@
 
 - Huge stack of layers over the bare metal
 
-- Abstraction has a cost |pause| (... or not?) |pause|
+- Abstraction has a cost |pause| (... or not?)
 
-- XXX: write a nice diagram showing how far is "a+b" from "add EAX, EBX" (or
-  equivalent)
 
-.. XXX those slides from google talk can be showed here: http://paste.pocoo.org/show/413859/
+Python is complicated
+---------------------
+
+How ``a + b`` works (simplified!):
+
+* look up the method ``__add__`` on the type of a
+
+* if there is one, call it
+
+* if it returns NotImplemented, or if there is none,
+  look up the method ``__radd__`` on the type of b
+
+* if there is one, call it
+
+* if there is none, or we get ``NotImplemented`` again,
+  raise an exception ``TypeError``
+
+
+Python is a mess
+----------------
+
+How ``obj.attr`` or ``obj.method()`` works:
+
+* ...
+
+|pause|
+
+* no way to write it down in just one slide
 
 
 Killing the abstraction overhead
@@ -515,7 +540,7 @@
 
 - (I wonder why you all are still here instead of busy trying PyPy :-))
 
-  * not all C extensions are supported
+  * not all C extensions are supported (numpy anyone?)
 
   * too much memory (sometimes)
 


More information about the pypy-commit mailing list