How to stop Visual Studio 2010 showing the post-build Error List

One of my least favourite features of Visual Studio 2010 is that every time my build has an error, it pops up the Error List window. And every time, I switch to the Output window to read the full compiler error because the Error List doesn’t show enough information. In terms of interaction, that’s a major context switch – I’m focussed on the Output window looking at compile errors then BANG, the Error List interrupts my train of thought.

Now, I’ve tracked down this option to stop the Error List appearing:

20130503-184658.jpg

The remaining question is: why put this option under “Projects and Solutions” instead of under “Build and Run”?

Leave a comment

Filed under Programming

Algorithmic Interview questions (with solutions in F#)

InFSharpMajor.com is working through a book of algorithmic interview questions and solving them in F#. The questions come from this book which provides solutions in C++.

I think the problems and solution algorithms are interesting in their own right. I found the F# solutions a bit opaque (and I’ve been writing F# for several years), but my colleagues from a functional (*cough* Haskell) background tell me the idioms are well recognised in the community.

1 Comment

Filed under Programming, Soft skills

Idiot’s Guide to C++ Templates

This article on C++ templates is well written, if rather long!

The second part is here.

Leave a comment

Filed under C++, Programming

C++14: Runtime-sized arrays

More details on the ISO C++ blog about runtime-sized arrays in C++14.

N3639 proposes to add local runtime-sized arrays with automatic storage duration to C++, for example:

void f(std::size_t n)
{
int a[n];
for (std::size_t i = 0; i < n; ++i)
{
a[i] = 2*i;
}
std::sort(a, a+n);
}

Traditionally, the array bound “n” had to be a constant expression.

2 Comments

Filed under C++, Programming

ISO C++ Spring 2013 Report

Herb Sutter has posted his trip report from the ISO C++ Spring 2013 meeting in Bristol.

The post includes details on features to be included in C++14, including:

  • std::make_unique – never use “new” again
  • Generic lambdas – allow auto for type name in lambdas
  • Dynamic arrays – stack-based arrays can take size parameter at runtime
  • std::optional – for variables that are ‘not set’ (like F# option)
  • Concepts lite – constraints for templates

Leave a comment

Filed under C++, Programming

Google task monitoring plans

The Register reports on Google’s approach to active task monitoring and management:

“Our solution, CPI2, uses cycles-per-instruction (CPI) data obtained by hardware performance counters to identify problems, select the likely perpetrators, and then optionally throttle them so that the victims can return to their expected behavior. It automatically learns normal and anomalous behaviors by aggregating data from multiple tasks in the same job.”

The article talks about the benefits in terms of low-latency guarantees, because hungry batch jobs can be killed. The data might be useful for tracking down performance bottlenecks too – imagine never having to attach a profiler to a running process because you can already attribute the time spent on a job to its individual tasklets.

Leave a comment

Filed under Technology

The Mythical Man-Month

The Guardian cites The Mythical Man-Month as mandatory reading for anyone planning a big software project. I’d agree, as well as recommending Peopleware (Tom DeMarco & Tim Lister) and Slack (Tom DeMarco)

1 Comment

Filed under Programming

Algorithm to sharpen grainy photos

This sounds too good to be true – using a huge database of photos to teach an algorithm how to make a photo look more natural.

Unlike other photo enhancement tools, which work on an image-by-image basis, Geisler’s approach—called “image processing with natural scene statistics”—is based on the analysis of thousands of images. Geisler and his team measured the statistical properties of those images and created an algorithm that determines what is or is not “noise” in any given photograph.

Leave a comment

Filed under Technology

F# Software Foundation

The F# community has founded a new organisation to promote the use of F# – FSSF

The mission of the F# Software Foundation is to promote, protect, and advance the F# programming language, and to support and facilitate the growth of a diverse and international community of F# programmers.

1 Comment

Filed under Programming

Book Review: The Business, Iain Banks

20130418-194820.jpgThis is the first Iain Banks novel I’ve read for years, mainly because the recent ones struck me as macabre, if not gruesome. This one doesn’t fall into that category though and was a fun read – I’d forgotten just how funny Iain Banks can be. The book includes his typical gritty scenes from Scotland as well as colourful scenes (and stereotypes) from America. Having read books by this author before, I wasn’t expecting the plot to be fully resolved at the end, and it wasn’t (I would have rated the book more highly if there had been more content about the intriguing double-cross that the main character discovered).

20130418-194521.jpg

1 Comment

Filed under Book Review