HNHacker News
TopNewBestAskShowJobs

chancho

961 karma · joined March 12, 2009

submissionscomments
chancho··on After Yucca Mountain: How to store US nuclear waste
Doesn't that excuse sound fishy to you? I assume (thought I don't know for a fact) that every gram of weapons-grade fissionable material in this country is accounted for. How did it end up in a nuclear test? (Other than through bureaucratic incompetence, the likely culprit.) If we all agree that recycled nuclear fuel shall not be used for any purpose other than powering reactors, why can't we put systems in place to ensure this? How is this any harder than keeping _unrecycled_ nuclear fuel from becoming weapons? Finally, as with so much of the rationale for American public policy, the most glaring question is: France is doing it with no apparent ill effect. Why can't we?
chancho··on America’s Secret Innovation Weapon: Immigration
> If we assume that talent is evenly distributed throughout the planet...

This is a terrible assumption. 71% of the planet's surface is practically devoid of talent.

chancho··on Rasterization on Larrabee
That's silly. Programmers are being brow-beaten into radically changing their programming style to accommodate a drastic 90-degree turn in the evolution of hardware, from general-purpose serial to parallel and SIMD. Look at this rasterizer, for instance. It's comically inefficient on most hardware of the last decade. If this keeps up, optimal serial algorithms are going to become just academic ideals like Turing machines, never to be implemented.

You could say there's a back-and-forth between hardware and software, but to me it looks like software is playing catchup. "Oh I've got 16-wide vectors now? Ok let me go back and completely change everything." "What, I can't load a vector from an odd-numbered array position? Hmm, there goes THAT algorithm." The electrical engineers are running us.

chancho··on [dead]
Hack yes.
chancho··on How Sesame Street Changed the World
I just recently started watching Sesame Street with my son and I forgot how great it was. Especially the old stuff, which is all up at sesamestreet.org (I can't vouch for the new stuff as I'm at work at 10am.) The jokes were good, the music was good, the voice acting was good (who was the guy that used to do Kermit and Ernie?) We'll both sit there and watch for an hour and neither of us will get bored. All other children's programming on tv today is so vapid by comparison. Don't let your kid watch it if you can't stand it yourself.
chancho··on One Scientist's Crusade to Rewrite Reputation Rules
But we're not talking about ranking journals. We're talking about ranking authors. JIF if a reasonable metric for journals, the problem is that it's used to rate authors: what's the JIF of journals you publish in?

The metric presented here is much better for rating authors because it gives more of an author's peers an opportunity to vouch for him by citing his work, as opposed to only a small editorial board and review committee who decide if he gets into TopJournalX.

Adding a pagerank-style coefficient (increasing the weight of citations that come from well-cited papers) would make this metric even better for precisely the reason you state: papers exist in perpetuity. If I write a paper now but it is ignored for 50 years, then someone builds upon that to break ground in an entirely new field, then I deserve some indirect credit for that. The journal I published in does not.

chancho··on A Coder's Guide to Coffee
Don't sell 8 O'clock short.

http://shopping.yahoo.com/articles/yshoppingarticles/204/con...

I have this sneaking suspicion that its harvested by third-world leukemia patients, or fertilized with aborted ponies or something else terrible, because it's too good to be true. I live out in the sticks and my coffee options are the grocery store and the gas station. It's not only tastes better, it's half the price of any other whole-bean coffee you can find in a typical grocery store. (I like whole-bean original myself. The Columbian is too sour for me.)

chancho··on Why You Should Know C++
The ML family of languages is my favorite (second only to C++, natch.) but their brand of parametric polymorphism is equivalent in C++ to MyTemplate<T*> (or, if you like boost, MyTemplate<reference_wrapper<T> > would be more accurate.) They are not the same as MyTemplate<T>. This is by choice of ML language implementors, as they see it as a defect of C++ that every template instantiation has to be compiled independently. Instead, they turn static compile-time polymorphism into run-time dynamism using indirection and function pointers. (Maybe MLton doesn't do this, but I know GHC does.)

It's the difference between C's qsort and C++'s std::sort. The latter blows the former out of the water when sorting small things. This brand of polymorphism is unique to C++ and until someone does it better (which no one seems to have any interest in, except maybe Walter Bright) then C++ will always be "the best C."

chancho··on Why You Should Know C++
Have you subclassed any GObjects lately? Or otherwise implemented custom GTK widgets? If so, you might know why GTKmm exists (nevermind that PyGTK, GTK# etc are arguably the intended ways to use GTK.) There is a good reason everyone in the Linux world screamed with glee when Nokia LGPLed Qt, and C++ (even the basic stuff) is a big part of that reason.
chancho··on Hand Shaking Is So Medieval. Let’s End It.
http://en.wikipedia.org/wiki/Methicillin-resistant_Staphyloc...

http://en.wikipedia.org/wiki/Necrotizing_fasciitis

These are rare, but strep throat is pretty common.

chancho··on [dead]
Can I vote no if I think they are completely unrelated yet want to see neither of them?
chancho··on Factor VM ported to C++
I'm as disappointed by gdb's C++ support as anyone, but is it really fair to complain about its lack of support for STL containers? C doesn't have _any_ containers, so there's nothing there for gdb to lack. Either way you have to printf debug, though I can see how the increased compile times make that more tedious.
chancho··on First Impressions of the Fortress Language
Juxtaposition in ML is function application: f x y = f(x,y)

Although you're free to discount ML and its ilk (OCaml, Haskell) as non-mainstream.

chancho··on California sales taxes collection drop 50.9%, income taxes 43.6%
> revenue from property taxes, which would be a more stable / less cyclical funding source.

Obviously not a resident of the central valley.

chancho··on Increased food intake alone explains the increase in body weight in US
I don't know about you, but I appreciate posters who copy article titles verbatim instead of editorializing. As for the article itself, it very clearly stated that increased energy intake was the culprit. The word "food" by itself does not indicate a unit of measure. Do they mean calories? Pounds? Liters? Let me read the first paragraph to find out OH THERE IT IS. It's calories.
chancho··on The Harlem Miracle
"Promise Academy students who are performing below grade level spent twice as much time in school as other students in New York City. Students who are performing at grade level spend 50 percent more time in school."

Yeah I don't really see whats magical about this program, its just really intensive. If you took all the underachievers from other schools and tutored them for 6 hours a day then those school's scores would rise too.

It's sort of like the "epiphany" of clear-build-hold in Iraq. No shit - the secret to progress is focusing on fundamentals and working your ass off? But then again, maybe common sense in bureaucracy is magical.

chancho··on Increased food intake alone explains the increase in body weight in US
I don't see where anyone got this confused.
chancho··on Today Is Odd Day: 5/7/9
(In effort to continue the utter predictability of this thread:)

Of course, to any rationally-thinking being, today is 2009-05-07, which is meaningless.

chancho··on Debunking the Myth of a Desperate Software Labor Shortage
Are those startups lobbying for higher H-1B quotas?

This article, and the one in the thread you linked to, are talking about large corporations, not startups. There will always be a shortage at the high end. That's what makes it the high end.

Incidentally, the article you indirectly linked to quotes a Duke professor whose opinion largely agrees with the opinion of the UC Davis professor. Last I checked, Duke was a pretty well-regarded university, so I guess that means he's right. Or is there a flaw in that logic?

chancho··on Software jobs, PhDs and over-qualification
"While you were busy in your ivory tower for 8 years, someone had to keep the world moving...You were obviously too busy in college to actually find out what really goes on in the real world...Poor baby. Get a job. Feed, clothe, and shelter a family...earning a PhD sounds like a vacation."

"You have an attitude problem"

chancho··on The Haskell Platform: a single, standard Haskell distribution for every system
The single most important element of this package is the cabal-install tool. "cabal install HDBC" or "cabal install hsql" etc. will download, compile and install any library on hackage. Previously you had to 'bootstrap' cabal-install yourself, which wasn't a big deal for experienced users but was an annoyingly significant barrier for newcomers.
chancho··on Why Has the U.S.-Owned Auto Industry Failed in North America?
File under: blamecore.
chancho··on Why Has the U.S.-Owned Auto Industry Failed in North America?
So is blamestorm a noun or a verb?
chancho··on Why Has the U.S.-Owned Auto Industry Failed in North America?
Don't US companies source a lot of parts from overseas? Ford even has plants in Mexico. US and Japanese companies often share designs. The boundary between foreign and domestic is a lot blurrier than it used to be. This point here is mostly about the management of these various companies, not so much their location or operations.

Also, the article mentions specifically that Toyota and Honda use a lot of American-made parts, which are of higher quality than whatever Ford/GM/Chrysler are using (doesn't say where they are getting parts from) and that is a major contributor to the difference.

chancho··on Ask HN: How do you manage your news reading time?
One good way to stave off a news site addiction is to enthusiastically participate in comment threads. After being drawn into 2 or 3 good flameouts you'll curse the whole medium.
chancho··on The "C is Efficient" Language Fallacy
Well, yeah, but since Fortran stores things in column-major that's not really an issue. My broader point was that all of these details are hidden from programmers, so there's less for the programmer to screw up and more room for the compiler to work within.
chancho··on The "C is Efficient" Language Fallacy
Fortran's (alleged) dominance in scientific is probably attributable to tradition (they still teach it to undergrads in non-CS departments) but the native multidimensional arrays have a much bigger impact than aliasing. In Fortran you just index your array like A(i,j,k) and the compiler will compute (and optimize) the addressing for you. In C, a typical (non-computer) scientist who doesn't really focus on mundane shit like this will end up writing something like

    for ( int i=0; i<ni; ++i )
    for ( int j=0; j<nj; ++j )
    for ( int k=0; k<nk; ++k ) {
       a[ k*ni*nj + j*ni + i ] = ...
    }
which sucks. Optimizing multidimensional array access (which characterizes most of scientific computing) is much easier for a Fortran compiler.
chancho··on The "C is Efficient" Language Fallacy
GCC C vs Intel Fortran : http://shootout.alioth.debian.org/u64/benchmark.php?test=all...

Intel C vs Intel Fortran : http://shootout.alioth.debian.org/gp4/benchmark.php?test=all...

(I'm not even going to link to the GCC Fortran benchmarks. They're embarrassing.)

C is no slower than Fortran on any of those benchmarks, and on some it cleans Fortran's clock. The aliasing issue is the only thing Fortran has going in its favor, but clearly its not ubiquitous. The n-body benchmark, for instance, is fairly typical numerical code. You might even think, since it's simultaneously reading and writing through multiple pointers of the same type, that aliasing is an issue, but its not. And in the rare case that it becomes an issue, there's compiler hints (e.g. C99 restrict) for that.

Picking Fortran over C solely because of aliasing worries is premature optimization of the worst kind.

chancho··on Is Haskell a good choice for web applications?
Fair enough. I won't argue with the fact that Haskell is not yet ready for TweedHeads.
chancho··on Is Haskell a good choice for web applications?
There are a number of SQL libraries. http://hackage.haskell.org/packages/archive/pkg-list.html#ca...

The complaint was that there aren't any mature libraries that go a step further, beyond feeding manually-constructed query strings to the DB connection, preventing injection vulns at the type level, etc. In an OO language this would be an object-relational mapper. I think the functional crowd is still trying to figure out what a "functional-relational mapper" is supposed to look like.

← PreviousPage 9 of 11Next →