Better HN
topnewbestaskshowjobs
Log inSign up

bcoates

5,109 karma · joined Jun 27, 2012 (14y ago) · 1,639 submissions

ben blueskylabs com
Submissions

comment 10y ago · link · parent

Scott Meyers' C++ books weren't just a great guide to the language, they were my first exposure to the idea of programming as a craft.

Before that there was just appeasing the angry demon in the compiler or having the right result; after there was a bigger picture of doing things the right way that would have good results beyond the next trial execution.

comment 10y ago · link · parent

Because the overwhelming majority of users of C compilers are compiling someone else's code that isn't narrowly targeted to the platform+compiler in question. So they get no benefit at all from specifying undefined behavior, but they do get a benefit from the performance gained by assuming away undefined behavior as dead cases.

comment 10y ago · link · parent

It's not symbolic. Whatever you think of this: http://www.macleans.ca/culture/the-future-belongs-to-islam/ it's legitimate commentary on a present-day matter of public concern, and Canada's censorship apparatus came down hard on it.

comment 10y ago · link · parent

ESPN already tried this when the writing was on the wall almost a decade ago. ESPN360/ESPN3/WatchESPN/whatever they call it now can only be watched if your ISP pays ESPN royalties for every subscriber on a take it or leave it basis. Time Warner called their bluff and only bundles it with your connection if you also buy basic cable.

You still "pay for ESPN" in the sense that TWC prices low-end internet-only packages to be uncompetitive with cable+internet bundles, but if you opt for the internet-only package TWC keeps the money. This works out great for TWC but not so much for ESPN or sports fans used to subsidy.

comment 10y ago · link · parent

I think you're referring to the "midwestern palate", it's more geographic than ethnic in my experience.

comment 11y ago · link · parent

But enough about Saudi Arabia, what's your opinion about ISIS?

comment 11y ago · link · parent

Once they sold out on DRM my attitude to the whole project was "why bother". If I want a browser made by people who cheerfully assist my enemies I may as well use one that's not mediocre in every other aspect.

comment 11y ago · link · parent

I've seen actual near-airgapped systems that communicate by fax as risk reduction. Email-to-fax gateways rendered attachments and such in the DMZ, then dialed into the secure side, the theory being that owning a T1 fax card over the PSTN is much harder than sending a malicious email.

comment 11y ago · link · parent

Other way around; z = x + y is a shorthand syntax for

  z <- copy(x)
  z += y
But you're otherwise right, it's annoying that this shorthand syntax isn't more generally available for user functions.

comment 11y ago · link · parent

While I agree that having both pre- and post- versions is confusing overkill, ++ is no more sugar for x += 1 than x+x is sugar for x*2.

Increment is the fundamental operation, += is sugar for repeated incrementation, not the other way around.

comment 11y ago · link · parent

Chrome already has an "enterprise" version, moving a less braindead corporate monitoring system then MITM certs into it would probably be a good thing.

It would also be a good way for them to start pushing a "two party consent" model for private wiretapping -- It's illegal for my employer to record my office phone because it's a violation of the other party's rights. Facebook has as much a stake in not letting employers monitor employee's social media use as the employees do.

comment 11y ago · link · parent

I love that film, but it's kind of weird that it doesn't mention what's probably the most important invention that makes this type of computer possible: The torque amplifier.

All the devices shown suffer power losses between input and output, some of them severe. A torque amplifier has two shafts that are 1:1 geared for speed but the output shaft has extra power taken from a third supply shaft, like the supply to a logic gate that lets it drive more output power than it draws from its inputs.

https://en.wikipedia.org/wiki/Torque_amplifier

comment 11y ago · link · parent

The police are as much members of society as anyone else, and they require the active cooperation of you and the rest of society to survive.

You can be part of the solution by depriving them this support: Do not cooperate with them in their job. Do not call them. Decline to speak with them if they contact you. Do not associate with them officially or socially. Do not permit them to shop at your place of employment, do business with you, or join your social organizations. Do not permit their children to be friends with yours.

comment 11y ago · link · parent

If you want to actually solve this problem without doing the thing in the slideshow or shooting yourself, when you see

    if(self.predicate_function())
      foo()
    else
      bar()
and self.predicate_function() is only called once in the program (this is the case several times in the slideshow example), try pulling the if statement into the function (and simplify), making a

    self.handle_case_something()
function instead. If the predicate is called more than once, consider subclassing. You're already doing OO, may as well do it right.

comment 11y ago · link · parent

Don't know much about the rest of the language, but the Perl 6 regexes are a big improvement and I hope they take over as the conventional syntax in the world outside of Perl.

comment 11y ago · link · parent

People keep spreading stories about a secret government conspiracy to know everything and use that power for shady means, and in an uncertain world, that's kind of comforting.

The actual conspiracy is just a group of incompetents getting together to make a quick buck from the ambitious or the afraid. But just like the patent medicines sold by their 19th century counterparts, "Doesn't work" and "Doesn't hurt" aren't the same thing.

Actually creating a all-knowing, all-powerful security state would require resources and competence well beyond the capabilities of present-day western governments, but in trying they can leave devastation in their wake as the dangerous mistakes they make enable new and interesting kinds of abuse, crime, and fear.

comment 11y ago · link · parent

The author's right, though, in that this is the competitive advantage 800lb gorilla aggregators bring to the table. When some clueless manager demands Facebook include some tracker as part of an ad buy, Facebook's answer is "no, take it or leave it", and after a few rounds of increasingly petulant emails with FB's bottom tier support staff, he relents, because he never really had the option of not buying Facebook ads in the first place and he was just posturing.

At most media companies without the market power or willingness to use the power they have, the request would reach his counterpart on the sell side and they'd be off to the races out-stupiding each other against the mutual interest of their host companies.

comment 11y ago · link · parent

It's not much of a leap; both depend on trusting potentially attacker-controlled devices. If my sensor drone signs reports it sends back a remotely exploited drone could send back validly signed tampered data.

comment 11y ago · link · parent

Given how infamous US intelligence agencies are for being infiltrated by foreign agents, it's almost certainly a strict superset.

comment 11y ago · link · parent

More importantly, why doesn't OpenBSD have procfs? Is there something fundamentally wrong with the idea? Is there some more standard alternative that portable software should be using?

comment 11y ago · link · parent

'Gender' does not have consistent usage in the English language, aside from the grammar sense of masculine/feminine words.

Aside from that, it's sometimes used to describe a performed social role, or more broadly anything that communicates "masculine" or "feminine". Sometimes it's used to describe an objective, distinct axis of male/female from the "parts and chromosomes". Sometimes it's used as a synonym for "sex", either out of puritanism or to stop people from answering "yes, please". Some assert that applying "gender" to people or any non-grammar usage is an error.

Just to make things more complicated, large groups of people have attached political significance to one or another of these definitions and assert that the others are Wrong and/or Ignorant.

It's a mess of recent vintage that apparently only English speakers have to suffer from.

comment 11y ago · link · parent

Apparently I'm out of date -- SUVs and Pickups stopped dominating the death rates in the mid-2000s.

Still, the fourfold decrease in fatality rates across the ten model-years the IIHS publishes (coinciding with a substantial increase in the share of vehicle-years for 'mini' sized vehicles) completely discredits the "balance of mass" theory of car fatalities.

The stats that article links say that the 2011 mini cooper has driver fatality numbers that would have made it among the safest cars on the road in 2002. Eyeball regression says newer and pricier can explain essentially all of the safety differences, and vehicle size is at best a distant third.

http://www.iihs.org/iihs/topics/driver-death-rates

comment 11y ago · link · parent

Trucks? Last I researched this the Ford F150 and Dodge Ram -- popular, mainstream pickup trucks -- were by a large margin statistically among the least safe vehicles allowed on roads in America, compared across everything, not just in-class.

comment 11y ago · link · parent

Good? They're at least getting informed consent and an opportunity to be diverted towards harm reduction. Ideally if a patient stubbornly demanded a particular drug they'd be warned in graphic detail of why that was a bad idea, asked to sign a "Prescription AMA" form, and that'd be the end of it. If nothing else it would keep them in the system and out of the grasp of hucksters and literal druglords.

The guys in the park selling opiates at unspecified dosage and purity are available 24/7 and don't even ask questions.

comment 11y ago · link · parent

NYAG is mostly in the business of shaking companies down but not killing the golden goose. Presumably this is an opening salvo that will end in them making some token changes to their business to be declared in compliance with the law and paying out a large settlement in lieu of prosecution for their previous activities.

This function of the office was perfected by Spitzer but it's been cheerfully carried on by his successors.

comment 11y ago · link · parent

I'm pretty sure The Phantom Tollbooth, Alice in Wonderland, and Donald Duck in Mathmagic Land have merged in my brain into one school animated film blob.

Which one had "Inchworm" in it?

P.S. It's a billiards table.

   You got one, two, three, four, five, six pockets in a table.
   Pockets that mark the diff'rence
   Between a gentlemen and a bum
   With a capital "B,"
   And that rhymes with "P" and that stands for pool!

comment 11y ago · link · parent

The problem is this would be admitting that the big lie (user targeting produces relevant more effective ads) is a big lie.

User targeting destroys the social fear of missing out mechanic -- nobody believes advertising affects them, but everyone believes that advertising affects the other guy. I have to pay attention to untargeted ads because anything they claim is something "everyone knows", even if it's a lie.

But once retargeting pulls back the curtain on the wizard the user realizes that the ads they're seeing are individually selected just for them. Digital ads drop from (pretending to be) a primary cultural information source to the equivalent of a pushy door-to-door salesman, individually lying to you.

But if you admit that all user targeting does is goose vanity metrics while damaging the value the ad inventory generates, most of the jobs in the digital ads industry evaporate overnight -- including most of the ad-adjacent staff at both the publishers and the brands -- so everyone is incentivized to keep the charade up.

comment 11y ago · link · parent

It sounds like he's discussing some fire road that probably isn't practical to turn into a real road (this is steep, hilly terrain where most buildable space has been used) but there are reasonable places to park and hike like Griffith Observatory.

comment 11y ago · link · parent

It's ignored because it doesn't matter. Mineral reserves only count ore that can be extracted economically at current prices; at current prices we have sufficient uranium for well longer than it takes to find and extract more (so there is no economic incentive to look).

If usage increased greatly and there was some prospect of greatly increased prices lots (hundreds of times current reserves) of marginal ores become available.

This doesn't hurt the economics of uranium fission for power because fuel prices aren't a significant cost. (this is why it's so hard to make breeders economical -- the main benefit is waste disposal and it's hard to compete with a hole in the ground on price.)

1
171819
55