Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Kamq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
Kamq
2y ago
You can, but I didn't want to introduce any extra constructs from the original example. And this is a bit of a weird case, at least where I am. I tend to have a bunch of things to process and have one goroutine sending keys/indice
62.
▲
by
Kamq
2y ago
Yeah, go's a little boilerplatey, but you have to option to run two sync things concurrently as well with something like: type result[T any] struct { el T err error } chanA := make(chan result[aResultType]
63.
▲
by
Kamq
2y ago
> I don't think our society's response to the welfare cliff should be to tell people to break the law though. I think you could make an argument that it should be. Getting people to break the law in a lot of small ways seems li
64.
▲
by
Kamq
2y ago
The numbers don't line up for that. The sum total of the wealth of all the billionaires in the US in 2021 was ~$4.1 Trillion [0]. That's about the same as the government budget in a normal year pre-pandemic, or about 2/3 of t
65.
▲
by
Kamq
2y ago
> Why the security theater industry has appropriated "hacking" to mean accessing other people's systems without authorization, I don't know. A lot of early remote access was done by hackers. Same with exploiting vulne
66.
▲
by
Kamq
2y ago
If you're going to do that, you're going to need to get universities to treat computers as an actual applied discipline. Physical engineers at least get some practice working with numbers around real materials. I've met too m
67.
▲
by
Kamq
2y ago
> I'd bet on some singer or actor / actress being the most well known globally. I'm willing to bet it's Mia Khalifa
68.
▲
by
Kamq
2y ago
Most people actually don't like firing people. Management, as weird as it may seem, actually is made up of people. That's why layoffs don't happen until the market starts to get tight, but yeah, when the market's tight.
69.
▲
by
Kamq
2y ago
> Which would be an odd position if European was a touchy identifier They said "bemused", not that it was touchy. The comment seems to imply that Ireland sees itself as a very non-central example of the category "European&
70.
▲
by
Kamq
2y ago
The easy solution seems to be to only let a work retain copyright so long as it's obtainable from the holder of the copyright.
71.
▲
by
Kamq
2y ago
I mean yeah. You can basically judge political/economic system by how many famines they have.
72.
▲
by
Kamq
2y ago
I find myself noticing some confusion while reading this article (and several previous articles along the same line). This seems like "neurotargeting" could be a danger to a very specific conception of democracy, but not a danger
73.
▲
by
Kamq
2y ago
> Or are you suggesting that the system claims to be instilling some level of competency in various subjects? I am. Otherwise why would there be standardized tests to attempt to measure this? There's use in the education as a public
74.
▲
by
Kamq
2y ago
On one hand, this is fair. On the other hand, when 19% of high school graduates are functionally illiterate, I don't think it's too much of a stretch to say that the system is obviously not doing what it says it is.
75.
▲
by
Kamq
2y ago
> I also personally don't want to live in a world where a significant portion of people don't know basic history As quizzes on late night talk shows have shown for the past 20+ years, the current education system doesn't a
76.
▲
by
Kamq
2y ago
> In the happy case (no exception) how can the first version be harder to optimize than the second one? If your runtime has to do extra work to support stack-unwinding, it could easily be slower. You're doing work in the happy path
77.
▲
by
Kamq
2y ago
> I cannot fathom why people think it does error handling well, though. It doesn't. But it lets me do error handling well if I'm up to it. Which is the worst of all possible worlds except for the one where error handling is don
78.
▲
by
Kamq
2y ago
> what is your idea of "art"? Something designed to elicit an emotional reaction from human beings. It doesn't have to be a pleasant emotional reaction, but there should be one. On that metric the modern art world has with
79.
▲
by
Kamq
2y ago
> There is a huge difference between trying to counter institutional prejudice in order to improve the quality of the student body and work being done, and whatever you think a religious “pledge of allegiance” is. There is, but there
80.
▲
by
Kamq
2y ago
I'll admit to not being super great at getting down into the nitty gritty with internals of compilers. Are you talking about some sort of IR? Because if we're talking about the output, mutation definitely happens. Checking on godb
81.
▲
by
Kamq
2y ago
> but I love Option/Result types more than Go's error approach The thing is, these don't add much on their own. You'd have to bring in pattern matching and/or a bunch of other things* that would significantly com
82.
▲
by
Kamq
2y ago
Correct. In type theory, a type that is a subtype of all other types is called a bottom type: https://en.wikipedia.org/wiki/Bottom_type
83.
▲
by
Kamq
2y ago
Fair, but those are kind of off in their own in the java hierarchy as is.
84.
▲
by
Kamq
2y ago
There's no reason that something can't both an object and the bottom of the type hierarchy. It's, technically, an instance of multiple inheritance. Java doesn't generally allow this, but there's tons of special case
85.
▲
by
Kamq
2y ago
> That's the kind of code for which Rust-like languages shine. Rich type systems make it easy to change your mind about things and make large changes to your code with confidence. I don't think this is true. Rust makes it easy
86.
▲
by
Kamq
2y ago
It's dumb, but Wickard v. Filburn makes basically anything involving physical goods "commerce". I'm sure there's a ruling somewhere that says something like: people entering the country subtly alter the restaurant m
87.
▲
by
Kamq
2y ago
> This is not complicated: If you run a telegraph wire between El Paso and Juárez, the executive has the Constitutional authority to tap it to intercept communication to or from a non-citizen not in the United States, warrant-free. That&
88.
▲
by
Kamq
2y ago
> As a college non-graduate, I think that is leveraging the strong data that for most people a college degree is a huge net benefit is reasonable. As another college non-graduate (although I'm currently going back to school). Have w
89.
▲
by
Kamq
2y ago
> It is surely a great critique of the western system that China giving us stuff for free made us poorer. I mean... is it? I can think of a few times that something previously expensive is suddenly made very cheap, and there's alway
90.
▲
by
Kamq
2y ago
I think they intentionally meant second world. They mention "one party" (presumably one political party), which was generally a feature of the second world instead of third. Additionally, the third world generally allows you to ow
More ›