by pierrebai · 4y ago · 0 comments
[1]: https://developer.arm.com/documentation/ddi0601/2020-12/AArc...
[2]: https://www.intel.com/content/www/us/en/developer/articles/t...
But yes, that may mean the language can’t be implemented well on lots of modern hardware.
A lot probably can be done by avoiding some instructions, flushing caches very often, clearing branch prediction history (if possible), etc.
That would not make the language win performance shootouts, though.
There also is the problem that not all cores may be equal and that quite a few modern CPUs drop speed ‘at will’, depending on system load, core temperature, etc.
Would you have any links to more reading on this and when it happens? It's the first time I've heard it.
Regardless, you probably don't want to do your fast-path cryptography on the slowest coprocessors imaginable.
If you bubble sort a list of bytes, say your algorithm runs in 10000+n^2 clock cycles. You have at most an exabyte of storage, so your code will run in at most 10^37 clock cycles! :p
As storage technology improves, of course the coefficient will increase, but at that point is should be considered a different algorithm. This one has undefined behaviour when you have more than an exabyte of storage.
In essence, this is about a programming language that can ensure that execution time always equals the worst case; if there's branching, taking both branches and ignoring one of the results; if there's iteration, doing a constant maximum count of iterations no matter what the input data is, etc.