Categories
Archives
Meta
Category Archives: C++
Implementing the generic IEnumerable interface
Say you want to implement a class that implements the IEnumerable interface in C#. Then you have two choices, either to implement the old-style non-generic IEnumerable interface or you can implements the generic IEnumerable<T> interface. Given those choices we of … Continue reading
Posted in C++, Coding, General
9 Comments
GADTs in C++
My good friends Claudio Russo and Andrew Kennedy have been kind enough to send me a draft paper about Generalized Algebraic Data Types (GADTs) and Object-Oriented Programming. GADTs generalize the datatypes of ML and Haskell by permitting constructors to produce … Continue reading
Posted in C++, Coding, General
5 Comments
Now with Java
Following up on the benchmark from yesterday, I’ve produced a Java version of the queens benchmark (queens.java). Below is the updated graph. I have a suspision that the reason Mono and Java is performing so bad is not only due … Continue reading
Posted in C++, Coding, Java
Leave a comment
A hand full of Queens
Or: SML/Moscow ML is faster than C++/GCC Inspired by a remark by Peter about the abysmal performance of exceptions on the .NET platform. I decided to check it for myself with a micro-benchmark. I also decided to check the performance … Continue reading
Posted in C++, Coding, O'Caml, SML
Leave a comment