Hacker News new | ask | show | jobs
by quickthrower2 828 days ago
So you can use sin(x) for various x to tell what you are running on. Maybe even in the browser?
2 comments

There is a shader which uses similar idea to detect what kind of GPU you have https://www.shadertoy.com/view/slySWV
V8 and SpiderMonkey have converged to the same underlying library (fdlibm), partly for the interoperability, so you generally can't.