9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
That’s a striking illustration. Even the entire Earth fits into a 1 cm n-cube, but — and that’s important — only diagonally.
comment 4y ago · link · parent
The unit “1” in terms of hypervolume is a n-hypercube with side length 1, so the question is really, how many of those hypercubes fit into an n-ball of a given radius.
Now, the thing I realized is that a unit hypercube in n dimensions is an unimaginably weird object. Its side length is, by definition, 1. But as n goes to infinity, the distance between the center and the corners of this unit hypercube goes to infinity — this follows directly from the Pythagorean Theorem. The center of the hyperfaces, on the other hand, is always only 0.5 distance units away from the center of the cube. An inscribed ball touches those hyperfaces, so 0.5 is also the radius of that inscribed ball. This makes the hypercube in some sense very “spiky”, with parts of the boundary close to the center (0.5) and other parts infinitely far away. Also, there are 2^n of those corners.
Indeed, and that’s just another way of stating the submission headline, most of the volume of the hypercube is near those spiky corners. Stated another way, as n goes to infinity, none of the volume of a hypercube is at a bounded distance from the center. And note that we’re still talking about a unit hypercube, so the side length in all of this always remains 1.
So, if you accept the math, the question is: Is the quoted result really something unintuitive about high-dimensional balls, which are perfectly symmetrical objects? Or is the “weirdness”, in terms of human intuition, better blamed on the hypercubes we implicitly compare them to when we talk about volume?
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
For example, an extra factor of log(n) is hardly ever relevant, constant factors are almost guaranteed to dominate there.
On the flip side, people are also sometimes surprised to see how quickly an n^3 algorithm becomes infeasible even for very modest data sizes.
comment 4y ago · link · parent
comment 4y ago · link · parent
Here’s the history: Every editor has a language abstraction already. And some language analyzers had an “editor abstraction”, perhaps notably Roslyn for C# with its programmable refactoring rules that worked in multiple editors.
None of that was new. But that’s still N*M if you do the math, so that graph was never completely filled — for the obvious reason that this would have been practically impossible. No mystery about it.
comment 4y ago · link · parent
Somehow, the author misunderstood the original argument, dismissed it, independently discovered the actual argument, and now claims they’re the one who found the true reason for LSP, when in reality, it’s just the standard argument.
comment 4y ago · link · parent
At a previous job, we had a customer who suddenly couldn’t send us email anymore. When their IT sent us the server logs to “prove” it’s our fault, we saw that the one letter in the cached MX record was wrong. This was puzzling, until I looked at the ASCII table to verify that the difference was exactly one bit.
We never found out where in the name resolution process the bit got flipped. The problem healed itself a few days later when the DNS cache expired, so it wasn’t worth further investigation.
That really gave me pause how often random bits are wrong in other data.
comment 4y ago · link · parent
Oh wow, that hits home. To be fair, the historical context for the decision can be valuable information, the problem is the next step. Even if you can't fix it right now, you might make steps towards that. Or you might say: Now that we have this heavy table outside, why not attach more things to it?
comment 4y ago · link · parent
If this were true statistically, I think that should be reflected in the Elo spreads: Players winning more in blitz should mean they’re able to separate farther from the middle of the rating distribution.
This doesn’t seem to happen at the very top end. Looking at the Elo range of ranks 1 to 100 to get a feeling for the distribution:
Blitz: 2850 to 2610
Rapid: 2847 to 2620
Standard: 2864 to 2645
It seems if anything, the top players at slow time controls are even more dominant. Of course, top players are outliers by definition. Maybe it’s different in the middle of the rating range?(Source: https://ratings.fide.com/top_lists.phtml)
comment 4y ago · link · parent
I know Marx says that, and it’s false. Trade can raise both utility and price. The reason is that price is highly context dependent; a shoe in a shoe shop is worth more than a shoe in a shoe factory. And it’s not the “labour of transportation” that makes it so, only part of that is location: Having a selection of products to choose from makes each individual one worth more, because you know you get to pick the one you want.
comment 4y ago · link · parent
In fact, I realize most Marxists never read Das Kapital, but Marx himself is very clear that he doesn't believe trade creates value:
> Turn and twist then as we may, the fact remains unaltered. If equivalents are exchanged, no surplus-value results, and if non-equivalents are exchanged, still no surplus-value. Circulation, or the exchange of commodities, begets no value.
Source: https://www.marxists.org/archive/marx/works/1867-c1/ch05.htm
comment 4y ago · link · parent
> Turn and twist then as we may, the fact remains unaltered. If equivalents are exchanged, no surplus-value results, and if non-equivalents are exchanged, still no surplus-value. Circulation, or the exchange of commodities, begets no value.
Source: https://www.marxists.org/archive/marx/works/1867-c1/ch05.htm
comment 4y ago · link · parent
First of all, I have the impression that he's incredibly vain. Maybe that's not entirely his fault, because parts of the left in Europe celebrate him like a rock star. But when he retells the story of how he negotiated with other leaders of the EU about the Greek debt crisis, the framing is always that he was the only wise person in a room full of idiots, and they wouldn't agree to the rational course of action because they were intimidated by his superior intelligence. This is of course just my observation, and I don't have a good source ready, so I'm curious if others have the same impression.
Second, although he downplays it somewhat when asked directly, he is a full-on radical marxist. This includes the view that anytime someone makes any money anywhere whatsoever, that can only mean somebody else is being exploited. I don't know how marxists square their conviction that no trade is ever beneficial to both sides with the reality that nobody is held at gunpoint to make those trades, but here's an example quote from the interview:
> So, when a recession hits, and the central bank decides to stimulate the economy, the central bank lowers the interest rate of the overdraft it grants commercial bankers – who then exploit this to profit from arbitrage (by lending the money on to customers at a higher interest rate).
I find this incredibly disingenuous because as an economist, he knows better. Lending is a service that banks provide that many (arguably perhaps too many) people choose to make use of. And Varoufakis is fully aware of the difference between risk-free and risk-adjusted interest rates. But of course, "banks bad", that's what his audience wants to hear. I think there, he agrees with the crypto people to a much larger extend than he would admit.
TL;DR: I think Varoufakis is overrated, although I somewhat agree with him on crypto.
comment 4y ago · link · parent
But once you accept that there are rules to follow, and that they are somewhat arbitrary, languages do differ wildly in the amount and obscurity of syntactic forms you need to learn just to get started. Just count the amount of different syntactic concepts in this simple program:
#include <stdio.h>
int main(int argc, char **argv) {
printf("Hello world\n");
return 0;
}
and compare it to the Python version.comment 4y ago · link · parent
To be clear, yes, it's well-known that the kernel will page out rarely used stuff, but those are (almost by definition) pages that are basically never written to. The claim was that writes to swap occur all the time, to the point where they wear out the SSD, that seems to be something different.
At least I've never seen anything like that with any of my (workstation) workloads, like large C++ builds, TensorFlow experiments, or running lots of virtual machines. And that was only with 64 GiB RAM, not even the 512 GiB that the post I replied to mentioned.
comment 4y ago · link · parent
Are you sure? I’ve heard the argument before that swap is one of the better cases for SSD longevity, because it’s few big writes instead of many tiny ones, and found that convincing. Also, on which workloads would a machine with that much RAM touch swap at all? My workstation has “only” 64 GiB, has swap configured (to enable suspend), even during heavy use with some databases running never touches it.
comment 4y ago · link · parent
These days, we painfully observe the culture of crypto in every single online medium that isn’t very carefully moderated, for example Twitter.
And about incentives, I think it’s very hard not to become some kind of “evangelist” or “shill” when a significant fraction of your net worth is invested in a digital item whose sole value depends on enough other people also believing in the project. You need to spread the hype.
In my opinion, all of this would be fun and games if it weren’t for the massive negative externalities all of this cause in terms of environmental damage and accelerating the climate catastrophe. This is completely evident, which doesn’t stop some crypto holders from denying it with all kinds of illogical arguments. That’s understandable — see previous paragraph.
comment 4y ago · link · parent
Basically, treat your build/deployment scripts like you would any other code. Strive to have a single source of truth for any fact that can change etc.
That seems obvious, but in my experience was at first counterintuitive for many people who otherwise had no trouble applying these principles in application code. A lot of modern CI/CD principles boil down to “it’s just code”.