News for hackers. Stuff that matters.
Re:Less Slow C++ by ashvardanian on Friday April 18, 2025 @03:22PM (#43731116)
I am genuinely quite surprised that the sine approximation is the eyeball catcher in that entire repo.

It will only take a 5-line PR to add Horner’s method and Chebyshev’s polynomials and probably around 20 lines of explanations, and everyone passionate about the topic is welcome to add them.

There are more than enough examples in the libraries mentioned above ;)

Re:Less Slow C++ by croemer on Friday April 18, 2025 @05:57PM (#43732203)
It's eye catching because it's advertised as a 40x speedup without any caveats.
Re:Less Slow C++ by ashvardanian on Friday April 18, 2025 @06:11PM (#43732277)
Oh, I've missed that part. It's hard to fit README's bullet points on a single line, and I've probably removed too many relevant words.

I'll update the README statement in a second, and already patched the sources to explicitly focus on the [-π/2, π/2] range.

Thanks!