The problem Whenever I write client-server applications, I run into the same problem trying to separate the code. To send a message from the server to the client, the server has to serialize that...
A few years back (for a very generous few), we needed to parse a wide variety of XML strings. It was quite tedious to go from the XML to the native-language representations of the data (even from...
Background Many years back, I wrote some ambient music generation code. The basic structure of the code is this: Take one queen and twenty or so drones in a thirty-two dimensional space. Give the...
http://nklein.com/2009/08/casting-to-integers-considered-harmful/
This morning, I was catching up on the RSS feeds I follow. I noticed an interesting snippet of code in the Abstract Heresies journal for the Discrete-time Fourier Transform. Here is his snippet o...
I am working on some Lisp code. I am trying to mimic the basic structure of a large C++ project. I think the way the C++ project is structured is a good fit for the tasks involved. Most of the C+...
I have a pretty good grasp on macros in Lisp, C/C++, TeX, m4, and nroff. Lisp macros are, far and away, the most powerful in that set. In fact, Lisp macros get a bad rap by sharing a name with ma...
http://nklein.com/2009/06/how-i-know-i-dont-know-enough-about-lisp-macros/
In my previous post, I wrote some code in Perl because I wanted the code to be clear and obvious. Wait? What? Who uses Perl when they want clarity? Perl I admit: I was surprised myself. Seriously...
I've been coding in Objective-C for a month or so now. It is interesting (in a Sapir-Whorf sort of way), how the language changes the way that I code. Switching from Objective-C to Lisp made me ...
http://nklein.com/2009/02/sapir-whorf-wit-programming-languages/
Some time ago, I wrote an n-dimensional raytracer in C++. It does a fair number of things, none of them efficiently, most of the rigidly. There are a bunch of things that I wanted to do with it f...
http://nklein.com/2008/09/first-decent-images-from-my-new-raytracer/
The documentation The source code The feature set now includes: Phong shading, reflection, refraction Functional textures (including textures generated by raytracing other scenes) Cylinders (incl...