[pypy-commit] extradoc extradoc: add a qualcomm talk

fijal noreply at buildbot.pypy.org
Thu Mar 8 18:38:26 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: extradoc
Changeset: r4138:aad87278e1d2
Date: 2012-03-08 09:38 -0800
http://bitbucket.org/pypy/extradoc/changeset/aad87278e1d2/

Log:	add a qualcomm talk

diff --git a/talk/pycon2012/qualcomm/Makefile b/talk/pycon2012/qualcomm/Makefile
new file mode 100644
--- /dev/null
+++ b/talk/pycon2012/qualcomm/Makefile
@@ -0,0 +1,13 @@
+
+
+talk.pdf: talk.rst author.latex title.latex stylesheet.latex
+	rst2beamer.py --input-encoding=utf-8 --output-encoding=utf-8 --stylesheet=stylesheet.latex --documentoptions=14pt --theme=Warsaw talk.rst talk.latex || exit
+	sed 's/\\date{}/\\input{author.latex}/' -i talk.latex || exit
+	sed 's/\\maketitle/\\input{title.latex}/' -i talk.latex || exit
+	pdflatex talk.latex  || exit
+
+view: talk.pdf
+	evince talk.pdf &
+
+clean:
+	rm -f talk.pdf talk.latex
diff --git a/talk/pycon2012/qualcomm/author.latex b/talk/pycon2012/qualcomm/author.latex
new file mode 100644
--- /dev/null
+++ b/talk/pycon2012/qualcomm/author.latex
@@ -0,0 +1,7 @@
+\definecolor{rrblitbackground}{rgb}{0.0, 0.0, 0.0}
+
+\title[PyPy]{Writing VMs using PyPy}
+\author[fijal]{Maciej Fija&#322;kowski, Alex Gaynor, Armin Rigo}
+
+\institute{Qualcomm 2012}
+\date{8 March 2012}
diff --git a/talk/pycon2012/qualcomm/stylesheet.latex b/talk/pycon2012/qualcomm/stylesheet.latex
new file mode 100644
--- /dev/null
+++ b/talk/pycon2012/qualcomm/stylesheet.latex
@@ -0,0 +1,10 @@
+\usetheme{Warsaw}
+\setbeamercovered{transparent}
+\setbeamertemplate{navigation symbols}{}
+
+\definecolor{darkgreen}{rgb}{0, 0.5, 0.0}
+\newcommand{\docutilsrolegreen}[1]{\color{darkgreen}#1\normalcolor}
+\newcommand{\docutilsrolered}[1]{\color{red}#1\normalcolor}
+
+\newcommand{\green}[1]{\color{darkgreen}#1\normalcolor}
+\newcommand{\red}[1]{\color{red}#1\normalcolor}
diff --git a/talk/pycon2012/qualcomm/talk.pdf b/talk/pycon2012/qualcomm/talk.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..bed6b09fdeffae519362f1da5f10c7e6675149f6
GIT binary patch

[cut]

diff --git a/talk/pycon2012/qualcomm/talk.rst b/talk/pycon2012/qualcomm/talk.rst
new file mode 100644
--- /dev/null
+++ b/talk/pycon2012/qualcomm/talk.rst
@@ -0,0 +1,60 @@
+
+.. include:: ../tutorial/beamerdefs.txt
+
+===============================
+Building interpreters with PyPy
+===============================
+
+What is PyPy?
+=============
+
+* a fast Python interpreter with a JIT
+
+* **a framework to write dynamic language interpreters**
+
+* an open source project on the BSD license
+
+* an agile project with contributors from all over the world
+
+A bit about the architecture
+============================
+
+* describe your VM in a **high level language**
+
+* implement your object model, types etc.
+
+* you get a **GC** and **JIT** for free
+
+|pause|
+
+* with a few hints for the JIT
+
+PyPy's architecture
+===================
+
+* RPython program, imported and initialized
+
+* transformed to control flow graphs
+
+* compiled do C -OR- JVM -OR- graphs for JIT
+
+* this is a very high-level overview
+
+JIT architecture
+================
+
+* works on the level of the **interpreter**
+
+* by design complete
+
+* from a single source code of the **interpreter**
+
+Links
+=====
+
+* morepypy.blogspot.com
+
+* doc.pypy.org
+
+* #pypy on freenode
+
diff --git a/talk/pycon2012/qualcomm/title.latex b/talk/pycon2012/qualcomm/title.latex
new file mode 100644
--- /dev/null
+++ b/talk/pycon2012/qualcomm/title.latex
@@ -0,0 +1,5 @@
+\begin{titlepage}
+\begin{figure}[h]
+\scalebox{0.8}{\includegraphics[width=80px]{../../img/py-web-new.png}}
+\end{figure}
+\end{titlepage}
diff --git a/talk/pycon2012/tutorial/examples/05_obj_vs_dict.py b/talk/pycon2012/tutorial/examples/05_obj_vs_dict.py
--- a/talk/pycon2012/tutorial/examples/05_obj_vs_dict.py
+++ b/talk/pycon2012/tutorial/examples/05_obj_vs_dict.py
@@ -9,7 +9,7 @@
     a = A(1, 2, 3)
     s = 0
     for i in range(SIZE):
-        s += a.a + a.b + a.c
+        s += getattr(a, 'a') + a.b + a.c
     return s
 
 def obj_bad():
diff --git a/talk/pycon2012/tutorial/slides.pdf b/talk/pycon2012/tutorial/slides.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a9659cab234f73faae419a58814eb03b1fbedd8a
GIT binary patch

[cut]



More information about the pypy-commit mailing list