The origins of Automatically Programmed Tools (APT the precursor of g-code) is a fascinating read [1] about the early intentions of -- its a poem forseeing LLM & CAD:
(From THE NEW YORKER) Cambridge, Mass., Feb. Z5-The Air Force announced today that it has a machine that can receive instructions in English, figure out how to make whatever is wanted, and teach other machines how to make it. An Air Force general said it will enable the United States to "build a war machine that nobody would want to tackle. " Today it made an ashtray [2]. -- San Francisco Chronicle, March 28, 1959
That ashtray was teh 1st CNC'd object. Noble [3] speaks about the political angle that was an underpinning motivation
[1] http://portal.acm.org/citation.cfm?doid=960118.808374
[2] https://mitmuseum.mit.edu/collections/object/2007.037.001
[3] forces of production - a social history of industrial automation (Noble, mit press)