Vol. II · No. 156
Established 2025

smallweb

Friday, June 5, 2026
160 writers in the library
Culture · 2 shelves
CultureTech

Shreevatsa.

Essays on Sanskrit literature, algorithms, and eclectic curiosities.

Recent essays

30 of 53

“Right Ho, Jeeves” after Saki

Saki (1, 2, 3)—pen name of Hecto Hugh Munro (1870–1916)—was a writer, known for his short stories that are often biting satires sometimes veering to the macabre. P. G. Wodehouse (1881–1975) needs no introduction. Some people find it obvious to mention them tog…

Tilings with Tetris pieces, and squared Fibonacci numbers

Saw this great observation by Ruud de Rooij (via Robin Houston): Combinatorics can be a bit weird sometimes: the number of ways to arrange N Tetris pieces into a 2-by-2N rectangle is the Nth Fibonacci number squared. --> First to understand the statement: the…

“tāta” in the Rāmāyaṇa

The Sanskrit word tāta (“father”) is sometimes used affectionately for a younger person. (Similar to “appa” in Kannada etc.) This usage occurs widely in Sanskrit literature, but we can look at the Rāmāyaṇa as an example. Here are all the occurrences of the wor…

Mahabharata text and English translations

Just writing down what I know, for future reference. Sanskrit text: manuscript traditions Loosely speaking, the available manuscripts of the Mahābhārata fall into three categories, called recensions: Southern (longest/most elaborate) Northern (≈“Vulgate”) Kaśm…

Mahabharata text and English translations

Just writing down what I know, for future reference. Sanskrit text: manuscript traditions Loosely speaking, the available manuscripts of the Mahābhārata fall into three categories, called recensions: Southern (longest/most elaborate) Northern (≈“Vulgate”) Kaśm…

Douglas Adams on the English–American cultural divide over “heroes”

In 2000, Douglas Adams made an interesting observation that I keep returning to. A user on Slashdot named “FascDot Killed My Pr” had asked the following question (where HGttG = Hitchhiker’s Guide to the Galaxy): Comedy….or Tragedy? First, a big thank-you. You’…

Douglas Adams on the English–American cultural divide over “heroes”

In 2000, Douglas Adams made an interesting observation that I keep returning to. A user on Slashdot named “FascDot Killed My Pr” had asked the following question (where HGttG = Hitchhiker’s Guide to the Galaxy): Comedy….or Tragedy? First, a big thank-you. You’…

Editing a Google Sheet via an app (AppSheet)

TLDR: I hesitate to recommend this to anyone as it’s finicky to set up and may go away, but just in case: Google Sheets has an “Extensions -> AppSheet -> Create an app” that gives an easier interface for editing a sheet from phone (stuff like updating a daily…

Editing a Google Sheet via an app (AppSheet)

TLDR: I hesitate to recommend this to anyone as it’s finicky to set up and may go away, but just in case: Google Sheets has an “Extensions -> AppSheet -> Create an app” that gives an easier interface for editing a sheet from phone (stuff like updating a daily…

More on shuffles

Yesterday I read a nice post called “doubly dual shuffles”, which1 pointed out something about the classic algorithm for shuffling an array (i.e. sampling a uniformly random permutation of it). It’s a concise and (his word!) “pearlescent” post and you should r…

More on shuffles

Yesterday I read a nice post called “doubly dual shuffles”, which1 pointed out something about the classic algorithm for shuffling an array (i.e. sampling a uniformly random permutation of it). It’s a concise and (his word!) “pearlescent” post and you should r…

Repeated verses in the Rāmāyaṇa and Mahābhārata

The question The following verse occurs twice in the (critical edition of the) Rāmāyaṇa, and four times in the Mahābhārata: सर्वे क्षयान्ता निचयाः पतनान्ताः समुच्छ्रयाः । As translated by A. W. Ryder: All gathering ends in dissipation; (More details about its…

Repeated verses in the Rāmāyaṇa and Mahābhārata

The question The following verse occurs twice in the (critical edition of the) Rāmāyaṇa, and four times in the Mahābhārata: सर्वे क्षयान्ता निचयाः पतनान्ताः समुच्छ्रयाः । As translated by A. W. Ryder: All gathering ends in dissipation; (More details about its…

Dr. Shankar's next-consonant chitrakavya

Sanskrit has a rich tradition of Chitrakavya (roughly, constrained writing). Just came to know that Dr. Shankar has composed Sanskrit verses that satisfy a certain constraint (he has named it “anantarākṣarī”): the second half is precisely the first half with e…

Dr. Shankar's next-consonant chitrakavya

Sanskrit has a rich tradition of Chitrakavya (roughly, constrained writing). Just came to know that Dr. Shankar has composed Sanskrit verses that satisfy a certain constraint (he has named it “anantarākṣarī”): the second half is precisely the first half with e…

Tom Lehrer's poem: Dissertation on Education

Tom Lehrer got into Harvard in 1943 at age 15, and it is said that the following poem he wrote (at that age or even earlier) was his admission “essay”. The Loomis Alumni Bulletin issue of autumn 1943 (Loomis was the prep school he went to) said of the poem: Th…

Tom Lehrer's poem: Dissertation on Education

Tom Lehrer got into Harvard in 1943 at age 15, and it is said that the following poem he wrote (at that age or even earlier) was his admission “essay”. The Loomis Alumni Bulletin issue of autumn 1943 (Loomis was the prep school he went to) said of the poem: Th…

AI for writing: unexpected utility

I know that some/many people use LLMs (ChatGPT etc) for writing (emails, docs, etc), but I’ve never found it worthwhile myself, for at least two reasons. One, the results always look unnatural and “AI-written” (even with system prompts to make it more casual o…

AI for writing: unexpected utility

I know that some/many people use LLMs (ChatGPT etc) for writing (emails, docs, etc), but I’ve never found it worthwhile myself, for at least two reasons. One, the results always look unnatural and “AI-written” (even with system prompts to make it more casual o…

Two ways to crack a walnut, per Grothendieck

The mathematician Alexander Grothendieck was “considered by many to be the greatest mathematician of the twentieth century”. Somewhere in his 1000+-page autobiographical work Récoltes et Semailles (“Harvests and Sowings”), he describes two styles in mathematic…

Two ways to crack a walnut, per Grothendieck

The mathematician Alexander Grothendieck was “considered by many to be the greatest mathematician of the twentieth century”. Somewhere in his 1000+-page autobiographical work Récoltes et Semailles (“Harvests and Sowings”), he describes two styles in mathematic…

Certifying that M_127 is prime

Let $M_p = 2^p - 1$, so that: $$\begin{align} M_2 &= 2^2 - 1 = 4 - 1 = 3 \cr M_3 &= 2^3 - 1 = 8 - 1 = 7 \cr M_7 &= 2^7 - 1 = 128 - 1 = 127 \cr M_{127} &= 2^{127} - 1 \end{align}$$ Is $M_{127}$ prime? This is a large number with 39 digits, specifically it is 17…

Certifying that M_127 is prime

Let $M_p = 2^p - 1$, so that: $$\begin{align} M_2 &= 2^2 - 1 = 4 - 1 = 3 \cr M_3 &= 2^3 - 1 = 8 - 1 = 7 \cr M_7 &= 2^7 - 1 = 128 - 1 = 127 \cr M_{127} &= 2^{127} - 1 \end{align}$$ Is $M_{127}$ prime? This is a large number with 39 digits, specifically it is 17…

The sorry state of terminal support for Indic scripts (on macOS)

This will be a quick post to collect some screenshots. I ran diff in the terminal (the macOS default Terminal) on a couple of files containing text in Kannada script, and the output was unreadable. So I tried installing a bunch of other terminals: turns out th…

The sorry state of terminal support for Indic scripts (on macOS)

This will be a quick post to collect some screenshots. I ran diff in the terminal (the macOS default Terminal) on a couple of files containing text in Kannada script, and the output was unreadable. So I tried installing a bunch of other terminals: turns out th…

Knuth's program PERFECT-PARTITION-SQUARE

MathJax = { AuthorInit: function() { MathJax.Hub.processSectionDelay = 0; }, tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] }, svg: { fontCache: 'global' } }; Donald Knuth has a page on his website where he sometimes posts programs he has written. (He says he…

Knuth's program PERFECT-PARTITION-SQUARE

MathJax = { AuthorInit: function() { MathJax.Hub.processSectionDelay = 0; }, tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] }, svg: { fontCache: 'global' } }; Donald Knuth has a page on his website where he sometimes posts programs he has written. (He says he…

Checking in with P. G. Wodehouse

P. G. Wodehouse turned 90 in October 1971, was (finally!) awarded a knighthood in January 1975, and died in February 1975. One of the couple of people who managed to interview him shortly before his death was Gerald Clarke, who published the interview in The P…

Checking in with P. G. Wodehouse

P. G. Wodehouse turned 90 in October 1971, was (finally!) awarded a knighthood in January 1975, and died in February 1975. One of the couple of people who managed to interview him shortly before his death was Gerald Clarke, who published the interview in The P…

Notes on a translation choice

My friends Suhas and Anusha have a book of excellent poems on love, translated into English from the Indian literary tradition (Sanskrit/Prakrit) across the centuries, coming out in a couple of days.1 The book itself is a delight (I’ve read a draft) and I hope…