Monthly Archives: September 2014

The best explanation of cache coherency I’ve seen

A Primer on Memory Consistency and Memory Coherence by Daniel Sorin, Mark Hill and David Wood This is, by far, the best explanation on cache coherency and memory consistency that I have read. There are lots of book that give … Continue reading

Posted in Computers and Internet | Leave a comment

csc generates code as well you know

I wondered the other day how the C# compiler, csc.exe, decides which version of the runtime to target. Some C# language features are effectively syntactic sugar that is logically translated into  other C# which is compiled. But when you target a certain version … Continue reading

Posted in Computers and Internet | Leave a comment

Making your C# more effective

Effective C#: 50 Specific Ways To Improve Your C# by Bill Wagner This is one of those books that lists 50 different issues and pieces of advice for using the programming language – there are variants for C# and Java … Continue reading

Posted in Books | Leave a comment

A good read on concurrency in general (and Java in particular)

Java Concurrency in Practice by Brian Goetz et al I’d been hearing people mention this book for a long time, and took quite a while to actually get hold of a copy to read. It’s a very good book. Its … Continue reading

Posted in Books | Leave a comment

What does better mean for overloads?

This example came up at work.         class A : I1 { }        interface I1 { }        interface I2 : I1 { }        static void Method(I1 x) { }        static void Method(I2 x) { }         static void Main(string[] args)        … Continue reading

Posted in Computers and Internet | Leave a comment

Sometimes your worker role needs to run server GC

We were debugging a dump of a Windows Azure worker process at work when it suddenly struck me that the process was using workstation GC and not server GC – I noticed this when looking at the unmanaged stack and … Continue reading

Posted in Computers and Internet | Leave a comment