9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions
comment 12y ago · link · parent
function make_dot_product(dim) {
var dot;
if (dim === 3) {
dot = function(a, b) {
return a.x * b.x + a.y * b.y + a.z * b.z;
};
} else if (dim === 2) {
dot = function(a, b) {
return a.x * b.x + a.y * b.y;
};
}
return dot;
}
This also makes it clearer what happens if neither dim is neither 2 nor 3.comment 12y ago · link · parent
> (3) Many psychics propose all humans radiate quasi-electromagnetic energy, and their power comes from consciously directing it. Randi could therefore be unintentionally interfering.
If they really believe that's the case, then they should make a different million dollar claim: that they can remotely detect Randi's presence or absence in the monitoring room by observing whether or not their psychic powers are currently working. It's very easy to imagine a test protocol for that.
Of course, one can invent an even more elaborate effect that would explain why that test also wouldn't work, and then I can design a test for this new idea, ad infinitum.
comment 12y ago · link · parent
Well, Kolmogorov complexity depends on language choice, there's no way around that and the invariance theorem doesn't say anything different. It's more subtle than that, so we have to be precise.
The invariance theorem shows that given languages L and M, there's a constant c such that for any string x, |K_L(x) - K_M(x)| <= c. Intuitively, that constant c is the program size of an M interpreter in L (or vice versa). It's easy to see how K_L(x) can't be larger than <an M interpreter in L> plus <the shortest M program that outputs x>.
What this means is that given sufficiently large and complex strings x, K_L(x) is very close to K_M(x), because c is constant and finite, while you can construct a string x with arbitrarily large K_L(x). This gives us confidence that K_L measures something "real", even though our measurement is relative to the (arbitrary) definition of L.
Of course, for short programs, the constant factors dominate. You won't get a shorter Ruby program for your 30 character string by implementing a full Perl interpreter. In this case, the constant difference c is so large relative to |x| that the invariance theorem, while technically correct, is basically pointless.
comment 12y ago · link · parent
comment 12y ago · link · parent
However, semicolon insertion is only triggered when there's a newline at a position where there would otherwise be a syntax error. Here, neither is the case: blocks don't have to be terminated by semicolon (so no syntax error), and there's no newline in the source code!
comment 12y ago · link · parent
comment 12y ago · link · parent
Following Haskell's evolution somewhat from the outside, this is surprising. (And also somewhat disappointing, as laziness always seemed an important part of Haskell's elegance.) Is laziness now considered something of a failed experiment?
comment 12y ago · link · parent
Positive public perception has value, and can (at least in theory) be measured in dollars. In accounting terminology, it's part of what's usually called a company's "goodwill".
If Facebook continues to so negatively effect the public's opinion of every company it acquires, this means that Facebook might get a lot less out of those acquisitions than they might have hoped.
comment 12y ago · link · parent
Why is there any choice in how the signature is encoded? Why is there some sort of "script" (I'm not sure I understand this part) that's important enough to be hashed, but not important enough to be signed? This looks like a very deliberate design decision.
comment 12y ago · link · parent
Why is there extra data that's part of the transaction hash, but not part of the cryptographic signature? (This fact seems to be the source of the problem.)
This is probably not by accident, so what does this design accomplish? Why isn't every bit of the transaction signed?
comment 12y ago · link · parent
I hope I'm wrong. I'd really like to see this succeed.
comment 12y ago · link · parent
It's cases like these that make me think there should be an ethics code for software developers.
comment 12y ago · link · parent
I fail to see the point of this criterion. Even when you implement the client code yourself, you'd surely not copy&paste identical HTTP calls everywhere just so you can search for them. You'd use some form of encapsulation (modules, classes, subroutines). And those calls are just as hard (or just as easy) to grep for as calls to an external library.
comment 12y ago · link · parent
comment 12y ago · link · parent
In essence, the way I understand it: Say you're running your homepage on "GNUpache", a hypothetical AGPL Apache clone. Then you must have a "download source" button somewhere on your homepage. (This button might point to the official distribution if the version you're running is entirely unpatched and only uses standard plugins. If you have any custom plugin, for example to integrate with your in-house authentication server, you must offer the code for that plugin as well.)
You might disagree on whether that violates your freedoms. But note that previously (with the standard GPL, and also standard copyright law), you were not even required to advertise what kind of webserver you're running.
comment 12y ago · link · parent
Stallman isn't exactly known for letting practicality and feasibility compromise his ideals. Given that, as you said, the usecase was widespread when the FSF was founded, I consider it much more likely that he considered this case and didn't include it on purpose.
However, if you or anyone else has a good (older) quote from RMS on whether he considers it evil to connect your free browser to a proprietary HTTP server, I'd be very interested to see it.
The only thing I could find (actually rather recent, 2010's The JavaScript Trap [1]) only argues that a free browser shouldn't run proprietary JavaScript on your own computer, because that would violate your software freedom. It says nothing to suggest that the HTTP download of data from a proprietary server is considered a problem.
comment 12y ago · link · parent
Quote: If some program on this server is released under the GNU Affero GPL, the server is required to offer the users the corresponding source of that program.
comment 12y ago · link · parent
Having said that, I find Stallman's war rhetoric increasingly disturbing:
> The only code that helps us and not our adversaries is copylefted code. Free software released under a pushover license is available for us to use, but available to our adversaries just as well.
This is the language of war propaganda, and shouldn't have any place in rational discussions.
> If that enables GCC to "win", the victory would be hollow, because it would not be a victory for what really matters: users' freedom.
All while endorsing the Affero GPL, a license that doesn't even allow users full control over their own servers.
Maybe if someone is that convinced of a cause, the ends seem to justify every means. I'm not sure what's going on at the FSF, but it seems that they've lost sight of some of their original principles.
comment 12y ago · link · parent
comment 12y ago · link · parent
BTW, it's not hard to convince yourself that masses and springs in a centrifuge behave exactly like those near a large body. (In Newtonian mechanics even.) How are you sure you know the difference?
comment 12y ago · link · parent
comment 12y ago · link · parent
I guess if you had simply said that there's virtually no selection pressure, you wouldn't have triggered my nitpick reaction. :)
comment 12y ago · link · parent
For all of Haskell's beautiful concepts, it does have some flaws. I think that overly cute (and, as I explained, sometimes inconsistent) names are one of them, because that's at often odds with readability. Haskell's identifiers are not Perl-level bad, but they are not shining examples of clarity either.
I hope I didn't offend you with this. I don't actually think we'd disagree much if we had discussed this face-to-face.