Also, this is essentially the underlying premise behind no-tolerance policies and three-strike drug laws with mandatory sentences, which view interpreting the law based on context as an impediment to enforcement, the solution for which is removing the ability of judges to do so. You can't have a just legal framework in which the only role of humans is to be punished or to exact punishment.
Basically, what you have to do is codify human discretion. If a judge wants to say "no, this really isn't a problem," he should be able to directly add that exception to the written law, and then enforce it as written. It's basically a kind of open source law. The question becomes of how to distribute authority.
So basically, more or less what happens now, only with more bureaucracy and complexity? I'm sorry, but I don't see the benefit in that case.
But if that line of reasoning were good enough, then the US made a mistake by rejecting the rule of a monarch. Democracy is rife with managerial issues.
But when your 'product' is violence on behalf of the state (in the anarcho-libertarian sense of 'violence' being any non-voluntary interaction with a person or power structure, sometimes involving actual violence) then the ability of humans to mediate, alter and affect that system becomes a feature as well as a bug. This necessarily limits the speed of the law and the degree to which it can be optimized, and remain humane, because removing humans from that system tends to merely concentrate power in the hands of the few humans necessary for it to function.
And then the questions become if humans can write the laws, and humans can update the laws, and humans are enforcing the laws, and have discretion in doing so, then what really is being automated, or optimized, other than recordkeeping? And for that matter, what does law as a programming language actually improve?
Other than record keeping? Why does it need to go beyond that? You don't want transparency in your laws? You don't want the ability to format and translate them as needed? You don't want the ability to do queries and comparisons? You don't want machines to be able to update their own behavior when the law changes?
I'm not talking about automating anything other than record keeping.
Such exceptions are sometimes codified in law, but the idea is that our legal system is based on trust rather than technical correctness. Not only do we defer judgement to a jury of our peers rather than rigid and uncompromising interpretation of the law, but we trust that all levels of government (judicial, executive, legislative) will act in our best interest rather than the letter of the law.
What you're proposing would require broad-sweeping revisions to all manner of law.
I guess the question is, you can beat the drum about this, but to what tune? What's the answer? How could a self-driving car decide when it is okay to break traffic rules without a certain level of human discretion? How could the laws be re-written such that the effect is the same?
In NYC, there is an unspoken more that people who wish to stand on subway escalators should stay on the right so that people who wish to walk up escalators can use the left side. This is not a law; it is not derived from authority; it is not enforced with coercion. The worst you'll get, probably, is a snide 'excuse me'.
Authority is a degenerate form of respect. Law is a degenerate form of consensus. Arbitration is a degenerate form of mediation. Holding ideas accountable to human beings is superior to holding human beings accountable to ideas. At the end of the day, we are only accountable to each other, not the law.
This is a really deep question, which is part of why I dropped the entire discussion on the topic in my initial post so I wouldn't get too sidetracked.
One problem we have is that if we can encode laws into computer programs, which is to say, basically math, we also become subject to the problems that creates. For instance, raise your hand if you enjoy min-maxing in an RPG or MMO or something. Now, keep your hands raised and add a big evil grin for me if you'd love the opportunity to minmax real laws with such impunity.
In theory, even human enforcement is a computational system which could in theory be attacked the same way, but in its own weird way, its own enormous complexity and frankly at times random enforcement prevents the really terrible gaming of the law by preventing an attacking entity from fully accurately simulating the system for the purposes of attacking it.
(I said something that may trigger some knee-jerk reactions in some people about "gaming" the system. But however bad you think it is in the real world... and I would agree that it is bad in many places... it has nothing on the gaming you can do on something specified with programmatic precision and with no human in the loop to prevent truly stupid states from emerging. This isn't making your way to the top over the years by bribery and flattery, this is waking up one day and discovering that one person has literally all the money now.)
And cars don't drive themselves. So I guess that solves our problem.
You can read my post below (https://news.ycombinator.com/item?id=10154344) to see how I'd start addressing your other concerns. Basically, if an enforcement officer recognizes some new variables, they can write them down in the law and then enforce it.
What you do is try it, and when it fails, you manage the failure and modify your system.
An example of such incidence is when people trust the police to the point that they prejudge conflicts involving the police on the basis that they represent the law, and the law is good, therefore the police are good. This is still happening.
However I fear the subtlety will be lost on the majority, as we continue to construct our own cages around ourselves.
When considering legislation and regulation, we willingly juggle a lot of cognitive dissonance. We seem to divide plan into (at least) its implementation and its intended effect, and consider each of those separately.
So I'm endlessly having conversations with friends of a different political stripe (which is easy, since everyone is of a different political stripe than me) that go something like: (note I'm not trying to trigger the implied political debate, this is for illustration only)
Friend: Financial system bailouts and systemic risks of "too big to fail" are terrible, and so we can't touch the Dodd-Frank legislation.
Me: I know that supporters of Dodd-Frank promised that it would put an end to TBTF. But the bill doesn't actually contain anything that does that. And in fact, since the industry has further consolidated since the bill was passed, it shows that whatever the intent, it isn't able to do its job successfully. If it can't do what you want it to do, why should we keep it?
Friend: But the banks are out of control, and we need to do something to prevent another collapse. We can't remove any regulation on them!
Maybe this is just the normal voter ignorance effect, but it seems that we assume people are making decisions based on actual understanding, but they're really just using oversimplified proxies instead, even when the inaccuracy of their proxy is pointed out to them. So a law that purports to fix X (whether X is healthcare or immigration or whatever) is a necessity, regardless of what the actual evidence, whether empirical or from reading the bill, tells us.
TL;DR: passing a law is intended to make us feel like we're doing the right thing, not necessarily to actually do it.
This is a drum that, like privacy and encryption, we techies need to start banging hard before it's too late. The fact that laws are fundamentally limited by our abilities to enforce them, and that laws are fundamentally written to be enforced by humans with some discretion, is such a deep assumption for us that we don't see it. We irrationally tend to conceive of a law that says "It is a felony to wear your hair in a ponytail on a Tuesday" as an absolute, even though what it really means is "If a police officer spots you with your hair in a ponytail on a Tuesday, and by their discretion arrests you, and at the discretion of a prosecutor charges you, who at the discretion of a judge and jury convicts you, you will be guilty of a felony." All laws actually say that, but that's not how we humans speak or conceptualize them. Also note the importance of a human even spotting the violation in the first place.
So, naturally, when we get technology that can rigidly enforce law, we don't program them with the "real" law, we program them with the text of the law. But the truth is, the text was never passed as a law. When the law was deliberated, everybody was really deliberating the version that involves all the human discretion, and prior to the introduction of computers, the law that was really enforced was the one with all the human discretion. A rigidly-enforced-by-computer law is a fundamentally different law, in the most concrete way possible; actions that you would never have been penalized by the human law result in immediate penalty in the computer world. There's no more concrete way to prove the point that it is a fundamentally different law.
We CAN NOT simply translate the text of the law into computer programs. If we are going to do computer enforcement of laws (and I'm going to drop the question of whether that's a good idea, feel free to debate in replies), we must write new law. By that, I do not merely mean that society has an obligation to write new laws, but that the very act of programming a law is writing a new law into existence, one never deliberated by the processes of democracy. We literally can not simply translate laws into programs. It is impossible. The result is not the same law.