Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it possible that your different operating systems just had different mxcsr values?

Or, since it was a port, maybe they were compiled with different optimizations.

There are a lot of things happening under the hood but most of them should be deterministic.



until someone compiles with --ffast-math enabled, stating "I don't care about accuracy, as long as it's fast".


It is good to enable that flag because it also enables the “fun safe math optimizations” flag, and it is important to remind people that math is a safe way to have fun.


"Friends don't let friends use fast-math"

https://simonbyrne.github.io/notes/fastmath/




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: