Four-Column ASCII Table Reveals Encoding Patterns and Relationships
By
tempodox
Crisp on the outside, thoughtful on the inside. A keeper.
Summary
The article discusses a four-column ASCII table format shared on Hacker News that reveals patterns in ASCII encoding, making relationships between characters more obvious. It explains how this layout clarifies why certain control codes work the way they do (like ^[ becoming escape), shows the mathematical relationship between uppercase/lowercase letters (40h + ordinal position for uppercase, 60h for lowercase), and demonstrates the bit-level patterns in ASCII encoding.
Key quotes
· 4 pulledI always thought it was a shame the ascii table is rarely shown in columns (or rows) of 32, as it makes a lot of this quite obvious.
It becomes immediately obvious why, eg, ^[ becomes escape.
Or that the alphabet is just 40h + the ordinal position of the letter (or 60h for lower-case).
Or that we shift between upper & lower-case by just flipping one bit.
You might also wanna read
The History of Pipes, Forks, and Zombies in Unix Systems
This article discusses the history and concept of pipes in Unix systems, focusing on Doug McIlroy's original vision of coupling programs lik
Demystifying Floating Point Numbers: An Interactive Guide
An in-depth technical blog post that demystifies floating point numbers, explaining their internal representation and behavior. The author i
Northeastern University CS 4973: Introduction to Software Development Tooling Course
This is a course website for CS 4973: Introduction to Software Development Tooling at Northeastern University, Summer 2 2024. The course tea
Supplementary Resources for Bret Victor's 'The Future of Programming' Talk
The article provides references and additional resources related to Bret Victor's talk titled 'The Future of Programming' at the DBX confere
Understanding Arrays and Tables as Functions in Programming
The article explores the concept of arrays and tables in programming, presenting a mental model that explains APL-style multidimensional arr
Building a Minimal RAG System from Scratch: PDF to Highlighted Answers in ~100 Lines of Python
A hands-on tutorial that builds the smallest functional RAG (Retrieval-Augmented Generation) system from scratch using about 100 lines of Py
