r/cpp • #define private public • Sep 23 '26

PJ Plauger's final column at C/C++ Users Journal (2000)

https://jacobfilipp.com/DrDobbs/articles/CUJ/2000/0005/plauger/plauger.htm
37 Upvotes

15 comments sorted by

42

u/STL MSVC STL Dev Sep 23 '26

Man, from the first few words of this title I thought this was going to be sad news. (PJP is 82 now; I haven't spoken to him in quite some time but hope he's in good health.)

I was effectively PJP's apprentice during the first part of my career, and learned how to be a Standard Library maintainer from him.

14

u/antiquark2 #define private public Sep 24 '26 edited Sep 24 '26

I was effectively PJP's apprentice

Wow, good teacher!

I used the dinkumware page as a C++ reference, much like cppreference.com is used today.

The C/C++ Users Journal article I refer to in the post, was long a mystery to me. That issue of CUJ was missing from the company bookshelf, and I always wondered what PJP said in it. So every 5 to 10 years, it would cross my mind, I'd search for it... and finally it appeared online!

I guess in hindsight, I'm a fan of PJP. I wish he had a better online presence (blogs or something) to see what he's up to. Even his official webpage went offline a few years ago.

13

u/daveedvdv EDG front end dev, WG21 DG Sep 24 '26

Bill is a friend of EDG also. I, too, haven't heard directly from him in a while, but I do get indirect news once or twice a year (incl. some tough one). He remains a giant in our field...

6

u/Expert-Map-1126 vcpkg maintainer BillyONeal Sep 24 '26

I'm still so happy we have PJP's sort... so often I see comparisons where other implementations don't do as well vs. some new algorithm, I tested against that, and found didn't make much of a difference for us.

There's certainly plenty of stuff we changed by now but the "core bones" still go back to Dinkumware and those were great. I also hope PJP is in good health.

And I hope nobody puts the {}s where they used to be for us 😅

4

u/smdowney WG21, Text/Unicode SG, optional<T&> Sep 24 '26

Whitesmith rules?

6

u/STL MSVC STL Dev Sep 24 '26

Yeah, we used Whitesmiths bracing until we clang-formatted the codebase to 1TBS.

5

u/Expert-Map-1126 vcpkg maintainer BillyONeal Sep 24 '26

Yes. On the plus side it totally immunized me from caring about brace style going forward.

5

u/smdowney WG21, Text/Unicode SG, optional<T&> Sep 24 '26

I think I spent a few months in my 20s caring deeply about the correct brace style. Then I had to work with other people and their existing code, and I dropped to "dammit just pick ONE in this function"

The only style thing that I can't read these days is a space before the parens for a function call. I just stumble on

a = function (arg1, arg2);

and can't figure out what the expression (arg1, arg2) is doing.

2

u/me_on_tuesdays Sep 26 '26 edited Sep 26 '26

Didn't he write the standard library for Visual Studio .NET (2002)? The earlier version that allowed you to check end() for null.

Edit: Nevermind, I am thinking of P.J. Naughter. I remember this because I was hired at a firm around that time and when the next version of Visual Studio came out everything broke in our nautical math library and I spent a few weeks going though the code base fixing those. Most of them had mathematics degrees so they had a very unique way of writing C++ and for some reason there were thousands of iterator checks for end() against 0.

2

u/STL MSVC STL Dev Sep 26 '26

I haven't worked with P.J. Naughter. (From searching the Internet, he was apparently a C++ MVP recognized by Microsoft, but I don't believe he ever contributed to MSVC's C++ Standard Library.)

P.J. Plauger (Dinkumware) did in fact write the C++ Standard Library implementation that Microsoft licensed in the mid-1990s, and has been maintained continuously since then. I started working with PJP when I switched to the MSVC team in 2007, and have continued to maintain the codebase after we parted ways with Dinkumware. PJP graciously allowed us to open-source our codebase in 2019.

2002 was before my time, but I can certainly believe that iterators were originally pointers before they became always class types (which has been the case for my entire career).

2

u/me_on_tuesdays Sep 26 '26 edited Sep 26 '26

Ok,

So my initial memory was correct (I'm reaching retirement age so my memory isn't as good as it use to be)

I believe Dinkumware wrote the MSVC C++ Standard Library all the way up to Visual Studio .NET (2002). I was there working on the OS when you were hired, I'm just being incognito.

Edit: If my memory is correct I think we licenced the STL library up until around 2002 and then purchased the source code and took over development internally.

7

u/smdowney WG21, Text/Unicode SG, optional<T&> Sep 24 '26

Hugo nominee and John W. Campbell Award winner in 1975.

6

u/jk-jeon Sep 24 '26

Given the rapid changes occurring in C++, I didn't think it wise to let C go unreviewed for five years or more. For a time, I even pushed for the addition of such features as classes and overloading, heavy borrowings from C++. Conservatism eventually reared up, however, and drove out such radical changes. That was probably for the better, I confess, but still I was disappointed.

Wow.

3

u/chibuku_chauya Sep 24 '26

His book The Standard C Library was a big influence on me.

3

u/smdowney WG21, Text/Unicode SG, optional<T&> Sep 24 '26

It was, maybe still is, the best book on real C programming after K&R.

And made me understand the C library was not magic.