frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Goldman Sachs Is Pulling Claude Code from Its Bankers and Traders

https://www.thestateofai.com/news/goldman-sachs-claude-code-traders-bankers
25•TheWiggles•25m ago•0 comments

Llama-modchip: 284B DeepSeek on 64GB RAM, no GPU

https://github.com/synchopate/llama-modchip
249•joshcsimmons•8h ago•79 comments

The Reconstruction of Torn Documents

https://www.bundesarchiv.de/en/stasi-records-archive/the-reconstruction-of-torn-documents/
47•jacquesm•2d ago•30 comments

Writing as a thinking tool

http://muratbuffalo.blogspot.com/2026/11/writing-as-thinking-tool.html
151•jruohonen•8h ago•43 comments

A Little Snitch for Windows

https://packethound.app/
10•BadBoyBubby•1h ago•4 comments

I'm not a fan of Deno's security model (2024)

https://goldstein.lol/posts/deno-security/
39•maxloh•3h ago•17 comments

Goodbye Claude, hello Pi

https://caleb.software/posts/claude-to-pi.html
581•karagenit•15h ago•372 comments

Porting Android 16 to my blind mother's keypad phone

https://z1x.us/blog/four-hundred-bucks-of-e-waste
104•z1xus•4d ago•32 comments

Show HN: Vegetable Gardening for Engineers

https://jrcpl.us/contrib/2020/gardening-for-engineers/
47•jrcplus•4d ago•12 comments

JIT bitmap text rendering for microcontrollers

https://linebender.org/blog/jit-bitmap-text/
75•dmit•7h ago•11 comments

What I run on my $10 USD OpenStick homelab

https://blog.bosscher.ch/posts/openstick/
712•LaurensBER•1d ago•127 comments

How to prove equations using diagrams, part 1

https://www.epatters.org/post/e-graphs-1/
26•frostbyte7•5h ago•3 comments

Clj.rs – a Clojure dialect implemented in Rust

https://clj.rs/
131•simonpure•4d ago•48 comments

Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files

https://apiiro.com/blog/coding-agents-leaking-secrets-github-dont-ask-again
513•shmulc•21h ago•375 comments

A field guide to CAPTCHA types and how they break

https://github.com/vsmutok/FuckCaptcha
17•vasylsmutok•1h ago•2 comments

Nyquist Limit:The frequency of changes in tech is invalidating our understanding

https://www.ryanprior.com/posts/nyquist-limit-frequency-of-changes-in-tech-invalidates-understand...
50•evakhoury•3d ago•21 comments

Agent memory needs its OpenTelemetry moment

https://www.lorekit.io/blog/open-agent-memory-format
134•mthines•10h ago•96 comments

Petered

https://aworkinglibrary.com/writing/petered
130•adrianhoward•7h ago•81 comments

The Gordon Gekko effect: The role of culture in the financial industry (2016) [pdf]

https://www.newyorkfed.org/medialibrary/media/research/epr/2016/epr_2016_gordon-gekko-effect_lo.pdf
71•tylerdane•1d ago•46 comments

Person of Interest

https://krthr.co/person-of-interest/
246•krthr•7h ago•167 comments

Tasfer: a text editor drawn on a 2D canvas

https://www.hamza.se/blog/tasfer
72•hamza512b•4d ago•48 comments

Finding Xanadu: Inside a JRPG classic translation 15 years in the making

https://readonlymemo.com/legend-of-xanadu-pc-engine-fan-translation-interview-making-of/
60•speckx•3d ago•12 comments

Uranium cubes reveal why the German nuclear project failed

https://arstechnica.com/science/2026/11/uranium-cubes-reveal-why-the-german-nuclear-project-failed/
196•rbanffy•3d ago•132 comments

Every Mac comes with an (undocumented) family member classifier

https://8rank.ai/game/apple-intelligence-personal-knowledge-graph
817•infwhispers•1d ago•435 comments

Every Windows 11 app should kill Electron, and Discord just showed why

https://www.windowslatest.com/2026/11/06/every-windows-11-app-should-kill-electron-and-discord-ju...
424•thunderbong•1d ago•423 comments

New typeface using intricate designs from Shakespeare's First Folio (2023)

https://www.itsnicethat.com/news/typeland-shakespeares-globe-amifer-folio-graphic-design-090323
42•bryanrasmussen•3d ago•11 comments

Making any integer with four 2s (2025)

https://eli.thegreenplace.net/2025/making-any-integer-with-four-2s/
190•germanrabbit•20h ago•50 comments

MaxxBench – "Nice DeepSWE score. But is it true?"

https://maxxbench.unlap.ai/research/why-maxxbench/
367•antiuniverse•1d ago•99 comments

Mizu – zero-copy parallel R and Python over shared memory

https://github.com/shikokuchuo/pymizu
64•cscheid•3d ago•7 comments

ISponsorBlockTV: SponsorBlock client for all YouTube TV clients

https://github.com/dmunozv04/isponsorblocktv
106•xnx•14h ago•44 comments
Open in hackernews

Comparing floating-point numbers (2012)

https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
26•sph•1y ago

Comments

LegionMammal978•1y ago
I'd argue that any equality comparison of floating-point numbers is asking for trouble, unless you're specifically working with small dyadic fractions (using exact comparison) or testing a purely heuristic 'closeness' condition (using fuzzy comparison).

Of course, inequalities show up in a lot more places, but are similarly fraught with difficulty, since mathematical statements may fail to translate to floating-point inequalities. E.g., in computational geometry, people have written entire papers about optimizing correct orientation predicates [0], since the naive method can easily break at small angles. This sort of thing is what often shows up as tiny seams in 3D video-game geometry.

[0] https://www.cs.cmu.edu/~quake/robust.html

mtklein•1y ago
My preferred way to compare floats as being interchangeably equivalent in unit tests is

    bool equiv(float x, float y) {
        return (x <= y && y <= x)
            || (x != x && y != y);
    }
This handles things like ±0 and NaNs (while NaNs can't be IEEE-754-equal per se, they're almost always interchangeable), and convinces -Wfloat-equal you kinda know what you're doing. Also everything visually lines up real neat and tidy, which I find makes it easy to remember.

Outside unit tests... I haven't really encountered many places where float equality is actually what I want to test. It's usually some < or <= condition instead.

sph•1y ago
I have built a production Javascript library with decent amounts of users that incorporates the following hack to deal with float error (avert your eyes if you're sensitive):

  // 1.2 - 1.0 === 0.19999999999999996
  // fixFloatError(1.2 - 1.0) === 0.2
  var fixFloatError = function (n) {
    return parseFloat(n.toPrecision(12));
  };
It felt correct at the time, but after reading the article, I cringe at how fundamentally broken it is. I got away with it because the library is used to convert betting odds, which are mostly small floating point numbers, so the error is often < 10^-12.