Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Character Encodings
Search
Alex Wheeler
November 15, 2017
0
120
Character Encodings
Alex Wheeler
November 15, 2017
Tweet
Share
More Decks by Alex Wheeler
See All by Alex Wheeler
Running Rings Around Rack
alexwheeler
0
84
Golang Concurrency
alexwheeler
0
88
Rewriting Rack: A Functional Approach
alexwheeler
2
150
Man Computer Symbiosis
alexwheeler
0
120
Flipper
alexwheeler
0
130
Transducers
alexwheeler
0
67
Featured
See All Featured
Visualization
eitanlees
150
16k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
A Modern Web Designer's Workflow
chriscoyier
698
190k
The Language of Interfaces
destraynor
162
25k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
970
Transcript
Counting Systems Why your Emojis Work on Twitter, but not
Tinder
None
The Beginning
Unary Numbers • I • II • IIIII • IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
Romans
Romans
None
Why don’t we just use unique symbols? • Glyph -
any symbol used to represent some value • 1 2 3 4 5 6 7 8 9
None
Modern Counting Systems
Decimal • Latin decimus - tenth • 0 1 2
3 4 5 6 7 8 9
Positional Notation • way of encoding numbers • each position
related to the next by a constant multiplier called the base or radix • base 10
None
None
None
None
None
Binary • Latin binarius - consisting of two • Base
2
None
None
None
Bits and Bytes • Bit - The basic unit of
information in computing • i.e. 0 • Byte - unit of digital information consisting of 8 bits • i.e. 1000 0101
None
Hexadecimal • Greek hex - sixth; decimal - tenth •
base 16
base 16 • 0 1 2 3 4 5 6
7 8 9 A B C D E F
• 10 = ? • A • 255 = ?
• FF
So…what about the computers?
ASCII • American Standard Code for Information Interchange • 0-127
characters • 7 bits
None
Unicode • computing industry standard for encoding, representation, and text
expressed in most of the world’s writing systems • code points in range 0 -10FFFF
None
Hexadecimal Code Points • U+0061 = 97 = a •
U+005A = 122 = z • U+1F4A9 = 128169 = ?
UTF-8 • variable-width character encoding • capable of encoding all
unicode characters • backwards compatible with ASCII
• http://play.golang.org/p/PvVhLj_5kM • http://play.golang.org/p/pO97Yf5w-z
Thanks • @askwheeler • github.com/alexwheeler • alexwheeler.io