B
blmblm
[ snip ]
That manages to be rather snide, in my view.
It's a fair cop.
It would have been an improvement. But there are plenty of words such
as "correct" which have zero personal connotation.
But that wouldn't express my intended meaning.
[ snip ]
Whoa. I'm not sure. "Science" is about possibility as well as fact.
Well, my thinking is that it's not possible to write correct code --
indeed, the notion of "correct code" is meaningless -- if you don't
know what its output should be for any arbitrary input. Trying to
settle the matter by experiment .... I've never been entirely
comfortable with the idea of computer science as science in the
first place -- I mean, the thing being observed is not external
to the process as it is with the "real" sciences, but somehow
a creation of the same process used to do the observing. (I'm not
explaining that very well but perhaps the idea comes across.)
I guess I *can* imagine situations in which one would want to
try out different possibilities, particularly with regard to
user interface. Or, now that I think about it, I suppose if one
is simulating some sort of physical process one might want to
try different algorithms/approaches and find out which one gives
results that fit best with the thing being simulated. But to me
that seems vaguely unsound -- "we don't really know why this works,
but it seems to". said:However, I do think that for the same reason your notion of "concat"
is cool since it is independent of direction, I think that a "flat" or
one-time application of "replace" is one of those phony notions that
only seem useful. The basic notion is not replace once, it is replace
until no change, as in macro replacement. I think we can prove that
there's no instance of a replace that always changes the string when
applied.
Let us call an implementation of replace(master, target, replacement)
"kewl" when and only when it is "independent of left to right or right
to left order". I claim that the only form of replace that is "kewl"
is nondeterministic. To simulate it you'd have to apply the
replacement rule randomly. It would sometimes return bonona, and other
times it would return banono.
You've lost me here. said:(Chorus of you say tomayto I say tomahto).
This is an interesting NEGATIVE point. It means that there are
probably bugs out there.
It's a CORRECT result without being, of course, a reasonable
SPECIFICATION for real code. But that don't mean it's not useful.
Turing's Halting Problem is True, and created software, but it's not a
spec.
How can a problem be True?
[ snip ]
For example, Peter didn't ask himself
what would be the case if %s was in the substitution string and would
probably consider the question so quirky as to make it safe to gravely
infer that the asker of the question is a nutbar, and to Call
Security.
No, he didn't ask that question *BECAUSE HE CONTROLLED THE INPUT*
and knew that it would not contain strings for which his approach
would not work.
[ snip ]