Unofficial Hacker News companion — get notified on comment replies, and more.

Computer Disease (2020) (opens external site)

265 points by jvanderbot 4 days ago | blog.adafruit.com | 117 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. No. Tables are still used.

    If you need to use a table only once, then you have to wait hundreds of cycles. But "only once" doesn't affects performance.

    When performance matter, you need to calculate it thousands of times, and the table stays in cache.

    On intermediate cases, you use a tiny table to get an approximate value, and rapidly iterate on the ALU to reduce the error.

    You never calculate the function without tabulation, because it consumes hundreds of cycles, and evicts registers/cache, or uses the stack which is a memory access anyways.