32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions
comment 4y ago · link · parent
For comparison, estimates place dog domestication as having taken place anywhere between 29,000 and 14,000 years ago.
comment 4y ago · link · parent
I didnt understand the first three words, for Alice it was the next two, and for Bob it was the last four. How many people are going to ask to repeat?
Evolution taught us to understand over the sound of waves, crickets, rain, thunder, and more. It didn’t teach us to comprehend with half the signals masked.
comment 4y ago · link · parent
The compromise would be to always start rendering immediately rather than wait x ms, but if you detect that the previous rendering hasn’t completed when the next input has arrived then you can start debouncing before rendering until you catch up.
comment 4y ago · link · parent
comment 4y ago · link · parent
The AVX2 rollout was (comparatively) flawless. The gains AVX512 brings over AVX2 are, for most people w/ specialty libs excluded, not worth dealing with the terrible CPU support. And Intel just keeps making the situation worse, taking one step forward and two back.
2174.
A Chinese Spy Wanted GE’s Secrets, but the US Got China’s Instead(bloomberg.com ↗)
5 points · by ComputerGuru · 4y ago · discuss
comment 4y ago · link · parent
2177.
Google launches pilot program to keep political emails out of Gmail spam folder(axios.com ↗)
10 points · by ComputerGuru · 4y ago · 2 comments
2178.
New Active Directory integration features in Ubuntu(ubuntu.com ↗)
1 points · by ComputerGuru · 4y ago · discuss
comment 4y ago · link · parent
Semaphores alone can’t mimic the same semantics (juggling between multiple, disparate locks/sync objects) without running into a possible race condition unless you have an API that can somehow wait on one of two or more semaphores to become available.
comment 4y ago · link · parent
Events and signals aren’t intended to be used off you’re trying to share ownership of memory or data - you should use the std types in that case. They’re for signaling between threads or for building your own synchronization objects atop of. For example, an auto reset event can be used in lieu of a one-bit channel (sort of like Mpmc<()>) and manual reset events can be used to implement the same in broadcast mode, much more efficiently than the channel crates. A common usage is to block until an event is available or a shutdown has been requested - in lieu of manually polling an AtomicBool and aborting if it is true, making your code more responsive (no delay between polls) and more efficient (no repeated polling, no busy waits, etc). They can be used to signal state transitions or readiness, which doesn’t have anything to “own”, for example, the rsevents-extra crate [0] implements a countdown event (event becomes available when n outstanding tasks have finished in parallel threads) or a semaphore (restricting concurrency to a region of code, not limiting access to a variable or object).
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Most of these coins only have value as scams that you could prop up then cash out by exchanging for BTC or ETH; so long as the "new coin of the day" hype train exists there will be a way to make money off of GPU mining. I guess there will always be suckers in this unregulated market.
comment 4y ago · link · parent
(This actually doesn't happen as much as it used to twenty years ago with step-by-step inventory checkins made possible w/ RFID chips and barcodes combined with mobile network connections).
comment 4y ago · link · parent
comment 4y ago · link · parent
a) how far apart each of the color pairs was from one another (hue only),
b) how far apart each dark/bright color in a pair were from one another,
c) how high the contrast against a specific background color (provided as a parameter),
d) how far the perceived brightness of any "bright" color differed from the rest of the "bright" colors,
e) how far the perceived brightness of any "dark" color differed from the rest of the "dark" colors,
f) how far each of the 8 base colors strayed from a range that could passably be called the de facto colors mapped to each of the palette members (e.g. cyan, blue, black, white, etc) so that TUI apps using colors not to distinguish but to draw (expecting "blue" to be a shade of blue) would not be thrown off.
Unfortunately I never found the results to be pleasing to the eye. I also think there was something wrong in either the math of the individual cost function factors themselves or the weights assigned to each factor because I didn't feel like the results were properly spaced out or representative of what even a local minima what look like if the math was all correct. I didn't really want to put more time into it than I already had, but I'm convinced that it's possible to generate a fixed set of 2x8 colors that meet these conditions for any given background color (at least one for a black or dark grey background and another palette for a white or off-white background).