Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xyzzyz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
xyzzyz
1y ago
The way Rust handles this is perfectly fine. String type promises its contents are valid UTF-8. When you create it from array of bytes, you have three options: 1) ::from_utf8, which will force you to handle invalid UTF-8 error, 2) ::from_ut
92.
▲
by
xyzzyz
1y ago
This also epitomizes the issue. What's the point of having `string` type at all, if it doesn't allow you to make any extra assumptions about the contents beyond `[]byte`? The answer is that they planned to make conversion to `stri
93.
▲
by
xyzzyz
1y ago
Sure, true RAII would be improvement over both, but the author's point is that Java is an improvement over Go, because the resource acquisition is lexical scoped, not function-scoped. Imagine if Java's `try (...) { }` didn't
94.
▲
by
xyzzyz
1y ago
Go was designed by some old-school folks that maybe stuck a bit too hard to their principles, losing sight of the practical conveniences. I'd say that it's entirely the other way around: they stuck to the practical convenience o
95.
▲
by
xyzzyz
1y ago
This paper is literally just authors coming up with some model and simulating it, without any real world evidence whatsoever. It’s an argument from fictional evidence. Is this the best you can do?
96.
▲
by
xyzzyz
1y ago
No, the claim was that inequality drives crime, and all you’re showing is correlation. As I’m sure you’re aware, correlation is not causation.
97.
▲
by
xyzzyz
1y ago
No, that’s absurd. When poor people kill other poor people, this is not a fault of rich people who happen to live nearby.
98.
▲
by
xyzzyz
1y ago
Only a tiny fraction of EV chargers are 100+ kW. Most are 10-20 kW. These are great for office parking garages or shopping malls, but stopping at one for 15 minutes gets you nowhere.
99.
▲
by
xyzzyz
1y ago
That’s just not how it works. There might be electricity there, but only enough to charge one car at a time. Works for my home garage, but would not work for apartment complex.
100.
▲
by
xyzzyz
1y ago
The constitution has already existing answer: instead of agencies passing regulation, Congress passes laws. Agencies continue to enforce the law, and appeals are adjudicated by actual federal courts.
101.
▲
by
xyzzyz
1y ago
College freshmen actually consume way more electricity than LLMs on the same task.
102.
▲
by
xyzzyz
1y ago
That's fine, because the powers not delegated to the United States by the Constitution are reserved to the people.
103.
▲
by
xyzzyz
1y ago
Congrats man, but that's not really germane to the point, which is that a 6 year old iPhone adequately satisfies the needs of majority of the population.
104.
▲
by
xyzzyz
1y ago
The "buy borrow die" strategy is a meme. It just doesn't work the way you think it works. People just repeat stuff they heard on the internet with no real understanding. It is useful to avoid paying the capital gains tax in t
105.
▲
by
xyzzyz
1y ago
No, that’s just not how it works. People cannot become corporations. You cannot hire an army of tax lawyers to avoid owing any tax. There are no major “loopholes” either that would help you avoid paying tax on actual income you make. You ar
106.
▲
by
xyzzyz
1y ago
I understand that you don’t like the European taxation regime, where the bulk of the tax burden is carried by the middle class, but I find it strange that then you give Bezos as a negative example. It is strange, because in US, unlike in Eu
107.
▲
by
xyzzyz
1y ago
The fact of the matter is that “let the money vote” works much better than alternatives. “Reason and restraint” is precisely how we got to where we are.
108.
▲
by
xyzzyz
1y ago
Yes, and why did people ask for these oversized networks? That’s right, because addresses were free.
109.
▲
by
xyzzyz
1y ago
I don’t know anyone who uses their phone to play full graphics games or use it to plan out interior design, and for everything else, a 6 year old iPhone can most definitely do all of that. I know, because I did all of these things on an iPh
110.
▲
by
xyzzyz
1y ago
We are in crisis precisely because nobody charged for IPv4 addresses in the past, and so overwhelming majority of those are wastefully allocated. What you want would exacerbate the crisis.
111.
▲
by
xyzzyz
1y ago
I don’t even know which group you mean, but “my group has good values and motivations, but the enemy group just values winning at any cost” is exactly what a total partisan who values winning at any cost would say.
112.
▲
by
xyzzyz
1y ago
That’s just confusing cause and effect. If your seats are safe, you have no reason to agree to forming an independent commission. The same is true in both heavily blue and heavily red states. Are districts more competitive in states where
113.
▲
by
xyzzyz
1y ago
> like not catastrophically breaking if you can't generate a unique random "k" for ECDSA How does that work? I thought that this vulnerability was independent of the curve that is used. Ed25519 has a bunch of other nice pr
114.
▲
by
xyzzyz
1y ago
At the time, nobody, including the authors, considered these laws to be a shield to protect white and Asian people from discrimination. This is very much false, and can be easily refuted by reading what the lawmakers were saying as the la
115.
▲
by
xyzzyz
1y ago
There are all kinds of laws that limit president's conduct, but the point is that there is no way to actually enforce these laws, other than voluntary compliance by the president and his government, and impeachment by legislature. This
116.
▲
by
xyzzyz
1y ago
And if the people who are cut off from the process are in the weak minority, and the majority agrees that it's good and proper to cut them off, then there will neither be revolution, nor dictatorship. This is the case with the people w
117.
▲
by
xyzzyz
1y ago
I really don't see how this thought experiment is helpful in understanding anything. It would never happen in real world. We have long and well established tradition to disenfranchise specific classes of people, and it is not controver
118.
▲
by
xyzzyz
1y ago
This "IDs are hard to get by in US" narrative is really funny to anyone who lived in Europe, where IDs are harder to get by than in US, while being required for more purposes and activities. I have yet to see anyone saying that vo
119.
▲
by
xyzzyz
1y ago
Look, if you insist on using this term like this, it will make conversation and mutual understanding more difficult. If banning toddlers from voting is "voter suppression", then now we must distinguish between "good voter sup
120.
▲
by
xyzzyz
1y ago
Sperner lemma is very much an algebraic topology theorem. The ideas involved in it form the basis for the theory of simplicial homology, which in turn will lead you to general homology and cohomology theories.
More ›