HNHacker News
TopNewBestAskShowJobs

salmonellaeater

910 karma · joined October 16, 2012

submissionscomments
salmonellaeater··on Cold Does Not Increase Odds of Catching Cold (2016)
You are more likely to catch a cold when the weather is cold, because people stay inside more, viruses live longer in living spaces during dry winter conditions, etc.

You are not more likely to catch a cold when you yourself get cold or chilled, as shown by the 1958 randomized trial and other experiments.

The article's title ought to be amended to make it clear that the latter situation is being discussed.

salmonellaeater··on US Visitors May Have to Hand Over Social Media Passwords
I wonder what will happen with visitors who don't use social media. I don't have a Facebook account. If I were a foreigner, would I be under extra suspicion because I can't provide an account like most people? Will people start manufacturing social media accounts to paint a picture the U.S. authorities want to see?

The end-game seems to be a social media account that functions like a multi-purpose credit score, à la Sesame Credit[1].

[1] https://en.wikipedia.org/wiki/Sesame_Credit

salmonellaeater··on Peer pressure’s effects are perhaps more powerful than we thought (2014)
In the airplane situation, I think it's worth stepping back to consider whether peer pressure is the simplest explanation. I think it's much more likely that people are just free-riding on others' mental effort of evaluating whether buying things on an airplane is worth it.
salmonellaeater··on My sabbatical research pivot
> In my experience, faster development didn’t matter much. Developers’ speed mattered somewhat, but only to the extent that we made effective product design choices based on the valid understanding of customer, user, and stakeholder needs.

Lately I've been thinking that most of the value a good engineer provides is in making a vague specification concrete. Building something that works is easy; deciding what it is that you are building is the hard part. You can think of the process of writing software as the process of deciding exactly how every unspecified edge case and detail in a specification will be resolved.

I wish there were more and better tools for declarative programming. Most of the time imperative programming produces overly specific solutions that are brittle and difficult to understand. It's really hard to infer the original intent of such code. A lot of solutions don't even require a Turing-complete language in the first place! For example, a library for mutating a datastore and keeping it consistent can be entirely specified using SQL-like expressions. Yet there are all these frameworks and ORMs for writing such libraries by hand using Turing-complete languages. It baffles me. /rant

salmonellaeater··on Velocipedia
The first bike is missing its chain stays, the bars connecting the bottom bracket to the rear axle and the ends of the seat stays. Wikipedia has a nice diagram with the names of all the parts of a bicycle [1].

There are real bike designs that have a monofork (a one-sided fork, e.g. the Cannondale "lefty"), a monostay, or a solid body instead of top & down tubes (e.g. many folding bikes or the extremely aero Ventum One [2]). The Giant Halfway [3] folding bike has all three features!

[1] https://en.wikipedia.org/wiki/File:Bicycle_diagram-en.svg

[2] http://www.slowtwitch.com/Products/First_look_at_the_elusive...

[3] http://www.giant-bicycles.com/en-in/bikes/model/halfway/1905...

salmonellaeater··on Federal Judge Strikes Down Idaho ‘Ag-Gag Law’
I can sympathize with the farmers because it's really hard to have a rational conversation in the face of strong emotional reactions to graphic imagery. People feel empathy for many things they shouldn't, such as robots[1], and the feeling of empathy is not a reliable way to determine something's moral status. Nevertheless, the natural way people make decisions on moral issues like this is to accept their emotional reaction and then rationalize their decision after the fact[2][3][4].

I wonder how much of the shift in public opinion on animal rights is a result of people not being exposed to farm animals anymore. The vast majority of people these days, myself included, meets only pets (and occasionally wild animals). If the only examples of animals you have in your personal life are companions, it's natural to want to treat animals well.

[1] E.g. How Anthropomorphism Affects Empathy Toward Robots http://www.cl.cam.ac.uk/~pr10/publications/hri09.pdf [2] The emotional dog and its rational tail: a social intuitionist approach to moral judgment http://www3.nd.edu/~wcarbona/Haidt%202001.pdf [3] The Status of Moral Emotions in Consequentialist Moral Reasoning http://www.law.yale.edu/documents/pdf/Intellectual_Life/Fran... [4] The Secret Joke of Kant's Soul http://www.fed.cuhk.edu.hk/~lchang/material/Evolutionary/Dev...

salmonellaeater··on A black man walks into Silicon Valley and tries to get a job
"Now you are just sounding entitled. You aren't entitled to any of those things and there are plenty of people in Silicon Valley that are qualified and willing to take the job (which is why you had trouble)."

If the company truly values diversity, it will remove barriers that disproportionately affect minority groups. The author is just pointing out that a company cannot claim to value diversity while simultaneously making it nearly impossible for a minority to work there.

This also applies to the perks that companies offer. Consider a free cafeteria. How could a parent possibly take advantage of free dinner at work? All of these policies and perks that are targeted at a specific demographic make the workforce less diverse.

"If you want to compete with them, you will need to move there."

I'd like to know how someone with no resources could just move to Silicon Valley as if they were walking across the street. Silicon Valley is expensive. Saving up for a ticket and a few months' rent in Silicon Valley would take years for many people. Companies that are insensitive to this fact will end up with a workforce disproportionately containing children of wealthy, connected people.

The issues the author faces are mostly due to statistical discrimination of various forms[1]. In particular, information about candidates is expensive and employers don't want to make bad hires. A candidate who comes from a group that has more variance in ability or a lower average ability is more expensive to evaluate because the company needs more information about the individual to narrow their risk to an acceptable level. If the company is only willing to expend a certain amount of effort evaluating candidates, those without the information boost of coming from a well-known low-risk group will be rejected as too risky.

Not that it's a company's moral duty to shoulder the costs of making hiring decisions solely on the basis of ability, but if a company claims to value diversity it is lying unless it shoulders at least some of those costs.

[1] See "Theories of Statistical Discrimination and Affirmative Action: A Survey" section 2.2.1 at http://www.sas.upenn.edu/~hfang/publication/moro/final.pdf

salmonellaeater··on Robots are leaving the factory floor and heading for your desk – and your job
> But they note that the boundaries of what counts as routine and non-routine are moving all the time. It was once thought that driving was a skill so complex it couldn’t be automated only to see it turned on its head by Google and others.

What happens when programming becomes routine? I expect there will be a very scary moment when we all realize that someone with the right resources has discovered the right learning algorithm, before all of us plebes die.

salmonellaeater··on What Hollywood Can Teach Us About the Future of Work
The article does mention the union.

It helps that, despite the work’s fleeting nature, Hollywood is strongly unionized, which keeps wages high.

I wonder how the unions interact with the automation also mentioned in the article, such as robotic cameras. I'd expect some push-back from the grips' union against automation, at least while they still have some leverage with the studios.

salmonellaeater··on Rules Change on I.R.S. Seizures, Too Late for Some
It creates incentives, but whether they're perverse is a matter of perspective.

A perverse incentive is an incentive that has an unintended and undesirable result which is contrary to the interests of the incentive makers.[1]

It's common to believe that law enforcement makes mostly just decisions, even when deciding whom to accuse[2]. To voters with this view, the incentives are exactly aligned with their interests.

[1] http://en.wikipedia.org/wiki/Perverse_incentive

[2] http://en.wikipedia.org/wiki/Right-wing_authoritarianism

salmonellaeater··on How one tweet wiped $8bn off Twitter's value
The salient information:

Well, it seems that Nasdaq slipped up here after Twitter furnished the exchange with earnings details ahead of time ready for official publication.

...

Selerity then made sure that everyone knew about it through Twitter's own platform, but it did not break any rules in doing so as the results had already been published and were effectively in the public arena.

"We inadvertently released an early version of their [Twitter's] earnings," Nasdaq said.

salmonellaeater··on Java Generics FAQs
In concrete terms, imagine Foo looks like this:

  private T value;

  void test(Foo<T> f) {
      f.value = this.value;
  }
You could then assign anything to a member that should only hold a String.

This is the same reason why arrays should not be covariant (even though they are in Java). This compiles:

  Object[] arr = new Integer[2]; // This should be a compile error, but the language spec allows it
  arr[0] = "abc"; // This blows up with an ArrayStoreException at runtime
salmonellaeater··on The Toughest Test in Cycling
What would really improve consumer bicycle technology is a standardized testing schedule like the EPA's "city test"[1]. You can standardize a course, but how to standardize the rider to be similar to an average person? Perhaps a special pedal that measures or constrains the rider's power output.

[1] http://epa.gov/nvfel/testing/dynamometer.htm

salmonellaeater··on Gogo plane Wi-Fi blocks YouTube (and can read your email)
This story sounded really familiar, so the first thing I looked for in the article was the publication date. It was really hard to find. In small greyed-out print at the bottom, after links to other articles:

CNNMoney (New York) January 6, 2015: 1:30 PM ET

It's poor behavior to make such an important bit of information so hard to find.

salmonellaeater··on Residents in faster places tend to report feeling somewhat happier
The article doesn't mention anything about age. Age predicts happiness[1] as well as walking speed. I suspect it predicts economic performance, although I don't have any references. It's certainly common for young people to migrate to large cities with strong economies to find work [2].

Were there controls for the average age of residents? The original paper[3] doesn't mention controls or age at all. This seems like a major issue to me.

1. http://www.euro.centre.org/data/1207216181_14636.pdf

2. Interactive US map here: http://www.netmigration.wisc.edu/

3. http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.389...

salmonellaeater··on Gmail blocked in China
The issue is that Google's mail servers can't communicate with servers within China, so any user of a Chinese mail service will not be able to send mail to Gmail users (and vice versa). If you are within China using a VPN to access Gmail, Google still can't send emails back in to Chinese machines.
salmonellaeater··on Subtraction is not comparison
One way to reduce the chance of this problem occurring is to change the specification of the comparison function to only allow -1, 0, and 1 to be returned (or even better, use enums like LESS, EQUAL, GREATER). This makes doing the wrong thing more cumbersome when implementing a comparison function, but it also makes it easier to implement the actual sort function because jump tables and switch statements become possibilities.
salmonellaeater··on A planet of suburbs
A major subsidy to the suburban lifestyle is free parking[1]. In heavily urban areas like New York, the space required for parking is priced (mostly) according to the market. In less dense cities with a higher percentage of car owners, street parking is often free when it should not be. Free parking causes three main problems:

* Tons of street space is provided by the public for parking that would otherwise be used more efficiently.

* Parking spots become scarce, causing drivers to waste a lot of time and cause extra congestion while searching for parking spots. It's nice for people who have more time than money, but taxpayers can't collect that wasted time.

* Because voters have an expectation of unlimited free parking, local government requires new construction to include parking spaces so the additional residents don't consume existing street parking. This increases the cost of construction and wastes space, and it reduces the possibilities for land use. You can't have dense communities when half the space is consumed by parking garages.

[1] "The High Cost of Free Parking" http://www.uctc.net/papers/351.pdf

salmonellaeater··on There are no good constant-time data structures
The author's point about memory access being non-constant still holds for a trie. Nodes that have been recently accessed will still be in cache and will load faster.

The quest for a sublinear algorithm is futile in the face of caching. The solution is similar to the solution to branch-based timing attacks: don't branch, in code or in data. Every comparison must follow the same code path and the same memory path, and that means reading every element of the data structure every time you search.

salmonellaeater··on From Switch Statement Down to Machine Code (2013)
C programming language is very high-level...

This made me chuckle. The author has a very different perspective from most software developers I know.

...and it might seem that in many cases it should not matter how the control flow is described and the same optimization might be applied as long as a resulting program is functionally the same. This raises a question of whether compiler will do the same optimizations if programmer is using if-then-else. In theory, it might be the same, or might be different. But instead of guessing, let’s find out.

I love the author's attitude towards experimentation. It reminds me of John Carmack: "If you aren't sure which way to do something, do it both ways and see which works better."

Obligatory XKCD: http://xkcd.com/1445/

salmonellaeater··on The Tup Build System
Technical merits aside, 'tup'[1][2] is a poor choice for the name, especially since it's hosted on a site that includes 'git'[3][4] in the URL. It would be difficult to talk about the tool professionally without risking offending someone.

[1] http://www.shakespeare-navigators.com/othello/T11.html

[2] https://www.google.com/search?q=define:tup

[3] https://git.wiki.kernel.org/index.php/GitFaq#Why_the_.27Git....

[4] https://www.google.com/search?q=define:git

salmonellaeater··on Password Security: Why the horse battery staple is not correct
Even if we entertained the XKCD comic and started training users to select four random words instead of a complex single-word password, I argue that it would not amount to a significant increase in security.

People are not very creative and tend to think the same way when choosing passwords. This would lead to the exact same problem we have now, where a few passwords such as "password123" become very common.

The XKCD comic[1] says to use "four random common words." There seems to be some confusion between the popular use of "random" to mean "arbitrary" and the specific information-theory meaning of "random" (better worded as "randomly chosen"). Bruce Schneier criticized[2] the XKCD method based on the "arbitrary" interpretation, and the best explanation of the problem I've seen is in an answer[3] on the cryptography Stack Exchange site:

Random choices are random and uniform. This is hard to achieve with human users. You must convince them to use a device for good randomness (a coin, not a brain), and to accept the result. [...] If the users alter the choices, if only by generating another password if the one they got "does not please them", then they depart from random uniformity, and the entropy can only be lowered (maximum entropy is achieved with uniform randomness; you cannot get better, but you can get much worse).

[1] http://xkcd.com/936/

[2] https://www.schneier.com/blog/archives/2014/03/choosing_secu...

[3] http://security.stackexchange.com/a/6096

salmonellaeater··on John Carmack on Inlined Code
> Unfortunately, this conflicts with the (common, good) advice to make as many variables final / const as possible, since it separates the declaration of a variable and its assignment.

In Java you can separate the declaration and assignment of a final variable as long as every branch provably assigns to the variable. For example:

  final int x;
  if(someCondition) {
      final int a = 1;
      final int b = 2;
      x = a + b;
  } else {
      x = 0;
  }
salmonellaeater··on Ads work by cultural imprinting, not emotional inception
Super Bowl ads cost about the same per viewer as prime-time TV slots ($35 per thousand in 2014). Both cost about four times as much per viewer as daytime TV.

Primetime: http://www.tvb.org/trends/4718/4715

Daytime: http://www.tvb.org/trends/4718/4710

salmonellaeater··on Ads work by cultural imprinting, not emotional inception
There's an excellent book called Rational Ritual[1][2][3] which develops this idea much more fully. The thesis is that common knowledge (I know something, and I know everyone else knows it too) is very powerful and rationally drives people's behavior.

One of the arguments in the book revolves around the absurd pricing of advertising during big public events like the Super Bowl. If advertisers weren't concerned about the common knowledge aspect of their messages, they would air their ads when the cost per viewer is lowest. And you do see this with non-social goods, which tend to be advertised during off hours. But companies producing social goods like beer pay much more per viewer for prime-time and Super Bowl slots in order to get their product into the cultural zeitgeist. If you see something in a Super Bowl ad, you know most other people have seen it too.

[1] http://press.princeton.edu/titles/9998.html

[2] PDF of the original 2001 manuscript: http://www.sscnet.ucla.edu/polisci/cpworkshop/papers/Chwe1.p...

[3] http://www.amazon.com/Rational-Ritual-Culture-Coordination-K...

salmonellaeater··on Hemisphere Project Summary: Office of National Drug Control Policy [pdf]
It's chilling that they explicitly mention parallel construction on page 12:

When a complete set of CDRs are subpoenaed from the carrier, then all memorialized references to relevant and pertinent calls can be attributed to the carrier's records, thus "walling off" the information obtained from Hemisphere. In other words, Hemisphere can easily be protected if it is used as a pointer system to uncover relevant numbers.

salmonellaeater··on Shen more strongly typed than Haskell?
There is even an example of how to write statically-checked non-empty lists at [1].

[1] http://www.haskell.org/haskellwiki/Non-empty_list

salmonellaeater··on Modern anti-spam and E2E crypto
It's sufficient to just destroy the bitcoins by sending them to a non-existent address. Alternatively, they could be donated to a third party such as a charity or an open-source software foundation.
salmonellaeater··on Conway's Proof Of The Free Will Theorem
The world can be deterministic and still allow free will with respect to a real observer. In some sense it doesn't matter if a person's actions are in principle predictable when there is no observer who can actually make those predictions. You'd have to measure and simulate the entire universe to predict a single particle's future.
salmonellaeater··on An Illustrated Book of Bad Arguments
Several of the fallacies remind me of the ESP example from "Queer Uses for Probability Theory" [1][2]. Arguments often involve trusting that the proponent is not lying or misleading us, especially when there is a need for experts to interpret complicated data. You might have two initial hypotheses:

  * H is false
  * H is true
When some actor A introduces new evidence in support of H, there are additional hypotheses that must be introduced:

  * H is false, and A is lying
  * H is true, and A is telling the truth
  * H is true, and A is lying
  * H is false, and A is telling the truth
Any evidence that A introduces in support of H equally supports the first two new hypotheses, while any evidence that A introduces refuting H supports the last two. The result is that, depending on your priors on H and on A's trustworthiness, A's evidence might never be able to convince you that H is true. This means that logical fallacies such as the genetic fallacy are not applicable when there is expertise involved.

If we were all experts or had unlimited time and access to the same information as an argument's proponents, then the genetic fallacy would be hugely useful. With real-world constraints on time and information, it's almost always impossible to evaluate an argument separately from its proponent's commitment to truth.

[1] http://omega.albany.edu:8008/ETJ-PDF/cc5d.pdf [2] Previous HN discussion: https://news.ycombinator.com/item?id=7929203

← PreviousPage 3 of 6Next →