News for hackers. Stuff that matters.
Re:Programming Languages Going Above and Beyond by thr_ddv on Thursday June 29, 2023 @03:56PM (#36525853)
I'm not asking if it terminates, I'm asking when it does. After all it's not much use if the number overflows the universe.
Re:Programming Languages Going Above and Beyond by littlestymaar on Thursday June 29, 2023 @04:37PM (#36526364)
But that's not something these kinds of tools are supposed do, even with trivial functions… These tools have no idea about the run-time (and there's no way they coule, since it depends on the load you put on the hardware in parallel of running your program)
Re:Programming Languages Going Above and Beyond by redjamjar on Thursday June 29, 2023 @05:10PM (#36526748)
I agree. There are tools though which are specifically for determining worst-case execution time for e.g. embedded systems which can actually give accurate timing information (upto a point).
Re:Programming Languages Going Above and Beyond by redjamjar on Thursday June 29, 2023 @05:09PM (#36526730)
Yeah, so these tools will not tell you how long it will take to terminate --- only that it will eventually. In the vast majority of cases, that is what you want to know.
Re:Programming Languages Going Above and Beyond by nine_k on Thursday June 29, 2023 @05:25PM (#36526948)
For practical reasons, it's enough to prove that it takes longer than some upper bound, say, 10 ms. The rest is not important.