Better HN
topnewbestaskshowjobs
Log inSign up

Breakthrough

1,159 karma · joined Aug 10, 2012 (14y ago) · 217 submissions

Software engineer with a passion for hardware and open source software. Rust, Python, and C++ lover. Author of PySceneDetect.

bcastell.com

github.com/Breakthrough

Submissions

comment 14y ago · link · parent

Wonderful, just wonderful. I'm glad to have woken up today to find the first item on Hacker News to be several big-name companies collaborating to bring several technologies forwards and more standardized, instead of fighting against each-other for the proprietary implementations of trivial things.

comment 14y ago · link · parent

In binary, you can't represent any of 0.1, 0.2, nor 0.3 with "proper" fractions, as they are irrational in a radix-2 number system. Thus, when actually performing the operation (0.3 - 0.2) - (0.2 - 0.1), the result may actually be non-zero, although very small.

The best thing to do here would be to use an inline comparison function with a threshold:

    inline bool is_equal(double a, double b, double threshold = 0.0000001f)
    {
        if ( abs(a-b) < threshold )
        {
            return true;
        }
        else
        {
            return false;
        }
    }
Unfortunately, compounding floating point operations can drastically reduce calculation accuracy, leading to requiring a greater threshold value... Which is why I highly recommend reading the article titled "What Every Computer Scientist Should Know About Floating-Point Arithmetic" by David Goldberg (circa 1991, available at http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.ht...).

comment 14y ago · link · parent

I think you're confusing "dangerous" with "working as designed" - the whole point of the experiment was to have the subjects "learn" without explicitly having to do anything. Plus, the article also states that "researchers have said that their method has only been shown to work with visual perceptual learning".

Also, I believe fMRI induction is quite safe (on a physical level), as the actual magnetic field strengths are controlled very precisely to be as weak as required. At most, if you think of parts of the brain as neural networks, the fMRI stimulation might only act to modify the NN weights.

comment 14y ago · link · parent

Most likely not, so good question. All that went through my mind when I read the post title was "Why Apple should acquire [Some Company With Way Better Maps]"...

comment 14y ago · link · parent

I'm definitely going to check this out... It's such a pain to start developing an Android app from scratch, especially if you aren't familiar with mobile development.

comment 14y ago · link · parent

I personally opted to just skip over the whole Unity thing and move to Xubuntu... Personal preference, but I find Xfce has been the closest to a "traditional" desktop experience while still maintaining a full feature set.

Then again, to each his own :)

1
45678