5,109 karma · joined Jun 27, 2012 (14y ago) · 1,639 submissions
comment 13y ago · link · parent
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
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
http://onlinelibrary.wiley.com/doi/10.1111/j.1468-0335.1937....
comment 13y ago · link · parent
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
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
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
comment 13y ago · link · parent
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
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
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
$ 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 GMTcomment 13y ago · link · parent
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
> 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
comment 13y ago · link · parent
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
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.