HNHacker News
TopNewBestAskShowJobs

davidp

1,244 karma · joined January 12, 2012

submissionscomments
davidp··on The Electric-Car Boom Is Real
One of the bigger delays to adoption in higher-density areas will be the problem of retrofitting residential parking with charging stations. Condo associations and rental companies won't spend money to install them until their residents are all but begging for them. Adoption in suburbia is relatively straightforward in comparison.
davidp··on We Just Breached the 410 PPM Threshold for CO2
Strategy tip: Don't tell him to know his place and listen to the enlightened; send him the next set of links that will satisfy and maybe further stimulate his curiosity.

Without those links, your last paragraph is really a statement about your own approach to the problem, with a little condescension thrown in for his failure to follow the same pattern. It's counterproductive to your own goal of persuasion.

In any scientific endeavor (not just climate change), when a skeptic takes the time to engage, the response should be data, not appeal to authority.

Put differently, environmental scientists have a credibility gap in some segments of the populace, and it isn't possible to fix any credibility gap through peer pressure. You can only offer evidence, tailored where possible to the listener's level of interest and sophistication.

davidp··on Is the Linux Desktop less secure than Windows 10? [pdf]
Yeah, screw that guy for offering free quality content in video form, AND the nicely written text piece you just asked for.
davidp··on Network programming with Go (2012)
I had the same question, but so far the answers here are from a "technical correctness" perspective (which isn't a concern since Go is good at compatibility).

My question is whether newer libraries and best practices have evolved since 2012, or if the ecosystem has remained static in this area since 2012. I'd certainly hope there's been some learning since then, unless Go really had already achieved perfection the first time around; color me skeptical.

davidp··on Vivaldi – A Browser for Our Friends
Interesting, true; but then repeat the experiment with your peripheral vision.
davidp··on You’re an Adult. Your Brain, Not So Much
He has proposed, for example, that the voting age be lowered to 16. “Sixteen-year-olds are just as good at logical reasoning as older people are,” Dr. Steinberg said.

As if logical reasoning were sufficient.

Your typical 16-year-old doesn't know a thing about history yet, or the real-world practical effects of political choices over time, or just how confounding crowd effects and herd instinct can be, or any of the other weird shit about human behavior and governance that defies the kind of logical reasoning that many 40-year-olds are capable of, let alone 16-year-olds.

A 500 GHz CPU with no data to work with is just an impressive lump of silicon.

davidp··on Why I Left White Nationalism

    I find that people who have racist beliefs often see differing viewpoints as the enemy - the first breach being simple consideration of a new perspective.
True, but the problem is not limited to racists. I'm in the "moderate" part of the political spectrum, and I find that far too many people on both the left and right have the same behaviors.

I suggest to my left-leaning friends that government should be a "last resort" solution at best, and is frequently actually the problem; to my right-leaning friends I explain the crucial importance of privacy, civil liberties, and equal justice; and in either case the response is frequently incredulous disbelief and contempt for my naivete and/or obvious privilege yada yada yada.

The echo chambers are real, and they are a threat to our civil society.

davidp··on Peter Thiel To Join Trump Transition Team
> or the blog post he wrote for Cato in 2009 lamenting that women had obtained the right to vote?

He said no such thing in that article[1]. I have no idea about the rest, or about Thiel in general, but I did read the article. Your statement is as bad and inaccurate as any one-liner soundbite on right wing media.

The section in question (emphasis mine):

  As one fast-forwards to 2009, the prospects for a 
  *libertarian politics* appear grim indeed. Exhibit A
  is a financial crisis caused by too much debt and
  leverage, facilitated by a government that insured 
  against all sorts of moral hazards — and we know that
  the response to this crisis involves way more debt and 
  leverage, and way more government. Those who have
  argued for free markets have been screaming into a
  hurricane. The events of recent months shatter any 
  remaining hopes of *politically minded* libertarians. 
  For those of us who are libertarian in 2009, our 
  education culminates with the knowledge that the 
  broader education of the body politic has become a 
  fool’s errand.

  Indeed, even more pessimistically, the trend has been 
  going the wrong way for a long time. To return to 
  finance, the last economic depression in the United 
  States that did not result in massive government 
  intervention was the collapse of 1920–21. It was sharp 
  but short, and entailed the sort of Schumpeterian 
  “creative destruction” that could lead to a real boom. 
  The decade that followed — the roaring 1920s — was so 
  strong that historians have forgotten the depression
  that started it. The 1920s were the last decade in
  American history during which one could be genuinely
  optimistic about politics. Since 1920, the vast
  increase in welfare beneficiaries and the extension of 
  the franchise to women — two constituencies that are 
  notoriously tough for libertarians — have rendered the 
  notion of “capitalist democracy” into an oxymoron.
He's talking about the poor receptivity he (and apparently other libertarians?) believe those groups have to libertarian ideals, specifically of getting them to vote for libertarian policies; he's not lamenting their existence per se.

Indeed, there's a follow-up on this exact topic posted at the bottom of the article:

  It would be absurd to suggest that women’s votes will
  be taken away or that this would solve the political 
  problems that vex us. While I don’t think any class of  
  people should be disenfranchised, I have little hope 
  that voting will make things better.
And finally:

  I believe that politics is way too intense. That’s why 
  I’m a libertarian. Politics gets people angry, destroys 
  relationships, and polarizes peoples’ vision: the world 
  is us versus them; good people versus the other.
He may be naive or disillusioned or depressed or whatever, but your misleading soundbite perfectly illustrated his point.

[1] https://www.cato-unbound.org/2009/04/13/peter-thiel/educatio...

davidp··on Torpedo Data Computer Mark 3 – Jun 1944 (2013)
This computer (or one very similar to it) was described in the great WW2 submarine yarn _Run Silent, Run Deep_. Amazing to see the actual manual for it so many years after imagining it while reading the book. The book is well worth a read, although as you'd expect it does have 1940s-era white-people sensibilities about race and gender.
davidp··on Web Storage: the lesser evil for session tokens

    And use whitelists, never blacklists.
Why?
davidp··on Being a “dumb” girl in Computer Science
Your point about responsibility of the student is fair.

On the other hand: https://www.google.com/webhp#q=define%20pedagogy

The teachers have a responsibility to teach, in the face of varying readiness for their teachings in their students. Any asshat can teach people who already know the material, but good teachers teach those who don't.

davidp··on Being a “dumb” girl in Computer Science
I don't disagree with your point, but I have to ask: How do you design a site like SO that is simultaneously valuable for both beginners and experts?
davidp··on Xterm(1) now UTF-8 by default on OpenBSD
Very cool, thanks. I found a page that shows all the key combinations:

[0]: https://help.ubuntu.com/community/GtkComposeTable

davidp··on RFC 6920: Naming Things with Hashes
If you look at the assigned identifiers in the binary scheme, the authors believe that 32-bit truncated cryptographic hash functions are useful.

No they don't. From Section 2:

   The sha-256 algorithm as specified in [SHA-256] is mandatory to
   implement; that is, implementations MUST be able to generate/send and
   to accept/process names based on a sha-256 hash.  However,
   implementations MAY support additional hash algorithms and MAY use
   those for specific names, for example, in a constrained environment
   where sha-256 is non-optimal or where truncated names are needed to
   fit into corresponding protocols (when a higher collision probability
   can be tolerated).
    
   Truncated hashes MAY be supported.  When a hash value is truncated,
   the name MUST indicate this.  Therefore, we use different hash
   algorithm strings in these cases, such as sha-256-32 for a 32-bit
   truncation of a sha-256 output.  A 32-bit truncated hash is
   essentially useless for security in almost all cases but might be
   useful for naming.  With current best practices [RFC3766], very few,
   if any, applications making use of names with less than 100-bit
   hashes will have useful security properties.
davidp··on A lot happens
Or even 40; I assume even 50 and beyond, but I haven't been there yet. If we stop growing, we start dying.
davidp··on Warming up to Go
> And of course Go vs Python is not a good comparison, as Python's lack of types

Nitpicking: Python has types, they're just dynamically determined instead of statically. That said...

> make it difficult to reason about large programs quickly

... I agree 100%. At $DAY_JOB we have a very large Python codebase and it can be extremely hard to understand what's going on, let alone refactor safely. I really miss static typing.

davidp··on Why I'm walking away from one of the best jobs in academia
The author is completely spot-on that the problem arises with the funding system. It's a classic case of policymakers confusing correlation and causation, and subsequently cause and effect: They have assumed, and continue to assume, that getting a college degree _causes_ higher employability/earnings/etc., even though the data only indicates _correlation_; consequently they said "more must be better" and tried to push as many people into college as possible in a misguided attempt to cause higher wages.

The truth is more along the lines that high employability for abstract (and disproportionately high-paying) professions is highly correlated with academic ability, and it is the latter that accounts for more of the overall success than the degree itself. In other words, many high-earning people would have some of those higher earnings even if they didn't go to college at all. The fact that many of those people choose to go to college is an _effect_ of that ability, not a cause.

davidp··on GitFlow considered harmful
Code reviews -- you can create a PR on the pushed code, make fixes in response to the comments, rebase, and re-push.
davidp··on France’s Zone Rouge – Land Poisoned by War
The story and pictures were intriguing, but then at the end: "There’s a true story for you, FOX News." Wat? That's jarringly out of place w.r.t. the rest of the article, and leaves an unpleasant political aftertaste for something that would have been fine without it.
davidp··on John Nash Has Died
> I've gotten looks from taxi drives in south Europe for this, they treat it as an insult. I feel it's better to insult than be dead.

It's easier than that -- just tell the driver you're not worried about him or her, but about the other drivers on the road.

davidp··on Introducing Xubuntu core
FYI, this is not available for Trusty Tahr (14.04). I only skimmed to find the link to mini.iso and didn't notice the article omitted references to 14.04. My mistake, but sharing here in hopes of saving someone else some time.
davidp··on After Prime Proof, an Unlikely Star Rises
I think it's more straightforward and less depressing than that. For most people it's simply hard to tell the difference between someone with those traits ("still waters run deep"), and someone who just doesn't have much to offer[0]. We do tend to correct those misperceptions given enough exposure and investment in the relationship, but it takes time -- and there's only so much time in a day.

[0] modulo subject X or situation Y -- we all have talents

davidp··on How to Grow a Forest Really Really Fast
Any tree that grows quickly will have thicker (less densely packed) rings. The author describes a planting strategy that "tricks" the trees into growing more quickly than usual, so my intuition is that those trees will be weaker than they otherwise would be. The choice of species just moves the "natural" density point.
davidp··on How to Grow a Forest Really Really Fast
This is why hardwoods are, uh, hard. They're typically slower-growing, so their rings are more tightly packed, giving the wood additional strength. I'm skeptical that the fast-grown trees from the article are as long-term healthy as naturally grown ones.
davidp··on Awk in 20 Minutes
Yep. Need line 123425938039 of a gigantic file? [0]

    sed -e 'NR == 123425938039 { print; exit; }' < file
Fast as hell and takes no memory to speak of. Google 'awesome awk' for goodies.

[0]: Yes, this happens.

davidp··on Protesters who are trying to upend the “fantasy world” of economics
> What's the "value" of your receptionist? Well how do you measure that? Simple: get rid of her, and have your developers answer the phones. The decrease in productivity from that is the value of her position

That value is not absolute. That's just the value to me as his or her current employer. The same receptionist would have different value to an employer with a different cost structure. This is why an intermediary like price is required.

> The older I get, the more I think that "value" (our social evaluation of worth) should be based on nothing more than hours of labor.

> An hour of labor from someone with a 130-IQ might carry a higher price on the market than an hour of labor from someone with a 90-IQ

1. These two statements are fundamentally at odds. The mere existence of a market price directly implies that some number of market participants have made their own judgments about the value (to them) of that hour of time.

2. "hours of labor == value" is the fallacy behind make-work programs where people effectively dig ditches and then fill them back up. There's nothing changed when they're done; how do you capture that economically?

davidp··on Falcon is a high-performance Python Web framework
Flask is great. Off the top of my head, Falcon's smaller dependency list is nice if you're managing server environments. Flask currently depends on Werkzeug, Jinja2, itsdangerous, and markupsafe, as opposed to just six and mimeparse for Falcon.
davidp··on A Dangerous and Costly Photo in Japan
Your acceptance of this kind of corruption is the very thing that enables it to flourish.
davidp··on How to Implement Deutsch’s Algorithm in Haskell
/me ponders what Duff's Device would look like in Haskell.
davidp··on Detailed report shows how U.S. Internet access monopolies punish rivals
Pretty sure this is straight-up TCP behavior, possibly combined with trying to send large files inside the TCP connection via the Citrix protocol. If you consistently lose some percentage of packets for a while, the TCP connection can drop. The file transfer doesn't have auto-resume built in because it operates at a very low level.
← PreviousPage 2 of 6Next →