The POCO C++ Libraries Blog

Archive: April, 2007

POCO 1.3 Update

Filed under: News by guenter at 16:42

POCO 1.3 is coming along nicely. Yesterday I have added a Condition (as in POSIX condition variable) class. As soon as I had finished it, Mark Swaanenburg from the Netherlands sent me his own implementation, which he developed independently. Seems like we need better coordination among our contributors 😉
Anyway, today I did some testing on various platforms. Windows, Linux and Mac OS X are fine. HP-UX has some issues (the newest HP aCC compiler for Itanium works, but the older compiler for HPPA has issues with the Hash class templates). Solaris with the Sun Studio compiler stumbles across the Foundation test suite (this time it’s the LinearHashTable class template). I haven’t found a workaround yet, so, I fear, Solaris developers will have to stick with the 1.2 release for now). Or, maybe someone else finds out how to work around the compiler bug.

The latest code is in the SVN trunk. There will also be a tarball prerelease tomorrow or Friday. Things are looking good for a May 7 release.

POCO 1.3 is Coming!

Filed under: Uncategorized by guenter at 19:42

We are currently hard at work finishing the 1.3 release of POCO. Highlights of the new version will be official release of the Data library, the addition of Tuple and DynamicAny, HashMap and HashSet, shared memory support and lots of other improvements and bugfixes. Expect a preview release next week. The final release will be out in the beginning of May. Of course, you are also welcome to get the current state of the 1.3 release from the Subversion repository.

Have you ever seen anything like STL?

Filed under: Uncategorized by alex at 21:42

I have to share what happened to me today.

But, first, a Meyers’ quote from “Effective STL”:

“… in the nearly 30 years I’ve been programming, I’ve never seen anything like STL. You probably haven’t either.”

Now my story:

I’m developing this app on top of an old DB which is, well, full of data we can’t afford to lose and not from the best design school, to put it mildly. So I end up wrestling this mammoth query, joining across five tables, doing unions, morphing and shaping where clauses, desperately trying to get the right result set and plug all the holes in SQL statement like Scrat water holes in Ice Age 2 (see attached picture for description 😉 ). When I finally think I’m done with the query, test points out a flaw. Due to limitation of MS Access (I know, it should be migrated to something decent, but it can’t be at this time. Period.) SQL dialect, there’s no remedy in SQL. So, I have to resort to some sort of “massaging” the data after it is fetched from the database. So I write a filter – iterator loop on the result set vector (it was meant to be a read-only query), run the thing and it runs – forever. I mean, a little shorter than that, but far from acceptable – on the order of one to two minutes. Scratch, scratch – clearly all clues point to std::vector, which shines in push_back-ing, but erasing from the middle of vector of few thousand 16-type Tuples … you get the picture. And then the light bulb comes on – std::list is the answer to my troubles. But, oh my – there’s no Extraction for std::list in PocoData. So, I fire the PocoData project, not really believing I’ll get away just like that, you know – there must be a catch, Murphy and all, but anyway, I’ve tried crazier things before … so I:

1) copy/paste std::vector Extraction template specialization

2) replace std::vector with std::list in both Extraction.h and my code

3) Recompile everything (with my eyes shut and ears covered 😉 )

4) Fire up the app and – boom! – the correct result set displays right in front of me in a fraction of second

Well, there is no comment needed to the above. I’m still rubbing my eyes and thinking, there must be a catch somewhere, but the stopwatch proves me wrong. No catch. It really was that simple.

If someone has seen anything like STL, please let me know. Because I haven’t.


Does your development look like this? Consider POCO!

Wear a Cool POCO T-Shirt!

Filed under: Uncategorized by gerhard at 10:30

Hi POCO Maniacs!

Express your POCO unity! Share your POCO passion with others!

Share with the community your Project Showcase, your insights, learnings with POCO! The senders of the first 10 published showcases will get one T-Shirt. Please send it together with your contact information to

Here a first impression.

T-Shirt FrontT-Shirt Front

T-Shirt BackT-Shirt Back

POCO Article in ACCU Journal

Filed under: News by guenter at 07:30

The latest issue of CVu, one of the fine magazines of the ACCU, has published my article A Guided Tour of the POCO C++ Libraries, which gives an overview of the POCO libraries, with code samples. I hope this will help to make POCO known to an even wider audience.

And at this point, welcome to all CVu readers who have found this through the article.