The only real solution to the gender gap involves fixing the talent pipeline and then waiting N years for the talent to start coming through. Everything else is just a stop gap that is bound to create distortions.
It would be different if there was lots of talent that just couldn't get jobs because of overt discrimination (e.g. as is the case with ageism), but the gender gap is not that easy of a problem.
Incidentally, working in a big corp, programming these days is more of a social activity than it once was for reasons completely unrelated to gender. The day of the lone wolf programmer is long past!
I wish this disastrous extrovert invasion were more clearly disclosed. It took me a long time to realize that my maddeningly arthritic big corp experience wasn't just an outlier.