{"slug": "core-math", "name": "CORE-MATH", "category": "dev-libs", "category_name": "Libraries and frameworks", "description": "", "recommenders": 3, "commenters": 4, "warners": 0, "score": 3.048, "rising": -0.98, "first": "2026-04-19", "latest": "2026-07-29", "why": "That's beautiful. Here's the Git repo with implementation.", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 3, "neutral": 1, "compare": 0, "warn": 0}, "spark": [0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 0], "listed": true, "loved": [], "caveat": "", "short_quote": "That's beautiful. Here's the Git repo with implementation.", "kind": "", "icon": true, "domain": "inria.fr", "github_repo": null, "official_url": "https://core-math.gitlabpages.inria.fr", "pricing": "", "aliases": ["CORE-MATH", "core-math"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 785525808, "item_id": 49095363, "url": "https://news.ycombinator.com/item?id=49095363", "by": "lioeters", "date": "2026-07-29", "stance": "recommend", "quote": "That's beautiful. Here's the Git repo with implementation.", "excerpt": "> CORE-MATH Mission: provide on-the-shelf high performance open-source mathematical functions with correct rounding that can be integrated into current mathematical libraries (GNU libc, Intel Math Library, AMD Libm, Newlib, OpenLibm, Musl, Apple Libm, llvm-libc, Microsoft libm, CUDA libm, ROCm) That's beautiful. Here's the Git repo with implementation. https://gitlab.inria.fr/core-math/core-math/-/blob/master/README.", "context": "", "use_case": "correctly rounded math functions", "switched_from": "", "story": "Log is non-monotonic in PHP and Lua"}, {"id": 785523328, "item_id": 49095208, "url": "https://news.ycombinator.com/item?id=49095208", "by": "lifthrasiir", "date": "2026-07-29", "stance": "recommend", "quote": "you can learn about the CORE-MATH project", "excerpt": "I'm on a mobile right now so I can't give the exact paper link but you can learn about the CORE-MATH project [1]. [1] https://core-math.gitlabpages.inria.fr/", "context": "", "use_case": "", "switched_from": "", "story": "Log is non-monotonic in PHP and Lua"}, {"id": 765164545, "item_id": 47822784, "url": "https://news.ycombinator.com/item?id=47822784", "by": "magicalhippo", "date": "2026-04-19", "stance": "recommend", "quote": "more modern alternatives like core-math[2]", "excerpt": "> running the physics engine at a deterministic timestep As well as using special library versions of floating-point functions which don't behave the same across different processors I suppose, if you want to be safe. Eg cr-libm[1] or more modern alternatives like core-math[2]. [1]: https://github.com/SixTrack/crlibm [2]: https://core-math.gitlabpages.inria.fr/", "context": "", "use_case": "", "switched_from": "", "story": "Game Devs Explain the Tricks Involved with Letting You Pause a Game"}]}], "caveats": [], "who": [], "tags": [], "use_cases": ["correctly rounded math functions"], "compared": [], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=49021756", "title": "Log is non-monotonic in PHP and Lua", "mentions": 2}, {"url": "https://news.ycombinator.com/item?id=48884853", "title": "Since Chronium 148, Math.tanh is now fingerprintable to link underlying OS", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47793161", "title": "Game Devs Explain the Tricks Involved with Letting You Pause a Game", "mentions": 1}], "sentiment_by_month": {"2025-11": {}, "2025-12": {}, "2026-01": {}, "2026-02": {}, "2026-03": {}, "2026-04": {"recommend": 1}, "2026-05": {}, "2026-06": {}, "2026-07": {"neutral": 1, "recommend": 2}, "2026-08": {}, "2026-09": {}, "2026-10": {}}, "quotes": [{"id": 785525808, "item_id": 49095363, "url": "https://news.ycombinator.com/item?id=49095363", "by": "lioeters", "date": "2026-07-29", "stance": "recommend", "quote": "That's beautiful. Here's the Git repo with implementation.", "excerpt": "> CORE-MATH Mission: provide on-the-shelf high performance open-source mathematical functions with correct rounding that can be integrated into current mathematical libraries (GNU libc, Intel Math Library, AMD Libm, Newlib, OpenLibm, Musl, Apple Libm, llvm-libc, Microsoft libm, CUDA libm, ROCm) That's beautiful. Here's the Git repo with implementation. https://gitlab.inria.fr/core-math/core-math/-/blob/master/README.", "context": "", "use_case": "correctly rounded math functions", "switched_from": "", "story": "Log is non-monotonic in PHP and Lua"}, {"id": 785523328, "item_id": 49095208, "url": "https://news.ycombinator.com/item?id=49095208", "by": "lifthrasiir", "date": "2026-07-29", "stance": "recommend", "quote": "you can learn about the CORE-MATH project", "excerpt": "I'm on a mobile right now so I can't give the exact paper link but you can learn about the CORE-MATH project [1]. [1] https://core-math.gitlabpages.inria.fr/", "context": "", "use_case": "", "switched_from": "", "story": "Log is non-monotonic in PHP and Lua"}, {"id": 782184944, "item_id": 48886559, "url": "https://news.ycombinator.com/item?id=48886559", "by": "mananaysiempre", "date": "2026-07-12", "stance": "neutral", "quote": "CORE-MATH uses 256 bits of mantissa and crashes if that turns out not to be enough", "excerpt": "I was a bit puzzled by your second sentence, so I searched around a bit and... do I have this right? - There\u2019s a well-known way (\u201cZiv\u2019s rounding\u201d) to get (among other things) a correctly rounded double-precision pow(), but in bad cases it can get slow, meaning really quite slow in practice and we\u2019ve got no idea how slow in the worst case (nobody knows what the worst case is). - There\u2019s a recent, guaranteed-correct wa", "context": "", "use_case": "correctly rounded math functions", "switched_from": "", "story": "Since Chronium 148, Math.tanh is now fingerprintable to link underlying OS"}, {"id": 765164545, "item_id": 47822784, "url": "https://news.ycombinator.com/item?id=47822784", "by": "magicalhippo", "date": "2026-04-19", "stance": "recommend", "quote": "more modern alternatives like core-math[2]", "excerpt": "> running the physics engine at a deterministic timestep As well as using special library versions of floating-point functions which don't behave the same across different processors I suppose, if you want to be safe. Eg cr-libm[1] or more modern alternatives like core-math[2]. [1]: https://github.com/SixTrack/crlibm [2]: https://core-math.gitlabpages.inria.fr/", "context": "", "use_case": "", "switched_from": "", "story": "Game Devs Explain the Tricks Involved with Letting You Pause a Game"}]}