Subscribe

Archive for March, 2007

The Unix Haters Handbook

The Unix Haters Handbook was making the rounds on reddit recently. I’ve had it open in a tab and have been occasionaly reading a chapter. I find it very humorous and it’s good to reality check things you take as fact day-to-day. I can agree with a lot of the feelings expressed in the handbook, […]

109450

My new astroids high score. It wraps over at 99,999 so I didn’t get to record anything in the top ten but I had witnesses ;P

XNA doesn’t yet have good support for text render (still?) so since I just got a request for my font rendering code I put some short comments in the header. I think there are other examples of this but this one is completely free and small. Let me know if you have any issues.

XNA BM […]

RubyCube progress

I got some more time to hack on RubyCube so from my original almost ready post I got the following done:

Finished the stress test Finished first pass of documentation (rubydoc) More test cases for basic functionality Perspective transform is working

Working on the […]

It’s a huge subject and while I haven’t been full-time looking at this stuff I have done some more research and dug up some more references.

LKmalloc, the basis allocator for the allocator used at MS Internally at MS the LKmalloc library is referred to as ROCKALL, not part of the std C library distributed with visual […]

More local heap references

Collecting yet more references for implementing a custom heap for C++. One of the issues you run into when using a custom heap is the notion of placement new: void *operator new (size_t size, Heap &heap) { return heap.Allocate(size); }

Object allocations now appear so:

Heap local; obj *p = new (local) obj();

And when deleting the memory you must […]

I’ve recently had the task of replacing the STL allocator and thought I would record some of the more useful resources while doing this:

Allocators (STL) @ Codeguru. A good article about writing a pool allocator replacement.

This article provides a good introduction to the subject with a sample replacement allocator. Things get a little more interesting […]

Inspired by the animated patterns in a stress test I put together an implemetation of the original cellular automaton program ‘life’ using ruby and the extension I’ve been hacking on lately.

It’s a simple idea but it can produce some very nice patterns.

Here’s life out of control, if you muck with the death condition:

Here’s a stable […]

Downloading 2+ gig through a VPN link is not very fun so to pass the time I’m doing some stress related tests for RubyCube:

For some reason the garbage collector still kicks in and starts reclaiming the shapes even if I keep references to them in the base script. Stress related crashes to look into now.

Since I’ve not had a lot of time for home-hack projects lately I’ve been focusing on getting RubyCube ready for release. It’s a small, well contained project, it’s easy to make good progress with only 30 minutes of invested time.

RubyCube is a ruby extension that gives a high level ruby API on top of GLUT […]

Next »