Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adrianratnapala
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
adrianratnapala
8y ago
Yes, although even here, small is not that very small: > The main focus is about short keys of random lengths, with a distribution of length roughly in the 20-30 bytes area, featuring occasional outliers, both tiny and large. I have been
92.
▲
by
adrianratnapala
8y ago
So it took me a while to find the actual algorithm. As far as I can tell it is here: https://github.com/Cyan4973/xxHash/blob/dev/xxh3.h Is there a description of the algorithm, the C-source is not only
93.
▲
by
adrianratnapala
8y ago
Thank yous all for teaching me about Brown M&Ms. https://www.snopes.com/fact-check/brown-out/
94.
▲
by
adrianratnapala
8y ago
What needs filling in? It didn't have a heap. It's not like you really need one.
95.
▲
by
adrianratnapala
8y ago
Probably the resource is older than 2018, and is taking aim shared_ptr (or maybe even auto_ptr?) rather than unique_ptr.
96.
▲
by
adrianratnapala
8y ago
I am surprised the reasons for planes being to fit in odd bit sizes. Although I suppose that is a reason. Planes are a nice abstraction, because they allow you to use the concept of a raster surface for all kinds of things. These things
97.
▲
by
adrianratnapala
8y ago
So if I am understanding this story, some people found a correlation and mistook it for causation. An obvious no-no, albeit a easy trap to fall into. That's assuming what you were looking for was a handle on how you could get more or
98.
▲
by
adrianratnapala
8y ago
Is this step one in re-inventing principle component analysis?
99.
▲
by
adrianratnapala
8y ago
> Take out the intelligence and skill, and you get Anna Delvey and Holmes. You still need to add mendacity. If Musk, Gates etc. had been less lucky, would they have turned to lie to try and manufacture luck? They probably did a little b
100.
▲
by
adrianratnapala
8y ago
This is true, but "worked" does mean it was secure by whatever we standard we consider good today. That might be because we (at least on sites like this) are being overzealous about security. Or it might mean that in the modern e
101.
▲
by
adrianratnapala
8y ago
> Apps need it to determine where to place elements Annoying apps which control the layout in JS instead of letting the browser do it will need it.
102.
▲
by
adrianratnapala
8y ago
Even this can be pretending to pretend. That is, the censor is some bored middle-class beaurocrat rather than a true believer. So all you need is to give the him plausible deniability so he can turn around to his bosses and say "Hey,
103.
▲
by
adrianratnapala
8y ago
> For those stuck in the United States, the FDA will let you get Ocrelizumab, which is basically Rituximab tweaked enough so that Genentech could get patent protection for it. So Rituximab was never approved by the FDA? I assume it too
104.
▲
by
adrianratnapala
8y ago
That's exactly the path to hell. You start using `shared_ptr` because you are too confused about the code to know which of the two "contexts" is supposed to own the thing. So shared_ptr (might) fix your memory freeing proble
105.
▲
by
adrianratnapala
8y ago
You are probably talking about different kinds of representations. hathawsh meant representation in the sense of memory layout and other low-level details of how application state is encoded. You seem to be talking about the programmer-vis
106.
▲
by
adrianratnapala
8y ago
I don't miss, `shared_ptr`. It is a disaster for anything other sharing a thing between threads (in which case, it is a way of managing the disaster you already have). Now `unique_ptr` is worth missing. And destructors are good too -
107.
▲
by
adrianratnapala
8y ago
> My experience with this is that it is not the necessarily the language that makes it too complex It's not that the language makes the project complex. It's that the projects are by a bit more complex than the language is cut
108.
▲
by
adrianratnapala
8y ago
> If the policy is that the student doesn't get the phone back at all, ... That policy is commonly called stealing -- though it probably has a more specific label under law. Schools traditionally have been implement civil-asset forf
109.
▲
by
adrianratnapala
8y ago
I used Octave in Uni when my assignments had to be done in (commercial) MATLAB. I could get most of the code working at home, and then port. Matlab compatibility was the key benefit , even though the MATLAB language is a bit stupid. And
110.
▲
by
adrianratnapala
8y ago
The state did prove that Timbs and committed the crime he was being fined for, the question at hand is whether the state can take away his car. One reason might have been if it was the proceeds of drug-dealing. But that reason is not releva
111.
▲
by
adrianratnapala
8y ago
> Bitcoin doesn’t use energy, bitcoin is energy Or a little more precisely a bitcoin is a provable record that a significant quantity of free energy was once turned into heat. So it does use energy, in the creation and once it is crea
112.
▲
by
adrianratnapala
8y ago
I started using the Internet at a time when HTTP traffic already exceeded Gopher+FTP traffic, but not by orders of magnitude. I'd start nearly any session with Gopher, and it would end in either some web pages or an FTP server. Gopher
113.
▲
by
adrianratnapala
8y ago
It would be a useful test-case. The rationale behind Citizens United type cases is that citizen's free speech rights can be exercised via corporations. But a foreign-owned corporation is a different kettle of fish. It's a bit s
114.
▲
by
adrianratnapala
8y ago
No it they don't, because they make different predictions about incentives. Allowing the business to operate in bankruptcy cam, under certain conditions, give managers to incentives to drive the business into bankruptcy. For better or
115.
▲
by
adrianratnapala
8y ago
> Then, for the realtime program to run correctly, it would involve as well an understanding of all other processes/programs that are running at potentially the same time Yes, and the best way to understand things is to keep them si
116.
▲
by
adrianratnapala
8y ago
OSes and applications that get called real-time vary a lot. But yes, when it is meant rigorously, you can definitely schedule a thing to run on exactly at particular times, preempting whatever lower priority thing was running before. In my
117.
▲
by
adrianratnapala
8y ago
It seems like the opposite. The Brexit vote question was: "Should the United Kingdom remain a member of the European Union or Leave the European Union". For better or for worse, UK is set to leave the EU, and nothing extra will ha
118.
▲
by
adrianratnapala
8y ago
When I call write(), it is typically already inside a bigger loop. If the system can't write my whole buffer right now , then I am happy to get the CPU back so I can do more work before trying again (and now I might have more data fo
119.
▲
by
adrianratnapala
8y ago
If you want to keep things simple, then surely it is better to keep silent than to say things that are wrong.
120.
▲
by
adrianratnapala
8y ago
Is the use-case here really related to that of block storage? I imagine a given pool of blocks is reserved for one of VM at a time. I wouldn't want to share the storage live between two VMs unless it was being accessed by some applic
More ›