Archives 2014

First Impressions of Swift

I've been playing with Swift, Apple's replacement for Objective-C, for a couple of weeks now. I've been writing Objective-C with Cocoa since around 2002 (I still have the first edition of O'reilly's Learning Cocoa, published way back in May 2001) and have seen a lot of changes. From manual retain ...

Continue reading

Python Is Slow, Make It Faster With C

This is a companion blog post to my talk at Kiwi Pycon 2014 (surprisingly, the title of my talk is also Python is slow, make it faster with C). The point of the talk was not so much “Here is a Python project and these are the changes I made to turn it into C ...

Continue reading

Help, I've been a-salt-ed!

I love to start posts with a terrible pun. I also love Salt. If you’re not familiar with Salt, it’s a tool for managing servers, similar to the likes of Puppet and Chef. They all claim to be great for taking control of an army of machines, but for my purposes I just ...

Continue reading

Better Unit Tests with Nose

Unit testing! We all love it, and we all do it, right? Of course we do. But wouldn't it be much more satisfying if we could write tests more easily, quickly see what code still needs testing, and keep a record of these tests? Using nose to run your Python tests helps with all ...

Continue reading

Faster SQLAlchemy with Memcached

SQLAlchemy provides a great Pythonic way of interacting with SQL, however it does introduce some overheads which can slow down your application, especially if you're used to the speed of raw SQL. Read on to see how I was able to combine SQLAlchemy and Memcached to retrieve up-to-date results quickly.

Background

Very shortly I ...

Continue reading

Monthly archives

Next year

2015