Hacker News new | ask | show | jobs
by jcranmer 603 days ago
To a large degree, constant-time programming is hampered by the fact that even hardware is often unwilling to provide constant-time guarantees, let alone any guarantees that the compiler would care to preserve. (Although, to be honest, constant-time guarantees are the sort of things that most compiler writers prefer to explicitly not guarantee in any circumstances whatsoever).
2 comments

If it were starting to show up in languages though, then that would make it more likely for hardware to start introducing functionality like this.
8 bit cpus offer constant time. 16 bit was starting to get into the issues where you cannot off it.
Your comment makes me wonder about the idea of building a superscalar, out of order, speculative implementation of the 6502 or 8080 instruction sets. Might make a good educational project.