Re:Programming Languages Going Above and Beyond
by littlestymaar on Thursday June 29, 2023 @03:54PM
(#36525828)
That's not a very good exemple because with BB we know the code terminates, by definition. The canonical tong-in-cheek argument is to use the Collatz conjoncture instead (but even that isn't a good example in practice: https://news.ycombinator.com/item?id=21440306)
[ Parent
| on HN ]
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).