Statically Typed

because Hindley-Milner rocks

Category Archives: Python

C++: Structs vs. Tuples, or Why I like Tuples More

An interesting question was asked on StackOverflow the other day regarding Tuples and C-style structs.  I answered as best I could but I neither had time to expand upon it … Continue reading

May 7, 2011 · 3 Comments

Android: Avoiding Custom Views with Resources

Creating a custom view is hard.  It’s hard not because there’s something technically difficult about it but rather because there’s so little literature out there to guide you in how … Continue reading

January 26, 2011 · 2 Comments

Wubi, Eclipse, Android SDK and more

I’ve had a very busy weekend.  I used Wubi to install Ubuntu on my machine at home, downloaded the PyDev add-on for Eclipse and configured my Android SDK download so … Continue reading

September 26, 2010 · Leave a comment

Python, the GIL, Actor models and the “future” of concurrency

I’ll get to Python in just a second but first, something uplifting and positive.  I love me some Scala.  I really, really do.  With the new 2.8 release it has … Continue reading

July 27, 2010 · Leave a comment

Revisiting My Wrench and Timing It Too

I had mentioned that in working with Python 2.4 I had come up with a rather rigid solution to a problem (chaining a bunch of iterators together to traverse a … Continue reading

July 11, 2010 · Leave a comment

Cog, Meet Wrench

Originally I thought I’d entitle this post “Eloquently Not” to highlight how a seemingly eloquent solution could be so utterly poor in light of another solution or a change in … Continue reading

June 27, 2010 · Leave a comment

Enforcing Parameter Constness in Python with Decorators?

I should have suspected that memoization is one of those run-of-the-mill type decorators. You know what I mean, everyone has probably done one at some point.  And just like everyone … Continue reading

June 23, 2010 · Leave a comment

Pragmatic Programmers: Scripting “Wrist Work”

I love coding.  I like writing little functions that together create magic.  I like optimizing performance in performance critical applications.  I like refactoring code I’ve written to make it more … Continue reading

June 15, 2010 · Leave a comment

A memoizing decorator

I like decorators in Python as they take a fairly basic design pattern and turn it into a succinct way of expressing functionality within code.  I’ve also had to make … Continue reading

June 13, 2010 · Leave a comment

Swig, Python, and C++ exceptions, part 5

What a wonderful time I’m having with Swig, cross-language polymorphism, and C++ exception catching.  My last post indicated how I would proceed with exception handling and I attempted to work … Continue reading

June 8, 2010 · Leave a comment