"I ask, sir, what is the militia? It is the whole people. To disarm the people is the best and most effectual way to enslave them." - George Mason, co-author of the Second Amendment.
In District of Columbia v. Heller, 554 U.S. 570 (2008) the Supreme Court ruled that the Second Amendment protects an individual's right to possess firearms unconnected to service in a militia.
"A free people ought not only to be armed and disciplined, but they should have sufficient arms and ammunition to maintain a status of independence from any who might attempt to abuse them, which would include their own government." - George Washington, first president of the United States.
The Second Amendment does not give us the right to keep and bear arms. This is an inalienable right that exists independent of the Constitution. The Second Amendment merely prohibits the government from infringing this right.
The Second Amendment was not written with particular technology in mind. It was written to ensure that we the people are as equally armed as any government - foreign or domestic.
If you do not like the intent of our Constitution as written, Article V of the Constitution delineates two processes by which to amend it. Legislation that infringes inalienable rights is not one of these processes.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, American patriot.