News for hackers. Stuff that matters.
Re:9999999999999999.0 – 9999999999999998.0 by jancsika on Saturday January 05, 2019 @06:21PM (#18835024)
Wait, where did OP's 64-bit slot go?

> I can’t understand how they think that’s going to be possible in a finite 64 bits.

You apparently stole 32 of them to make your bat.

If you put them back your tests balloon to half a century each.

Re:9999999999999999.0 – 9999999999999998.0 by tom_ on Saturday January 05, 2019 @06:44PM (#18835166)
An alternative calculation: https://news.ycombinator.com/item?id=18109432

"You can rent a Skylake chip on Google Cloud that'll perform 1.6 trillion 64 bit operations per second for $0.96/hr preemptively. That's enough to run one instruction over a 64 bit address space exhaustively over 120 days, or for ~$2800"

It might not make economic sence to actually make this happen for any realistic test, but it's interesting that it might actually be feasible to do it on any kind of human timescale...

Re:9999999999999999.0 – 9999999999999998.0 by dannypgh on Saturday January 05, 2019 @07:13PM (#18835330)
At some point, your test switches from testing the code, to testing the machine the code runs on. That likely happens before 120 days.
Re:9999999999999999.0 – 9999999999999998.0 by josefx on Sunday January 06, 2019 @08:33AM (#18838219)
Given issues like the intel fdiv bug that may make sense to test if you really want to avoid running into hardware specific bugs.
Re:9999999999999999.0 – 9999999999999998.0 by dannypgh on Sunday January 06, 2019 @12:11PM (#18839285)
Maybe, but I'd rather a test suite that's designed to test hardware, rather than overloading some code's unit tests.

I think most unit tests are best served by testing key values- e.g. values before and after any intended behavior change, values that represent min/max possible values, values indicative of typical use.

The unit test can serve as documentation of what the code is intended to do, and meaninglessly invoking every unit test over the range of floats obscures that.

There are certainly cases where all values should be tested, but I don't think that's all cases.

Re:9999999999999999.0 – 9999999999999998.0 by chrisseaton on Saturday January 05, 2019 @06:30PM (#18835086)
Wow that's aggressively snarky.

I presume they were saying 'and for 32-bit floats you also get this property that you can...'