Checking That Functions Are Constant Time with Valgrind (2010)
Posted4 months agoActive4 months ago
imperialviolet.orgTechstory
calmmixed
Debate
40/100
Constant Time FunctionsValgrindSide-Channel Attacks
Key topics
Constant Time Functions
Valgrind
Side-Channel Attacks
The post discusses using Valgrind to check if functions are constant time, with commenters raising concerns about the assumption of constant-time fundamental processor instructions and the age of the blog post.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
3d
Peak period
5
66-72h
Avg / period
3
Key moments
- 01Story posted
Sep 23, 2025 at 2:42 PM EDT
4 months ago
Step 01 - 02First comment
Sep 26, 2025 at 4:06 AM EDT
3d after posting
Step 02 - 03Peak activity
5 comments in 66-72h
Hottest window of the conversation
Step 03 - 04Latest activity
Sep 26, 2025 at 12:07 PM EDT
4 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45351118Type: storyLast synced: 11/20/2025, 5:54:29 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Is this really true? Does't the runtime of some arithmetic instructions (like IDIV) depend on the argument?
https://developer.arm.com/documentation/ddi0601/2025-06/AArc...
and the set of instructions you can safely use is listed.
I believe Intel has a similar thing.
It doesn't tell you "yes" or "no", but it does tell you "definitely not" or "maybe". This information is useful even if it's not the whole story.