HNHacker News
TopNewBestAskShowJobs

susan_hall

129 karma · joined December 22, 2014

submissionscomments
susan_hall··on Amid Bitcoin's Bloodbath, Silence from Silicon Valley Press
Regarding the price that people are willing to pay for Bitcoin, what has become relevant is how people judge, not merely other people's willingness to pay, but other people's estimate of how others might be willing to pay. Relevant here is the Keynesian beauty contest, a reference to a practice in which towns used to give awards to those who could get guess who the prettiest girl in town was, with "prettiest" being determined by the other people in town:

"It is not a case of choosing those that, to the best of one's judgment, are really the prettiest, nor even those that average opinion genuinely thinks the prettiest. We have reached the third degree where we devote our intelligences to anticipating what average opinion expects the average opinion to be. And there are some, I believe, who practice the fourth, fifth and higher degrees."

(Keynes, General Theory of Employment Interest and Money, 1936).

http://en.wikipedia.org/wiki/Keynesian_beauty_contest

susan_hall··on Why Clojure?
I love Clojure. Why? Partly because I am lazy. Larry Wall said a good programmer is lazy, but in my case I am lazy in the wrong ways. If you have enough self-discipline, then you probably don't need immutability. But immutability is a wonderful thing if you are lazy.

I also love immutability because I have had many co-workers who are lazy. Again, not aways the good kind of lazy. I mean the kind of lazy that allows 2 loops with mutable variables into the same function:

howMuchPrizeMoney = 0;

arrayOfMoneyPerCategory =[];

for (i=0; i < users.length; i++) {

    u = users[i];

   howMuchPrizeMoney += u.prize_money;    
}

for (i=0; i < contests.length; i++) {

  c = contests[i];

  for (j=0; j < categories.length; j++) {

        cat = categories[i];  

       if c.name == cat.name {

         arrayOfMoneyPerCategory[cat.name] =   u.prize_money;  

     }

  }
}

Wait, now I have a bug! All the categories have the same amount of money, and I know that is wrong. Where is that bug? Hmm, let me look and look and look. And if this example seems easy, I have seen functions larger than this, where finding the bug gets much harder. I am lazy, and my co-workers are lazy, and if we allow ourselves mutable variables, we will abuse them, so I would be happy if we adopted a language that avoided mutable variables. So for instance, even if I had a loop that looped over all the variables, there would still be no risk of one variable effecting another if I did something like this:

(def vector-of-users [

                        {:name :henry :prize-money 200}   

                       {:name :henry :prize-money 30}   

                       {:name :craig :prize-money 340}   

                       {:name :craig :prize-money 100}   

                       {:name :pasha :prize-money 2330}   

                       {:name :pasha :prize-money 1130}   

                       {:name :pasha :prize-money 430}   

                       {:name :eli :prize-money 60}   

                       {:name :eli :prize-money 330}   

                       {:name :eli :prize-money 89}   ])
(loop [u vector-of-users total 0]

     (if (first u)

       (recur 

           (rest u)

           (+ (:prize-money (first u)) total))

      total))

At the REPL, this gives me 5039.

Now if I do this, and I stupidly put next a loop inside of a loop, is there any risk of a typo? Sure, but I won't get a confusing number back, instead I'll be told that I'm using a var that doesn't exist.

This is the version without the typo:

(def vector-of-categories [:housing :crisis :restaurants :theater])

(def vector-of-contests [

                        {:category :housing :prize-money 200}   

                       {:category :housing :prize-money 30}   

                       {:category :housing :prize-money 340}   

                       {:category :crisis :prize-money 100}   

                       {:category :crisis :prize-money 2330}   

                       {:category :restaurants :prize-money 1130}

                       {:category :restaurants :prize-money 430}   

                       {:category :restaurants :prize-money 60}   

                       {:category :theater :prize-money 330}   

                       {:category :theater :prize-money 89}   ])
(loop

[money-per-category {}

contests vector-of-contests

categories vector-of-categories]

(if (first categories)

(recur

   (assoc money-per-category (first categories) 

       (loop [c contests total 0]  

         (if (first c) 

             (recur 

                (rest c) 

                (if (= (:category (first c)) (first categories)) 

                   (+ total (:prize-money (first c))) 

                    total))

           total)))

   contests

   (rest categories))
money-per-category))

When I try this at the REPL I get:

{:theater 419, :restaurants 1620, :crisis 2430, :housing 570}

But what if I made a typo, just like in the first example? What if instead of this:

(first c)

I stupidly wrote:

(first u)

There would be no "u" that was in scope for the whole of the function. The "u" would only exist inside the first (loop).

Needless to say, no one would ever write Clojure code like this. Anyone who puts 3 loops in function, in Clojure, is taken outside and shot at point blank range. But my first example, in Javascript, is something I have seen in real life.

susan_hall··on The problem with Angular
>browser fragmentation

The possibility of browser fragmentation ceases to exist in a world of polyglot browsers. You would instead have fragmentation in the sense of many languages running on the runtime, and there the individual languages would presumably have their own system of managing dependencies, just like on the JVM now.

> a security nightmare

Sandboxing becomes an issue of the runtime. Assuming there is a standard runtime, then security could be managed as it is now.

> where a URI has a main concern

Those days started to end in 2004, with Ajax, and those days have suffered further retreat with WebSockets, and will likely cease to exist as people combine more data in one place. Have you seen how many Ajax calls your typical Angular app makes to construct one page? The original concept of the URI is undermined -- instead of a scalar value, most pages are now a vector of URIs.

>I tend to be annoyed, if the page does not work without JS.

My comments are only directed to those who are trying to offer software as a service. Those are services where the Javascript must be on. My remarks have no relevance for those traditional pages that you can view without JS. However, clearly, the industry is investing a great deal in sites that work as pure software -- it is for those sites that the old ideal of HTTP/HTML as a publishing platform is a handicap rather than a benefit.

susan_hall··on The problem with Angular
The reality is, Javascript has problems, and smart people disagree about how to solve those problems. The proliferation of frameworks is a symptom, but the frameworks are not themselves the problem. Javascript has some quirks, that is for sure, and then, independent of Javascript, HTML/XHTML has its quirks. Most ambitious sites today are trying to deliver software as a service, but HTML was conceived as a publishing mechanism for documents. The emphasis on publishing brings in some baggage that complicates any conversation about doing HTML right. Consider the holy wars that have raged regarding the word "semantic". There are many GUIs in the world that focus strictly on visual representation and programming mechanics. Think about Java/Swing, or GTK, or Flash. Swing does not aspire to be semantic, it only aspires to give us a GUI for those who would create a GUI app with Java. GTK is the same, it is for programming environments. But Javascript/HTML is given the task of being both a programming environment and also a publishing platform, with semantics and a hierarchical document object model. This is a confusing burden to put on something that most people nowadays only want to use as a programming environment.

In the short run, I do not know what the solution is. I suspect developers will continue to invent new Javascript frameworks in an effort to create sufficient levels of abstraction to ease the pain of development for the Web. In the long run, the solution for the industry will be polyglot browsers, and polyglot protocols, that can work as a runtime and thus give developers the kind of freedom on the frontend that they already have on the backend. Despite the many brilliant minds working on the issue, Javascript is never going to work as the byte-code of the Web. Something more general is needed. On the server, the JVM gives developers a runtime that allows them to use many languages, and many different paradigms: Scala, Clojure, jRuby, Jthyon, etc. We need that kind of flexibility on the frontend. And we need protocols to support that runtime.

susan_hall··on Drug dramatically reduces diabetes symptoms in mice
Do you realize that there have been hundreds of studies suggesting that fasting has health benefits? There are too many listed on Google for me to link to them all but here is a random sample of a few.

Start with this one, which was on Hacker News for awhile:

Total Starvation – 382 days without Food

http://cristivlad.com/total-starvation-382-days-without-food...

"I recently came across this study from 1973 in which a 27 years old male has fasted for 382 days under the supervision of researchers from a Scotland University. This is the longest fast ever been recorded.

This patient weighted in 456 pounds (~207 kg) and weighted out 180 pounds (~82 kg). So, he lost 276 pounds (~125kg) during his fast. Five years after the fast ended, the patient’s weight has been constantly around the values of 196 pounds. A.B. had no ill symptoms during and after the fast."

Medically supervised water-only fasting in the treatment of hypertension

http://www.ncbi.nlm.nih.gov/pubmed/11416824

Intermittent fasting: a dietary intervention for prevention of diabetes and cardiovascular disease?

http://dvd.sagepub.com/content/13/2/68.long

Wikipedia lists all the fasts undertaken by Ghandi, his longest being 21 days:

http://en.wikipedia.org/wiki/List_of_fasts_undertaken_by_Mah...

There are all the Christian sites that promote fasting so you can be more like Jesus:

https://danielfast.wordpress.com/2009/09/30/christian-fastin...

There's endless other religious sites I could link to. In India the yogis are known for very long fasts.

You should try to educate yourself on this subject. There is an abundance of information that is only a Google search away.

susan_hall··on Drug dramatically reduces diabetes symptoms in mice
No, the blood would be on the hands of the medical professionals in the clinic, or the owners of the meditation retreat, if for some reason they didn't keep watch on those who might need help.
susan_hall··on Drug dramatically reduces diabetes symptoms in mice
Not eating any food for several days also greatly reduces diabetes symptoms in mammals. I am not clear why this is not the default treatment. If people have trouble with will power then they can always check into a clinic that specializes in fasting. There are thousands of retreats, meditation, and medical clinics that help facilitate fasting. 20 or 30 days without food will resolve most symptoms in most humans.

I've read that in the pre industrial era, humans spent about 10% of their lives facing famine conditions. Our bodies expect a certain amount of starvation. Millions of years of evolution did not prepare us for a world where you can walk into a grocery store and for $8 or $9 get a tub of strawberry ice cream containing as many calories as 2 foxes or a baby antelope (any of which would have taken some work to acquire).

I realize that companies can not get a patent on fasting, so perhaps there is less money in it, but it is still a good option and should be considered for anyone whose other medical conditions do not preclude it.

susan_hall··on Stanford's Women Won Just a Sliver of Silicon Valley
The stories about the backlash against the diversity efforts at Stanford, circa 1994, are what Susan Faludi was talking about in her book "Backlash: The Undeclared War Against American Women" which was published in 1991. That era saw a turning point, as various important factions in USA society withdrew their support from the project of advancing the role of women in society. The encouragement given during the 1960s and 1970s and 1980s disappeared in the 1990s.
susan_hall··on Americans aren't getting married, and researchers think porn may be to blame
Marriage in the USA peaked in 1958. Please see the chart here:

http://www.nytimes.com/2014/12/07/opinion/sunday/the-real-re...

Marriage peaked the same year that male participation in the wage economy peaked. It was also the peak year of the baby boom. It was also the peak year for the wage-to-rent ratio (average rent was only 22% of average wage, versus 32% now). It was also the peak year for wages for males under the age of 25. (Average male wage began to decline in 1973, but the average wage for young males has been declining since the recession of 1959.)

Internet porn was not the problem in 1959, or 1969, or 1979, though the marriage rate, and the birth rate, plummeted during those years. But it is possible that the sexual revolution played a role. Barbara Ehrenreich has a fantastic book on the subject "The Hearts Of Men":

http://www.amazon.com/The-Hearts-Men-American-Commitment/dp/...

Although the marriage rate is now back down to levels last seen in the late 1800s, there is clearly a big difference in people's sexual practice. 41% of all the children in the USA are now born outside of wedlock. The number is comparable to London in the early 1700s (see Will and Ariel Durant's book "The Age Of Voltaire" where they quote the Bishop Of London, in 1719, estimating 50% of all couples with children in London were not married. This was at a time when the English government had decided to suppress marriage among the poor by raising the price of a marriage license to something only the middle and upper classes could afford, thus turning marriage into the ultimate status symbol.)

Marriage has once again become a status symbol. The poor raise children without the benefit of marriage, while the (shrunken) middle and upper classes enjoy the prestige of marriage.

The suppression of marriage in the 21st century is less easy to identify than in 1719, because back then it was an explicit policy of the government, whereas now marriage licenses are cheap. But marriage is a commitment to make things work over the long term, and without a stable job no one can reasonably make long term commitments, nor does anyone want to rush into a marriage that they know will fail, so the poor are left going through life without the benefits of marriage (or you could restate this as: "the poor are left going through life without the benefits of financial stability, which limits their ability to make the long-term commitments necessary to make a marriage work.")

← PreviousPage 3 of 3