Is it better to remain blissfully unaware…

I was once asked “why bother learning these other languages, if you can’t use them”. It hadn’t occurred to this person that I code off hours. I’ve also been asked “what if you find these other languages actually are better than C++? Won’t you find it depressing having to code in a normal language then?” …

Best way to learn a Programming Language

(Update, added Casting SPELs) For better or worse, it’s accepted in our industry to be fluent in only a single programming language or technology. It’s lame, but there are plenty of excuses for this. “Turing equivalence” right? Finding quality tools is hard. And worse yet, to learn a new language you have to spend days …

Comma Abuse

Found this old C++ source file in my scratch directory, apparently from last September. I don’t even remember writing this, but it’s written using my idioms. If I did write it, rest assured it was primarily for amusement purposes (abusement purposes?) only. #include <iostream> using namespace std; int fibonacci(int x) { int a=0, b=1, temp; while(x?(–x,temp=a,a=b,b=temp+b):0); return …

Cache effects

Quick call out to an illustrative blog entry on various cache effects. http://igoro.com/archive/gallery-of-processor-cache-effects/ When someone bugs me about “X is too slow, because it has to make a virtual call”, and I get annoyed, it’s because a hot virtual call is an overhead of some dozen cycles or so.  Missing the cache?  In the thousands. …

My programming languages story

It’s bad style, but I must start with an aside:  on reddit/scheme, there was a link to a blog series on developing a Scheme interpreter over January 2010.  It might not implement any particular Scheme standard or particularly many libraries, but it’s got all the functional elements.  Bootstrapping a programming language is fun and easy. …