HNHacker News
TopNewBestAskShowJobs

alejohausner

942 karma · joined January 11, 2015

submissionscomments
alejohausner··on How the Speed of Light Was First Measured
I like to explain that ray tracing uses exactly this ancient model of vision: rays are cast from an eye point, and are coloured according to the first object they hit ;-)
alejohausner··on The best icon is a text label
I came here looking for tips on how to turn on text labels in various UIs, and have not been disappointed.
alejohausner··on The best icon is a text label
I always say that a picture, plus a few words, is worth a thousand words.
alejohausner··on The best icon is a text label
Actually, Latin was once the international language, but has been largely supplanted by English. Hence if I use English labels in my app, I'm being cosmopolitan!
alejohausner··on A visualisation of all of the money in the world
I like xkcd's visualization better, because the quantities are displayed logarithmically: each part of xkcd's visualization uses squares which represent 1000 times more money than the previous part's squares.
alejohausner··on A 17th-Century Japanese Artist Is Once Again Making Waves
From T.S. Eliot's "East Comer":

So here I am, in the middle way, having had twenty years— Twenty years largely wasted, the years of l'entre deux guerres Trying to learn to use words, and every attempt Is a wholly new start, and a different kind of failure Because one has only learnt to get the better of words For the thing one no longer has to say, or the way in which One is no longer disposed to say it. And so each venture Is a new beginning, a raid on the inarticulate With shabby equipment always deteriorating In the general mess of imprecision of feeling, Undisciplined squads of emotion. And what there is to conquer By strength and submission, has already been discovered Once or twice, or several times, by men whom one cannot hope To emulate—but there is no competition— There is only the fight to recover what has been lost And found and lost again and again: and now, under conditions That seem unpropitious. But perhaps neither gain nor loss. For us, there is only the trying. The rest is not our business.

alejohausner··on The Odd History of Opposition to America's National Parks
This is an interesting story, but misses a much more important aspect of the creation of national parks: the expulsion of native Americans who lived on those lands. You see, america was never an empty wilderness. It was always full of people. The idea of unspoiled nature is an idealistic dream, like the myth of Paradise.

What's worse, the myth of an empty wilderness provides a convenient excuse for white settlement into Indian lands: we never had to steal the land from the Indians, because the land was empty.

It wasn't empty.

See a review of a relevant book:https://www.h-net.org/reviews/showrev.php?id=4418

alejohausner··on Beware of ads that use inaudible sound to link your phone, TV, tablet, and PC
This is provocative and very tacky, but I'm sure that advertisers can cross correlate many clues about our web behavior, and already have a pretty good idea about our habits and responses to ads. I don't see a real need for this sort of creepy intrusiveness.
alejohausner··on A lot of what we think we know about WWII is wrong
This is pretty much the premise of "Brute Force" by John Ellis (1). It argues that Britain, Russia and especially America won the war by sheer industrial capacity, which vastly exceeded Germany's output. Their logistical advantage was reflected in their tactics. If I remember correctly, in the battle of El Alamein, Montgomery had vastly more equipment than Rommel, and won the battle through massive artillery bombardments and by numerical superiority in tanks. In the invasion of Normandy huge numbers of shells were fired, using carpet bombing which overpowered the Germans in the Falaise gap. Germany's "war of movement", with its aggressive advances, which had been so successful at the start of the war, sputtered to a halt before sheer quantity of materiel against both Russians and Americans.

The book also argues that the Allied "brute force" mentality worked against them at times. Patton used a dynamic war of movement against the Germans several times, but was often held back by the plodding methodical approach of his superiors.

1.http://www.amazon.com/Brute-Force-Allied-Strategy-Tactics/dp...

alejohausner··on A Killer Adversary for Quicksort (1999) [pdf]
If I'm not mistaken, the attack is aimed at a quicksort implementation where the pivot value is chosen as a median of first, middle, and last values. It would not work on randomized quicksort, of course.
alejohausner··on The Case for More Traffic Roundabouts
Roundabouts are unfair. They don't balance traffic loads symmetrically.

Here is what I have observed at one near my house: as you approach the yield line, you can't enter the circle if someone has just entered it on your left. So, if you have lots of cars approaching northbound, and lots of cars approaching westbound, the northbound cars will be on the left of the westbound ones, and will block their entry. You end up with a huge queue on the westbound lane.

This is exactly what happens every day at the evening rush hour (and of course the southbounders block the eastbounders in the morning).

A traffic light would be much better, because its red/green intervals can be tuned to observed traffic tendencies for the time of day.

alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
Speaking of Freud, here's a joke:

Someone once asked Freud, "what stands between fear and sex?"

Freud replied, "ah... yes, that's a very interesting question: between vier and sechs stands funf!"

alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
I see your point. I was kind of equivocating "being set in one's ways" with "being uncreative". Jobs was certainly single-minded throughout his life. In a way, he was set in his ways from an early age, at least in that sense.
alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
> removing a single "death gene" only allows you to experience one of the many other forms of death

I see your point. On the other hand, why are there so many ways to die when you grow old? If one form of death doesn't get you, whey are there so many built-in mechanisms for death, in each of us? Why does your body betray you without fail, eventually?

Why do mayflies die so young, just after they reproduce? Perhaps evolution has no need of them after they reproduce, but that's not how it looks like to me, in the case of mayflies. It is one thing to say that there is no advantage to living after reproduction, and another to say that you MUST die after reproduction. It is perfectly conceivable to imagine post-reproductive mayflies surviving for many years.

Heck, post-reproductive humans survive again as long after the end of fertility.

> Indefinite extension is rather unlikely in the foreseeable future, though

I agree with you there. That was pretty much my point all along. And I was trying to put forth a rational argument for WHY I think that, but I can't come up with a totally convincing explanation.

alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
Well, I wasn't trying to make a moral argument, although I guess the way I phrased things might suggest otherwise. Heck, I just have this strong intuition that there's a countdown timer inside us, which will lead us inexorably to death. Maybe I can't argue convincingly for it, but I feel there have to be evolutionary reasons for why such a timer must exist, and the idea of making room for young organisms seemed like a fruitful way towards an explanation.

So here's a last and final argument for such a countdown timer: there are no immortal species in nature. That's more of an "existence proof" than a "constructive proof", but it does strongly argue that there is a reason why death is necessary (without providing the reason, for I can't think of one that will persuade you).

alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
Then again, maybe Jobs' view of death was colored by knowing he had pancreatic cancer. It might have made him more fatalistic.

Also, can it be said that the older Steve was more set in his ways than when he was younger? His example argues against characterizing old people in that way. Mind you, he's just one data point.

alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
Yep. So, enjoy yourself and ignore death until you reach retirement age. Then, keep looking over your shoulder to see if the grim reaper is catching up on you.
alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
Humans are different from other primates, in this respect. For example, chimpanzees don't have menopause: female chimps continue to give birth until death. Elephants too. And Galapagos tortoises, I think. This fact argues against the theory that "nature just wants you to reproduce and then die".

Why do chimps (and many other species) keep on reproducing in old age? Why are human women different?

alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
Granted, sudden changes to the environment would kill off the less fit individuals. So I'll change my argument a bit:

Suppose you've overcome infant mortality, and have also solved the problem of adult mortality, so all subsequent people are immortal. Suppose moreover that young adults insist on having more than zero children (that's likely to continue, you'll agree). Now you've got a population that won't stop growing. Resources are finite, and there will be mass starvation.

What are your options in such a scenario? Should you kill off old people, kill off young people, or prevent all future babies?

Suppose you prevent all future babies. Then you end up with no more sex, no more genetic variability, and now the whole species might be susceptible to a sudden environmental change.

So my argument is that old people must die to make room for genetically-different young people. Without natural death, there will be less room for evolutionary adaptation.

alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
This also gets me thinking about pesticides in apples, of all things. I read Michael Pollan's "The Botany of Desire" a while ago, and was really struck by the story of Johnny Appleseed. For those of you who didn't grow up in the USA, he travelled through the country planting apple seeds, so that later settlers would find whole apple orchards in place when they moved in.

The interesting thing is that apples don't "spring true" from seed. In other words, an tree that bears sweet apples will almost certainly have seeds that lack the gene for sweetness. Apple trees grown from seed will certainly bear crab apples. They are sour, and are only good for fermenting and making alcoholic apple cider. Settlers were certainly happy to have crab apples, because cider is fun and easy to make. But they certainly didn't eat those apples.

If you want sweet apples, you have to use grafting: if you are lucky enough to get a tree with sweet apples, you will probably immortalize it, but taking cuttings from its branches, and grafting them onto ordinary crab-apple root stock. The part of the tree above ground will be genetically different from the part below. If the root stock nears death, you'll take cuttings from the part above ground and graft them onto new roots.

This is all very nice, but it sidesteps evolution: you've created an immortal organism, which won't be able to fight off insects, fungus, and bacteria that attack apples, and which are constantly evolving to overcome a plant's defenses. Since the tree can't generate new chemicals that kill or repel these attackers, humans have to invent fungicides and insecticides to do it for them. That's why apple farming relies so heavily on spraying scary chemicals on the trees.

Any war you declare on time and change is a war you will lose.

alejohausner··on Your Body Wasn’t Built To Last: A Lesson From Human Mortality Rates (2012)
The article addresses Gompertz' law: the probability of dying in any given year increases exponentially with age (older people have ever higher death rates). This is an EMPIRICAL FACT. As you live longer, this probability accumulates exponentially, so the probability of being alive falls super-exponentially: p(being alive) = aexp(-exp(bt)).

I'm pretty sure there ain't nothing you can do about this. Why not? Because evolution built it pretty strongly into our genes. Here's how I see it: if an organism arose which had this "death gene" turned off, it would not adapt to sudden changes in the environment. It might be susceptible to a novel infectious agent which wipes out the whole species. Thus evolution tends to weed out immortal or very long-lived organisms.

Don't forget how natural selection works. It's not single creatures that adapt; it's about whole species. The only way for a species to adapt is for some of its individuals to die and be replaced by their offspring which differ genetically from their parents.

Evolution needs death to work. Hence death is built-in.

Look at this scary graph (with a logarithmic y axis!):

https://en.wikipedia.org/wiki/Gompertz%E2%80%93Makeham_law_o...

and then tell me that medical advances will do anything to make you live to 200. Go on, I dare ya.

alejohausner··on The Hamburger Menu Doesn't Work
Apple chose to always have an active menu at the top of the screen because of Fitts' law, which roughly says that bigger buttons can be clicked on more quickly than small ones (see wikipedia for a more precise mathematical description). Duh.

With the menu at the top, the user can slam the mouse pointer to the top edge, and simply focus on moving the pointer left of right. This is perceptually equivalent to having the screen divided into several tall stripes, one for each menu item. The menu items thus act like buttons with very large screen area.

On a small mobile device, this trick is used too: most of the UI buttons are on the edges of the display.

Compare this experience with trying to hit a tab or button on the top edge of your application's window (on a desktop computer). The top edge is rather narrow, and the targets sitting on that edge have small area. It takes much more effort to hit them, than if they were planted at the top of the screen.

From what I've read, Apple chose this design way back in the stone age era (early 1980s), after actually doing user testing!

New isn't always better.

alejohausner··on Eating habits – parsing the moral language of modern diets
Processed foods can be better, in some cases. For instance, frozen vegetables are picked ripe, and packaged very close to harvest, whereas "fresh" vegetables are picked green, and spend weeks in a truck traveling across the country, and you end up eating them long after they were picked. Frozen vegetables are better for you!
alejohausner··on Implementing fast, ray-traced soft shadows in a game engine
The article mentions a "distance to occluder buffer". I suspect this is like a shadow buffer, which normally is obtained by rendering the scene using the point light as the eye point, and saving the resulting depth buffer. Perhaps they reverse the depth test, to store, at each pixel in the shadow buffer, the distance to the object furthest from the light source. This would then be distance to the occluder closest to the ground plane.

But I don't see evidence of blockiness that such a pixelized distance map would produce. It's hard to tell what they're doing. One thing I'm sure they're not doing is real ray casting from each hit point to the light source. I don't see how they could test each such ray against the whole scene, and do that using the GPU.

While I'm on the topic, the soft shadows they compute are not exact, since they assume the light source is a circle, and their analytic formula for the penumbra angle is an approximation. Shadows would look different for linear lights like fluorescent tubes.

But hey, if you're in the middle of a game, dodging enemies, you won't stop to criticize the slightly incorrect shadows. In an architectural rendering, the difference might be noticeable.

alejohausner··on Psychologists Shielded U.S. Torture Program, Report Finds
Back in Roman and Medieval times, torture was not considered inappropriate. There was no need to conceal it. Typically the accused was assumed to be guilty, and torture was a just a way to get him to confess to what the court already "knew" was true. Otherwise the trial could not proceed.
alejohausner··on Psychologists Shielded U.S. Torture Program, Report Finds
I think that intelligence gathering is just a cover, or a rationalization, for something more base: some nasty muslim guys killed 3000+ Americans on 9/11, so let's get some revenge on another set of muslims and torture them. It's tit for tat.
alejohausner··on To help poor people, give them money
A few weeks ago I heard a psychologist on the radio talking about how the social group of people who are just above the poverty line are extremely opposed to welfare systems because it would give the folks who are just beneath them socially a "leapfrog" jump over them. It might help explain why fiscally reactionary Republican candidates have so much support among poorish whites.
alejohausner··on To help poor people, give them money
Most government spending benefits the middle class, not the poor. Roads for your car, schools for your kids, basic research for your devices, police to keep poor people from stealing your stuff, subsidies to keep your company profitable: the typical taxpayer gets a lot of benefit from taxes.
alejohausner··on To help poor people, give them money
I think a lot of folks here are missing the big question: charity involves an exchange. When you give to the poor, you get something back.

It's subtle:

The issue is not about eliminating poverty. It's about how to motivate rich people to part with their money. After all, aid to the poor comes from taxes, and the rich pay more taxes. So any kind of welfare has to give the donors of the money something in exchange for their donation. But the poor have nothing to trade for what they receive. Right?

Wrong.

The poor have their dignity. That's what they trade for donations. Every scheme for wealth distribution is informed by that fact. Rich people give money, and poor people abase themselves in exchange. That's why every welfare scheme always involves humiliation.

That's why government housing for the poor looks different from ordinary houses: so the poor will stand out, so they can be shamed.

That's why poor people have to endure long lineups at the welfare office: so they can be reminded that they are less worthy of decent consideration.

That's why poor people have to endure invasion of their most private aspects of their lives, through visits by social workers: so they can be reminded that they don't deserve privacy.

And that's why the rich don't like giving out cash: because cash is anonymous, and enables dignity, equality, and privacy.

As long as this implicit bargain (money in exchange for dignity) goes unexamined, the cruelty of the social welfare system will seem mysterious.

alejohausner··on Why Water Is Wet
Nice idea, but I doesn't really do justice to wetting, I think. First of all, water doesn't stick to everything: some materials are hydrophobic, and as Saykally points out, it's that dual ability to attract some parts of molecules and repel others that makes water necessary for life on Earth. That's how cell membranes form spontaneously: long skinny lipid molecules gather into sheets with their hydrophilic ends facing out towards water and their hydrophobic ends facing inward.

Second, all viscous fluids are sticky, in the sense that their flow is slowed where they touch stationary surfaces. This boundary phenomenon is responsible for the Coanda effect. Have you ever touched a spoon to the stream of water coming out of the kitchen tap, and watched the water change course towards the spoon?

← PreviousPage 10 of 11Next →