Hacker News new | ask | show | jobs
by PaulHoule 1719 days ago
Units next to values are expensive. If you had a vector of 10 million lengths and some are in centimeters and others inches and others furlongs the conversions you would have to do to add or multiply these values would cost more than the arithmetic you want to do, certainly you couldn't use SIMD instructions or the GPU to do accelerated math.
1 comments

There are 10 types of developers the optimizers that worry about the impact of storing and processing of a datum. Exemplified by C developers. And the modelers whose main worry is to represent the world in mental model that can fit in or brain, exemplified by Smalltalk developers.

I'm glad both exist.