SourceForge.net Logo







An ASCII Code Replacement

This is a quickly cooked up idea for a replacement for the standard ASCII
code. There could easily be some dramatic improvements possible for it.
Why should it be replaced? The ASCII code was designed for digitally trans-
mitting text. This means that choices which would have been beneficial for
other operations on text would not have been considered. This is designed
for maximum parsing speed.

There are about 30 punctuation characters to include. They should be easy
to fit in. I haven't worked that out yet.
 Before a decision is ever made, code should be written for all the more
speed-demanding types of operations and optimized for any proposed
replacement standards.
 Since there are some punctuation characters that are more important for
code parsing, these could be assigned codes with the highest-order bits
possible.

  It might also be practical to have different code systems for different uses.
 Source code parsing has its own peculiar challenges and it occurs very
frequently during typical computer use. It would benefit greatly from the use
of a specially designed "ASCII" code.

I have no expectations that this will ever be taken seriously, but I think
it's interesting to contemplate for now, unless it's proven to allow speed-
critical operations to run much faster.

 Perhaps CPU instructions could be added to processors to take advantage
of it, by ignoring specified bits when making comparisons. This could result in
false positives during a search, but still be faster than byte-by-byte.



The bit assignments

Bit#    Assignment
0    N0
1    N1
2    N2
3    N3
4    N4
5    Letter
6    Capital
7    Punctuation




    Digits

Char    Dec    HEX
0    0    00
1    1    01
2    2    02
3    3    03
4    4    04
5    5    05
6    6    06
7    7    07
8    8    08
9    9    09




Lower Case Letters

Char    Dec    HEX
a    32    20
b    33    21
c    34    22
d    35    23
e    36    24
f    37    25
g    38    26
h    39    27
i    40    28
j    41    29
k    42    2A
l    43    2B
m    44    2C
n    45    2D
o    46    2E
p    47    2F
q    48    30
r    49    31
s    50    32
t    51    33
u    52    34
v    53    35
w    54    36
x    55    37
y    56    38
z    57    39




Upper Case Letters

Char    Dec    HEX
A    96    60
B    97    61
C    98    62
D    99    63
E    100    64
F    101    65
G    102    66
H    103    67
I    104    68
J    105    69
K    106    6A
L    107    6B
M    108    6C
N    109    6D
O    110    6E
P    111    6F
Q    112    70
R    113    71
S    114    72
T    115    73
U    116    74
V    117    75
W    118    76
X    119    77
Y    120    78
Z    121    79







Website Home
Project Summary Page at SourceForge.net






This project is sponsored by TheirCorp
(formerly TheirWare Corporation)

TheirCorp Home Page