Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joshAg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
481.
▲
by
joshAg
14y ago
You said using equivalence for floats that store integers is fine. here is a link: [1]. The point of my example was to show that that is not the case for numbers that are easily stored by an int that's the same size as a float. I've not use
482.
▲
by
joshAg
14y ago
i guess that's what a i get for not double checking my math. here's a revised version that (as long as i haven't made any other math mistakes) still fits within a 32 bit signed int but doesn't guarantee simple equality: float a = 0.0;
483.
▲
by
joshAg
14y ago
If you mean arithmetic on floating point numbers that only store integers, then no equivalence is not ok, because there are examples where bit equivalence fails. One example is repeatedly adding 1.0 to a float something like 1 trillion time
484.
▲
by
joshAg
14y ago
even just addition and multiplication with floats make simple equivalence a horrible idea, due to uncertainty. For example: float a = 1.0; float b = 1000.0; for (int i = 0; i < 1000000; ++i) a+=1.0; b *= b;
485.
▲
by
joshAg
14y ago
Attmepting to just use simple equivalence with any floating point type a horrible idea to begin with, even without NaNs. You should instead declare equivalence if the absolute difference between the two numbers is less than some bound based
486.
▲
by
joshAg
14y ago
how long is the trip from LA to LA, how much would the finder's fee be, on each continent and could it be made to include at least a stop of 48 contiguous hours?
487.
▲
by
joshAg
14y ago
i'm only 23, but knowledge gaps I've seen in friends/coworkers without degrees are compilers, what needs to happen to go from c to machine code, and to a lesser extent calculus/linear algebra, discrete math, and the stuff covered in an uppe
488.
▲
by
joshAg
14y ago
the pirate bay might argue with you about sweden.
489.
▲
by
joshAg
14y ago
well, i guess i learned not to blindly trust NASA scientists today. thanks for the info; that was pretty interesting.
490.
▲
by
joshAg
14y ago
I don't have a source I can find easily, but I believe the older rovers had a 10Mbs uplink.
491.
▲
by
joshAg
14y ago
the last rovers were solar powered, which is partly why they were dormant in the winter and at night.
492.
▲
by
joshAg
14y ago
when we start building "breeder" reactors again. Plutonium is a byproduct of the breeder reactors when they create the type of uranium that can be used for nuclear bombs (this is one of the reasons that breeder reactors aren't popular). I w
493.
▲
by
joshAg
14y ago
Yes, adding noise will be unavoidable, but not broadcasting an ssid means unsuspecting people won't try and connect to these pseudo AP's. To cut down on the interference caused by the added radio noise one could either hardwire all the pseu
494.
▲
by
joshAg
14y ago
i like your style. might i suggest finding out how the wifi scanners work, and then creating a bunch of dummy wifi connections with well hidden embedded systems (of course, set them up with a hidden ssid so it doesn't interfere with people
495.
▲
by
joshAg
14y ago
for someone who'd never flown anything other than coach, the experience was mindblowing, especially since the upgrade was only $50 at the airport. i'd love to fly first or business again when i eventually go to europe, but as a hypothetical
496.
▲
by
joshAg
14y ago
> If you paid as much now as you did for the same flight in the 70s, you'd still get the very same service. I believe they call it first-class now. I had the opportunity to purchase a first class upgrade (first time not flying economy)
497.
▲
by
joshAg
14y ago
that job tenure sounds about right for SV from where i'm sitting in sunnyvale.
498.
▲
by
joshAg
14y ago
this reminds me a lot of Feist V Rural [1]; I just hope it turns out the same way. [1]: http://en.wikipedia.org/wiki/Feist_v._Rural
499.
▲
by
joshAg
14y ago
I've been thinking the same thing. I'm just worried that the culture might be too entrenched for her to change it.
500.
▲
by
joshAg
14y ago
Because "Nobody ever got fired for buying IBM".
501.
▲
by
joshAg
14y ago
reddit partially gets around this by allowing users to create their own subreddits. i've been much happier with reddit since i unsubscribed from all the default subreddits.
502.
▲
by
joshAg
14y ago
similar. my mom is a physical therapist and her building also has some doctors. a few years ago her employer/state laws banned accepting gifts (like lunch, pens, and pads of paper, &c.) from drug reps, but I still have a massive box of
503.
▲
by
joshAg
14y ago
entirely true, but some things are easier to abuse than others, just like how every computer is theoretically hackable, but some are easier to hack than others.
504.
▲
by
joshAg
14y ago
if US judges took the same "living tree" approach to the constitution that Canadian judges do to theirs, I'd agree with you, but since they instead try and discover "original intent" I think it just unnecessarily introduces confusion over w
505.
▲
by
joshAg
14y ago
the problem with the 4th amendment (really with any of the amendments jefferson wrote) is that it uses vague words like 'unreasonable' and 'probable' that have to be determined/explained in a later trial, which makes it much easier to skirt
506.
▲
by
joshAg
14y ago
because c/++ was too slow.
507.
▲
by
joshAg
14y ago
beautiful, just beautiful.
508.
▲
by
joshAg
14y ago
overloading variables is nothing new in math/science/engineering. Usual methods include picking a different variable to represent torsion, or appending a subscipt or superscript of some kind to differentiate between the two taus. you could
509.
▲
by
joshAg
14y ago
people like to feel smugly superior.
510.
▲
by
joshAg
14y ago
he takes 237 across the bottom of the bay.
More ›