[pypy-svn] r77778 - in pypy/extradoc/talk/pyconpl-2010: . demos

fijal at codespeak.net fijal at codespeak.net
Mon Oct 11 12:18:05 CEST 2010


Author: fijal
Date: Mon Oct 11 12:18:03 2010
New Revision: 77778

Added:
   pypy/extradoc/talk/pyconpl-2010/
   pypy/extradoc/talk/pyconpl-2010/Makefile
   pypy/extradoc/talk/pyconpl-2010/author.latex
   pypy/extradoc/talk/pyconpl-2010/beamerouterthememy.sty
   pypy/extradoc/talk/pyconpl-2010/beamerthemeWarsaw.sty
   pypy/extradoc/talk/pyconpl-2010/demos/
   pypy/extradoc/talk/pyconpl-2010/demos/attrsfast.py
   pypy/extradoc/talk/pyconpl-2010/demos/attrsslow.py
   pypy/extradoc/talk/pyconpl-2010/demos/bytecode.py
   pypy/extradoc/talk/pyconpl-2010/demos/complex.py
   pypy/extradoc/talk/pyconpl-2010/demos/jit.py
   pypy/extradoc/talk/pyconpl-2010/demos/jit2.py
   pypy/extradoc/talk/pyconpl-2010/talk.pdf   (contents, props changed)
   pypy/extradoc/talk/pyconpl-2010/telescope.jpg   (contents, props changed)
   pypy/extradoc/talk/pyconpl-2010/title.latex
Log:
presentation as it went


Added: pypy/extradoc/talk/pyconpl-2010/Makefile
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/Makefile	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,18 @@
+# you can find rst2beamer.py here:
+# http://codespeak.net/svn/user/antocuni/bin/rst2beamer.py
+
+# WARNING: to work, it needs this patch for docutils
+# https://sourceforge.net/tracker/?func=detail&atid=422032&aid=1459707&group_id=38414
+
+talk.pdf: talk.rst author.latex title.latex stylesheet.latex
+	~/src/user/antocuni/bin/rst2beamer.py --stylesheet=stylesheet.latex --documentoptions=14pt talk.rst talk.latex --output-encoding=utf8|| 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
+	pdflatex talk.latex  || exit
+
+view: talk.pdf
+	evince talk.pdf &
+
+xpdf: talk.pdf
+	xpdf talk.pdf &

Added: pypy/extradoc/talk/pyconpl-2010/author.latex
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/author.latex	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,5 @@
+\definecolor{rrblitbackground}{rgb}{0.0, 0.0, 0.0}
+\title{PyPy: Jak uczynić pythona szybszym}
+\author[fijal]{Maciej Fijałkowski}
+\institute{SKA South Africa}
+\date{PyCon PL, 8.10.2010}

Added: pypy/extradoc/talk/pyconpl-2010/beamerouterthememy.sty
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/beamerouterthememy.sty	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,39 @@
+\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/outer/beamerouterthemesplit.sty,v 1.4 2004/10/07 22:21:16 tantau Exp $
+
+% Copyright 2003 by Till Tantau <tantau at users.sourceforge.net>
+%
+% This program can be redistributed and/or modified under the terms
+% of the GNU Public License, version 2.
+
+\mode<presentation>
+
+\setbeamercolor{section in head/foot}{parent=palette quaternary}
+\setbeamercolor{subsection in head/foot}{parent=palette primary}
+
+\setbeamercolor{author in head/foot}{parent=section in head/foot}
+\setbeamercolor{title in head/foot}{parent=subsection in head/foot}
+
+
+
+\usesectionheadtemplate
+  {\hfill\insertsectionhead}
+  {\hfill\color{fg!50!bg}\insertsectionhead}
+
+
+
+
+\defbeamertemplate*{footline}{split theme}
+{%
+  \leavevmode%
+  \hbox{\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
+    \usebeamerfont{author in head/foot}\insertshortauthor
+  \end{beamercolorbox}%
+  \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
+    \usebeamerfont{title in head/foot}\insertshorttitle
+  \end{beamercolorbox}}%
+  \vskip0pt%
+}
+
+
+\mode
+<all>

Added: pypy/extradoc/talk/pyconpl-2010/beamerthemeWarsaw.sty
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/beamerthemeWarsaw.sty	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,18 @@
+\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeWarsaw.sty,v 1.8 2004/10/07 20:53:10 tantau Exp $
+
+% Copyright 2003 by Till Tantau <tantau at users.sourceforge.net>
+%
+% This program can be redistributed and/or modified under the terms
+% of the GNU Public License, version 2.
+
+\mode<presentation>
+
+\useinnertheme[shadow=true]{rounded}
+\useoutertheme{my}
+\usecolortheme{orchid}
+\usecolortheme{whale}
+
+\setbeamerfont{block title}{size={}}
+
+\mode
+<all>

Added: pypy/extradoc/talk/pyconpl-2010/demos/attrsfast.py
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/demos/attrsfast.py	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,15 @@
+
+class A(object):
+    def __init__(self):
+        self.a = 3
+        self.b = 4
+
+def f():
+    a = A()
+    i = 0
+    while i < 1000000:
+        a.a
+        i += 1
+
+f()
+

Added: pypy/extradoc/talk/pyconpl-2010/demos/attrsslow.py
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/demos/attrsslow.py	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,16 @@
+
+class A(object):
+    def __init__(self):
+        self.d = {'a': 3, 'b': 4}
+    
+    def __getattr__(self, attr):
+        return self.d[attr]
+
+def f():
+    a = A()
+    i = 0
+    while i < 1000000:
+        a.a
+        i += 1
+
+f()

Added: pypy/extradoc/talk/pyconpl-2010/demos/bytecode.py
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/demos/bytecode.py	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,8 @@
+
+def f(a, b):
+    while a < b:
+        a += 1
+    return b
+
+import dis
+dis.dis(f)

Added: pypy/extradoc/talk/pyconpl-2010/demos/complex.py
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/demos/complex.py	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,16 @@
+
+class Number(object):
+    def __init__(self, no):
+        self.no = no
+    
+    def __add__(self, other):
+        return Number(self.no + other.no)
+
+def f():
+    i = 0
+    sum = Number(0)
+    while i < 10000:
+        sum = Number(1) + sum
+        i += 1
+
+f()

Added: pypy/extradoc/talk/pyconpl-2010/demos/jit.py
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/demos/jit.py	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,7 @@
+
+def f():
+    i = 0
+    while i < 20000000:
+        i += 1
+
+f()

Added: pypy/extradoc/talk/pyconpl-2010/demos/jit2.py
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/demos/jit2.py	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,6 @@
+def f():
+    i = 0
+    while i < 1001:
+        i += 1
+
+f()

Added: pypy/extradoc/talk/pyconpl-2010/talk.pdf
==============================================================================
Binary file. No diff available.

Added: pypy/extradoc/talk/pyconpl-2010/telescope.jpg
==============================================================================
Binary file. No diff available.

Added: pypy/extradoc/talk/pyconpl-2010/title.latex
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pyconpl-2010/title.latex	Mon Oct 11 12:18:03 2010
@@ -0,0 +1,5 @@
+\begin{titlepage}
+\begin{figure}[h]
+\includegraphics[width=80px]{../img/py-web.png}
+\end{figure}
+\end{titlepage}
\ No newline at end of file



More information about the Pypy-commit mailing list