Recent well liked threads

Apr 20
Two Sanskrit texts composed over 2,000 years ago are formal computational systems in everything but name. Pāṇini wrote a compiler. Bharata specified a state machine. Both have been taught as literature for two millennia. They should be taught for what they are to get today's generation to take an interest in learning these texts.

1. The AṢṬĀDHYĀYĪ as COMPILER

Pāṇini's meta-rules (paribhāṣā) govern rule application. His conflict-resolution principle vipratiṣedhe paraṁ kāryam (the later rule wins) is precedence ordering. Anuvṛtti operates as variable scoping and inheritance. The pratyāhāra system is a compression algorithm.

The śivasūtras are a hashing scheme. Fourteen sūtras list all phonemes, terminated by anubandhas (markers). Any contiguous subset is named by [first phoneme + terminating anubandha]. "aC" is all vowels. "haL" is all consonants. "yaṆ" is semivowels. This is pointer arithmetic over a sorted array. Kiparsky and later Wiebke Petersen showed the encoding is optimal for the natural classes Pāṇini's grammar requires.

The tripādī (the last three pādas of book 8) is asiddha. Rules in this section are treated as not having applied with respect to earlier rules. This is two-pass compilation. Transformations are deferred until a later phase, and earlier rules cannot see their output. Pāṇini needed this to handle sandhi without circular dependencies.

The lakāra system (laṭ, liṭ, luṭ, and the rest) is abstract syntax. The ten lakāras are placeholders substituted by actual personal endings via later rules. Deriving bhavati runs through ordered passes: bhū + laṭ, then laṭ substitutes to tip (3rd person singular), tip substitutes to ti, guṇa and subsequent ava-ādeśa yield bhav-, sandhi closes to bhavati. An AST lowered to surface form through ordered transformation passes.

The utsarga-apavāda relationship, with the principle that the specific rule blocks the general, is method dispatch with specificity ordering. CSS works the same way. So does Prolog.

The ekasaṁjñādhikāra (one designation at a time, governed by 1.4.1-2) is a type system with disambiguation rules. Sthānivad-bhāva (1.1.56) states that a substitute behaves like the original for subsequent rules except where excluded. This is inheritance with override semantics.

These observations build on work by Frits Staal, Paul Kiparsky, Wiebke Petersen, and most recently Rishi Rajpopat (2022).
2. The NĀṬYAŚĀSTRA as STATE MACHINE

The rasa-bhāva architecture is a state machine. Sthāyi-bhāvas are stable states.

Vyabhicāri-bhāvas are transient states. Vibhāvas are inputs and triggers. Anubhāvas are outputs. The rasa-sūtra (vibhāvānubhāvavyabhicārisaṁyogād rasaniṣpattiḥ) is the production rule.

The 108 karaṇas (chapter 4) are atomic instructions. Each karaṇa is a frozen pose specified by positions of feet, hands, hips, and gaze. Sequences of karaṇas form aṅgahāras, 32 of which are listed. Aṅgahāras are subroutines. They compose into longer sequences. A three-tier compositional grammar runs from instruction to subroutine to program.

The hasta-abhinaya system (chapter 9) is a typed function library. 24 asaṁyukta (single-hand) and 13 saṁyukta (combined-hand) mudrās, each with viniyoga (application contexts) listed. Pataka hasta in one context is cloud, in another context denial, in a third a slap. Same token, context-dependent semantics. This is overloading with dispatch on context.

The daśarūpaka classification operates on a feature vector. Each of the ten dramatic forms is specified by values on dimensions of vastu (plot type), netā (hero type), rasa (dominant aesthetic), aṅka (act count), and sandhi (junctures present). Nāṭaka requires all five sandhis. Prahasana requires two. This is type-checking against a schema.

The sandhi system (five plot junctures: mukha, pratimukha, garbha, vimarśa, nirvahaṇa) with its 64 sub-elements (sandhyaṅgas) is a formal narrative grammar. A well-formed nāṭaka is one whose plot parses against this grammar. Propp's morphology of the folktale arrives two millennia later and with less structural resolution.

Rasa derivation has explicit input validation rules. Certain bhāvas cannot combine. Certain rasas are antagonistic (śṛṅgāra and bībhatsa cannot co-occupy a scene as dominants). Certain vibhāvas trigger only certain sthāyi-bhāvas. A constraint satisfaction system.
3. The Shared Method

The Indian tradition independently developed the concept of formal generative system and applied it across domains. Pāṇini to language. The Śulba and Kalpa Sūtras to ritual geometry. Piṅgala's chandaḥśāstra to prosody, containing binary representation, the Fibonacci sequence in mātrāmeru, and Pascal's triangle in meru-prastāra centuries before any of these appear in Mediterranean or Arabic mathematics. Bharata to music and dance.

The Aṣṭādhyāyī and Nāṭyaśāstra are two instances of one methodological commitment: ruling out underspecification through exhaustive formal rules.
The Aṣṭādhyāyī is executable. Modern implementations exist (Huet, Goyal, Scharf). The rasa-sūtra is debated across Lollaṭa, Śaṅkuka, Nāyaka, and Abhinavagupta precisely because the question of what kind of process niṣpatti names is the central question. That is a question about computation in the philosophical sense, not the engineering sense.

The pedagogical consequence is direct.

A student who has memorised Pāṇini's sūtras has not understood Pāṇini. A student who can derive a form by executing the rules has.

The same holds for Bharata. Teaching these texts as algorithms is how their authors meant them to be read.
Read 3 tweets
Apr 20
1/7
Pakistan didn’t just retaliate with drones & artillery during Operation Sindoor.
They fired a ballistic missile straight at Delhi.
One IAF officer stopped it cold.
Most of India still doesn’t know his name.
This is his story. 🧵🇮🇳
#OperationSindoor #IndianAirForce #IAF Image
Image
2/7
Air Commodore Rohit Kapil — AOC, 45 Wing, Sirsa — had direct oversight of the Barak-8 SAM system.
When the inbound was detected, his battery went to work.
The missile (Fateh-class or Shaheen-II variant) was intercepted and turned into debris over Haryana airspace.
Delhi slept peacefully. Never knew how close it got. 💥
#Barak8 #AirDefence #IAFImage
Image
3/7
Sirsa isn’t random — it’s a key forward air base near the western border.
The IAF placed its air defence exactly where it mattered.
Kapil is no desk officer:
✅ Su-30MKI pilot
✅ 3,500+ flying hours
✅ Category ‘A’ QFI
✅ Advanced Staff Course (UK)
A true operator who leads from the front. ✈️
#IndianAirForce #Su30MKIImage
Image
Read 20 tweets
Apr 20
A 23-page research paper reveals the number 1 method Hedge Funds use to beat the market:

Time Series Momentum

This is how: 🧵 Image
1. What Is Time Series Momentum?

Time Series Momentum (TSMOM) bets on trends continuing. If a stock’s up, buy more; if down, sell. A 2011 study of 58 assets proved it works! Image
2. The Data Behind the Strategy

The TSMOM paper analyzed equities, currencies & more. T-stats showed consistent profits across 1-month lookbacks! Image
Read 9 tweets
Apr 20
The oil market just passed its breaking point.
And it doesn’t matter if the Strait of Hormuz opens tomorrow.
Here’s why the damage is already done 🧵
Even if a ceasefire is signed TODAY:
— Floating tankers need 30–40 days to offload
— VLCCs rerouted to the US need 3+ months to return
— Onshore ME storage needs to drain ~200M bbls first
The supply gap doesn’t care about peace deals
Cumulative storage lost from Hormuz closure:
End of April → 1.2 billion bbls
End of May → 1.59 billion bbls
End of June → 1.98 billion bbls
This is 4x larger than any supply outage in history.
There is no playbook for this.
Read 8 tweets
Apr 20
A woman said, "My husband never says 'I love you.' Not once."

She was ready to leave.

Then one day their child became sick at midnight.

Before she could move, her husband was already dressed, carrying the child, starting the car, calling the doctor....
He stayed awake all night beside the hospital bed.

The next morning she watched his exhausted face and suddenly remembered…
1. She remembered that he showed up to every school play, every parent teacher conference, every soccer game. Not because he enjoyed crowds. Because she needed him there.
Read 11 tweets
Apr 20
LLEVO 2 AÑOS USANDO CLAUDE.

Aquí van 6 prompts que uso cada mañana y me organizan el día.

Pueden hacer lo mismo contigo, guárdalo 🔖 Image
1. Planificación diaria
Convierte el caos en un plan claro.

"Actúa como coach de productividad. Organiza mi día con: metas, tareas y deadlines. Dame las 3 prioridades top y un horario estructurado."
2. Aprende cualquier tema en minutos
Para cuando necesitas entender algo rápido.

"Actúa como experto en [tema]. Explícamelo con: concepto simple, principios clave, ejemplos prácticos y errores comunes."
Read 8 tweets
Apr 21
@uniqmasocheese Sounds like lots of Muslims throughout history
@uniqmasocheese @threadreaderapp unroll
Read 2 tweets
Apr 21
🧵 THREAD: The true reason Pete Hegseth is being targeted is because he's standing between President Trump and a coup

@PeteHegseth named the institutions... CFR, Brookings, the general class... in 37 seconds in a video by @Liz_Wheeler . Within 72 hours of his nomination, a color revolution planning document cited him as an insider threat.

They didn't go after him because of drinking. They didn't go after him because of women. They went after him because every color revolution manual ever written says the same thing: you cannot topple a government unless the security forces defect. And a loyal Secretary of Defense is the one person who makes sure they don't.

I have the receipts. Their own documents. Their own training sessions. Their own words on camera.

As always, patience as I pull together the thread. 👇
@PeteHegseth @Liz_Wheeler This is not my theory. This is theirs.

Erica Chenoweth and Maria Stephan — the two most cited scholars in the color revolution field — studied 323 regime change campaigns. Their finding:

Security force defections make campaigns FORTY-SIX TIMES more likely to succeed. Image
Image
@PeteHegseth @Liz_Wheeler So what did co-author Maria Stephan do next?

She became Chief Organizer of the Horizons Project. And on July 16, 2025, she trained New Kings participants on video.

"Security forces refused to obey orders to repress protesters."
Read 18 tweets