The U.S. Navy has named a ship after pioneer Grace Hopper, an admiral who was integral in inventing the first compiler.