Better HN
topnewbestaskshowjobs
Log inSign up

bcoates

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

ben blueskylabs com
Submissions

comment 13y ago · link · parent

Those stories are barely more than gossip and belong on mainstream news sites. It doesn't look like they were generating much of interest in the comments either, just the usual go-my-team rhetoric and unfocused outrage in a random direction.

comment 13y ago · link · parent

The marriage in the article would be legal in California.

comment 13y ago · link · parent

The prevalence of frameworks means attackers probably have your source, or at least enough of it to be interesting.

This specific denial of service attack hit a lot of systems in 2012, and all you needed to know was which framework they were using (or just try all of them, as the attack has incredible leverage)

It's as simple as crafting a query-string that results in an O(n²) hashtable building, and allows you to burn minutes of server CPU with each request.

comment 13y ago · link · parent

Whoa, it's conventional to use the MSB? I usually just do

  bucket = hash(x) & mask
Should I expect non-cryptographic hashes and RNGs to produce better noise in the MSBs? That would explain "Sun Redefines Randomness"

comment 13y ago · link · parent

You can wiki-edit any SO answer (with low karma it's queued for approval before being shown), unfortunately it looks like something in the culture or UI prevents this from being common.

comment 13y ago · link · parent

I was thinking specifically of this:

  When i look at the FNV-1a "number" map, i think i see subtle
  vertical patterns. With Murmur i see no patterns at all. 
  What do you think?
Wouldn't that vertical repetition, and the other repeating patterns the other hashes form, show up as a nice spike in the frequency domain? Whereas I would expect uniform hashing to generate a flat, white-noise spectrum.

comment 13y ago · link · parent

I often see these "plot the output of the RNG on a 2d grid" things. I understand they're useful for demonstrating non-randomness, but if you're searching for patterns, do they reveal anything an FFT wouldn't?

comment 13y ago · link · parent

A decade later, Coase worked out the economic argument in much more detail in "The Nature of the Firm". (The logic works the same for business enterprises in a market economy as it does for nation- or world-sized Communist economies)

http://onlinelibrary.wiley.com/doi/10.1111/j.1468-0335.1937....

comment 13y ago · link · parent

> If the workers decided these things they would never vote to outsource their own jobs

This implies they would be making the wrong decisions then, no? There needs to be some mechanism to decide who does what, or otherwise some goods and services will be produced in proportions well exceeding any possible demand.

> The main idea is to make the enterprises benefit those who do the actual work and also make them accountable to those people and their communities.

Once you start introducing multiple contradictory goals like this, you're back to the same problem that centrally planned capitalism and communism have: resolving these conflicts is an extremely difficult problem in an informational/computational sense.

The local blacksmiths are of the opinion that only locally hand-wrought nails make the finest boots. The local bootmakers are of the opinion that the nails they can get for $1000/ton from China will suffice. The bootmakers are convinced that they are being idled by the limited supply of local nails, and that the blacksmiths are able to demand an unreasonable share of the value created from the boots because they have made their contribution to the boot scarce.

Do you sacrifice the supply of boots or outsource the work of the blacksmiths?

comment 13y ago · link · parent

click on the unmarked background to the right of the slide.

comment 13y ago · link · parent

At launch, an unsubsidized 32GB iPhone 4 cost $599, let's be pessimistic and say you get two years of use out of it and are unable to sell it for anything, that's $25/month. Not exactly an extravagant business expense.

comment 13y ago · link · parent

The nature of variance means that you would expect to find the highest and lowest means in groups with the smallest populations.

comment 13y ago · link · parent

I have heard this myth repeated this week, in a business setting, in complete seriousness.

comment 13y ago · link · parent

But the myth gets the moral exactly backwards -- the pens solved a real problem, and because both NASA and Fisher knew most of the value of the deal was getting the "the same pen they use in SPACE!" endorsement, the government got the pens for almost free.

comment 13y ago · link · parent

That's because having + perform a non-commutative operation like string concatenation is an abomination.

comment 13y ago · link · parent

Both the JVM and a C compiler produce native machine code that is executed by the processor directly. Neither is an interpreter in the classic sense[1]. It doesn't matter what language they're written in -- you could write C compiler or a JVM in PHP (assuming it can make the syscalls to load object code at runtime). No matter how awful the performance of the PHP runtime is, it would not prevent the C or Java program executed from being fast (in the long run).

Because the eventual target is native code, the only limit on performance[2] is what program transformations the compiler is willing to perform. This is limited by how much information the compiler has, and what sort of transformations are valid in the language.

For the first, it's about a wash. Java has a mix of 'safety' features that may obligate inserting checks at runtime that C would assume away, but it also forbids a lot of things that a C compiler would have to accept that limit the ability to optimize programs. In particular, a C compiler has to make a lot of pessimistic assumptions about what all those pointers are doing and what happens to memory across an external function call.

JVMs have a solid advantage in the second -- it performs the equivalent of profile guided optimization at runtime against real usage patterns, something that AFAIK no C compiler even attempts... and the runtime tooling needed to turn C into something you could JIT-optimize would result in something I don't think most C programmers would recognize.

A third issue is GC, which is on by default in Java-land and off by default in C: if your program is under very little memory stress and has very complex memory access patterns, the overhead of malloc()/free() is going to be huge compared to the cost of running the occasional GC. But, if your program is under strong memory stress and the logic to determine when to malloc() and when to free() is trivial, GC overhead will be a serious issue.

None of this means a given Java environment is faster than a given C environment but there's not really anything you could assume from first principles that makes one faster than the other. Neither reaches the ultimate "speed of light" of computation that is self-modifying hand-tuned machine code favored by all Real Programmers[3].

But the real bottom line for performance is which language has faster library implementations, and which has idioms that programmers actually use that produce faster or slower code. Those considerations are probably going to be way more important than the hypothetical top speed of a perfect program made by cycle-counting weenies. It's also the sort of thing you'd have to run actual experiments at large scale to answer.

[1] the JVM might interpret Java bytecode that isn't frequently run based on some optimization heuristic, but it doesn't have to. A 100% JIT emitting JVM could exist, and might even be a JVM flag for all I know.

[2] if you ignore the time JVM spends optimizing at load/JIT time, which you can in most cases aside from startup time.

[3] http://www.catb.org/jargon/html/story-of-mel.html

[4] Despite this extensive apology for Java, I despise it and if I never have to touch it or the JVM ecosystem again it will be too soon.

comment 13y ago · link · parent

I don't think this is about convincing the "deniers" so much as curing misconceptions among the general public about how evolution works.

You don't have to be arguing from bad faith or cynicism to hold some of the mistaken beliefs listed. The stuff about phylogenies and how they relate to the "tree" graphs is particularly neat.

comment 13y ago · link · parent

There aren't monkeys anymore, that's just a lie Big Nature Documentary is trying to push down our throats. Have you actually seen a monkey outside a carefully staged "exhibit" at a zoo? If you believe that, you probably believe that magicians can conjure a rabbit from a hat.

comment 13y ago · link · parent

I'm not sure if he's using an esoteric definition of "national government", "English speaking", or "default", but if you consider the "Failing to make a payment on a US government issued bond as agreed" then he's wrong. The US failed to pay out on inflation-adujsted WWI War bonds (paying them in nominal dollars rather than gold contrary to the bond terms, a substantial haircut) and during a previous unprecedented debt ceiling crisis in 1979 the US tried to dance too close to the edge and wasn't able to pay all the bonds due on time.

http://en.wikipedia.org/wiki/Liberty_bond#Default_of_the_Fou... http://www.npr.org/2011/07/11/137773341/looking-at-when-the-...

comment 13y ago · link · parent

Agreed, every time I've used a named pipe in a shellscript it's caused me nothing but pain.

IIRC, they're guaranteed not to interleave write()s less than PIPE_BUF (4k?) but if your program is buffering internally it might not end writes on a newline.

comment 13y ago · link · parent

The $1 Trillion coin thing was never a serious plan.

Ex-Treasury official: "As a straightforward matter the Federal Reserve wouldn’t give Treasury a trillion dollars for that coin."

That said, he's keeping with the party line that the US "always pays it's bills on time", so take it with a grain of salt (the US defaulted twice or more in the 20th century, depending on how you count)

http://www.washingtonpost.com/blogs/wonkblog/wp/2013/10/03/w...

comment 13y ago · link · parent

Unfortunately the way cookies, etc. work it's nontrivial for a browser to just visit a site that's offering a compromised certificate without undermining past and future security.

A revoked certificate being offered doesn't have any innocent explanations, you would want to use a specialized tool not a general-purpose web browser to analyze it.

comment 13y ago · link · parent

If the connection was using a forward-secret key exchange (like DHE or ECDHE), then no. Unfortunately it's common not to and browsers don't do anything to warn people that they're using a low-security mode.

comment 13y ago · link · parent

They'd have to go after GoDaddy to do that:

  $ curl http://crl.godaddy.com/gds1-64.crl | 
  > openssl crl -text -noout -inform DER | 
  > grep -A 6 2771FD5D73A8BB
    Serial Number: 2771FD5D73A8BB
        Revocation Date: Oct  3 22:57:44 2013 GMT
        CRL entry extensions:
            X509v3 CRL Reason Code:
                Key Compromise
            Invalidity Date:
                Feb 16 07:00:00 2012 GMT

comment 13y ago · link · parent

I'm more worried that the Justice Alito is apparently unaware of the phenomenon of vaporware:

  There are games in which a player can take on the
  identity and reenact the killings carried out by
  the perpetrators of the murders at Columbine High
  School and Virginia Tech.
But both the news article and the now defunct website he cites clearly state that the game doesn't exist.

http://newsfeed.time.com/2011/04/20/school-shooter-video-gam...

comment 13y ago · link · parent

That appears to be an accident handling the output of an isotope manufacturing reactor, not anything involving a power reactor.

> I would argue that there needs to be a significant improvement before fission is publicly acceptable.

I would argue that fission is already held to a standard well above that of almost any human endeavor, even those with roughly similar risk profiles (compare almost any form of mining, or the shipping of hazardous cargo by rail)

comment 13y ago · link · parent

The Windows backwards compatibility model includes a lot more than just old binaries continuing to run. To a substantial extent you can take code written for 16-bit windows and recompile it in 64-bit mode, intermixing it with code targeted at the latest version of Windows.

comment 13y ago · link · parent

> Had the Windows 8 requirements included "no HDD", people would be saying "Wow, Windows 8 is fast!"

That's really clever. I was very underwhelmed by Windows 8 but I was moving from an SSD-only Windows 7 system, which are still relatively rare. If W8 black-desktoped on a system with less than 1000 IOPS on the system drive the way it does if you have an unsigned driver, there'd be a whole ecosystem of modern hardware and software that can assume fast storage IO opened up, with no backwards compatibility loss at all.

comment 13y ago · link · parent

NFC seems like a solution in search of a problem to me. What does it accomplish that QR codes or any other optical scan technology doesn't?

comment 13y ago · link · parent

The long multiplication algorithm has two nested inner loops, each reducing one of the inputs to digits (dividing and multiplying by fixed values), multiplying them with a lookup table, then performing add-with-carry against inner and outer accumulators.

The Russian Peasant Algorithm optimizes this for the binary case by noticing that the inner multiply is always by 0 or 1 so it's trivial and never carries, removing the inner loop entirely and allowing you to use only one accumulator.

1
313233
55