Author: Maciej Fijalkowski <fij...@gmail.com> Branch: extradoc Changeset: r4962:c78170433833 Date: 2013-03-20 14:25 -0700 http://bitbucket.org/pypy/extradoc/changeset/c78170433833/
Log: talk at invitae diff --git a/talk/sftour2013/invitae/Makefile b/talk/sftour2013/invitae/Makefile new file mode 100644 --- /dev/null +++ b/talk/sftour2013/invitae/Makefile @@ -0,0 +1,16 @@ +# you can find rst2beamer.py and inkscapeslide.py here: +# http://bitbucket.org/antocuni/env/src/619f486c4fad/bin/rst2beamer.py +# http://bitbucket.org/antocuni/env/src/619f486c4fad/bin/inkscapeslide.py + + +talk.pdf: talk.rst author.latex stylesheet.latex + rst2beamer --input-encoding=utf8 --output-encoding=utf8 --stylesheet=stylesheet.latex --documentoptions=14pt 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 & + +xpdf: talk.pdf + xpdf talk.pdf & diff --git a/talk/sftour2013/invitae/author.latex b/talk/sftour2013/invitae/author.latex new file mode 100644 --- /dev/null +++ b/talk/sftour2013/invitae/author.latex @@ -0,0 +1,8 @@ +\definecolor{rrblitbackground}{rgb}{0.0, 0.0, 0.0} + +\title[Writing fast Python programs]{Writing fast Python programs} +\author[arigo, fijal] +{Armin Rigo \\ Maciej Fijałkowski} + +\institute{InVitae 2013} +\date{March 20 2013} diff --git a/talk/sftour2013/invitae/beamerdefs.txt b/talk/sftour2013/invitae/beamerdefs.txt new file mode 100644 --- /dev/null +++ b/talk/sftour2013/invitae/beamerdefs.txt @@ -0,0 +1,108 @@ +.. colors +.. =========================== + +.. role:: green +.. role:: red + + +.. general useful commands +.. =========================== + +.. |pause| raw:: latex + + \pause + +.. |small| raw:: latex + + {\small + +.. |end_small| raw:: latex + + } + +.. |scriptsize| raw:: latex + + {\scriptsize + +.. |end_scriptsize| raw:: latex + + } + +.. |strike<| raw:: latex + + \sout{ + +.. closed bracket +.. =========================== + +.. |>| raw:: latex + + } + + +.. example block +.. =========================== + +.. |example<| raw:: latex + + \begin{exampleblock}{ + + +.. |end_example| raw:: latex + + \end{exampleblock} + + + +.. alert block +.. =========================== + +.. |alert<| raw:: latex + + \begin{alertblock}{ + + +.. |end_alert| raw:: latex + + \end{alertblock} + + + +.. columns +.. =========================== + +.. |column1| raw:: latex + + \begin{columns} + \begin{column}{0.45\textwidth} + +.. |column2| raw:: latex + + \end{column} + \begin{column}{0.45\textwidth} + + +.. |end_columns| raw:: latex + + \end{column} + \end{columns} + + + +.. |snake| image:: ../../img/py-web-new.png + :scale: 15% + + + +.. nested blocks +.. =========================== + +.. |nested| raw:: latex + + \begin{columns} + \begin{column}{0.85\textwidth} + +.. |end_nested| raw:: latex + + \end{column} + \end{columns} diff --git a/talk/sftour2013/invitae/stylesheet.latex b/talk/sftour2013/invitae/stylesheet.latex new file mode 100644 --- /dev/null +++ b/talk/sftour2013/invitae/stylesheet.latex @@ -0,0 +1,11 @@ +\usetheme{Boadilla} +\usecolortheme{whale} +\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/sftour2013/invitae/talk.rst b/talk/sftour2013/invitae/talk.rst new file mode 100644 --- /dev/null +++ b/talk/sftour2013/invitae/talk.rst @@ -0,0 +1,65 @@ +.. include:: beamerdefs.txt + +============================ +Writing fast Python programs +============================ + +who we are +---------- + +* Maciej Fijałkowski + +* Armin Rigo + +what we're going to talk about +------------------------------ + +* the problem of fast python + +* cython, numpy, weave, etc + +* PyPy and our approach + +* promise to keep it short + +python language +--------------- + +* expressive + +* concise + +* performance characteristics not 100% clear + +classic solutions +----------------- + +* use numpy, but your algorithms have to be vectorized + +|pause| + +* use cython, but you have to write down your types + +|pause| + +* don't use python, just call C + +demo +---- + +... + +pypy approach +------------- + +* make language fast enough for algorithms + +* make numpy compatible enough to reuse it + +* more algorithms less pipeline building + +more +---- + +* pypy.org + _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit