Statically Typed

because Hindley-Milner rocks

Category Archives: C++

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

Unit Tests and Numerical Code: Designing for Increased Testability


I’m going to be talking about unit testing numerics and how to design classes in a C++ environment.  A lot of these concepts can and do apply to other languages. … Continue reading

February 23, 2011 · Leave a comment

Implementing Scala’s pattern matching in C++


Scala has many beautiful features which I’m absolutely in love with: closures, currying of functions, functions as first class objects, higher order functions, traits, and pattern matching (and there’s probably … Continue reading

January 18, 2011 · Leave a comment

Functional Code in the News


Over at Hacker News the past few days a couple of articles became known to me and before they get buried by the other articles I’d like to link them: … Continue reading

November 28, 2010 · Leave a comment

C++ Templates and Relations to Scala (part 1)


It feels like I haven’t posted in forever.  Actually I’ve got a bunch of posts sitting in “edit” stage that just aren’t mature enough to post.  This is what happens … Continue reading

November 17, 2010 · Leave a comment

Being Wrong Helps (So Does Admitting It)


I’m one of those guys that doesn’t care if someone points out a fault in my code or if I’ve done something wrong as long as I learn something from … Continue reading

July 9, 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

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

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


Addressing Abstract C++ Classes Last post I was discussing using the %notabstract Swig preprocessor instruction on my abstract C++ class.  While Swig was able to create the Foo_wrap.cxx file, gcc … Continue reading

June 6, 2010 · 2 Comments

Swig, Python and C++ exceptions, part 3


I patted myself on the back way too soon to be proud.  If you look back to the first post and know a little about Swig you might see why.  … Continue reading

June 3, 2010 · Leave a comment