Remix.run Logo
microgpt 5 hours ago

Why not store them in unary then?

lxgr 5 hours ago | parent [-]

Unary is exactly as expressive as decimal or binary for integers, but somewhat less efficient, so why would you?

microgpt 4 hours ago | parent [-]

idk, why would you store integers as ASCII strings? It's somewhat less efficient.

lxgr 3 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.