gotta love linux

i’ve decided that i want to statistically model the keys i type, so i can develop a keyboard which is optimal to my usage patterns. granted, i will have to sample for an extended period of time to avoid influences such as where i’m working or what the latest project is. i thought i was going to have to write a kernel module (i may have to for FreeBSD) but linux has this wonderful module called evdev which gives me trivial access to all input events. as i type this, a tiny daemon is recording the time of each keypress and release into a file which is undoubtedly going to grow too large, too quickly. right now i am just logging each event as it occurs – but that obviously won’t scale. the keystrokes file has grown to almost 50k with not much more than this entry being typed… ;P