site Search Results
Results for: Andrew Koenig
Order the NEW
Discounted Dr. Dobb's Developer Library DVD 6
Purchase the fully searchable DVD for $59.95 - a 60% discount! Features
21 years of Dr. Dobb's Journal, 15 years of Sys Admin
magazine, 14+ years of C/C++ Users Journal, 1 year worth of Dr.
Dobb's Digest, podcasts, videos and more! Order Now.
Optimization Versus Flexibility — An Example
Last week, I discussed 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. - C/C++
Is Optimization Immoral?
Dynamic memory allocation in C++ (and C) can be surprisingly expensive. - C/C++
If Order Relations are Such a Pain, Why Bother?
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. - C/C++
Comparing an Integer with a Floating-Point Number, Part 2: Tactics
We continue last week's discussion by getting down to details. - C/C++
Comparing an Integer With a Floating-Point Number, Part 1: Strategy
We have two numbers, one integer and one floating-point, and we want to compare them. - C/C++
It's Hard To Compare Floating-Point Numbers
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? - C/C++
Comparison and Inheritance
We continue last week's discussion of comparison functions by thinking about how to compare objects from different parts of an inheritance hierarchy. - C/C++
Concrete Examples of Orderings
There is a commonly used strategy, often called lexicographical order or dictionary order, for taking the ordering strategies for individual components and combining them. - C/C++
How Dictionaries Work
Treat each object as a sequence of symbols and impose a dictionary order on the symbols. - C/C++
The Groovy Conundrum
Groovy is one of the most interesting JVM languages, but its longtime performance issues kept it confined to narrow niches. However, a series of important upgrades look like they might push the language into the mainstream. There's the conundrum. - JVM Languages