Plain old C might be the way to go.

Take that with a grain of salt, as my programming abilities are rivaled by my ability to model Speedos.