Comparison of Signed Number Representations in Computers
Posted4 months agoActive4 months ago
en.wikipedia.orgTechstory
calmpositive
Debate
10/100
Computer ArchitectureBinary RepresentationDatabase Indexing
Key topics
Computer Architecture
Binary Representation
Database Indexing
The post discusses various signed number representations in computers, with the discussion highlighting a useful property of excess-(2N−1) offset binary representation and its application in MySQL indexing.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
5h
Peak period
1
5-6h
Avg / period
1
Key moments
- 01Story posted
Sep 8, 2025 at 5:40 PM EDT
4 months ago
Step 01 - 02First comment
Sep 8, 2025 at 11:06 PM EDT
5h after posting
Step 02 - 03Peak activity
1 comments in 5-6h
Hottest window of the conversation
Step 03 - 04Latest activity
Sep 8, 2025 at 11:06 PM EDT
4 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
Discussion (1 comments)
Showing 1 comments
karmakaze
4 months ago
The excess-(2N−1) offset binary representation has the useful property where storing a sequence of them in memory, MSB-first means you can lexographically process the bytes opaquely and it results in ordering by their values. MySQL uses this (2's complement with inverted sign) for indexing or sorting. You can see this in the hex value displays in deadlock logs.
View full discussion on Hacker News
ID: 45174385Type: storyLast synced: 11/17/2025, 6:06:20 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.