One category of comments are sexual in nature and any respectful person would take a strong stance against these. Everybody understands they are just a few bad people.
The other category of comments come from not-knowing a person in advance. In such case, people generalize and assume things. Calling such conversations sexist is basically taking political-correctness to the extreme. It will make conversations with women-in-tech difficult.
What is lacking is, women-in-tech, like the OP here, not acknowledging the facts before proposing their solutions. Tech industry is male-dominated because more men than women built the industry. Why it was the way is beyond us. We cannot wrong current generation for how the world was before they were born. This is the nature of the world/industry and nobody is at fault.
Instead of calling tech industry sexist and turning everything political-correctness debate, women-in-tech need to give it enough time and teach tech to more women so that things will become gender balanced.