Get the latest tech news

Why the CORDIC algorithm lives rent-free in my head


I'm sick of complex blogging solutions, so markdown files in a git repo it is - francisrstokes/githublog

CORDIC is an algorithm for computing trig functions like sin, cos, tan etc on low powered hardware, without an FPU (i.e. no floating point) or expensive lookup tables. Essentially, the actual operations of the algorithm are incredibly simple - just shifts and adds, as I mentioned before - but it does this by combining vector math, trigonometry, convergence proofs, and some clever computer science. In fact, I got nerd-sniped into this whole CORDIC investigation after listening to Dan Mangum's fantastic Microarch Club podcast, where Philip Freidin dropped the spicy hot-take that "Floating point is a crutch", and that using it might be a sign that you don't really understand the algorithm you're working on.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of head

head

Photo of rent

rent

Photo of CORDIC

CORDIC

Related news:

News photo

Tesorio (YC S15) Is Hiring a Senior Back End Engineer in Latam (100% Remote)

News photo

Artist evicted by London landlord cuts rent by commuting from Argentina

News photo

Deutsche Bank’s Co-Head of Americas ECM Bohm Has Left the Firm