Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
duped
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
451.
▲
by
duped
11mo ago
Panics are for unexpected error conditions, like your caller passed you garbage. Results are for expected errors, like your caller passed you something but it's your job to tell if it's garbage. So the point of unwrap() is not to
452.
▲
by
duped
11mo ago
This is not a reasonable take to me. unwrap/expect are the idiomatic way to express code paths returning Option/Result as unreachable. Bubbling up the error or None does not make the program correct. Panicking may be the only reas
453.
▲
by
duped
11mo ago
Ok but why? This open disregard for constitutional law because you don't like immigrants is weird and gross.
454.
▲
by
duped
11mo ago
There is at least one: https://www.cbsnews.com/chicago/news/documents-shed-light-ba... But the point still stands, they're out here rounding up people who don't look white enough.
455.
▲
by
duped
11mo ago
It was debated in 1898 and this argument lost.
456.
▲
by
duped
11mo ago
Return the cached item if it exists else spawn a task to update it (doing nothing if the task has already been spawned), await the task and return the cached item.
457.
▲
by
duped
11mo ago
I have always heard "prefer composition to inheritance" also referred to as "has a" instead of "is a." Meaning: class Dog : Animal; // inheritance class Car: Wheels wheels; /&
458.
▲
by
duped
11mo ago
> I struggle to understand why the (potential?) rights-holders are so intransigent about this. > you will get a fixed percentage of every sale"--that seems like an easy win-win, does it not? It's really not an easy win-win.
459.
▲
by
duped
11mo ago
The traditional thing would be to have an init() function that is required to be called at the top of main() or before any other methods that need it. But I agree with your point.
460.
▲
by
duped
11mo ago
I think tooling is big and people underestimate the lingering cognitive overhead of simply building C++ with arcane CMake files, but honestly it's more that much of Rust is informed by problems in C++ that they didn't have to inhe
461.
▲
by
duped
11mo ago
I think Rust is easier to learn than C++
462.
▲
by
duped
11mo ago
A media business is predicated on exclusive rights over their media. The entire notion of media being freely copied and saved is contrary to their business models. I think there's a healthy debate to be had over whether those models ar
463.
▲
by
duped
11mo ago
This is the problem with leaky analogies. The US immigration system is more like a train tunnel in a Wile-E Coyote cartoon that Roadrunner can run through but Wile-E slams into.
464.
▲
by
duped
11mo ago
If the light never turned green you'd bet your butt that plenty of people would run the light.
465.
▲
by
duped
11mo ago
Paramilitaries kidnapping and assaulting my neighbors is not "rage bait." It's fascism.
466.
▲
by
duped
11mo ago
Flock is a bad actor and untrustworthy (misleading departments and officials about how data is shared/accessed, literally reinstalling cameras that cities have demanded to be taken down). Regardless of whether the local municipality wa
467.
▲
by
duped
1y ago
Not all machines deserve to exist
468.
▲
by
duped
1y ago
std::arch::* intrinsics for SIMD are stable and you can use them today. The situation is only slightly worse than C/C++ because the rust compilers cares a lot about undefined behavior, so there's some safe-but-technically-unsafe&#
469.
▲
by
duped
1y ago
Meanwhile, ORD is surrounded by residential areas and they're building a new tollway perpendicular to the runways
470.
▲
by
duped
1y ago
Manchin was a stooge who voted how he was paid. He doesn't get a pass for not being as clear a traitor as Sinema.
471.
▲
by
duped
1y ago
Why should they be publicly available and easily obtainable?
472.
▲
by
duped
1y ago
There are monitoring apps that do send audio to the device. I'm not talking about mix control apps. These are wireless replacements for dedicated monitor mixes that run over WiFi.
473.
▲
by
duped
1y ago
I've seen a few products that are in essence, "virtual jamming" but they're not marketed like that. For example a bunch of live sound mixers come with an iOS app for live monitoring that you can use to feed monitor mixes
474.
▲
by
duped
1y ago
Why does that require the web? Networked collaboration integration already exists in mainstream DAWs without all the downsides of forcing things into a web browser
475.
▲
by
duped
1y ago
It's always possible to create a future that is never polled, and this is a feature of Rusts zero cost abstraction for async/await. If tokio::select required tasks it would be a lot less useful. This problem would have been avoide
476.
▲
by
duped
1y ago
I don't think anyone really calls the latter "cancellation" in practice. I'm just pointing out that "is never polled again" is the tricky state with futures.
477.
▲
by
duped
1y ago
So there's a distinction between a task and a future. A future doesn't do anything until it's polled, and since there's nothing special about async runtimes (it's just user level code), it's always possible to
478.
▲
by
duped
1y ago
A common trend in audio systems is that the market cap is too small for economies of scale when it comes to commodity parts like processors. There are a handful of audio-specific chips that are common but processors are not one of them (any
479.
▲
by
duped
1y ago
It sounds like your trouble with async is mistaking concurrency for parallelism.
480.
▲
by
duped
1y ago
Not really, this is a very minor difference that people exploit all the time to minimize the size of serialized data or make it more readable. This is a great example of bikeshedding.
More ›