4 ms·
How is 2 & 3 from above different from 4? An unknown input producing correct results is still a problem - the unknown input is the problem. Therefore, i posti
by chii 8y ago
How is 2 & 3 from above different from 4?
An unknown input producing correct results is still a problem - the unknown input is the problem.
Therefore, i postitulate that anytime an unknown input is possible, the software is defective.
- naniwaduni 8y agoWell, it's harder to tell something's wrong when the output looks right.
- kstenerud 8y agoSay you write some movement software. You expect that people will move forward, left, or right. You didn't expect people to try moving backward. People start moving backward, but the software happens to do the right thing due to how it was written. Is the software defective because of your missed expectation?
- chii 8y agoYes, i would still classify the software defective. It did not reject backwards explicitly. Just because by accident it works (i.e., the consumer of the output doesn't care) doesn't mean the defect has gone away. To be not defective, the software has to explicitly reject input that it was not designed to handle. Imagine if the software updated with some changes, and the unknown input now produces an incorrect output. Is the defect introduced with the changes? Or was the defect always there?
- jsymolon 8y ago> To be not defective, the software has to explicitly reject input that it was not designed to handle. In some cases that breaks forward capability. e.g. the case where there is an unknown XML tag. You could reject the tag or message. You'll end up rejecting all future change inputs. If the whitelist of acceptable items is large, it may be acceptable to have a black list however if the above holds, you don't know what you don't know.
- lowercased 8y agoThe middle ground may be explicitly flag/indicate/log that an unknown situation has been encountered, and 'handle' that by doing something useful (continuing to work without crashing, preventing known "unknown" data from being processed silently, etc). It may not help with forward compat entirely, but it would be explicitly known (and I'd think would be somewhat easier to modify/extend for known unknowns in the future).
- dotancohen 8y agoWhat would "reject input that it was not designed to handle" look like for an automated car?
- dsr_ 8y agoWhen you come around a curve near sunrise or sunset, you may suddenly encounter visual input that overwhelms your sensors. The sun is blinding you. It might overwhelm infrared sensors, too. If you have alternate sensors, you should trust them them more, and camera systems less. If you have a sunshade, you should deploy that. If it is raining, or partially cloudy, the situation may change rapidly. And perhaps you should slow down, but if you slow down too fast, other vehicles might not be able to avoid you.
- Retra 8y agoYou could also argue that your expectations are defective. It is possible to accidentally solve a problem in a correct manner.
- TheOtherHobbes 8y agoNot reliably. It's not professional to design systems that rely on luck. "Let's ignore this edge case and hope we get lucky" is not something you want to see in a software specification.
- perfmode 8y agoWhere do you fall on autonomous cars? It’s okay to be anti. I’m just curious
- beat 8y agoI've been there, painfully. On my last day on a job, some code I wrote went into production, and the databases started filling up rapidly, to the point where the whole system would halt in a few hours. Turned out the bug had been latent in the code for 5+ years, predating me. Its data consumption had never been observed before because it was swamped by other data consumption. Changing the architecture to remove that other data brought it to the foreground. (fwiw, the bug was caused by the difference between 0 and null as a C pointer!)
- austincheney 8y agoMy application is a code beautifier that receives code samples as input. I cannot know of every possible combination of code samples. This does not necessarily mean the application is defective. A defective state is unwanted output. Another way to think about this is that the more open a system is the more useful and risky it is. It is useful because it can do more while tolerating less terse requirements upon the user. It increases risk because there is more to test and less certainty the user will get what they want. Part of that risk is that its hard to guess at what users want as sometimes the users aren't even sure of what they want.
- pjc50 8y agoThe entire world of AI relies on dealing with "unknown" input?
- TheOtherHobbes 8y agoNo, it doesn't. It relies on explicit rules (old school) or statistical inference (new school). There's a difference between "breaking" unknown input - i.e. non-computable within the system as it stands - and "working" unknown input, which is within expected working parameters. The latter is business as usual for computing systems. The former should have a handler that tries to minimise the costs of making a mistake - either by ignoring the input, or failing safe, or with some other controlled response. It may not do this perfectly, but not attempting to do at all it is a serious design failure.
- gnode 8y agoI would say yes. There's a saying that when people figure out how to make a computer do something well, that it's no longer in the field of AI. I'd say there's some truth in this, in that for many problems we have solved well (e.g. playing chess), the intelligence is not that of the machine, but of the programmer. I think that in order for a machine to genuinely be intelligent, it must be capable of original thought, and thus unknown input. Known doesn't necessarily mean specifically considered, but that it could be captured by a known definition. As an example, we can easily define all valid chess moves and checkmates, but we can't define the set of images that look like faces.