> I just rate their performance. And everybody is paid the same.
For some visa classes, the law says you should hire an American citizen if they can do the job - not if they rank first at whiteboards or fizz-buzz.
> If tomorrow you were to tell (let say) Google they now need to hire only US citizens, would they lower their hiring bar
Does it really matter? To a point, obviously, but a lot of people are good enough for the role without being the world's best. The bar for getting into Google has dropped since its early days, and Google keeps breaking profit records quarter after quarter.
This entire "hire the best or nothing" mindset has led to a dysfunctional hiring process that's a pain to both employers and employees, and is prima facie unachievable.
> not if they rank first at whiteboards or fizz-buzz.
As an interviewer, I don't rank candidates. I have my set of questions, some candidates solve them, others don't. You can argue that it's the bar to do your job properly. Should politicians tell big tech companies what's the bar for being a successful SWE?
> When it comes to national interest, the argument for "meritocracy" falls apart quickly.
A lot of US tech exists because of skilled foreign workers. I'm not sure what would be the tech industry without them.
> As an interviewer, I don't rank candidates
Someone in your org does - an individual or committee: that's the entire purpose of the hiring pipeline. I've interviewed candidates at multiple companies small and (extremely) big, and interviews always have to give recommendations for ranking purposes (out of 10/100, or (strong-/)yes / maybe / (strong-/)no)
I am not attacking you personally, but the fact remains: in some circumstances hiring "the best" - when they happen to be a non-citizen - can be in contravention with the law depending on the visa class and whether you failed to find an American capable of doing the job.
Don't just take my word for it, big tech companies have lost or settled multiple AG suits because they tried to hide job postings from Americans, e.g. by posting SWE/PM jobs in some podunk, print-only Farmers-Weekly-type magazines.
> A lot of US tech exists because of skilled foreign workers.
I fully agree. Unfortunately being skilled doesn't grant them the right to vote, and as young people keep finding out, those who write (and sign) laws care a lot about what actual voters think and feel. You have to get into office first before you can do the hard labor-policy stuff.