Tag Archives: C++

Picking up a Lisp

I’ve recently gone back to learning Lisp. I used it a little bit in graduate school to do some homework assignments in one of my algorithms class and learned some of the basics there, but since I started my professional … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

More functional support in C++

Sutter just announced that C++0x will have support for lambdas and closures. It looks from the N2550 report that these things are motivated by a desire for some syntactic sugar to make using STL algorithms easier (which is understandable), but … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Ok, I get it (or: Gtk+ is better than I thought).

In my last post, I kinda whined about the awkwardness of the Gtkmm API. At least, it seemed that way at the time. I toyed with libglade and Gtk+ for a while first and everything seemed very straightforward and easy. … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Quick and simple debug stream for C++

Ever need to set up a quick and simple debug/logging stream for your application without having to deal with large frameworks like log4cpp or *shudder* log4cxx? There’s also libcwd, which seems really neat, but also very large. I didn’t want … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

C++ Style Redux

I just discovered the POCO library. It’s pretty neat-looking: it has a number of components that provide functionality that goes beyond the standard C++ library, such as threading support, networking, XML reading/writing, etc. The cherry on top is that not … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Understanding STL Containers

This article is a really great way to start understanding STL containers. It discusses the differences between a vector and a deque (a double-ended queue) (you’ll often see C++ rookies as “what’s the difference between vector and queue” or something … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

C++ style anarchy

I’m sure I’ve blogged about this before. I just don’t know where. It drives me nuts. In what other languages, other than C and C++, is it acceptable to totally ignore the style that the standard uses? In Java, the … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

C++: A threaded timer

I have written a threaded timer that will start on command, and stop on command using the boost threads library. here’s the code: /* copyright Benjamin Collins 2006 * please contact for licensing information */ #include <iostream>   #include <boost/thread/condition.hpp> … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment