Just a place to jot down my musings.

Saturday, April 28, 2012

Strings, branes, and all that

 I came across a few articles today on Plus, an online mathematics magazine, which presented some of the basics of theoretical physics—string theory and M-branes in particular—in a simple, accessible way. If you’re interested, a good way to do this would be to start “From Newton to Einstein and beyond” and to try “Tying it all up” before you “Meet the mother theory”. 


Of course, the hard math underlying all these theories really is essential if you want to grok this stuff. I would recommend Sir Roger Penrose’s The Road to Reality, about two-thirds of which is spent in actually explaining the math behind such things as general relativity. Stephen Hawking wrote in A Brief History of Time that his editor warned him that every equation he put in would scare away half of his readers. By this metric, Sir Roger’s editor was probably content to have an audience of five. Including himself. (I’ve worked through less than a third of the book so far!) The Road to Reality tries to cover, quite literally, everything. Reading it will do to your mind what diving into a P90X training program will do to an obese Indian bureaucrat’s body.



Sunday, April 1, 2012

If you're stuck on a problem

This is a profound statement by Robert Pirsig, from Zen and the Art of Motorcycle Maintenance:
An egoless acceptance of stuckness is a key to an understanding of all Quality, in mechanical work as in other endeavors.


Friday, March 30, 2012

How does knowledge grow?

The Name of the Rose is a staggeringly marvelous book that has just about everything imaginable in it; insofar as this is true, it is a veritable bestiary of literary and theological ideas about pre-Renaissance Europe. Like the Sanskrit mahākāvyas, it has everything; but it is nevertheless novel in that it questions the pre-existing order in ways that older, more conservative works don’t.
For now, I wish to point out a fascinating passage from the book, addressed to the reader by the narrator Adso:
Learning is not like a coin, which remains physically whole even through the most infamous transactions; it is, rather, like a very handsome dress, which is worn out through use and ostentation. Is not a book like that, in fact? Its pages crumble, its ink and gold turn dull, if too many hands touch it.
This passage would have caught my eye on most days, given that it strikes me as (understandable but) entirely wrongheaded, but it struck me all the more forcefully since I had earlier been translating some Sanskrit subhāṣitas. Specifically, this one:

Thursday, March 29, 2012

“The Limits of Science”

This is somewhat dated, but since I just saw a copy of Stephen Hawking and Leonard Mlodinow’s new book, The Grand Design, on the latest hypotheses of cosmologists, in the window of my favorite bookstore, I thought I would put this up. Hawking and Mlodinow state that the latest pet theory of the cosmologists, M-brane theory, establishes the absence of God. The Economist took a very dim view of this in its rather harsh critique of his book, and then followed up with another post on the same controversy.

I should mention that I haven’t read Hawking and Mlodinow’s book yet, so I cannot fairly comment on its content or arguments.

Along similar lines, here’s a short, interesting article on the limits of science, titled “On the Limits of Science”. While pointing out that scientific endeavours, by their very nature, are likely to posit incomplete, inaccurate models, the author concludes (correctly, in my opinion, at least with regard to a very wide class of phenomena) that
the shortcomings of science do not make it rational to believe cranks instead. It’s a fair bet that many of today’s scientific beliefs are wrong, but only your grandchildren will know which ones, and in the meantime, science is the only game in town.
Whether scientifically investigable phenomena are the only kinds of phenomena there are is of course an entirely different question—and one that is not itself subject to scientific investigation. (You may therefore either dismiss it as an entirely meaningless question, or hold it up as proof of “the limits of science”.)

“Is wealth alone happiness?”

nidhi cāla sukhamā
rāmuni sannidhi-sevā sukhamā
nijamuga palku manasā

dadhi-navanīta-kṣīramulu rucō
dāśarathi-dhyāna-bhajana-sudhā-rasamu rucō

dama-śamamanu-gaṅgā-snānamu sukhamā
kardama-durviṣaya-kūpa-snānamu sukhamā
mamatā-bandhana-yuta-nara-stuti sukhamā
sumati-tyāgarāja nutuni kīrtana sukhamā


I should begin by admitting I don’t actually know Telugu! However, the lyrics of Tyāgarāja use enough Sanskrit that I can usually figure out what’s going on. If I get something wrong, please tell me and I’ll change it.


This beautiful song, said to have been composed by Tyāgarāja in response to royal pressure, contrasts the pleasures of the material world with the pleasures of immersing oneself in the Divine (for Tyāgarāja, the form being Rāma in this case).


What’s the greater joy: wealth alone,
Or proximity and service to Rāma?
Tell me honestly, o Mind!

Friday, March 9, 2012

Call me a nerd, but this is awesome

A team from Sapientia University, a Hungarian university located in Transylvania, Romania, has released some totally amazing videos on YouTube, in which a row of dancers demonstrate different sorting algorithms.
I’m in a bit of a rush right now, but I’ll put up descriptions of, and code for, the algorithms as soon as I find time. (Yes, I know Wikipedia already has excellent information on all these sorting algorithms—and others! But points for effort, no?) For what it’s worth, I sorted this list of algorithms into alphabetical order using manual bubblesort.

This actually reminds me of Neal Stephenson’s Anathem, where monks solve problems in differential geometry by using dances to represent raising and lowering indices, tensor contraction, and the like. (Yes, I am a nerd.)

Updated:
Here’s a little bit on quicksort and insertion sort, the first two that come to mind. I’ve written up the code in Haskell because (a) Haskell is great to code in if you’re lazy, and (b) Haskell code looks like pseudocode anyway. Granted, that means the code might not always be optimized for killer speed, but it is guaranteed to be functional (pun intended!) and will convey the basic insight of the algorithm. Most of the pseudocode for these algorithms available online is usually written with some sort of heavily imperative language like C in mind. That’s fine, because imperative languages give us much better performance and are far more common in the real world. However, such languages also usually force us to get our hands really dirty with all sorts of messy details. Functional languages like Haskell, on the other hand, make us really think about the purpose underlying the algorithm. (I have seen some people call Haskell descriptive, as opposed to the prescriptive way that imperative languages work.) In other words, functional languages force us to get away from implementation-level details and to think about the actual algorithm itself. This is ultimately why I decided to try to write this code in Haskell.


Tuesday, February 21, 2012

On crafting poems

A chance conversation on an email thread reminded me of some lines about poetry by W.B. Yeats:


We sat together at one summer’s end,
That beautiful mild woman, your close friend,
And you and I, and talked of poetry.
I said, “A line will take us hours maybe; 
Yet if it does not seem a moment’s thought,
Our stitching and unstitching has been naught.
Better go down upon your marrow-bones
And scrub a kitchen pavement, or break stones
Like an old pauper, in all kinds of weather;
For to articulate sweet sounds together
Is to work harder than all these, and yet
Be thought an idler by the noisy set
Of bankers, schoolmasters, and clergymen
The martyrs call the world.”


These lines on the difficulty of crafting poetry—not just rhyming, rhythmic utterances but real poetry—reminded me in turn of two Sanskrit verses on the same topic. The Sanskrit literary tradition is acutely self-aware of its linguistic nature (one of the words for literature or literariness / литературность, is vāṅ-maya, literally “speech-stuff”), as befits an intellectual and cultural universe that has perhaps paid more systematic attention to the Word and the World than any other from its very inception. The two verses, and my attempts at translating them, follow:




Why pearls, and why strung at random?

In his translation of the famous "Turk of Shiraz" ghazal of Hafez into florid English, Sir William Jones, the philologist and Sanskrit scholar and polyglot extraordinaire, transformed the following couplet:

غزل گفتی و در سفتی بیا و خوش بخوان حافظ

که بر نظم تو افشاند فلک عقد ثریا را


into:

Go boldly forth, my simple lay,
Whose accents flow with artless ease,
Like orient pearls at random strung.

The "translation" is terribly inaccurate, but worse, the phrase is a gross misrepresentation of the highly structured organization of Persian poetry. Regardless, I picked it as the name of my blog for a number of reasons: 
1) I don't expect the ordering of my posts to follow any rhyme or reason
2) Since "at random strung" is a rather meaningless phrase, I decided to go with the longer but more pompous "pearls at random strung". I rest assured that my readers are unlikely to deduce from this an effort on my part to arrogate some of Hafez's peerless brilliance!

About Me

My photo
Cambridge, Massachusetts, United States
What is this life if, full of care,
We have no time to stand and stare.
—W.H. Davies, “Leisure”