Turns are Better than Radians (2022)(computerenhance.com)
346 points by mayoff 2 days ago | 211 comments
tl;dr: Instead of debating pi vs tau, programmers should ditch radians entirely and use "turns," where a full circle is [0,1]. Most code multiplies by tau to call sin/cos, and those trig implementations immediately divide it back out—so using turns eliminates a pointless conversion, yields exact representations of common angles (0.25, 0.5, 0.75), and simplifies code. Some libraries already offer this via half-turn variants like CUDA's sincospi.
HN Discussion:
  • Radians are mathematically special because of Euler's formula and calculus derivatives
  • Turns break clean derivatives/integrals of trig functions, making calculus messier
  • Storing angles as turns enables exact quarter-turns and clean integer representations
  • ~Choice of angle unit is application-dependent; trig is used beyond geometry (signals, etc.)
  • Nothing prevents writing your own turn-based math functions today, so debate is overblown