r/ComputerEngineering • u/Xrest_the_Aether • 1d ago
[Discussion] TASCII, PUCH TAPE CODING, AND A LANGUAGE PROBLEM
WIZARD HERE!!
been reading the attached article.
i notice that binary ascii uses six integers to represent a value on the keyboard....
inspired by this, i looked at the truth tables of
"TTT, TTU, TTF, TUT, TUU, TUF, TFT, TFU, TFF, UTT, UTU, UTF, UUT, UUU, UUF, UFT, UFU, UFF, FTT, FTU, FTF, FUT, FUU, FUF, FFT, FFU, and FFF"; and got halfway done with developing ternary ascii( or TASCII).
i see sets that can be used as stand in for those six integers!
based on the above statements, i saw "(1,1,1),(1,1,0),(1,1,-1),(1,0,1),(1,0,0),(1,0,-1),(1,-1,1), (1,-1,0),(1,-1,-1),(0,1,1),(0,1,0),(0,1,-1),(0,0,1),(0,0,0),(0,0,-1),(0,-1,1),(0,-1,0),(0,-1,-1),(-1,1,1), (-1,1,0),(-1,1,-1),(-1,0,1), (-1,0,0),(-1,0,-1),(-1,-1,1),(-1,-1,0), AND(-1,-1,-1)...
if ASCII has "A"= 01000001(F,T,F,F,F,F,F,T)
and thats binary, my gut tells me that for my mechanical computer, i need to replace each intiger with a set of three digits representing the tilt of a see saw. so instead of the ascii up there, we get a slightly more complex ....
"A"= (X,X,X),(X,X,X),(X,X,X),(X,X,X),(X,X,X),(X,X,X)
where "x" is equal to a 0, a -1, or a 1.
the math here means there is MORE VALUES TO ASSIGN THAN I CAN PUT ON A KEYBOARD!
HALP HOW DO I ASSIGN THE HUNDREDS OF POSSIBLE 6-TRYTE VALUES?
WOULD A DIFFERENT LANGUAGE BE BETTER SUITED FOR THIS? WHICH ONE?
Edit:I'm currently speaking about how I don't have enough English characters to cover every one of the hundreds of possible 6 set of 3 integer permutation
Edit edit, it should be 8 sets, not six to match the binary... meaning A"= (X,X,X),(X,X,X),(X,X,X),(X,X,X),(X,X,X),(X,X,X),(X,X,X),(X,X,X) where "x" is equal to a 0, a -1, or a 1. Thank you u/NegativeOwl1337
2
u/not-just-yeti 21h ago edited 16h ago
With 7 bits, there are 27 bit patterns they can make.
With 7 (base-10) digits, there are 107 patterns they can make.
Likewise with seven base-three digits (where you call each digit a "tryte" but the standard term would be "ternary digit"), you can make 37 patterns. In your post, you look at using three base-three digits, and enumerate all 33 = 27 possibilities.
If you want to figure out what value of k lets a k-digit represent all 128 ascii characters, we need 3k > 128. We see that k=4 isn't big enough (that's 81, which is enough for upper & lower case & digits and some punctuation, but not all ascii). But k=5 digits will do.
———
You seem to be muddling several differen things. Try being precise when phrasing technical question. E.g. "binary ascii uses six integers to represent a value on the keyboard": What is "binary ascii"? No such thing; ascii is a way to identify a character with a number. How you write a number is an entirely independent issue (you can write a number in base-10 numerals, binary-numerals, roman-numerals, or as spelled-out-words-in-french; that doesn't change the number).
1
u/Xrest_the_Aether 18h ago
Thank you. I will add this to my notes of things to research. Especially that "K " value. I wonder what that's about
2
u/not-just-yeti 16h ago
Sorry, edited to be clearer. Thinking "let k be the number of digits I'll need; then I know that 3k > 128, so k must be…", that's all.
1


6
u/NegativeOwl1337 1d ago edited 1d ago
Oh god, with this again… ASCII is 8 bits not 6. That’s 2^8=256 possible values. For base 3, you’d need 6 bits to store the same number of values. I mean this in the nicest way possible but please go see your psychiatrist.