4 ms·
Assuming that spec can genuinely embody everything you care about, about the code. Is this currently possible for performance metrics, anywhere?
by dllthomas 12y ago
Assuming that spec can genuinely embody everything you care about, about the code. Is this currently possible for performance metrics, anywhere?
- lmm 12y agoYou can express "this code performs at most n primitive steps from this list". Theoretically it should be possible to express any performance requirement in that form, but I doubt it's practical to do for e.g. numeric computation. (It's usable for "no page render require more than 4 db roundtrips" or similar though).
- tel 12y agoI'd bet you could ensure that some kind of tolerance and stability checks were performed and then carry the results around. Ultimately whenever computation relies on dynamic input it's necessary to have a hard-coded "tolerance failure" check. Theoretically you could embed enough analysis in there to have theories about the actual code you're running, too, but I don't think as many analysts care about theorem proving—they're more of an algebraicist's toy.
- tel 12y agoYeah, absolutely. I said "if" rather carefully, ha.
- dllthomas 12y agoThat you did. I certainly didn't mean it as a takedown! I just saw it a subtlety worth stressing, and about which I was eager to learn more if there was more to learn :)