HNHacker News
TopNewBestAskShowJobs

basman

132 karma · joined May 13, 2008

submissionscomments
basman··on Running Shells in Emacs: An Overview
What you're seeing is not bash tab completion based on compgen, but shell-mode's implementation of tab completion. Which is why git <TAB>, for example, does not do what you'd like. It seems like it should be possible to write an emacs tab completer that actually calls bash's compgen, but I'm not aware of an implementation of this.
basman··on Rob Pike: Notes on Programming in C
The rule against nested includes seems dated — he doesn't like include guards in header files because "[t]he result is often thousands of needless lines of code passing through the lexical analyzer, which is (in good compilers) the most expensive phase." Surely not any more?
basman··on College Grads, Here’s How to Become Millionaires
hmm, so I guess by this argument, if I flip a coin 3 times and it comes up heads, the next time is more likely to be tails...
basman··on The Renter’s Manifesto
Not necessarily, because there are some effective costs that a homeowner pays that a landlord does not. First, the loss of the ability to move easily. Second, the landlord probably has economies of scale on things like time and money spent on maintenance.
basman··on The Renter’s Manifesto
In the limit, that's like buying the house with cash up front, which amounts to betting that the appreciation will exceed any investment income. For example, given person A who paid cash for a house a year ago and person B who put that money into an index fund, in most parts of the country B would be much better off right now.
basman··on Objects are a poor man's closures (2003)
One problem I've noticed with a very closure-heavy style is that debugging is a pain — you have a closure with a bunch of local state and no way to print or otherwise access it (from the repl, say). So then you end up writing special cases of the function for when the first argument is :debug... any better ways to do this?
basman··on Does the U.S. Produce Too Many Scientists?
"Research Scientists" and "People with basic scientific literacy" are different sets — it's perfectly possible for the first set to be too large and the second to be too small.
basman··on FBI: Albert Einstein
I thought he/she was being pretty clear, actually. I understood his working definition to not be "all the bad things ..." but roughly "the philosophy espoused by the Communist Manifesto and by the governments of the USSR, Mao-era China, and Khmer-Rouge Cambodia".

What are the atrocities committed specifically in the name of capitalism? I'm genuinely curious which ones would add up to having the same impact as the ones committed in Stalinist Russia, Cambodia, and cultural-revolution China.

basman··on Git 1.7.0 release notes
I do it by: 1) having a git repository in ~/config that contains, among other things, my global .gitconfig and .gitignore files. This repository is synced across machines. 2) having a .gitconfig in my home directory that's symlinked to config/.gitconfig and similarly for .gitignore.
basman··on Git 1.7.0 release notes
Although note that even before, git checkout `git merge-base A B` was always possible
basman··on Nth-to-Last Element in a Singly Linked List
That's a neat one. My solution: pointers A, B, and C. A proceeds through the list. B is always at the largest multiple of k that is at or before A. C is at B-k. Every k steps, set C=B and B=A. When A reaches the end, step C forward B-A times.
basman··on VIM Hacks
The repeat commands are your friend: Fh without looking, followed by ; and , if you don't end up in the right place the first time.
basman··on Setting up your Git repositories for open source projects at GitHub
This free online book: http://progit.org/book/
basman··on Results of yesterday's personality poll: we're strange.
His analysis doesn't depend on how many significant digits there are: he's doing a hypothesis test, so all that matters is whether one number (a p-value which was not shown) is bigger than a threshold (.01). The fact that it is in most of the cases means that the variance in results that you mention has been handled by the sample size.

So I do think the results are meaningful.

basman··on Lies We Tell Kids
Counterexample: A significant fraction of Indians are vegetarian. They seem to be doing ok in the brain development department.

Are there confounding factors? Sure... but calling it child abuse seems a bit much.

← PreviousPage 2 of 2