Skip to main content

PyCon: Lightning Talks

Numba is a Python compiler for NumPy and SciPy. It replaces byte-code on the stack with simple type-inferencing. It translates to LLVM. The code then gets inserted into the NumPy runtime. They use LLVM-PY. They have a @numba.compile decorator. It's from Continuum Analytics. is a replacement for He doesn't trust does not require the use of a mouse--it's for hackers. You can run it locally so that you don't have to give another web site your bank passwords.

Why do so many talks fall flat? Your talk should tell a story. People are story tellers. People care about people. Show puzzles, not solutions. Hacking is a skill, not a piece of knowledge.

He was measuring the Python 3 support for packages on PyPI. 54-58% of the top 50 projects on PyPI support Python 3. We planned on moving to Python 3 over the course of 5 years. We're at year 3. Update your Trope classifiers to say that your project supports Python 3.

He got Python working on an iBook. This is helpful for eBooks. He used Emscripten to compile CPython into JavaScript. This does not require jail breaking. See (?).

PyCon 2014 and 2015 will be in Montreal. You'll need a passport.

bpython is an interactive shell. It only works on UNIXy systems. It looks gorgeous! It has syntax highlighting. It shows you all the callables on an object. It even shows you the docstrings, etc. It looks like Curses. You can jump to the source easily. It has rewind. It looks like a curses-based Java IDE (in a good way). pip or easy_install bpython.

Rpclib makes it easy to expose your service using multiple protocols. You can specifies types for input and output arguments. You can expose your API using a WSGI-compliant server. It also works with SOAP. It can produce XML output. It can also generate HTML microformats.

Python 3.3 will be awesome. PEP 393 gets rid of UCS2 vs. UCS4. It uses a codepoint abstraction. It surpasses the Unicode support in other languages. We won't have any more surrogate pair problems. This makes us as good as Perl, which apparently has very good Unicode support. Python 3.3 also unifies IOError and OSError. There is a new "yield from obj" syntax to flatten iterators (wahoo!). It also has a package module.

HUB is a wrapper around Git that makes working with GitHub easier. The only way you can install it is via Homebrew on a Mac. It lets you do lots of things on the command line that you would normally have to use the website for. You can use hub as an alias for git; it's a wrapper.

__init__ does not get re-run on unpickled objects. Hence, you can't add new members in new versions of __init__ because objects picked with the old version of __init__ will not get those members. However, __new__ is run. All pickled classes must be at module scope and consistently named. Only do one dump; don't use separate dumps because you might get multiple copies of subobjects.

Someone on the virtualenv team said, "I can't believe [virtualenv] even works at all." They're working on virtualenv 3, which they're hoping to get into Python 3.3. They want people to try it out. This is PEP 405.

PyPy gave a 10x speedup for generating fractals using his code. Shed Skin gave a 50x speedup, but only accepts a subset of Python. It compiles down to C++. But, using NumPy and Cython, he got 207x speedup (using multiple cores); using prange. NumPy gets behind the GIL. It takes about a day to learn how to do this stuff.

Hieroglyph is an extension for Sphinx which helps you write HTML5 slides from reStructured Text.


Popular posts from this blog

Ubuntu 20.04 on a 2015 15" MacBook Pro

I decided to give Ubuntu 20.04 a try on my 2015 15" MacBook Pro. I didn't actually install it; I just live booted from a USB thumb drive which was enough to try out everything I wanted. In summary, it's not perfect, and issues with my camera would prevent me from switching, but given the right hardware, I think it's a really viable option. The first thing I wanted to try was what would happen if I plugged in a non-HiDPI screen given that my laptop has a HiDPI screen. Without sub-pixel scaling, whatever scale rate I picked for one screen would apply to the other. However, once I turned on sub-pixel scaling, I was able to pick different scale rates for the internal and external displays. That looked ok. I tried plugging in and unplugging multiple times, and it didn't crash. I doubt it'd work with my Thunderbolt display at work, but it worked fine for my HDMI displays at home. I even plugged it into my TV, and it stuck to the 100% scaling I picked for the othe

ERNOS: Erlang Networked Operating System

I've been reading Dreaming in Code lately, and I really like it. If you're not a dreamer, you may safely skip the rest of this post ;) In Chapter 10, "Engineers and Artists", Alan Kay, John Backus, and Jaron Lanier really got me thinking. I've also been thinking a lot about Minix 3 , Erlang , and the original Lisp machine . The ideas are beginning to synthesize into something cohesive--more than just the sum of their parts. Now, I'm sure that many of these ideas have already been envisioned within , LLVM , Microsoft's Singularity project, or in some other place that I haven't managed to discover or fully read, but I'm going to blog them anyway. Rather than wax philosophical, let me just dump out some ideas: Start with Minix 3. It's a new microkernel, and it's meant for real use, unlike the original Minix. "This new OS is extremely small, with the part that runs in kernel mode under 4000 lines of executable code.&quo

Haskell or Erlang?

I've coded in both Erlang and Haskell. Erlang is practical, efficient, and useful. It's got a wonderful niche in the distributed world, and it has some real success stories such as CouchDB and Haskell is elegant and beautiful. It's been successful in various programming language competitions. I have some experience in both, but I'm thinking it's time to really commit to learning one of them on a professional level. They both have good books out now, and it's probably time I read one of those books cover to cover. My question is which? Back in 2000, Perl had established a real niche for systems administration, CGI, and text processing. The syntax wasn't exactly beautiful (unless you're into that sort of thing), but it was popular and mature. Python hadn't really become popular, nor did it really have a strong niche (at least as far as I could see). I went with Python because of its elegance, but since then, I've coded both p