Critcl lets you easily embed C code in Tcl