Below is a bare bones TCP/HTTP service for hosting a single file on a specific port. Wrap it in a loop to be a running service, or add a select call for availability. The idea was to just have a simple piece of portable code that can output an HTTP response. Although not as portable [...]

Simple enough task that I’m either to dense to find in the posix std or it just isn’t there. Anyways, to document the few lines to accomplish this, I’m posting it here.

I found this article this morning on “writing a C library”. It is badly written and lacks a lot of the meat I was looking for. But nonetheless, it may prove valuable to some of you. Please note the comments I’ve provided to the author (in the comment section.) Article: http://lwn.net/Articles/449452/ My Comments: http://lwn.net/Articles/449501/ Thanks, [...]

What An octree data structure written in C. Ability to mark the location of items in infinite three dimensional space but with absolute precision. Integer only coordinate system, no artifacts. I’ve made no considerations to the balancing of the tree, making things more simple. Every node in the tree represents a point in space, saving [...]

This is a neat little trick I’d like to show. It allows a Java developer to have a class contain a static variable that is only affected within the dynamically loaded class. In other words, you can have multiple instances of a static variable. The key to remember is that the class being loaded must [...]

I’m sure that this idea has been argued over since the beginning of coding. But once again I lay in bed aggravated by the short sightedness of my constituents. I am talking about the idea that there is no advantage generating natural language documentation over writing code to express a potential solution to a identified [...]

A lot of developers that I talk to seem to despise the initial reading of new source code. I still am learning the art of reading other’s code, but I do have a few tips to document for those who are interested. Each should be in order from most important to least important. I’ve tried [...]

After reading a interesting article on LWN the other day, a simple thought popped into my head… “What does it take to write a libc?” Compatibility aside, it is actually quite simple. There are just a few ingredients to understand to put together the full recipe. The Entry Point Every program in every operating system [...]

Had this idea the other day… How do you define any set of data and create code to process it?

Theoretical Solution
Design a robust library to handle all situations from bits to primitives for multiple architectures and platforms. This library should include:

  • Logical functions for correct bit operations.
  • A complete byte data structure definition and transformations
  • A complete primitive data structure definition and transformations
  • An data type API for handling structures or data types beyond a primitive

Previously I wrote up an article about how it should be rather simple to have a reference bit of network code setup that was efficient and simple. In my some of my spare time since then, I’ve drastically changed my view on the issue and have a completely new approach to the “simple threaded network [...]