Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
toth
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
toth
3y ago
You don't need the look up table. All you are asked for is min/mean/max which can all be computed in one pass without storing the data. All you need is a hash table with 400 entries and 3 floats (running min, mean and max) an
32.
▲
by
toth
3y ago
I think what you need is something that is at least as large as the largest Fibonaci number you are going to compute. Since the Fibonnaci numbers grow as `phi^n` where `phi` is the golden ratio (~= 1.618) if you want to use something of the
33.
▲
by
toth
3y ago
Very nice! Had never seen this trick. One non-obvious aspect is that the function relies on using Python's big ints, even for pretty small values of n. You are calculating `2^(n(n+1))` for the numerator, so if n=8 you already get `2^72
34.
▲
by
toth
3y ago
I believe numpy introduced ndarrays with user-specified strides, that made this a O(1) operation. Even if not, it certainly predates pytorch in this regard. Pytorch (and other tensor libraries) just used the ndarray concept from numpy.
35.
▲
by
toth
3y ago
The analysis in the article is mostly very good, but I object to this observation `The biggest loss of all, though, is a necessary one: the myth that anything but a for-profit corporation is the right way to organize a company.` I don'
36.
▲
by
toth
3y ago
It's funny, I know exactly what passage you mean and even though it's been many years since I read Cryptonomicon it's one of two specific passages I vividly remember reading and enjoying. This is even though I've never h
37.
▲
by
toth
3y ago
> The question is, is an authoritarian nightmare that much better than getting tossed into the meat grinder? If the choice was between those two extremes, I'd take the authoritarian nightmare. Extinction is forever, dictatorships en
38.
▲
by
toth
3y ago
If we had to have global policing of every large computing cluster and everything that runs there, that does not feel to me like a huge overreach or something that could easily slide into totalitarianism. It would be better if we didn'
39.
▲
by
toth
3y ago
Well, it's a matter of opinion which one is the root cause. My take is that if you remove nuclear/biological war out of the picture somehow, climate change is not an existential risk. If you remove the latter then the former is st
40.
▲
by
toth
3y ago
I don't disagree with that, but then the risk is nuclear war. It could be triggered by global warming conflicts or by something else. Still, like I said somewhere else, even all out nuclear war is unlikely to lead to human extinction
41.
▲
by
toth
3y ago
Oh, for sure. I am just saying it's not an extinction risk, not that it is not a huge and pressing problem. I would still bet against going back to 19th century. Worst case scenario for me is hundreds of millions dying and a big regres
42.
▲
by
toth
3y ago
I am not saying it's not a huge problem. Hundreds of millions dying would probably make it the worst thing that ever happened. I am just saying it's not an extinction risk.
43.
▲
by
toth
3y ago
Interesting, I have some vague recollections off hearing about this. But according to your link, IPCC says it's not a plausible scenario in the medium term. And I'd say that even 8 degrees of warming wouldn't be enough for ex
44.
▲
by
toth
3y ago
For sure. If the Russian federation breaks up into a bunch of independent states we will have a huge problem. It was not very fair from civil war already, with the aborted coup. Could you imagine if the Wagner group became a nuclear power??
45.
▲
by
toth
3y ago
Sorry, I meant IPCC (International Panel on Climate Change). I don't think IUPAC (International Union of Pure and Applied Chemistry) has come out with views on impact of global warming :)
46.
▲
by
toth
3y ago
You are right, but "human civilization will be extinct" is an awkward phrase. Human extinction via climate change is off the table. The end of human civilization? Depends on what one means by it. If it means we'll go back to
47.
▲
by
toth
3y ago
For frontier AI models you don't need a few GPUs or a small cluster. You need thousands of them, you need them all connected with high bandwidth and you need a lot of power. It's not something you can do in your garage or undetect
48.
▲
by
toth
3y ago
It will be very difficult, but if you think about nuclear weapons it doesn't sound so hopeless. First nuclear weapons were used in 1945, almost 80 years ago. Today, out of ~ 200 countries in the world only 9 have nukes. Of those, only
49.
▲
by
toth
3y ago
There is no scenario where climate change leads to human extinction. Worst case scenario is global population goes down by a single digit percentage. Horrible, horrible stuff, but not extinction. And most likely scenarios are not nearly tha
50.
▲
by
toth
3y ago
Or alternatively, -mnative should do all of those and more if your CPU supports them
51.
▲
by
toth
3y ago
If you look at the link to the Cloudfare post [1], they are comparing a bunch of different IPC methods. I bet what I did is for all the other ones (shared memory, mmaped files, unix sockets, etc) they did send 1KB messages, but for signals
52.
▲
by
toth
3y ago
That is a valid point but I think that is outside the scope of dimensional analysis. Distinguishing scalars from vectors (or just different rank tensors in general) is usually obvious, because they have a different number of components, and
53.
▲
by
toth
3y ago
Speaking as former physicist, can only agree with you. However, regarding the Dirac delta function an other generalized functions, even though they were introduced by physicists (I think Heaviside was an early proponent) in a hand wavy fash
54.
▲
by
toth
3y ago
Very interesting. And it's not even an esolang, but something actually intended for production use! Looking closer, it's not as bad as what I had in mind. Association order only depends on type, not value (which is what I meant by
55.
▲
by
toth
3y ago
Wow, this is (evil) genius. It suggests all sorts of obnoxious "features" for esolangs: - Order of operations depends on number of terms in more complicated manner. - Order of operations depends on data? This would make compiling
56.
▲
by
toth
3y ago
Is Mathematica built like this?
57.
▲
by
toth
3y ago
> Thank you for the conversation. Likewise. It's disappointingly rare to be able to have a civil discussion with someone you have very different opinions from.
58.
▲
by
toth
3y ago
> Unfortunately, the difference between a good trader and a successfull one is not ability alone but privilege! Be it insider information or better latency, its the same thing here! > The gap between professionals and hobbyists is the
59.
▲
by
toth
3y ago
> They provide faster and more cost efficient liquidity, thus "bringing down the spread" which will push out maybe not all but certainly the lesser privileged conventional traders. This is foremost negative for the effected tra
60.
▲
by
toth
3y ago
> 'Liquidity provision' is just 'fast cash for your distressed equities'. Yes, if prices are trending in an unfavorable direction investors/speculators would suffer a greater loss in a market without HFT as order
More ›