Hacker News
new
past
comments
ask
show
jobs
points
by
lxgr
6 hours ago
|
comments
by
microgpt
6 hours ago
|
[-]
Why not store them in unary then?
reply
by
lxgr
6 hours ago
|
parent
|
[-]
Unary is exactly as expressive as decimal or binary for integers, but somewhat less efficient, so why would you?
reply
by
microgpt
5 hours ago
|
parent
|
[-]
idk, why would you store integers as ASCII strings? It's somewhat less efficient.
reply
by
lxgr
4 hours ago
|
parent
|
[-]
Because it's much more explicit. Computers are fast, engineering is expensive. You usually never want to optimize prematurely when dealing with monetary amounts.
reply