> And lots of people are investing lots of time and effort into trying to fix that problem
Are they? I worked in the mental health space for over 10 years and almost 80% of therapists are women -- and a vast majority of those are white women. There hasn't been any significant movement to "fix" that despite a very compelling argument that finding a therapist who is a good match to a patient is fundamental to the success of treatment -- there's actually a scientific case to be made that more diversity in mental health care is beneficial to outcomes. However, there's little evidence that "more women" designing silicon chips has any measurable benefit (or harm.) Having more women (and old people, and people from different cultural backgrounds) involved in UX design is definitely valuable -- but more women writing back-end server code or designing airplane wings has little effect either good or bad.
Women vastly outnumber men in the social sciences and in education however, "We need more men kindergarten teachers" has never been a serious initiative. Getting more women into commercial fishing, oil field work, plumbing, or over-the-road trucking has never been seriously pursued. But "computer science" -- it's a damned obsession with people of certain politics.
It's a fact that men and women are different, both biologically and socially. Women can certainly be exceptional computer workers and men could be great therapists or kindergarten teachers -- but that doesn't mean they necessarily want those things nor are they necessarily pre-disposed with the characteristics necessary for success in those fields. It's a fact, for example, that there are gender differences in spatial reasoning. That doesn't mean all men are better than all women at spatial reasoning, but it does mean that men have a statistically higher success with spatial reasoning than do women as a group. Women have their own advantages over men as well. There is nothing wrong with differences and it has gotten stupid how people insist on claiming that everyone is equal. They're not. Everyone has strengths and weaknesses.
This insistence that we have to "fix" the "problem" is just woke nonsense. We should absolutely, 100% end discrimination in the professions -- no question or debate there. But we should stop trying to force equality as an outcome. Let people gravitate towards the things they're good at or care about instead of trying to social engineer everything to please some imaginary ideal. If a girl wants to hack on compilers -- we should get out of her way (i.e. removing bias and discrimination) and let her do it. But we shouldn't be focused on going into third-grade classrooms and trying to convince girls that they should care about hacking on compilers. We should be focused on exposing every student to vast possibilities, but we don't need to force it down people's throats as a social imperative.