Dr. Dobb's C/C++ http://www.drdobbs.com//cpp Dr. Dobb's Copyright 2012, United Business Media. en-us Aliasing Is Particularly Troublesome With Vector Elements http://www.drdobbs.com/cpp/aliasing-is-particularly-troublesome-wit/240155096 I would like to continue our discussion with a particularly nasty case in which the result is not well defined. Thu, 16 May 2013 22:28:00 -0400 Some Subtleties of Aliasing http://www.drdobbs.com/cpp/some-subtleties-of-aliasing/240154618 Aliasing can cause paradoxical behavior. Thu, 09 May 2013 19:27:00 -0400 Sometimes, Making a Program Clearer Makes It Faster http://www.drdobbs.com/cpp/sometimes-making-a-program-clearer-makes/240154079 We can "optimize" our code by removing requests for operations that our data structures do not really need to support. Wed, 01 May 2013 21:15:00 -0400 Some Optimizations Are No-Brainers http://www.drdobbs.com/cpp/some-optimizations-are-no-brainers/240153739 Kernighan's rule for optimizations (Don't do it) is good advice. But as with most rules, there are exceptions. Fri, 26 Apr 2013 14:53:00 -0400 Porting BlackBerry Z10 Apps to the Q10 http://www.drdobbs.com/mobile/porting-blackberry-z10-apps-to-the-q10/240153291 With the release of the BlackBerry Q10 right around the corner, BlackBerry 10 application developers should be thinking about adapting their code to support the new devices. This article presents background and tips on development for this new handset. Tue, 23 Apr 2013 01:12:00 -0400 Sometimes Optimizations Cancel Each Other http://www.drdobbs.com/cpp/sometimes-optimizations-cancel-each-othe/240153129 Two rights can make a wrong in the software-design world. Wed, 17 Apr 2013 14:43:00 -0400 World's First 'Language-Aware' Source Code Merge Tool http://www.drdobbs.com/tools/worlds-first-language-aware-source-code/240153121 Codice's Semantic Merge is a programming three-way merge tool with semantic support Wed, 17 Apr 2013 10:05:00 -0400 Optimizing a Program Means Making It Run Faster, Right? http://www.drdobbs.com/cpp/optimizing-a-program-means-making-it-run/240152663 People often use optimization to mean changing a program in ways that they think will make it run faster, but that casual definition is far from complete. Wed, 10 Apr 2013 14:18:00 -0400 Optimization Versus Flexibility &mdash; An Example http://www.drdobbs.com/cpp/optimization-versus-flexibility-an-exam/240152292 Last week, I <a href="http://www.drdobbs.com/cpp/is-optimization-immoral/240151916 ">discussed</a> how optimization can sometimes mislead programmers into writing code that works better in the lab than in the field, perhaps because the problems that programs encounter in the field are larger than those that are used during testing. As luck would have it, since I wrote that article, I encountered a real-world example of that phenomenon. Thu, 04 Apr 2013 15:04:00 -0400 MongoDB with C#: Deep Dive http://www.drdobbs.com/database/mongodb-with-c-deep-dive/240152181 Using MongoDB in an ASP.NET MVC Web app. Wed, 03 Apr 2013 07:36:00 -0400 The Quiet Revolution in Programming http://www.drdobbs.com/architecture-and-design/the-quiet-revolution-in-programming/240152206 During the last two years, one of the longest eras in programming has quietly drawn to a close. Wed, 03 Apr 2013 07:14:00 -0400 Is Optimization Immoral? http://www.drdobbs.com/cpp/is-optimization-immoral/240151916 Dynamic memory allocation in C++ (and C) can be surprisingly expensive. Thu, 28 Mar 2013 07:50:00 -0400 An Objective-C IDE Done Right?&#9; http://www.drdobbs.com/testing/an-objective-c-ide-done-right/240151577 AppCode 2.0 integrates with Kiwi testing framework and documentation browsers Fri, 22 Mar 2013 16:10:00 -0400 If Order Relations are Such a Pain, Why Bother? http://www.drdobbs.com/cpp/if-order-relations-are-such-a-pain-why-b/240151471 Whenever a problem turns out to be harder to solve than we expected, it makes sense to ask whether perhaps we were solving the wrong problem in the first place. Fri, 22 Mar 2013 05:30:00 -0400 Numerical and Computational Optimization on the Intel Phi http://www.drdobbs.com/parallel/numerical-and-computational-optimization/240151128 How tuning functions for large data sets and profiling the results gets most of the benefits of the Phi's 60 cores without hand wringing and late-night hacking. Tue, 19 Mar 2013 03:01:00 -0400 Comparing an Integer with a Floating-Point Number, Part 2: Tactics http://www.drdobbs.com/cpp/comparing-an-integer-with-a-floating-poi/240150886 We continue last week's discussion by getting down to details. Thu, 14 Mar 2013 21:27:00 -0400 Xamarin 2.0 Review http://www.drdobbs.com/tools/xamarin-20-review/240150634 Write Android and iOS Apps in C# from Microsoft Visual Studio. Tue, 12 Mar 2013 11:34:00 -0400 Getting to 1 Teraflop on the Intel Phi Coprocessor http://www.drdobbs.com/parallel/getting-to-1-teraflop-on-the-intel-phi-c/240150561 The key to truly high performance with the Phi coprocessor is to express sufficient parallelism and vector capability to fully utilize the device. Here is a timing framework that enables you to measure and optimize performance and push it past 1 teraflop. Tue, 12 Mar 2013 06:53:00 -0400 Comparing an Integer With a Floating-Point Number, Part 1: Strategy http://www.drdobbs.com/cpp/comparing-an-integer-with-a-floating-poi/240150323 We have two numbers, one integer and one floating-point, and we want to compare them. Thu, 07 Mar 2013 21:10:00 -0500 Learning New Languages http://www.drdobbs.com/architecture-and-design/learning-new-languages/240150070 If you want to expand your programming horizons, learn a new language. But don't take the path of least resistance &#151; aim for mastery of the advanced features. Tue, 05 Mar 2013 10:31:00 -0500 It's Hard To Compare Floating-Point Numbers http://www.drdobbs.com/cpp/its-hard-to-compare-floating-point-numbe/240149806 Last week I posed a problem: Suppose you have an inheritance hierarchy that lets you represent integers or floating-point numbers. How would you define comparison within your hierarchy? We can restate this problem in a language-independent way: How can we compare two numbers, either of which might be integer or floating-point? Fri, 01 Mar 2013 09:06:00 -0500 Why Code in C Anymore? http://www.drdobbs.com/cpp/why-code-in-c-anymore/240149452 The traditional reasons for preferring C to C++ have been steadily whittled away. Are there any good reasons to still use C? Tue, 26 Feb 2013 10:40:00 -0500 Concurrent Programming with Chain Locking http://www.drdobbs.com/parallel/concurrent-programming-with-chain-lockin/240149442 Concurrent access to trees and lists requires carefully managed fine-grained locking. Here's a generic solution in C# that removes many of the typical problems. Tue, 26 Feb 2013 06:10:00 -0500 Comparison and Inheritance http://www.drdobbs.com/cpp/comparison-and-inheritance/240149250 We continue last week's discussion of comparison functions by thinking about how to compare objects from different parts of an inheritance hierarchy. Fri, 22 Feb 2013 16:36:00 -0500 Task-Based Programming in Windows http://www.drdobbs.com/parallel/task-based-programming-in-windows/240146450 Convert programs into a series of independent executable parallel tasks. Tue, 19 Feb 2013 02:30:00 -0500