4 ms·
I wish the author had included the full ascii chart in 4 bits across / 4 bits down. You can mask a single bit to change case and that is super obvious that way
by gumby 2y ago
I wish the author had included the full ascii chart in 4 bits across / 4 bits down. You can mask a single bit to change case and that is super obvious that way.
The charts that simply show you the assignments in hex and octal obscure the elegance of the design.
- AdamH12113 2y agoThe third and fourth columns of the table are only a single bit apart from each other. If you mentally swap the first two columns, you get a Gray code ordering of the most significant bits, which is pretty close to what you're looking for.
- gumby 2y agoFound it: https://en.wikipedia.org/wiki/ASCII#/media/File:USASCII_code_chart.png https://en.wikipedia.org/wiki/ASCII#/media/File:USASCII_code...
- kalleboo 2y agoIt was at some point looking at a chart like that where it also dawned on me where the control codes like ^D, ^H, ^[ etc came from
- kr2 2y agoI was going to ask you to please explain as I didn't understand, but I am guessing you are talking about the same thing as this comment[1] right? That's super cool https://news.ycombinator.com/item?id=41042570 https://news.ycombinator.com/item?id=41042570
- gumby 2y agoYes, though ^m, ^[ et al aren’t so much elegant as coincidental; but look at A and a, for example. I found the chart I was looking for: https://en.wikipedia.org/wiki/ASCII#/media/File:USASCII_code_chart.png https://en.wikipedia.org/wiki/ASCII#/media/File:USASCII_code...