Tuesday, December 23, 2008

Help! Atheists Ate My Planet

One of the interesting things about having an eclectic book habit is that sometimes you read two very different books one after another and find they share some unexpected common thread. The two books in question are China Road (ISBN 978-0-8129-7524-6), in which Rob Gifford makes one last road trip through China, debating with himself whether China is about to take over the world or collapse into chaos, and Mythic Ireland (ISBN 0-500-27872-5), in which Michael Dames takes a scholarly look at the levels of Irish mythmaking.

What on earth can these two books have to do with one another?

The blog title gives it away: both lament the state of the environment and blame atheism for the carnage. This is a bit rich coming from a couple of apparent Christians, whose own holy book contains the exhortations to run roughshod over the planet. Christianity sets up an intrinsic animosity between people and the planet, but only the End-Timer extremists are up-front about it. Still, the fact that the most insistent anti-environmentalists, in the United States at least, are also the most dogmatic Christians can hardly be taken as an accident. The Christian/anti-environmental link is old ground, and well plowed elsewhere.

Dames makes the interesting observation that Ireland has present and active in its culture several distinct overlays arriving in successive waves of migration: Mesolithic (hunter-gatherer) and Neolithic (farmer) goddess worship, Bronze and Iron Age Indo-European sky gods, and Christianity. The Irish tendency to repurpose ancient deities as saints (e.g. Brigit, goddess of the flame) is well known: the bulk of the book is an extended and detailed observation that this repurposing has been going on for a very long time, and that some of the very old (7000-2000 BC) traditions still peek through. All well and good, but then Dames tries to make the claim that "Scientific Rationalism" is just another mythic overlay.
The recent appreciation by Popper and others that 'scientific discovery is akin to explanatory story-telling, to myth-making, and to the poetic imagination' places science in the broad mythic field where, in any case, it was born and nurtured.
Hmm...Right there on page 10, you start wondering just how much nonsense you're going to have to put up with. Well, quite a bit, it turns out, although mainly in small enough doses to keep you going. (Dames has a penchant for listing out every possible ancilliary meaning of a word root to prove mythic points.) Where he really jumps the shark, however, is in trying to make the case that it is the atheistic view of scientific rationalism that is degrading the environment. Dames undermines his own case (in typically overblown BS-laden terms):
Since in all mythologies (including the Christian) the individual is a cosmos-in-miniature, a person divided in two implies an equivalent an equivalent split in the macrocosm. Thus the spirit or soul which previously had been united with the body of the world was driven out, leaving behind a soulless mass of gross matter. Animals, plants, rocks, rivers, clouds, stars, sun and moon, were all now denied their share of the divine vitality. No longer were they regarded as living manifestations of the gods, but as a barrier blocking the view of the abstract and immaterial Godhead. This newly despicable world was repeatedly put to the torch at Lough Derg, and is incinerated again at Hiroshima, and in human-induced global warming. The pilgrimage to Ferry House is an Irish version of the Platonic European walk, where the world, as soulless Thing, is treated with contempt.
This may read like an indictment of Christian ethics and a pining for Neolithic morality, but no, this is not Dames' point at all. He pins dualism on the Greeks and the "mythology" of scientific rationalism. "In time, Christianity incorporated this teaching," he acknowledges (as he must since it is undeniable), but fails to clearly see that separating the divine from nature is a Christian idea, not a Greek one. The distiction between mind and body, spirit and flesh, is a part of the older traditions too. It is Christianity that brought contempt for the non-human parts of creation, not Plato, and not the scientific rationalism.
Let's just set aside completely the non-sequitur of equating science with atheism, atheism with amorality, and amorality with immorality.

In the other corner, Rob Gifford observes the staggering environmental cost of China's development, and again, tries to pin it all on those darned atheists. It is a mess of faulty correlations and (again, sigh I do so get tired of this) the equation of atheism with amorality and immorality, as if they were all the same thing. He finds the blossoming of Christianity and other faiths in China a hopeful sign, but if we want to go for faulty correlations, how about this one: the acceleration of environmental degradation in China correlates with the positive uptake of Christianity. If Chinese are lost for ethical underpinnings, is it because they were raised to praise atheism, or because the Chinese government has made a systematic program of tearing down ethical frameworks one after another over the past fifty years, so that the only sane response is skepticism to any ethical pronouncement from authorities? Gifford runs through the program in detail, and then concludes that Chinese no longer believe anything and therefore (hoo, that's quite a therefore!) their atheism provides their justification for doing anything -- lousy health and safety rules, lousy environmental protection, lousy consumer protections, you name it.

None of it follows, of course.

Why do you have to believe in sky fairies to want to have a clean place for your grandchildren to live? Why does the fundamentally rational position that you can't outstrip your natural resources indefinitely need a supernatural justification for action?

Short answer: you don't.

Wednesday, December 3, 2008

Programming in XML Aware Languages

There is a lively debate going on over at xml-dev about whether XML applications should (or can) be programmed entirely in XML-aware languages such as XQuery and XSLT. As is usual in such matters, "performance" is being called on to fight a proxy war for religious ideals. All the usual positions are being trotted out "higher level language can't do lower level things "efficiently" (although in this case, amusingly enough, there are partizans on both sides claiming their favourite is "higher"), and the old "it depends on what your application is doing" chestnut, to say nothing of "if it's Turing complete, it can do anything" crossing swords with "just because it is theoretically possible doesn't make it efficient". All so very tiresome and predictable. We have been here before, boys and girls, many many many times, all the way back to the days of FORTRAN versus assembly (and indeed soft programming versus hard programming before that).

In the interests of full disclosure I should confess that I work for a purveyor of an XQuery implementation, so you might suppose I have a dog in this hunt. I don't really. I have seen the dark side of both extremes. I have seen the "forget the XML: just get me my objects, quick" meme lead to much wasted effort in trying to get a data-binding layer to stop being the bottleneck of the application and the focus of disproportionate amounts of development effort or expense in evaluating, integrating, and cursing third-party tools. I have seen this several times, in fact, and each time it made me crazy with frustration to spend so much effort on something so utterly pointless to the end goal. One project went so far as to pickle XML into binary object structures for storage, with lots of special code to handle cross-platform incompatibilities in that binary structure, which was then rehydrated as pure XML for shipment to the business logic layer of the application. That said, I have also seen the dark side of the "XML is so cool, let's put it everywhere" meme, the god-awful DOM code to deal with what was, at the end of the day, just a handful of numeric parameter settings. Stupidity burns on both sides of this debate. (Sturgeon's law, I think.)

What I find immensely frustrating about such language wars is that the notion that "performance" is a meaningful and useful criteria to use to judge the quality of a programming language goes largely without question. As Pauli famously remarked: That's not even wrong. Performance is a characteristic of a specific implementation of a specific algorithm in the context of specific data. A bad algorithm is a bad algorithm, in whatever language it is expressed. A good algorithm is good in any language. What often gets missed is: A good algorithm applied in the wrong context is also a bad algorithm. (Folks: friends don't let friends waste a good radix sort on ordering three numbers.)

The only tenuous connection "performance" has to "language" is if the language makes it easier to produce a better implementation of an algorithm for the data at hand. Often, "language" here means "readily available, high-quality libraries".

I once saw a very concrete example of this. There was some code written in language X to do some specialized HTML parsing. It was then ported to language Y, which was, in the language ways de jour, supposedly many times slower than language X. Turns out, however, that the ported code ran several times faster. Puzzlement from the local language X partizans ensued. The reason was not too hard to fathom, however: it was just so much easier to write a better algorithm in language Y given the libraries it had on hand that we did. We could have done so in language X, certainly, but no one ever did, because it was too much effort.

Which is to say, it is human efficiency that is at stake most directly here, not computer cycles. Here it all runs into psychology and a great deal of baby-duck imprinting frequently gets in the way: I have always constructed my algorithms in such-and-such a fashion, therefore such-and-such a fashion is the better way to construct algorithms. (The prevalence of such a attitude is example #463 of why software engineering isn't actually an engineering profession. Here is another.)

Programming may be the last bastion for the Sapir-Whorf hypothesis, but with the wonderful realization that we aren't stuck with one native tongue. We get to pick which language suits the task at hand, which gets us back full circle to the debate: some applications are well-suited to being done entirely in a language with XML concerns as a primary organizing principle, and some aren't. Pick the right one for the right task. Or, as my son would say Don't Be Dumb.

Tuesday, November 25, 2008

The Great Vegetarian Experiment

For one of my daughter's classes she has a project to work on one of the "five pillars of health" (is it just me, or does this sound vaguely cultist?) for six weeks. She chose to go without meat for that period, and we decided to be supportive and work on our own "pillars of health" at the same time. We were all worried about whether the "the only good bean is hummus" boy child would make it though, but he signed on, and stuck with PBJs instead of ham sandwiches in his lunch.

So how did it go?

Success: Finally a Pad Thai recipe worth making

I have tried before to make Pad Thai, and the results have always been disappointing. But this vegetarian one from epicurious is really good. Tip: use 1 to 2 T of tamarind paste from a jar instead of mucking about with blocks and pods. But don't skip out on the tamarind entirely: it adds an essential kind of tanginess.

Failure: Life without chicken stock

From the start it was agreed that this was not to be a vegan experiment: dairy and eggs were on the table. Early on we realized that life without chicken stock is too awful to contemplate. We usually have several jars of home-made stock about the place, as well as fish stock in the freezer, and some home-made beef stock intermittently. Yes, you can make vegetable stock (a good corn stock being a great base for chile and chowder), but for most soups, chicken stock turned out to have some essential quality we couldn't do without.

A good cookbook goes a long way

Mollie Katzen's Moosewood Cookbook has lots of excellent vegetarian recipes in it. The vegetarian moussaka and gado gado were big hits. We also leaned on The Greek Vegetarian (spanakopita, some nice salads) and various Indian cookbooks we had lying around the house
(Madhur Jaffrey is my favourite: we have several of her books).

Simple things

Some of the easiest things turned out the best: fondue, cheese/fruit plates, a simple pesto/tomato/olive pasta sauce, veggie burgers, quiche, corn/black bean burritos. Higher on the effort scale, but not that complex: spinach/mushroom/onion calzones, butternut squash raviolis with sage butter, savory crepes (the mushroom with crème fraîche was best).

Biggest surprises

We usually do all our shopping and most of our cooking on Saturday, with the rest of the week being mostly a matter of simple side dishes and reheating tupperware. The biggest surprise (and biggest impediment to doing this on an ongoing basis) turned out to be that a lot of vegetarian recipes just don't lend themselves well to being pre-prepared in this way. Towards the end of the week there would either be a rather disappointing result or a lot of mad scrambling and late dinners. I did not expect this in the least. I expect that more experience and expertise would go a long way to helping here. We've had a lot of years of honing down our collection of (mostly non-vegetarian) recipes to a set that work well with this kind of process; we just haven't got there with the purely vegetarian results. On the other hand, a hunk of beef holds up uncooked better in the fridge (or freezer) for a week than many vegetables.

We don't use a lot of bacon/prosciutto/ham in our cooking, but boy, that little bit makes all the difference in a lot of recipes. Bean soups, pasta sauces, spinach salad, and quiche really lose something without it. Given how little (relatively speaking) we use, I was really surprised that this was the only meat I really missed.

True confessions: Sneaking out for a steak

On the days my daughter was away at dinner, and on our dinner-out Fridays, the rest of us frequently went for the carnivore's fare. But dang! I really like those chicken rajas at La Fiesta.

Final thoughts

Are we about to abandon our omnivorous ways and go vegetarian? Nope. On the other hand, we did discover some great new recipes, and are happy to fold them into our rotation. We have also discovered a willingness (even from the vegetable-hating teen boy) to try more things. All in all, I'd call it a success.

Wednesday, November 12, 2008

We Were Not Asked to Amend the Dictionary

I try to understand the Proposition 8 supporters, I really do. I have read hundreds of blog postings and comments and letters to the editors, and nope, I still don't get it. The recent claims that somehow folks who are pointing out that Prop 8 was all about bigotry and hate is somehow hateful and bigoted still makes me choke on my tea.

Here is my summary of the arguments in favour of this horrid example of the tyranny of the majority:

"It isn't about civil rights; it is about the definition of the word 'marriage'."
The folks who make this claim often follow this with statements about how they support civil unions and giving gays all the same rights and privileges of marriage, but they just don't want the word 'marriage' applied to it.
Response: We were voting on an amendment to the Constitution of the State of California, not an amendment to Webster's Dictionary. The constitution does not concern itself definitions of words that have no impact on the law. Words such as 'marriage' and 'spouse' and 'parent' are scattered about in many places in the legal code. If you really believe that legally redefining the word 'marriage' has no impact on actual rights of actual people, let's try a little thought experiment, shall we? Let's imagine that the vote was to define 'marriage' to only apply to a pair of Zoroastrians. If it is just a word, then why are you so exercised about it?

"Gay rights aren't about civil rights."
For some reason, some blacks get really hot under the collar about any other group talking about wanting equal rights before the law as "civil rights". It isn't a rational reaction, so there's not really a rational counter-argument. There is nothing in the term "civil rights" that says "black rights" and nothing that says it only pertains to sad treatment of black people in this country. There is also the sense, in some circles, that somehow gays "choose" their "lifestyle" so their quest for equality before the law somehow doesn't count. I have never met a gay person who felt it was a choice. In fact, I never met anyone who felt that who they fell in love with was a "choice". You love who you love.

"Radical judges overturned the will of the people."
Our constitutional system was designed precisely to protect unpopular minorities from the majority. It is the job of judges to ensure the law and rights are applied equally to all. If a simple majority can vote to take away rights from one unpopular minority, why not another? Would it be OK to pass a majority vote to forbid atheists from voting? No. Equal protection under the law means equal protection under the law.

"We're just trying to protect traditional marriage."
The folks who make this claim seem to have a very limited view of tradition. Whose tradition did you have in mind? There seems to be quite a tradition of multiple wives, historically and cross-culturally. There is also a fine old tradition of marrying girls barely out of puberty. No, not that one? Saying "the Christian" tradition, doesn't help there. King David? Jacob, Leah, and Rachel? But even if you accept the premise that a marriage between two adults, one of each sex, as traditional: just exactly how does outlawing other people's marriages "protect" such an institution? If marriage is truly such a foundational social and economic building block of our society, we ought to be encouraging gay marriages.

"Churches would be forced to marry homosexuals."
What a stupid idea. Are Catholic churches forced to marry Moslems? No. Why on earth would any rational being suppose that suddenly the state would force rules on the religious rituals performed by churches? Even if someone were to suggest such a thing (and why would they?), it would be such an obvious violation of the US Constitution that it would be shot down instantly (by those 'activist judges').

"Homosexuality is against God's will."
There are, of course, a lot of hidden assumptions and unwarranted conclusions buried in here. Which God did you have in mind? Zeus doesn't seem to have a lot of problems with it. How do you know it is against God's will? Well, OK, Leviticus says it is an abomination and unclean for a man to lie with a man (so...lesbian marriage is OK, right?). But here's the thing: Leviticus says a lot of things about what is unclean: shellfish, bugs (except great locusts), a woman who has just had a baby, skin diseases of certain sorts. (Oh, and here's a laugh: Jacob's marriage -- right out, they're sisters.) It says many things about what is forbidden: eating fruit from a tree planted less than three years ago, eating blood-rare steak, holding a seance. So where is the proposition banning those? Where are the pickets against Red Lobster and the Outback? It also says you shall not oppress your neighbour, but instead love him. So... that part of the Bible, not so important for you? And just because something is written in the Bible, how do you know that makes it God's will? Because the Bible says so? That doesn't even count as an argument, never mind a convincing one. But even if I set aside those objections, the fundamental problem remains: the California Constitution is not a religious tract, California is not a theocracy, and your religious doctrines have no business being enshrined in our law. We are not all Christians here. Making a religious argument for a legal question is a category error. You don't want to marry gays in your church? OK. Done. That has nothing to do with what the law should say.

"It's Adam and Eve, not Adam and Steve."
This is bumper sticker, not an argument. If I hadn't seen it repeated so often, I'd dismiss it out of hand, it is that dumb. But, let's go through it. (1) California is not a theocracy, much less a Christian theocracy. (2) Even if it were, the fact that the first people were a man and a woman has no bearing on the question of marriage. One could just as well say "It's Adam, not Eve" and use that to somehow claim that we should exterminate all women in the world. (3) The Bible isn't exactly clear on the Adam and Eve thing, anyhow: how long were those Land of Nod folks around, anyhow? (4) The Bible is wrong. Sorry, I'm not going to sugarcoat this in politically correct "let's be especially nice to dumb ideas just because they are religious." So: incorrect on the facts, irrelevant to the question, and a category error.

"It's icky. It makes me uncomfortable."
Response: Grow up. Eating meat is icky to some people. Childbirth is icky. Making compost is icky. Your personal squeamishness is not a sound basis for public policy.

"What's the point? They can't have children."
This one just makes me angry. By this reasoning, all post-menopausal marriages should be outlawed, all post-vasectomy marriages should be outlawed, and probably all marriages involving contraception should be outlawed. And just because you can't see the point, what gives you the right to judge whether that couple has a reason to get married? There are plenty of reasons to want to get married, and children is just one of them. Reproductive plans of the married couple are none of your business and none of the state's business. But the fact is, gay couples can and do have children via adoption and artificial insemination. Forbidding those children's parents to be married just leaves them vulnerable. Yes: it harms children.

"It's harmful for children."
Well, given that the effect of the ban is harmful to the children of gay couples, I'd expect to see some really compelling evidence that the mere presence of gay marriages harms children by the folks making this claim. But there is none. Canada has had gay marriage for some years now, and there is no evidence anywhere that the children of Canada are suffering thereby. Tied up in this is a confusion between pedophilia and homosexuality, which have nothing to do with one another. You want to protect children from sexual abuse? Look in the mirror, Catholic church.

"Where will it all end? Next thing you know we'll have multiple wives and people marrying their pets!"
Whew. Finally finally something resembling an actual rational argument, although not, in fact, a very strong one. Slippery slope arguments always assume that there can be no rational reason to draw a boundary at all, once you decide against the current boundary. But in this case, it isn't so. There are rational reasons for disallowing polygamy: in practice it leads to coercive marriages involving young girls, maltreatment of young boys (aka rivals), and using additional marriages as a means to publish and control existing wives. There are rational reasons for disallowing "marriage" to pets: a non-sentient being cannot enter into a legal agreement willingly. Where these reasons differ from the reasons put forward for outlawing gay marriage is that they are civil arguments, not religious ones, and therefore actually have a valid place in the consideration of public policy.


All in all, Prop 8 was a scurrilous attack on not just civil rights but human rights, our constitutional principles, and families, and the arguments in favour of it are all absurd. I'm ashamed of my state, and I'm angry. There's a part of me that wants to go picket the Mormons and insist that if the Roman Catholic Church wants to inject its peculiar brand of bigotry into our Constitution then maybe its time to start paying some taxes in our state too. Fighting hate with hate is not a way forward, but the folks who are now saying that "the people have spoken" and "get over it" need to understand that when you vote to remove rights that people already have, the anger isn't going to go away. This is not just another defeat at the polls. I have some confidence that the California Supreme Court will do the right thing and recognize that a majority vote to remove fundamental human rights is an illegitimate act under our Constitution. We'll see.

Tuesday, November 11, 2008

Recent Reading

Charles de Lint, Moonlight and Vines
ISBN: 978-0765309174



I admire Charles de Lint's writing immensely. As a prose stylist, you could do worse. Far worse. He has a wonderful eye for detail in drawing his settings and people, and a deft touch in drawing together the natural, the urban, and the supernatural. His characters are interesting, the kind of people you wished you were sitting down in a coffee shop with. Still, there was something dissatisfying about this collection of interlinked short stories. It is like listening to some of Glenn Gould's records: after the zillionth etude your mind rebels and craves either something really different or some larger overarching structure. Something with the size of a symphony shouldn't should like the same little thing over and over. This book strikes me the same way. Each story was fine by itself, and many were very fine indeed, but the interlinked characters leads you into wanting something more akin to the structure of a novel, and it just isn't there. De Lint attempts to draw the book together by making the last story circle back to the first, but it is very unconvincing. The last story isn't, fundamentally, a story. It reads like a 2am confessional from the author. The characters in it bear little relation to the ones introduced in the first story. Still, worth reading. Just read it in pieces.

Barbara Robinette Moss, Change Me Into Zeus's Daughter, A Memoir
ISBN: 978-0743202190



This is eight tenths of a fantastic book. Moss recalls her appallingly poor childhood as one of seven children of an alcoholic and violent father. What makes it only a partial success is that Moss writes towards an ending where she gets her terrible teeth fixed and emerges swam-like into her new beautiful reality. But the suffering because of her teeth isn't the central thrust of the narrative, we don't get any of the payoff of the emergence, and honestly, the most interesting thread of this story is her mother. Here is a woman who has records with her own voice recording on, who has a love of learning and reading and poetry which she somehow manages to pass on to her children under the most appalling circumstances, who holds the kids together as best she can, and sticks with an terrible husband through thin and thinner, but who finally, finally breaks free. And we get that story only in glimpes. The moment when Moss' father, now remarried in a more stable (emotionally and financially) environment refuses to help with her educational fees is set up as some kind of key emotional moment, but it looks whiny. What did you expect? The moment that we didn't get a good view in was when Moss' mother finally leaves the bum. One of the most heart-rending moments for me, in part because it is told with such flat affect, was when the children destroy the mother's records by tossing them around the yard like frisbees when they are to be left behind in yet another forced-out-again move. What must she have been feeling at that moment? How does hope die? How, after all that, do you finally decide enough is enough? Why? All unanswered, alas. Still, a good and moving read.