On our way towards something of a Star Trek future. The earth will be in the stewardship of a small population of highly-educated technicians, laboring periodically only to ensure the machines stay running. All their basic needs met, they enjoy mostly a life of leisure and scholarly pursuit.
The other 90% of the population; illiterate, unskilled peasants mired in poverty and fueled by religious fundamentalism, there will be no use for. They will have nothing to contribute except for mouths that need to be fed. They will be seen as an obstacle to progress and dealt with as such.
We will eventually get to this future but it's not going to be pretty.
The Elite may get a Star Trek future. The unwashed masses will get Chicago’s gang world.
Given mankind's history, I see our future devolving to more of a Dredd or Elysium result.