HNHacker News
TopNewBestAskShowJobs

nadohs

-3 karma · joined July 18, 2015

submissionscomments
nadohs··on Ask HN: Just bought a new domain “linkedrecords.com”. What should I build?
blockchainz
nadohs··on Ad Fraud on LinkedIn
I am not convinced by their single ad, one day of data (11 clicks total) that they have proven anything.. This was a waste of time unfortunately...
nadohs··on Personal AI project video: Anticipating user needs with GOFAI
OMG, you've built a mansplaining bot
nadohs··on Thinning in brain regions important for memory linked to sedentary habits
Maybe people with thinning in brain region associate with memory overestimate the amount of time sitting because they can’t recall as accurately what they were doing in between sitting sessions...
nadohs··on The red and green specialists: why human colour vision is so odd
...
nadohs··on The red and green specialists: why human colour vision is so odd
Incredibly stupid experiment. As someone who is red-green color weak, just as 10% of the male population is, I feel insulted by the implication of this article and the obvious glossing over the fact that not all humans see green/red very strongly. This is lazy science, seriously asking people to differentiate between images of apes that want to mate? It made no sense, you basically proved that some people are colorblind... ok. Did you plan and write this over a weekend? Why did you even bother?
nadohs··on Cast-Free Arithmetic in Swift
Exactly, this is also pointed out in the struct definition in CoreGraphics for CGFloat.

/// The native type used to store the CGFloat, which is Float on 32-bit architectures and Double on 64-bit architectures.

nadohs··on Cast-Free Arithmetic in Swift
Good point bringing up over/underflow, I didn't think much about Nan or infinity, but I did consider potential over/underflows. I originally built an overflow/underflow checker(on the github project), but then re-evaluated it and figured it wasn't really necessary since the default action for number types that overflow/underflow in swift is to throw an error runtime. The person asking the question mentioned another series of operators that exist &+, &-, &*,etc that allow for overflow/underflow to occur on number types in swift.. without the error throwing, which is not the default.
nadohs··on Cast-Free Arithmetic in Swift
I use the dot property conversion, not the overloading in general use. I also have such reservations about using overloading for casting in production. What I do use, is the series of extensions for single letter dot property conversions, the extensions without the protocol extending, that I also used in Swift 1.2. Sorry if that was unclear...