But what would be the cure?
- Stop pretending that unicode is 'forwards compatible' from ASCII.
The least useful property of unicode is that a trivial subset of it can appear to be 'simple text'.
- Stop pretending that unicode isn't a binary format.
Every other binary format in common use, self-identifies through the use of 'signatures'. Eg. "GIF87a" & "GIF89a".
- Recognise that unicode isn't a single format, but many formats all lumped together in a confused and confusing mess.
Some parts have several names, some of which are deprecated. Other associated terms have meant, and in some cases still do mean, two or more different things.
- Recognise that there is no need and no real benefit to the "clever" variable length encoding used by some of the formats.
It creates far more problems than it fixes; and is the archetypal 'premature optimisation' that has long since outlived its benefit or purpose.
- Keep the good stuff -- the identification and standardisation of glyphs, graphemes and code points -- and rationalise the formats to a single, fixed-width, self-identifying format.
Just imagine how much simpler, safer, and more efficient it would be if you could read the first few bytes of a file and *know* what it contains.
Imagine how much more efficient it would be if to read the 10 characters starting at the 1073741823th character of a file, you simply did (say): seek FH, 1073741823 * 3 + SIG_SIZE, 0;
read( FH, $in, 10 * 3 );
Instead of having to a) guess the encoding; b) read all the bytes from the beginning counting characters as you go.
Imagine all the other examples of stupid guesswork and inefficiency that I could have used.
Imagine not having to deal with any of them.
Imagine that programmers said "enough is enough"; give us a simple, single, sane, self-describing format for encoding the world's data.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|