Wednesday, July 23, 2014

Nine Things Developers Want More Than Money

Rob Walling on Nine Things Developers Want More Than Money:

  • Being Set Up to Succeed 
  • Having Excellent Management 
  • Learning New Things 
  • Exercising Creativity and Solving the Right Kind of Problems 
  • Having a Voice 
  • Being Recognized for Hard Work 
  • Building Something that Matters 
  • Building Software without an Act of Congress 
  • Having Few Legacy Constraints 

Eight years later, this article holds true as ever.

Wednesday, June 11, 2014

Passing the Turing Test?

Oh come on! Read the transcripts of Eugene - the Turing test-beating 'human computer' - here.

Friday, February 14, 2014

UMDH is great for finding native memory leaks

When investigating native memleaks under Windows, Microsoft's UMDH (part of Microsoft Debugging Tools) is my tool of choice, combined with Application Verifier or gflags. Here is a short article explaining how to use it (it's actually pretty easy).

Tuesday, October 29, 2013

GParted Partition Manager

I run Ubuntu on a VirtualBox system, where I had reserved somewhat too little diskspace for getting our build system to work there (esp. when you have to build a specific gcc version up-front). While it's no problem to increase the size of the virtualized disk within VirtualBox, the partitioning within this disk, particularly of the root partition (the one that Ubuntu is actually running on), might turn out to be difficult to change on -the-fly. I then found and applied GParted to assign the additional disk space to the root partition, which - despite a "potential data loss risk" warning - worked like a charm.

Wednesday, October 23, 2013

Mutexes Vs. Semaphores

"A mutex is really a semaphore with value 1"
No, no and no again. Unfortunately this kind of talk leads to all sorts of confusion and misunderstanding
And fortunately Niall picked up that common misconception in his excellent series on Mutexes vs. Semaphores. Here is part 1, part 2 and part 3.

Tuesday, October 15, 2013

C Operator Precedence

Original 1982 net.lang.c posting by Dennis Ritchie. "Several hundred kilobytes of source code, and maybe 3 installations", I guess that explains it :-) 

From decvax!harpo!npoiv!alice!research!dmr Fri Oct 22 01:04:10 1982
Subject: Operator precedence
Newsgroups: net.lang.c

The priorities of && || vs. == etc. came about in the following way.

Early C had no separate operators for & and && or | and ||.  (Got that?)  Instead it used the notion (inherited from B and BCPL) of "truth-value context": where a Boolean value was expected, after "if" and "while" and so forth, the & and | operators were interpreted as && and || are now; in ordinary expressions, the bitwise interpretations were used.  It worked out pretty well, but was hard to explain. (There was the notion of "top-level operators" in a truth-value context.)

The precedence of & and | were as they are now.

Primarily at the urging of Alan Snyder, the && and || operators were added.  This successfully separated the concepts of bitwise operations and short-circuit Boolean evaluation.  However, I had cold feet about the precedence problems.  For example, there were lots of programs with things like

if (a==b & c==d) ...
In retrospect it would have been better to go ahead and change the precedence of & to higher than ==,  but it seemed safer just to split & and && without moving & past an existing operator.  (After all, we had several hundred kilobytes of source code, and maybe 3 installations....)

Dennis Ritchie

Monday, October 14, 2013

Stop The NoSQL Hype

It was about time someone puts a stop sign to that NoSQL hype. Thank you Google for F1.

Monday, October 07, 2013

Java Stack Map Tables

I really wonder whether Sun/Oracle ever considered how the introduction of Java Stack Map Tables within the Java 6 classfile specification (optional back then), resp. their enforcement by the Java 7 bytecode verifier is hurting the existing Java Agent / Profiler ecosystem. The whole problem is summed up pretty well in Java 7 Bytecode Verifier: Huge backward step for the JVM.

Wednesday, October 02, 2013

Windows File Search

As Microsoft just can't get Windows File Search right for 15+ years, it's simply necessary to switch back to one of those nifty tiny tools like Everything Search, that does the job just perfectly.

Friday, September 27, 2013

Very Sleepy

"Very Sleepy" is a nice little tool for profiling native code, and has helped me a already a great deal on several occasions. It samples all threads of a running application, an aggregates the result. Plus it's pretty smart in resolving external symbols, e.g. from the Microsoft symbol server. Great job!

Tuesday, June 25, 2013

Java Garbage Collection Tuning

Excellent introductory article on Java Garbage Collection Tuning by Sun/Oracle. I think every Java programmer should be aware of those basics. 

Different GC algorithms (serial / parallel / concorrent-mark-sweep) are discussed here, as well as how to use Java VM options for chosing among them.

And if you pass

-Xloggc:[file] -XX:+PrintGCDetails -XX:+PrintGCDateStamp

to your VM, you can feed the resulting GC logfile to a tool like GCViewer (for support for the latest VM versions, use GCViewer from GitHub), and create results like this:

Friday, May 10, 2013

Review Board

I have recently discovered Review Board, which is a great code review tool - free even for commercial use, powerful, yet easy to use. Back in 2008 I had already been in search for a review tool that would plug into Visual Studio and Team Foundation Server, but didn't find any good ones. Review board had already been around back then, I should have used it, even if there was no specific integration for TFS. I hear that Visual Studio 2012 now provides a code review feature, which is nice, but this comes a little bit late...