Saturday, March 30, 2013

Easter weekend reading

There is some sort of magic substance in chocolate-covered marshmallow bunnies, that's all I know...

Fuelled by the yummies, here's a few things I'm reading

  • Bravo to Meagan Marie for speaking out: What Would You Do if You Weren't Afraid?
    The treatment and representation of women in gaming has come to a head this past year, and I know some of you are tired of hearing about it. I’m tired of living it. I want to feel safe and valued as a member of this industry, whether I’m conducting an interview, talking to fans on a convention floor, or cosplaying. And I have a right to that. I’m not afraid anymore.
    Carol Pinchefsky also has good coverage in Forbes: Really? IGDA Party At GDC Brings On The Female Dancers
    The Game Developer Conference is full of fun, with hands-on demonstrations of unreleased games, talks from the developers, and day-long workshops designed to cram as much information into our game-soaked brains as possible. But not every event is as enjoyable as the others
  • Next week is the 10th USENIX Symposium on Networked Systems Design and Implementation (NSDI ’13). The program is here, and it looks superb. I'm looking forward to studying all of this work in detail, such as the FAWN team's work on optimistic cuckoo hashing and the Eiger project on causally-consistent replication.
  • The battle over global-scale cloud platforms is intense, with the news that EBay/PayPal are abandoning VMWare for OpenStack and Netflix announcing a contest for improving cloud computing. Meanwhile, Joe Masters Emison wonders whether the industry is standardizing and consolidating too soon: How Netflix Is Ruining Cloud Computing
    Locking yourself down to AWS today, for greenfield cloud architectures, would be the equivalent of deciding to develop an iPhone-only application when you know you'll have to support iPads, Android and others in the future
  • The best description of the SpamHaus/CyberBunker incident appears to be from CloudFlare: The DDoS That Almost Broke the Internet
    Then the attackers changed their tactics. Rather than attacking our customers directly, they started going after the network providers CloudFlare uses for bandwidth. More on that in a second, first a bit about how the Internet works.
    Professor Ed Felten of Princeton offers some additional observations here: Security Lessons from the Big DDoS Attacks
    Attackers will strike where the defenses are weakest, and defenses are often weakest where the incentive to defend is lacking.
  • We happened to drive across the Benicia bridge a few weeks ago, and I noticed that there's barely a dozen hulks left of the once-immense "Mothball Fleet". If you have no idea what I'm talking about, start here: Inside the Ghost Ships of the Mothball Fleet
    On subsequent trips, we spent the entire weekend aboard the ships, each time on a different row. Because they are tethered closely together in rows, we had many ships to explore—enough to keep us occupied for a week or more if the excursions were not so draining and we did not have jobs pulling us back. But the main reason we stayed all weekend is simply because it was such a challenge to get out there.
  • Great article from the MemSQL blog: Common Pitfalls in Writing Lock-Free Algorithms
    How to write a correct lock-free stack

    Most of the above problems have many different solutions. Here I’ll describe the approaches I use at work for our lock-free stack.

  • Distributed systems take debugging to a whole new level. Pindi Albert takes us through a great example: Debugging a race condition with client-side load balancing, and I love the description of the Ah-HAH moment:
    While doing some routine development one day, I accidently reproduced the issue on my local machine. This was a significant breakthough; until now the issue had only surfaced on production machines where many variables complicate debugging.
  • It is sadly true that most government regulations are actually written by members of the industry being regulated; this article in Washington Monthly digs into a recent example: He Who Makes The Rules
    But the executives stood their ground. Their lawyer quietly referred Chilton to the end of the sentence in question: as appropriate. Those two little words, the lawyer said, clearly modify the verb “shall.” Therefore, the statute can be interpreted as saying that the commission shall—but only if appropriate—establish position limits, he explained.
  • Professor Michael Mitzenmacher explains why the Weev verdict is problematic: Update: Andrew Auernheimer Watch. As Justin Peters notes in Slate:
    While the specifics of the charges in each case differ, all three illustrate the unfortunate plasticity of the CFAA, and how it can be shaped and contorted to cover almost any computing-related actions.
  • Fred Wilson of Union Square Ventures describes the way that most startups end: When Things Don't Work Out
    In this scenario, the company runs out of cash and there is no more coming from the investors. The company cannot sustain itself and one of two things happens. There is a fire sale or an acqui-hire, or there is a shut down. The fire sale is the preferred outcome and VCs and entrepreneurs have gotten pretty good at finding homes for the teams in recent years. There is such a vacuum of talent out there that a fire sale can often be arranged just for the talent that a company has assembled. But often the fire sale cannot be arranged and the company has to be shut down.
    What Wilson doesn't really discuss is the sad fact that, in most of these cases, the investors and executives do just fine, but that "talent" that the company has "assembled" finds that they've given years of their lives to an effort that returned the favor by telling them how lucky they are just to have jobs. Oh Bryan, don't dwell on those lessons; let's just go back to celebrity star-gazing and glorifying the lucky few.
Hey, it's a nice weekend, and my grand-daughter says it's time to walk the dog. So get off that computer, Bryan, and get outdoors!

Wednesday, March 27, 2013

BioShock Infinite: a very short GUEST review

From an official family playtester, after a whopping 24 hours of time with BioShock Infinite, comes this:

It's not an "open world" like Skyrim...so Skyrim still takes the cake in that regard.

But the detail is incredible!! I mean...my character is strolling down the city, there are kids running around chasing confetti, playing with each other, balloons are making shadows...that are realistic....and then I walk around a corner and a trolly car pulls up, with a quartet a capella group, singing a song....not just a short bit, but a full song...and the automated 'drone' other citizens (NPCs) start walking up to the trolly and dancing, listening to the music. and the singers, they're moving! they're dancing and giving it soul! So i waited until their song was finished and kept walking on by.

I played for maybe 2 hours...and moved 5 minutes toward a mission.

There are people interacting with me in ways that have never been done before (except in Skyrim).

You know where a NPC talks at you, but doesn't engage you in a conversation...so if you stop and listen, you'll get a tip or quest...yeah

It's a deeply layered game, and I already love it.

Gotta hurry up and finish me that Kingdoms of Amalur, don't I ?!

Age, by Bryan

In my teens and twenties, I was never tired. I went for days on end with barely 4 or 5 hours of sleep, reading everything I could find, studying everything around me, talking endlessly with all the other people I met.

In my thirties and forties, I was sometimes tired, but I still motored on. As long as I remembered to watch what I ate and drank, I still had lots of energy, which was good, because as kids came along there was so much more to do.

In my fifties, I find that I am often tired, and simply willing myself to go at the same pace doesn't seem to work anymore. Luckily, though, I am still quite healthy, and I'm able to do things efficiently. I've learned to get my work done very effectively, leaving a fair amount of time for the other things in my life, but I still end each week with a longer to-do list than I started with. I can't play soccer three times a week like I used to, nor do I seem to bounce up and down the stairs like I did, but those are only minor disappointments.

I know that this progression will continue. The important thing is to continue to learn to get the mandatory things done as quickly and effectively as possible, to leave as much time as I can for the things that matter (like losing to my granddaughter in Finca, Acquire, or SmallWorlds).

Our 95-year-old neighbor doesn't remember our names anymore, but she still has a beautiful smile and a kind word. We don't get to control everything in our lives, but I'm surely grateful for all the blessings I've received.

Tuesday, March 26, 2013

Some versioning theory

As the old saying goes:

In theory, theory and practice should be the same. In practice, however ...

As is no surprise, when I get interested in something, I like to understand both the theory and the practice. By temperament, as it turns out, I'm much more of an engineer than a theoretician, so it typically turns out that I spend much more of my time understanding the practice than the theory, but I do make my efforts to comprehend the theory behind what I'm doing, whether that be concurrent programming, database storage systems, compilers, networking protocols, distributed object systems, etc. (those being some of my major interests over three decades of computing).

Anyway, my current interests are in the area of version management, so I find myself once again looking for information on both the practice and the theory of versioning.

So I've been spending a lot of time recently catching up with a fascinating project being conducted by Microsoft Research: Concurrent Revisions.

The Revisions project introduces a novel programming model for concurrent, parallel, and distributed applications.

At first, it might not be obvious why this is relevant to version management software, but the research team explain:

To simplify this problem, we introduce a novel programming construct called “revisions”, which is inspired by revision control systems commonly used by development teams. Revisions are forked and joined much like asynchronous tasks. However, rather than accessing global shared data directly (and thereby risking data races or atomicity violations), all revisions execute on a (conceptual) copy of the shared state, a "global mutable snapshot" so to speak. Any changes performed in a revision apply to that snapshot only, until the revision is joined at which the changes become globally effective.

This is, actually, a fairly radical idea, as they explain in their foundational 2010 paper presented at the OOPSLA conference: Concurrent Programming with Revisions and Isolation Types

Note that our use of revision diagrams to reason about program executions is a marked departure from traditional concurrency models such as sequentially consistent memory or serializable transactions, which reason about concurrent executions by considering a set of corresponding totally ordered sequential histories. These traditional models make the fundamental assumption that programmers must think sequentially, and that all concurrency must thus be ‘linearized’ by some arbitration mechanism. However, such arbitration invariably introduces nondeterminism, which may easily present a much larger problem for programmers than direct reasoning about concurrent executions.

I love looking at the revision diagrams in their paper, unsurprisingly, I guess, since I think that tools like the Perforce Revision Graph Tool are extremely powerful ways to comprehend complex information in a visual form.

And since I, myself, have found that my career has moved from starting with a deep fascination with and understanding of sequentially consistent memory models and serializable transaction models, on to my current fascination with version management, asynchronous replication, and conflict resolution, it is probably no surprise that I find the Microsoft Revisions project so worthwhile.

However, since the project was started, the team have gone on to flesh out their ideas in considerable detail, and have explored the use of the techniques in other problem domains beyond the original game-programming arena.

For example, last summer they presented work at ECOOP: Cloud Types for Eventual Consistency.

Our system uses revision diagrams to guarantee eventual consistency, as proposed in [ S. Burckhardt, M. Fahndrich, D. Leijen, and M. Sagiv. Eventually Consistent Transactions.]. Conceptually, the cloud stores the main revision, while devices maintain local revisions that are periodically synchronized. Revision diagrams are reminiscent of source control systems and provide an excellent intuition for reasoning about multiple versions and eventual consistency.

Providing adequate programming models for eventually-consistent storage systems is a very important topic nowadays, and the Microsoft Revisions team is doing some fascinating research. Their most recent work in this area is brand new this week: Understanding Eventual Consistency

At the moment there is a lot of confusion about the semantics of eventual consistency, as different systems implement it with different sets of features and in subtly different forms, stated either informally or using disparate and low-level formalisms.

Thank you Microsoft, for sponsoring this research, and for enabling the team to freely share their work with the world. It is much appreciated by people like me!

I'm looking forward to digging through their results in detail, and to continuing to follow their research as it progresses.

Sunday, March 24, 2013

Go Magnus go!

We're halfway through the 2013 Candidates Tournament, and it is going very well, I think. The games have been fascinating and very hard fought.

As Dylan McLain noted in the New York Times: Change in Title Format Forces Switch in Strategies

The Candidates Tournament to select a challenger to face Viswanathan Anand for the world chess championship began on March 15 in London, and it has proved one thing: A single event beats the elimination matches that have most often been used since 1965.

Vinay Bhat sums up the first half of the tournament: Thoughts After One Trip Through the Lineup

At the halfway point, Carlsen and Aronian are ahead of the pack on +3 (5/7). Nobody else even has a plus score, while the elder statesmen among the group (Ivanchuk and Gelfand) are on -2 (2.5/7).

As for me, I'm sticking with my predictions: Kramnik is going to make a run, but he can't close the gap. Aronian will stay close, but ... let me say it again:

Magnus is coming!

Or, as The Week In Chess noted in their summary of round 7

Magnus Carlsen wound up the tension against Teimour Rajdabov creating a very sharp position where he was eventually going to allow a strong kingside attack. Things went wrong for him but probably not quite to the extent that the computers said. Carlsen was well prepared to sacrifice the exchange as he did and he did get more than enough compensation. Carlsen thought he ought to be much worse but only by slow play with something like 25...Be7. Rajdabov's 25...f2 looked like the winning idea but Carlsen found a lot of counterplay. A fascinating yet flawed game that shows just how confident Carlsen is in his own abilities and perhaps provides a better insight into the way Carlsen tries to drag his opponent into trouble than games where this works out.

Madness!

OK, now, tell me (and be honest):

Do you know anybody, who knows anybody, who knows anybody, who picked Florida Gulf Coast University to make the Sweet Sixteen in their bracket?

I've never been to Fort Myers, and may never go there.

But everyone in America is an Eagles fan this weekend!

Saturday, March 23, 2013

A Glorious Defeat: a very short review

Somewhat unexpectedly, Timothy Henderson's A Glorious Defeat: Mexico and Its War with the United States found its way to my nightstand.

Henderson's book is history, but with a different technique, as Henderson isn't interested in the usual approach to a history book about a great war:

even though the book ostensibly is about "war," it spends relatively little time detailing military maneuvering, focusing instead on political and diplomatic maneuvering. This is not to suggest that the mechanics of warfare were irrelevant; it is, rather, to suggest that an examination of how and why Mexico and the United States went to war sheds light on the conflict's real significance.

The other aspect of Henderson's approach is to try to look as deeply into Mexico's side of the conflict as the United States's side. As my mother used to remind me, "it takes two to fight," and one of the fascinating questions is why this war occurred, when there were so many ways that the conflict could have been resolved otherwise.

As Henderson explains, Mexico's behavior can be understood both culturally and politically, once you reflect on the dynamics of the United States at the time (expansionism and a looming conflict over slavery), and once you spend more time understanding the internal complexities of Mexican society in the years leading up to the war:

the rational strategy was unacceptable for two reasons: it would have been tantamount to recognizing the right of the United States to expand its boundaries almost at will, imposing its racist vision everywhere; and it would have necessitated compromise with political opponents. Given those realities, the desperate glory of death on the battlefield seemed preferable to the ignominy of compromise and surrender.
Thus does Henderson term the result a "Glorious Defeat."

One of my favorite parts of the book was the color Henderson brings to the story. Both sides were full of larger-than-life characters, and the stories of the U.S. principals have become legend: Sam Houston, Stephen F. Austin, Andrew Jackson, Ulysses Grant, Zachary Taylor, etc.

But the characters on the Mexican side were just as fascinating, or even more so, and Henderson does a wonderful job of bringing them to life.

One of the most significant, of course, was Antonio Lopez de Santa Anna, who played many roles in Mexican society of the time: military leader, politician, banker, rebel. Santa Anna, at various times, found himself on almost every side of every issue; amazingly, he was President of Mexico eleven separate times. Henderson fills his book with the rich tales of Santa Anna's escapades; it's fun just to look at the index entries for Santa Anna at the end of the book:

Santa Anna, Antonio Lopez de
  • amputated leg of
  • in battles
  • character of
  • in exile or retirement
  • heroic status of
  • Jackson's meeting with
  • as Mexican president
  • in political rebellions
  • Trist's bribery of
  • wealth and estates of

Just reading through that list should give you a great idea of how this book flows, and how compelling a story-teller Henderson is.

If you're a history buff (or even if you're not), and you're interested in one of the most important stories in the modern history of North America, you should pick up this book. I think you'll enjoy it, and you'll come away enlightened and more knowledgeable, which is just what a history book should achieve.