Mechanical Behaviors Of Alloys From First Principles