Write your name in ASCII using an 8-bil code with the leftmost bit always
0. Include a space between names and a period after a middle initiaL
Answers
Answer:
Write your name in ASCII using an 8-bil code with the leftmost bit always
0. Include a space between names and a period after
Explanation:
Write your name in ASCII using an 8-bil code with the leftmost bit always
0. Include a space between names and a period after☺☺☺☺☺☺☺
There is Unicode, which encodes a few billion characters in certain formats, that are known as UTF8, UTF16 or UTF32. There has been a joke that introduced UTF5, but I thought that this was a bad idea, but it would be a nice idea to put it into 4 bits as UTF4.
And that means, you don’t need 7 bit anymore to store text, you just need a , half of a byte to do so. Which crunches down the awful space text takes on modern computer systems significantly.
So here is your code :
> echo "i have seen teen sisters in sinister areas"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d
> echo "i have seen teen sisters in sinister areas"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d 43
> echo "i have seen teen sisters in sinister areas"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d 43 00000000: 030d e611 4011 0217 2140 4317 4530 0234 ....@[email protected]
> echo "i have seen teen sisters in sinister areas"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d 43 00000000: 030d e611 4011 0217 2140 4317 4530 0234 ....@[email protected] 00000010: 3274 5160 1546 9a00 2tQ`.F..
> echo "i have seen teen sisters in sinister areas"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d 43 00000000: 030d e611 4011 0217 2140 4317 4530 0234 ....@[email protected] 00000010: 3274 5160 1546 9a00 2tQ`.F.. 24
The original needed 43 bytes, the UTF4 version 24 bytes. Most of the characters just needed 4 bits.
In the best case scenario you’ll half the needed space:
so for reducing the space iterable the program,:
> echo "eenniissrraatt"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d
> echo "eenniissrraatt"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d 15
> echo "eenniissrraatt"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d 15 9
> echo "eenniissrraatt"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d 15 9 00000000: 1122 3344 5566 779a 00 ."3DUfw..
> echo "eenniissrraatt"|tee >(wc -c)|utf4|tee >(wc -c)|tee >(xxd)|utf4 -d 15 9 00000000: 1122 3344 5566 779a 00 ."3DUfw.. eenniissrraatt
I think seven and even eight bits for a character is a terrible waste of disk space. Four should be enough. There will be generations of computers to come, we have to ration them into smaller packages.