>Assuming this was even possible and assuming there will be jobs for all of these new programmers/etc, is this retraining cheaper than UBI or other plans?
That's assuming that programming won't be one of the first categories of jobs to be automated away by AI. Think of the cost savings! But thankfully we don't have to worry about what all those poor programmers are going to do since it's progress for humanity.