It's well know that punched-cards were first used to program Jacquard looms for weaving, before being used to program early computers.