[pypy-svn] r63156 - pypy/extradoc/talk/pycon2009/status

fijal at codespeak.net fijal at codespeak.net
Fri Mar 20 20:59:13 CET 2009


Author: fijal
Date: Fri Mar 20 20:59:11 2009
New Revision: 63156

Added:
   pypy/extradoc/talk/pycon2009/status/author.latex
   pypy/extradoc/talk/pycon2009/status/makepdf   (contents, props changed)
   pypy/extradoc/talk/pycon2009/status/merlinux-logo.jpg   (contents, props changed)
   pypy/extradoc/talk/pycon2009/status/pypy-logo.png   (contents, props changed)
   pypy/extradoc/talk/pycon2009/status/status.txt   (contents, props changed)
   pypy/extradoc/talk/pycon2009/status/stylesheet.latex
   pypy/extradoc/talk/pycon2009/status/title.latex
Log:
blindly import pycon uk 2008 talk


Added: pypy/extradoc/talk/pycon2009/status/author.latex
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pycon2009/status/author.latex	Fri Mar 20 20:59:11 2009
@@ -0,0 +1,8 @@
+\definecolor{rrblitbackground}{rgb}{0.0, 0.0, 0.0}
+
+\title[PyPy status talk]{PyPy status talk}
+\author[H. Krekel, M. Fijalkowski]{Holger Krekel \and Maciej Fijalkowski\\
+Merlinux GmbH}
+
+\institute[PyCon UK 2008]{PyCon UK 2008 - Birmingham}
+\date{September 13 2008}

Added: pypy/extradoc/talk/pycon2009/status/makepdf
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pycon2009/status/makepdf	Fri Mar 20 20:59:11 2009
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# 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
+
+BASE=status
+rst2beamer.py --stylesheet=stylesheet.latex --documentoptions=14pt $BASE.txt $BASE.latex || exit
+sed 's/\\date{}/\\input{author.latex}/' -i $BASE.latex || exit
+sed 's/\\maketitle/\\input{title.latex}/' -i $BASE.latex || exit
+pdflatex $BASE.latex  || exit
+

Added: pypy/extradoc/talk/pycon2009/status/merlinux-logo.jpg
==============================================================================
Binary file. No diff available.

Added: pypy/extradoc/talk/pycon2009/status/pypy-logo.png
==============================================================================
Binary file. No diff available.

Added: pypy/extradoc/talk/pycon2009/status/status.txt
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pycon2009/status/status.txt	Fri Mar 20 20:59:11 2009
@@ -0,0 +1,299 @@
+================================
+PyPy Python Interpreter status 
+================================
+
+What this talk is about
+=======================
+
+* a bit of motivation
+
+* tell what Python Interpreter can run today 
+
+* what we are heading for with the 1.1 release 
+
+* Questions and Answers 
+
+PyPy - motivation
+=================================
+
+* CPython is nice, but not flexible enough
+
+* IronPython, Jython - bound to the specific VM
+
+* Separate language specification from low-level details,
+  such as GC or platform to run
+
+* Psyco and Stackless Python hard to maintain
+
+PyPy - user motivation
+=======================
+
+* One should never be forced to write anything in C
+  for performance reasons (with some exceptions: embedded
+  devices etc.)
+
+* Just-in-time compiler should make number-crunching
+  and static-enough code fast enough
+
+* One should never care about low-level details
+
+Brief history of PyPy
+==========================
+
+* first sprint 2003, about 30 more by now
+* CPython/Psyco/Jython/Stackless developers participating
+* MIT-License, more sprints
+* EU Research project 2004-2007
+* 2007-2008 - open source project
+* some google sponsoring
+
+Getting Production ready
+==========================
+
+* we worked a lot on running
+  existing applications on top of PyPy
+
+* sometimes requiring to change applications slightly
+
+* especially refcounting details tend to be a problem
+
+::
+
+  open('xxx', 'w').write('stuff')
+
+CTypes
+======
+
+* official way to have bindings to 
+  external (C) libraries for PyPy
+
+* can handle i.e. pysqlite-ctypes, pyglet, pymunk or Sole Scion,
+  almost whatever....
+
+* contribution to original ctypes
+  (better errno handling, bugfixes, tests...)
+
+* part of google sponsoring
+
+* note: 32bit and a bit slow
+
+CTypes configure
+================
+
+* our own small addition to general
+  CTypes usefulness
+
+* invokes C compiler for small details
+
+* can handle #defines, types, structure layout
+  etc.
+
+Sqlite
+======
+
+* part of cpython stdlib since 2.5
+
+* we use Gerhard Haering's CTypes version
+
+* works reasonably well after some fixes
+
+Django
+======
+
+* we run unmodified Django 1.0
+
+* only sqlite DB backend for now
+
+http://www.djangoproject.com
+
+http://code.djangoproject.com/wiki/DjangoAndPyPy
+
+Pylons
+======
+
+* worked almost out of the box once eggs
+  were working (1 day)
+
+* no SQLAlchemy yet, obscure problems
+  ahead
+
+* unmodified passes all tests
+
+* http://pylonshq.com/
+
+Twisted & Nevow
+===============
+
+* twisted works (60/4500 tests failing)
+
+* nevow works
+
+* we don't support PyCrypto nor PyOpenSSL and we
+  won't anytime soon (if nobody contributes CTypes or rpython
+  versions)
+
+* http://twistedmatrix.com/
+
+
+Other software
+==============
+
+* pure python should just work 
+
+* BitTorrent
+
+* PyPy translation toolchain
+
+* py lib 
+
+* sympy
+
+* various smaller things, templating engines
+
+Obscure details that people rely on
+===================================
+
+* non-string keys in __dict__ of types
+
+* exact naming of a list comprehension variable
+
+* relying on untested and undocumented private stuff
+  (zipimport._zip_directory_cache)
+
+* exact message matching in exception catching
+  code
+
+* refcounting details
+
+Transition to 2.5
+==========================
+
+* SOC project Bruno Gola 
+
+* almost complete
+
+* missing more testing, stdlib porting 
+
+Conclusion on Compatibility
+============================
+
+* lessons learned: There is no feature obscure enough for people
+  not to rely on it. 
+
+* pypy-c interpreter probably the most compatible to CPython
+
+* main blocker for running apps will be missing external modules
+
+Speed - comparison with CPython
+===============================
+
+* we're something between 0.8-4x slower than
+  CPython on various benchmarks.
+
+* steady but slow progress
+
+* we hope for our JIT to be a huge leap ahead
+
+* pypy-c has fastest Interpreter startup
+
+Speed - JIT generator
+=====================
+
+* not ready yet!
+
+* will be super fast
+
+* some prototypes, research ongoing
+
+* psyco is a nice proof that this approach
+  would work
+
+Memory - comparison with CPython
+===================================
+
+* PyPy has pluggable Garbage Collection 
+
+* gcbench - 0.8 (because of our faster GCs)
+
+* better handling of unusual patterns
+
+* care needed with communication with C
+
+* GCs are semi-decent
+
+
+Threading / Stackless
+===================================
+
+* currently using GIL, quite robust 
+
+* free threading? "it's work" 
+
+* pypy-c has software threading / stackless
+
+* added during translation
+
+Other backends
+==============
+
+* PyPy-jvm runs!
+
+* more integration between pypy-cli and .NET
+
+* general speed improvements
+
+* both backends are progressing - very slowly though
+
+* contributors wanted!
+
+Sandboxing
+==========
+
+* fully sandboxed python interpreter
+
+* all external calls to C goes via another
+  python process
+
+* special library for making custom
+  policies
+
+.. image:: sandboxed.png
+   :scale: 30
+   :align: center
+
+pypy-c on small devices
+===============================
+
+- cross-compilation 
+- startup time 
+- security 
+- RAM usage 
+- share interpreter state across processes
+- pypy approach a very good fit! 
+
+1.1 release goals 
+===================================
+
+- compatible to Python 2.5.2 
+- well tested on win/linux 32 bit 
+- running major packages unmodified 
+- easy_install/distutils working 
+- help e.g. by writing ctypes modules 
+
+Contact / Q&A 
+==========================
+
+holger krekel, Maciej Fijalkowski
+at http://merlinux.eu
+
+PyPy: http://codespeak.net/pypy
+
+Blog: http://morepypy.blogspot.com
+
+.. raw:: latex
+
+    \begin{figure}
+    \includegraphics[width=64px,height=64px]{merlinux-logo.jpg}
+    \qquad
+    \includegraphics[width=80px]{../../img/py-web.png}
+    \end{figure}

Added: pypy/extradoc/talk/pycon2009/status/stylesheet.latex
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pycon2009/status/stylesheet.latex	Fri Mar 20 20:59:11 2009
@@ -0,0 +1,10 @@
+\usetheme{Boadilla}
+\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}

Added: pypy/extradoc/talk/pycon2009/status/title.latex
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/pycon2009/status/title.latex	Fri Mar 20 20:59:11 2009
@@ -0,0 +1,7 @@
+\begin{titlepage}
+\begin{figure}[h]
+\includegraphics[width=64px,height=64px]{merlinux-logo.jpg}
+\qquad
+\includegraphics[width=80px]{../../img/py-web.png}
+\end{figure}
+\end{titlepage}



More information about the Pypy-commit mailing list