As I've remarked before, the war on drugs and getting tough on crime is not working out too well for us, so it's time to change our plan.
I don't advocate off the shelf heroin or any of the cluster of ideas that suggest that. I do advocate focusing on the funnel that leads to addiction, homelessness, and death. Part of that is significantly amping up mental healthcare spending; part of that is having legally controlled drugs available in pharmacies for reasonable prices; part of that is supporting better schools (giving a window into a better world, and a way to climb through); part of that is supporting jobs programs. All of those relate in one way or another to the problem, some years and years earlier in the funnel.
No one is born choosing to be an addict in their later life; a series of choices and pressures put them there. The pressures from society can be changed, which shapes the set of choices visible.