The Future of Javascript

I went to Rick Waldron‘s talk at Bocoup on The Future of JavaScript (ES6), and made a video recording. Here it is:

Takeaways from the talk for me:

  • JavaScript will be getting many new features that make it more attractive to write in — e.g. block scoping, weakmaps, sets, rest and spread parameters, default parameters, fat arrow syntax, and many other uses of syntactic sugar that I recognize from CoffeeScript — but it’ll take a few years before we can use them in client-side code reliably.
  • But if you’re writing for Node, you can start using them now with node --harmony.
  • Traceur can compile ES6 to ES3.
  • Continuum is a full ES6 VM written in ES3.

Celebrating seven years with seven percent

(This is a joint blog post with Madeleine.)


Loiturerei village, Kenya. Taken by UK DFID, CC-BY-SA.

Today is Giving Tuesday.  It’s a great idea. Here in the US, something feels odd about following our national day of giving thanks (Thanksgiving) with the consumerism of Black Friday, Small Business Saturday and Cyber Monday. As we shop to find gifts for those we love, we feel it’s also important to celebrate giving to those we don’t know, who need it most. We hope this post inspires others to give more and to celebrate giving.

For several years now we’ve celebrated our wedding anniversary by giving a percentage of our yearly pre-tax income to charity — a percentage determined by the number of years we’ve been married. This year that percentage is 7%. Our 7th anniversary was October 29th, but we’ve waited to hear from our favorite source for charity advice, GiveWell, to make their yearly recommendations. Luckily they did this yesterday, giving us the opportunity to post this today.

This year we are closely following GiveWell’s advice and giving 90% of the 7% to three charities: GiveDirectly, Against Malaria Foundation (AMF), and the Schistosomiasis Control Initiative (SCI). (The remaining 10% will be decided later, and will probably be advocacy and other nonprofits that may not be highly effective, but are close to our hearts.)

50% to GiveDirectly (3.5% of our annual income)

GiveDirectly is GiveWell’s only new recommendation this year, and we think it’s one of the most interesting charities out there. Its method is simply this: find the poorest people in Kenya (here’s how they do that) and give them money through the M-PESA money network.

There are all kinds of reasons why simply giving money to poor people directly might not be the best we can do (they might spend it on something we’d rather they didn’t, for example) but it does avoid the money’s impact being diluted by corruption or overhead.  More importantly, GiveDirectly will be quantifying how much it helps. They will follow up with the recipients over the next year — using a randomized control trial for which they’ve pre-published the survey and analysis plan.

We’re hopeful that better interventions exist than GiveDirectly.  But we want their project to succeed because it shares the commitment to measuring outcomes that we think is vital, and it can serve as a baseline to compare other charities to in the future (i.e. “Can you do something that creates more improvement to lives than GiveDirectly? Prove it.”).

30% to Against Malaria Foundation (2.1% of our annual income)

AMF distributes insecticide-treated nets for protecting against malaria infection. GiveWell estimates the cost per life saved is just under $2,500. Malaria is not usually fatal, so there is also a fair amount of disability due to illness is also being prevented.

10% to Schistosomiasis Control Initiative (0.7% of our annual income)

GiveWell thinks that this charity — which concentrates on the “Neglected Tropical Diseases” (usually worms/parasites) — offers an extremely effective intervention at improving DALYs (see below). This is because the infections they focus on are readily treatable using very inexpensive drugs, yet often come with debilitating symptoms that don’t quite kill the “host”.


For You! Taken by Nomadic Lass, CC-BY-SA.

Donating effectively

It’s hard to list all the reasons people choose to give, or do not. One issue we’ve seen raised is the belief that “charity doesn’t work”. We believe that simply isn’t true. It may be true for some — many — perhaps most! Government-managed foreign aid especially so: it’s only around 1% of the US budget and mainly goes to political allies. But there are non-governmental charities that demonstrate real improvements, and GiveWell supports these. Giving can work, but it’s important to find effective giving opportunities.

And for that reason, we waited for GiveWell’s latest recommendations. GiveWell looks for organizations that maximize the improvement to lives caused by each dollar you’re giving.  This seems like it should be uncontroversial, but it’s not yet common to think about giving this way.  Perhaps one reason for this is that it requires a way to measure outcomes and compare them against each other, and that’s very difficult.  GiveWell is doing a fantastic job trying to do this all the same, though, using tools like the Disability-Adjusted Life Year (which is a measure of health that’s better than just measuring how long people live), randomized control trials, and the kind of statistics knowledge you have when you’re a charity review organization that was founded by a bunch of ex-quants.  (A Businessweek article referred to GiveWell as Hedge Fund Analytics for Nonprofits.)

A second reason people are sometimes reluctant to think about donating effectively in this way is that for most of us, it’s going to involve donating to people far away instead of in our local communities.  The price of living here in Boston, MA is very high, both for rent and food — in contrast, more than a third of the people in the world live on less than USD $2/day (most people don’t realize that this number is adjusted for the purchasing power of goods and services in the US!).  When trying to decide whether to donate locally or globally, it’s clear that our money can do much more good in other countries than here in the US.

A third reason that people are reluctant to give to maximize outcomes is that we don’t have the same emotional connection to people across the world as we do to an individual call from help from someone that we can see — counter-intuitively, studies such as this one show that people have a strong bias towards giving more money to help a single identifiable victim than to help many “statistical” victims.  The Internet has helped to reduce the effects of this emotional bias, with sites like Kiva giving a name and face to the global poor. Perhaps GiveDirectly could benefit from adopting a Kiva-style interface itself.

Closing thoughts

Each year we ratchet up the amount we give, and this year has brought us a new financial development: our first child. When people learn about our annual tradition they wonder how it will scale — will we be doing this on our 20th? Our 50th? Our 101st? (We hope to have that last problem!) As Yogi Berra said, “It’s tough to make predictions, especially about the future.” We know the responsibilities of parenthood will demand more of our finances, and balancing that with wanting to help others will be a lifetime project. Tithing (10%) is a very common tradition, and we want to at least reach that. Maybe we can go beyond it. For now we’ll take it one step at a time, and try to give a little more each year.

OLPC’s Reading Project

CNN is running a short video on our Reading Project in Ethiopia, which I’ve been working on this year alongside XO-4 software development.

The team’s far larger than just OLPC staff — we’ve been fortunate to work on the project with Maryanne Wolf and her team at the Tufts University Center for Reading and Language Research, Cynthia Breazeal and team at the MIT Media Lab, and Sugata Mitra at Newcastle University.

(There’s also a Technology Review article with slightly more information, and an OLPC SF conference talk video that goes more in-depth.)

Where to take photos in Shanghai

I’m back from OLPC’s two-week trip to Shanghai for the factory bringup of our XO-4 Touch laptop. It was a successful bringup; the prototype laptops are making their way out to developers now.

One of the reasons I look forward to these trips is the chance to get to hang out with my Taiwanese coworker Gary Chiang, who’s both an extremely talented engineer and an amazing photographer.

Before we got to Shanghai, I tried to look online for places to go to take photos during the downtime on our trip, but I mostly just found pointers to the standard guide book places. Gary took me to a bunch of excellent places that weren’t in the guide book; I’m writing about them here so that maybe you can go too. (All photos are available under CC-BY-SA 3.0.)

1933 Shanghai Slaughterhouse (虹口区沙泾路10号)

This is an Art Deco concrete slaughterhouse for cows, designed by the British architects Balfours and built in 1933. It’s been restored and converted into a space for creative companies as well as cafes. Lots of people come here to take photographs; pre-wedding shoots, cosplayers, everything. It’s got a strong M. C. Escher feel, with narrow “skyway” walkways going between the different floors.

Gary has an interesting theory that architects do their best/riskiest work in foreign countries, where they’re mostly immune from criticism by their own country’s media; no-one cares if your wacky art deco concrete idea doesn’t work as long as it’s not at home.



More photos in this set.

Shanghai Film Park (松江区车墩镇北松公路4915号)

This is one of China’s largest active outdoor movie studios, with impressively open access — you can walk around previously-used sets as well as people on shoots. There are all kinds of “fake” buildings: a church, prison, boat, train station, an “old Shanghai” area, big western houses, and lots of very old cars.

In the final shot below there are extras eating lunch on a break from their shoot.




More photos in this set.

Tianzifang (田子坊 泰康路艺术街)

Tianzifang’s a preserved shikumen residential area, with high terraced houses and narrow alleyways, now used as a mix of housing and art/crafts/tourist shops. It’s very touristy in recent years, but still worth seeing.



More photos in this set.

Zhujiajiao (朱家角)

Zhujiajiao is an ancient (about 1700 years old) water town: a town built around the intersection of different rivers. It took me a while to figure out that some of the best things to see in Shanghai are small trips (40 minutes by car) away. Zhujiajiao is one of the smaller water towns, which has the advantage that it’s not packed with tourists.


More photos in this set.

50 Moganshan Road (莫干山路50号)

The center of contemporary Chinese art in Shanghai, it’s a warehouse complex converted into studio and gallery space. Lots of street art nearby, too.




More photos in this set.

DISKDRV

My OLPC colleague Samuel Klein is the proud new owner of this amazing art car. Jealous! It’s a 1989 Honda Accord with floppy disks, processors, and keyboard caps all over it. More info here.




Red Bull Cliff Diving Boston 2012

Mad, Phineas and I had a fun Saturday watching cliff diving from Boston’s Institute of Contemporary Art, 80 feet above the ocean. It’s 2.5 times the height of the highest olympic dive (which is 33 feet) — the divers hit the water at around 60mph, and have to enter feet first to avoid injury (one competitor still had to pull out of the final due to injury). The crowd was huge, around 45,000 people. Photos are all CC-BY-SA 3.0; the bottom photo was post-processed by Mad from one of the continuous-burst sequences I shot:







Phineas

Our son (and first child) arrived on Thursday! Phineas Charles Ball was a bit early (although not early enough to be technically premature) at 37 weeks 3 days. He’s healthy and on the large side for his gestational age (the size of a 38.5 week baby). More photos in this Flickr set.


T+2 minutes


Birth weigh-in


Happy new parents


Swaddled


Getting ready for car ride home from hospital


Home at last!

Boston Dragon Boat Festival 2012

All photos are CC-BY-SA 3.0, and there are more in this Flickr set.



Wellness Warriors


Harvard Dudley: Athena boat crosses first!


Dragon Dance: The dragon enters


Dragon Dance: The dragon circles


Dragon Dance: The dragon rises


(the pink wig is to blend in with the female rowers)


Harvard Dudley: Athena from above

Photowalk in Boston, 2012-05-27


Dog tag memorial


Turn to clear vision


Portrait 1


Dave trains a new Leica shooter


Portrait 2


Memorial Day flag tribute on Boston Common

Whale watching, Boston 2012-05-26

All photos are CC-BY-SA 3.0, and there are more in this Flickr set.

Update: I did some color correction (on half of the images) and I think the difference is pretty stunning. Mental note: if you take photos on a hazy day, play with compressing the curves afterwards.


Spirit of Massachusetts


Just a nose


Breach!


Dive down


Another breach


Whale tail


Codzilla!