-
Recent Posts
Archives
- June 2016 (1)
- December 2014 (1)
- June 2014 (1)
- March 2013 (1)
- February 2013 (1)
- November 2012 (1)
- October 2012 (1)
- September 2012 (2)
- August 2012 (3)
- July 2012 (7)
- June 2012 (2)
- May 2012 (5)
- April 2012 (4)
- March 2012 (2)
- February 2012 (5)
- January 2012 (5)
- December 2011 (5)
- November 2011 (2)
- October 2011 (6)
- September 2011 (9)
- August 2011 (3)
- July 2011 (2)
- June 2011 (2)
- May 2011 (11)
- April 2011 (9)
- March 2011 (7)
- February 2011 (4)
- January 2011 (1)
Categories (non-disjoint!)
- Games (11)
- Hardware (13)
- Programming (92)
- Higher-level C (5)
- Project 6014 (5)
- Simulation (6)
- Rants (13)
- Reflections (9)
- Reviews (1)
- Science (21)
- Math (8)
- Uncategorized (1)
Tag Archives: c
IRC bot as a fun project
Something I started working on last year: yet another IRC bot. Since IRC is a simple protocol for sending plain text messages to channels or users, it provides opportunities for some good programming projects, such as a bot. An IRC … Continue reading
Some practical uses of goto
A few days ago there was another submission on Reddit on the evils of goto. The flow control primitive “goto” is “considered harmful” (the phrase was coined by the editor of the journal in which Dijkstra’s famous letter was published).
Compiler
A compiler has always seemed to me to be one of the supreme examples of a serious computer program. It operates on other programs, translating them from one language to another. It must simultaneously work with high-level concepts, and manipulate … Continue reading
Namespaces in C
This post describes why namespaces are useful in programming. It also discusses some of the obvious ways of simulating them in C, including a technique for “reifying” them, using structs.
Massively parallel fractals
I’ve implemented a mode in the fractal program that lets it run on a GPU, using OpenCL (fixes issue 19!). It’s not yet very fast, but IMHO is a good start. Writing my first GPU program was actually quite a … Continue reading
Don’t use signed ints if you don’t need them
Progress on fractals, and a minor (but arguably obvious) optimisation I stumbled upon today.
Low-level priority queue optimisations
Optimising the Fractal’s trace mode by changing the priority queue and enabling SIMD.
QuantCup challenge 1 conclusion
The QuantCup challenge I previously posted about has finished.
Method polymorphism in C
An overdue post on polymorphism, which in C amounts to the ability to call a method on an object without knowing what the implementation is.
Writing a file system
Really just an excuse to play with B-trees.