HNHacker News
TopNewBestAskShowJobs

yomritoyj

1,351 karma · joined May 20, 2013

I teach economics at Ambedkar University, New Delhi. Personal website: http://www.jyotirmoy.net
submissionscomments
yomritoyj··on How to write a spelling corrector (2016)
I started a project to implement Norvig's corrector in different languages: https://github.com/jmoy/norvig-spell

Had a pleasant surprise when Matthias Felleisen responded to a request on the Racket mailing list and practically rewrote the Racket version.

Also got to learn about the HAT-trie[1] data structure.

[1] https://en.wikipedia.org/wiki/HAT-trie

yomritoyj··on ARM Mac Part Deux: Less Confusion
Just like in our generation there will be people in our kids' generation who will want to know how the sausage is made and it will be a tragedy if the only way to do so would be to grow up, join a big firm and sign a NDA.

Even for the others, an open platform means a greater variety of software for end users. Creating toll gates on the way to software development or suppressing software which reduces the platform owners's profit is not good for end users. Many people who will never touch a command line still benefit because a Finnish computer science student could decide to start writing a PC operating system of his own and that OS now powers their phone or allows others to provide online services on servers that runs that OS.

If building iPad clones with an open hardware specification like the PC's becomes possible for multiple vendors I'm sure we will see a software ecosystem that will easily beat the walled gardens. The problem is that currently the number of firms that can build the hardware is small enough that they find it in their self interest to use closed specifications.

yomritoyj··on ARM Mac Part Deux: Less Confusion
To me the fundamental difference between a PC and a tablet is the software ecosystem: can you install any program/OS or must you install only those approved by the platform owner; can programs access system resources liberally (including a shared storage namespace) or are they tightly sandboxed; how much of the underlying infrastructure is visible to and manipulable by the end user. Compared to this difference the question of whether the device has an integrated keyboard or not seems minor to me.

Moving from a PC like ecosystem to a tablet like one is a net loss in my opinion. People are willing to absorb this loss and enter into a walled garden because right now building iPad-like hardware is not easy. I hope it doesn't continue to be so in the future.

yomritoyj··on Ask HN: What books do you keep on your desk?
Always within arm's reach at both home and work:

Rudin, Real and Complex Analysis

Halmos, Finite Dimensional Vector Spaces

Billingsley, Probability and Measure

Kelley, General Topology

Lang, Undergraduate Algebra

Simmons, Introduction to Topology and Modern Analysis

Parthasarathy, Probability Measures on Metric Spaces

Whinston, Green and Mas-Colell, Microeconomic Theory

yomritoyj··on When Functional Programming Isn't Functional
Syntax matters. What I really like about Haskell is how much care has been given to the syntax to make functional idioms easy to read and write. One can just say,

    fib = 0:1:zipWith (+) fib (drop 1 fib)
[I know that `drop 1` is just `tail`, but this one makes the intent clearer for those who may not know Haskell].
yomritoyj··on Philosophy Needs a New Definition
"myth, poetry, drama, mysticism, scientific thinking, political militancy, or social activism" are all alive and well. Whether we include them in 'philosophy' or not may be of importance for those seeking prestige or positions in these fields, but is a matter of little significance for the rest of us.

And there is also a need in this world for formalized thinking on fundamental questions. Not only has formal thinking often brought clarity and progress, formalism has a poetry of its own which poets know nothing about.

yomritoyj··on Jeremy Corbyn: Imagine an Uber run co-operatively by their drivers
A responsible politician should say why he thinks cooperatives have not been successful in the past, why driver owned cab aggregators are rate, and how he thinks those problems can be corrected. Just asking people to imagine stuff is lazy.
yomritoyj··on How Did Anyone Do Math in Roman Numerals?
Could you please elaborate. Just to take two elementary examples: the intermediate value theorem and the theorem that any two bases of a finite-dimensional vector space have the same number of vectors. I would have thought that both require mathematical ideas and not just notation.
yomritoyj··on Ask HN: How can I get over my lethargy, lack of focus, and other problems?
My advice would be to talk to a friend. It is very hard to give advice over the Internet without knowing your personality and circumstances.

One thing which is impossible is to have a 25-year old version of a 8-year old hacker. A 8-year old has infinite time and no worries. At 25 conscious or unconscious worries about where your life is going may be holding you back. Integrating hacking into a realistic life plan that can fulfill your other needs might help free up your mind.

yomritoyj··on Apple and LaTeX
There may be no LaTeX in Microsoft Word, but people working on its equation editor seem to be very much aware of LaTeX. Take a look at Murray Sargent's blog: https://blogs.msdn.microsoft.com/murrays/
yomritoyj··on Delivering Billions of Messages Exactly Once
It is the acknowledgement of the receipt of the last message that is important. Wikipedia is not entirely clear on this one. The source of the problem are higher-order statements: "A knows that B knows that A knows ...".

Suppose A sends the message to B, B sends an ack to A but A's ack back to B is lost. Now both A and B know the time of the attack but B considers it possible that [A does not know that B knows]. B thinks if A really does not know that B knows then A may not attack out of the consideration of the possibility that B does not know. And this possibility may make B call off the attack even if B knows.

Each round of successful exchange increase the order of statements that are known, but there is a statement of higher order which is still not known and which can cause the attack to unravell inductively.

Look up 'Rubinstein's e-mail game' for a choice of payoffs that causes no attack to happen for any positive probability, howsoever small, of a message getting lost.

yomritoyj··on dplyr 0.7.0
As the article "Tidy Evaluation"[1] says

"R makes it easy to create DSLs thanks to three features of the language:

* R code is first-class. That is, R code can be manipulated like any other object (see sym(), lang() and node() for creating such objects). We also call expressions these objects containing R code (see is_expr()).

* Scope is first-class. Scope is the lexical environment that associates values to symbols in expressions. Environments can be created (see env()) and manipulated as regular objects.

* Finally, functions can capture the expressions that were supplied as arguments instead of being passed the value of these expressions (see enquo() and enexpr()). "

dplyr is a testament to how these nonstandard features of R can be combined to produce a language for interactive data analysis whose convenience and clarity cannot be matched by traditional languages.

[1] http://rlang.tidyverse.org/articles/tidy-evaluation.html

yomritoyj··on Websites people say have changed their lives
Terence Tao's 'What's New'[1] and Mathoverflow[2]. Books and papers in mathematics don't tell you much about the penumbra of stories, hopes and plans around the formal work, particularly at the higher levels. These sites make (some) of that intuitive knowledge accessible to everyone.

[1] https://terrytao.wordpress.com/ [2] https://mathoverflow.net/

yomritoyj··on Computer scientist Viral Shah helped build Julia from Bengaluru, India
As an Indian working in India, the 'in Bengaluru' part actually makes me a bit sad. While Shah may have physically been in India when he was working on Julia, the project might not have happened without his having gone to the US for graduate studies. I can't think of any comparable project started entirely by people working in India.

The reason is not lack of ability: my guess is that at any time India's best institutions like the IITs or IISc have at least a hundred people who could build something like Julia. Instead it is perhaps India's poverty that prevents people from starting something that does not have an immediate academic or business payoff.

yomritoyj··on Statistician Proves Gaussian Correlation Inequality
I on the contrary find it perfectly reasonable. Academic publishing has its own share of bullshit and I can well understand someone, specially a retired person, wanting to give up on that kind of prestige in order to save time and energy for actual science. For example, as far as I know, Grigori Perelman has not published the work that won him an offer of the Fields Medal in any journal.
yomritoyj··on Unlearning descriptive statistics
I think that the article is unfair to statisticians in saying that they ignore descriptive statistics. The problem is that one cannot choose systematically between different descriptive statistics without clearly specifying our objectives and what we believe about the data-generating process. Otherwise on what grounds can you say that the median is 'better' than the mean or the other way round? But once you specify these things you are doing statistical estimation, which is a major branch of mathematical statistics.
yomritoyj··on The Feynman Lectures on Physics (2013)
Griffiths on Electromagnetism?
yomritoyj··on The Feynman Lectures on Physics (2013)
Definitely. But there aren't any problems and problem-solving is essential to learning physics so you need to have other textbooks at hand as well.
yomritoyj··on Rumors of Cmd’s death have been greatly exaggerated
Get-ChildItem also works on things other than directories. And Powershell understands both ls and dir!
yomritoyj··on The Curse of the Excluded Middle (2014)
The problem with making effects explicit is that effects pollute: a callee doing IO means that all is callers also acquire the IO effect. Which is as it should be, except that this makes code modifications tedious if effects have to be explicitly mentioned. Haskell makes it harder still by using completely different syntax for monadic and pure code which means that introducing an effect in a callee requires rewriting the caller.
yomritoyj··on Ask HN: Books you read in 2016?
Moschovakis, "Notes on Set Theory". Fast paced introduction to axiomatic set theory without too many prerequisites. The 'NAND to Tetris' of mathematics if you will.
yomritoyj··on R vs. Python for Data Science [video]
R's unusual calling convention makes it very easy to write little DSLs and access program text at runtime. This I think makes for much more expressive APIs like base R's formulas or dplyr's data manipulation facilities. In all other languages I know, formulas or data queries would need to be (quasi-)quoted or terms appearing in them would have to be declared to have a special type, spoiling the cleanness of the code
yomritoyj··on The Probability and Statistics Cookbook
Elementary: Freedman, Pisani, Purves, "Statistics" (uses some unconventional terminology)

Intermediate: Rice, "Mathematical Statistics and Data Analysis"

Wasserman's "All of Statistics" is also a very good book except that it is too terse to be a primary text.

yomritoyj··on Ask HN: What are the bibles of Computer Science?
I would say that the words 'science' and 'bible' do not go well together. The books mentioned in the answers are all worth looking at, but they take you only up to the foothills of the discipline and are no substitute for reading widely and working things out on your own.
yomritoyj··on GNU Octave
There will always be a need to run legacy code. For example Dynare (http://www.dynare.org/) is written in Matlab and has established itself as a standard tool for solving and estimating a certain type of macroeconomic model. The authors have been careful to ensure that it works with Octave as well, which I appreciate as someone working in an institution with a limited budget. I teach my own students Python, but as people entering the profession at this point, they should be able to use Dynare as well.
yomritoyj··on A Look at How Traders and Economists Are Using the Julia Programming Language
Algebra serves pretty well for that purpose.
yomritoyj··on [dead]
My sense is that this is mostly a gimmick as far as curbing the illegal economy is concerned. (1) Illegal cash is a fraction of illegal income which is a fraction of illegal wealth. Destroying a further fraction of that cash will not be a huge setback to the illegal economy. (2) Some (and perhaps a lot) of the illegal cash will get laundered through family and friends and deposits by businesses which operate in cash and do not have to keep detailed accounts (3) This is a game that you can play only once. Once people know that such currency 'reforms' are possible, illegal transactions will move to alternatives to domestic currency. Dollarisation of the Indian illegal economy is one possibility.
yomritoyj··on Ask HN: What are the must-read books about economics/finance?
Definitely, and I'm sure many do. And it is often very surprising how far ahead the older authors had thought. But while such reading is fun as a leisure activity, doing it seriously requires full-time dedication as a historian of thought because often even if the words are intelligible the concepts have drifted so much that they can be understood only by studying not only the famous works but their entire intellectual milieu. For example, to someone trained in contemporary economics even Keynes' 'General Theory' written in 1936 is very hard to make detailed sense of. So as a practical matter it comes down to a choice of studying either economics or the history of economics.
yomritoyj··on Ask HN: What are the must-read books about economics/finance?
Quite possibly, just as one can be a productive physicist without reading, say, Einstein, in the original.
yomritoyj··on Ask HN: What are the must-read books about economics/finance?
Since you are already in a quantitative field I think it would be good to quickly get to the heart of what economists actually do. I would suggest

Varian, 'Intermediate Microeconomics' Luenberger, 'Investment Science' Wooldridge, 'Introductory Econometrics'

for the undergraduate background and then at the graduate level Jehle and Renyi for microeconomics, Duffie for asset pricing theory, Tirole for corporate finance and Campbell, Lo and Macinlay for econometrics.

← PreviousPage 2 of 4Next →