A man poses with a machine gun aboard the U.S.S. Indiana, in 1895. Library of Congress Hiram Maxim didn’t set out to invent a killing machine. But a lifetime of tinkering and building eventually led Maxim, who called himself a “chronic inventor,” to design and build the world’s first portable and fully automatic gun.