Regarding he M4, it's kinda silly - they took a rifle designed with a 20" rifle with a specific type of ammunition and started messing with it. Made it shorter and didn't change the ammo, suddenly they weren't performing as well, so they had to alter the ammo. Then shortened it again, had to alter the ammo again. So now they've lost 25% of the range (800m for M16, 600m for M4) and lost almost 10% of the muzzle velocity (~3,200fps for M16, 2,900fops for the M4). Both rifles started life being considered unreliable due to poor field-service training, but have steadily improved.
And now they've decided to buy a new rifle, which will perform better than the M4, but with the same range and lower muzzle velocity than the M16. At a huge cost, no less.
Then of course, they'll screw up the design - again - and continue chasing their tails.
SMH