Hacker News new | ask | show | jobs
by op00to 2681 days ago
WSL is great for when you can tolerate's WSL's incorrect, broken floating point math. [1]

If you need your math to be correct, use Cygwin.

[1] https://github.com/Microsoft/WSL/issues/830

2 comments

What's broken is code that relies on long double offering more precision than double and expects to be portable. That's not guaranteed by the standard and isn't going to be true on all architectures.
To be fair, WSL claims to be (x86) Linux binary compatible. It's giving different results from actual Linux for the same binary.
Or pressure MS to fix it. They are rolling updates to WSL quite fast.
There's been pressure, it's not a priority.
It does seem a little niche, to be honest.