Lastly, something geeky - Journal of Omnifarious
Jun. 2nd, 2003
04:35 pm - Lastly, something geeky
I wish LJ had an 'inspired' mood. It's a mood that I'm in frequently enough that it's absence bothers me. You could have a little penguin with a floating lightbulb as the icon.
Well, I've been slowly making my way through Modern C++ Design, and I encountered an interesting idea I'd never seen before. I was reading chapter 3 on typelists, where all of my experience with lisp was serving me well in understanding just how all the compile-time template expanion stuff was working.
Then I ran across an idea for building data structures out of typelists. I was floored. I realized I could use the idea to build automatic code for translating a data structure to a standard format, send it somewhere, and read it back in,. Lots of code in networking applications is concerned with transforming the in-memory representation of something to a format that you can send to something else. Here was a method I could use to generate all that code for me!
*boing* Now I'm all excited, and inspired. I want to try it out. :-)</lc-cut>