If I understand what you're asking for correctly, function cloning.
If you have f(x, y) and the compiler realizes the function optimizes nicely when y == 2 it can create a clone of f with a fixed argument y == 2, optimize that, and rewrite the appropriate call sites to call the clone.
Huh? In the US the married filing jointly tax brackets are exactly double the single tax brackets for every rate except the top 37% rate. A single person making 100k definitely pays a lot more in tax than than a married couple making 100k together. It's generally advantageous to be married filing jointly unless you're at the absolute top 37% rate, at the very bottom (where means tested benefits phase out), or both spouses make roughly equal incomes (in which case MFJ vs two single filers works out around the same).
In your $100K scenario, that single person pays about $6K more in taxes, but has $36K more in take home pay per person, so that additional tax bill seems reasonable in light of their ability to pay it and pay for their cost of living.
From skimming the source code it looks like the merge operation here adds the values for duplicated keys rather than replacing the first value with the second value so using HashMaps's Extend impl won't work.
It wasn't about the labour part and whether that is exportable in the off-shoring sense.
It's about the product being exportable (in the sense of being able to sell it for money outside of your country) vs. just having people within your own economy doing "left pocket <-> right pocket".
And even with that, you can sell a waiter's service to other countries. You just have to first make them come - it's called tourism and comes with a whole lot of other jobs / supply chain(s) as well. Some of which can themselves be off-shored!
I used to agree with this (at least the headline), but then I lived through the Biden administration.
Fundamentally Americans want to consume more services and especially goods than the people living in America produce. The only ways to square that circle are
1. To get more people. But by 2024 prime age labor force participation was at essentially record numbers[0] so there aren't more people available domestically, and we saw in the election that swing voters are not fans of mass unskilled immigration.
2. To produce more with the same people (i.e. increase productivity). But in most cases this is up to technological advancement and not in the hands of policymakers. There are probably some sectors that could benefit from deregulation (e.g. construction) but those regulations have their own constituencies that don't want to see them go.
3. To force people to consume less (i.e. inflation). Voters hate this.
4. To import more from abroad.
In the end "offshoring" is the only politically viable option.
>3. To force people to consume less (i.e. inflation). Voters hate this.
Inflation from immigration/offshoring restrictions is not evenly distributed. It's essentially a purchasing power transfer from everyone else to low-skilled workers (who no longer face competition from cheaper overseas labor, so have more bargaining power and hence can demand higher wages from society).
https://hubicka.blogspot.com/2014/02/devirtualization-in-c-p...
reply