Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pabs3
on Oct 18, 2024
|
parent
|
context
|
favorite
| on:
C++ proposal: There are exactly 8 bits in a byte
Hmm, I wonder if any modern languages can work on computers that use trits instead of bits.
https://en.wikipedia.org/wiki/Ternary_computer
cobbal
on Oct 18, 2024
|
next
[–]
Possible, but likely slow. There's nothing in the "C abstract machine" that mandates specific hardware. But, the bitshift is only a fast operation when you have bits. Similarly with bitwise boolean operations.
cogman10
on Oct 18, 2024
|
prev
[–]
It'd just be a translation/compiler problem. Most languages don't really have a "bit", instead it's usually a byte with the upper bits ignored.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://en.wikipedia.org/wiki/Ternary_computer