News for hackers. Stuff that matters.
Re:Show HN: Shellmath: Floating-point arithmetic directly in... by chubot on Thursday February 25, 2021 @12:11AM (#26259925)
Very nice writeup!

Related: I got a couple mails about raytracers in pure bash. It looks like they use fixed point arithmetic in bash rather than floating point, which works well:

http://www.oilshell.org/blog/2021/01/audio-and-graphics.html...

https://github.com/aneeshdurg/bash-raytracer

https://www.bouledef.eu/~tleguern/articles/shell-fixedpoint/

Re:Show HN: Shellmath: Floating-point arithmetic directly in... by clarity20 on Thursday February 25, 2021 @12:35PM (#26265494)
Thank you, and a tip of the hat to them for doing square roots the hard way.