Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
manwe150
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
271.
▲
by
manwe150
3y ago
FWIW that phenomenon is a geometry thing, not just a fluke. If you are on a collision course with an obstacle at constant speed, than the angle remains constant (as the configuration preserves congruent triangles until impact) and the obst
272.
▲
by
manwe150
3y ago
The random MAC is generated only once per network, and re-used for every subsequent future connection to it, until the network settings are reset
273.
▲
by
manwe150
3y ago
True, I don’t remember the details for writes, and the complexity of managing high/low water marks makes it even trickier for optimal code. And large kernel send buffers here mostly avoid the performance problem here anyways. But on a
274.
▲
by
manwe150
3y ago
Edge-triggered requires an extra read/write on every epoll relative to level-triggered though because you must exactly trigger reading the error state (EAGAIN), so it actually can be much slower (libuv considered switching at one point
275.
▲
by
manwe150
3y ago
I think you are making more of a distinction between optimizations and runtime, not compilation. Doing compilation is about taking a lot of arbitrary user-input (in the form of urls and cmake files and code edits) and executing that. Then o
276.
▲
by
manwe150
3y ago
I don’t know the answer, but I think there is usually 2 green subpixels, so 1+1+1+4 to 1+1+1+1 for that facet
277.
▲
by
manwe150
3y ago
That rate looks not-statistically significant in that study. And also not too “serious” (in layman’s terms, not medically speaking) as the baseline rate for the placebo was 18/10000 (the 1/1000 is a delta value above that)
278.
▲
by
manwe150
3y ago
It seems the article was going to say it was an increasing drug-use (opioid) and mental health epidemic in the US (which seems likely true). Then took a left turn and blamed the deaths of middle aged people on getting a Covid vaccine as a b
279.
▲
by
manwe150
3y ago
I assume the query from Apple to the phone is not "are these (potentially spoofed) coordinates X trusted", but rather "is your current location trusted". The later doesn't seem like it would leak any useful informat
280.
▲
by
manwe150
3y ago
Just to throw a concrete number on this, extrapolating from Wikipedia, about $350k family income will put you above the 1% mark. I assume IPO-windfall would be considerably higher than that and maybe be at least top 0.1% that year ($2M+), w
281.
▲
by
manwe150
3y ago
It is only rare in a particular year. If a given person is assumed to only earn that for 1-2 years of a 30+ year career, then 10-20% of all people will be a top 1% earner, by rough math. Still rare, but not nearly as uncommon when looked at
282.
▲
by
manwe150
3y ago
It could also be there is only enough profit for one, so the game theory equilibrium is zero. So Spotify could be the only player large enough for Sony to profitably encourage. Although that theory doesn’t account for them not giving the op
283.
▲
by
manwe150
3y ago
Does rust also add an pthread_atfork handler? Otherwise, it seems likely still unsafe for rust to claim to support calling fork (for execv) or posix_spawn, as most libc call realloc on the `environ` contents, but do not appear to take any c
284.
▲
by
manwe150
3y ago
It is a good trick with GitHub though that you can add .patch or .diff to the url to fetch the content without styling
285.
▲
by
manwe150
3y ago
I think they meant “shit air” literally. As in, it doesn’t just smell like farts, it is actual farts, being proposed to be blown throughout the rest of the house
286.
▲
by
manwe150
3y ago
Do they usually have guest account access disabled, and would that help if enabled? I once saw a theory that guest account access can help because it grants the third party the ability to connect it to any WiFi network, allowing it to “phon
287.
▲
by
manwe150
3y ago
It is not fundamentally possibly to simultaneously set voltage and current of the charger as they are inversely related to each other and vary as a function of charge state. As the battery gets more full, the current is forced to decrease a
288.
▲
by
manwe150
3y ago
I believe that aforementioned “robust security model” was removed several years ago due to issues with its actual robustness https://openjdk.org/jeps/411
289.
▲
by
manwe150
3y ago
In my experience, being similar to RTLD_LOCAL avoids a whole slew of sharing/unique accidents compared to the pile of hacks that is ELF. It is sometimes both the hardest and easiest platform to work with since it is the conceptually mo
290.
▲
by
manwe150
3y ago
Yeah, now that quelsolaar clarified, I am fairly certain that claim is not true, for exactly the reasons you describe. Of course, there is also the practical example of the mingw compiler, which does implement C11 for Windows, as a counter-
291.
▲
by
manwe150
3y ago
Sharing the memory of a loaded library is not a problem though. Every major operating system has done that for decades. That is just a consequence of copy-on-write pages though and doesn’t affect process isolation. Unless you meant somethin
292.
▲
by
manwe150
3y ago
What is “observable”? Only atomic seq-cst is order preserving, and even then only if there is no data races, and only if the compiler thinks it could even be observed by another thread. Otherwise, the compiler (and CPU) can and will choose
293.
▲
by
manwe150
3y ago
How do you link that? I thought I knew the API pretty well, but that is a new one for me. volatile is only ordered with other volatile calls and is otherwise UB when combined with non-atomics. Whereas an atomic is well-defined for ordering
294.
▲
by
manwe150
3y ago
On Linux, applications are required to load the libatomic shared library to correctly implement the full standard (on some older platforms like ARM, this is true even for small values since the hardware didn’t have an exchange instruction).
295.
▲
by
manwe150
3y ago
At the hardware level, there is no distinction between a regular load, a volatile load, and a relaxed atomic load (assuming small sizes and optimal alignments). But the compiler can still can do things that break your code or that miss opt
296.
▲
by
manwe150
3y ago
Acquire loads (and stronger) are required not to loop forever, if they could be observable from another thread. It is mentioned in the linked paper.
297.
▲
by
manwe150
3y ago
Yes, rust is a great language. I love what it does. It also has memory leaks, because it is missing the cleanup part of the GC so it can’t deal with reference counter cycles. Well, there is boehm if you do want to take on that complexity. B
298.
▲
by
manwe150
3y ago
To be a bit pedantic, the dangerous effect of the vacuum of space is the lack of oxygen and rapid suffocation, apparently within seconds: https://en.wikipedia.org/wiki/Effect_of_spaceflight_on_the_h... . The other effec
299.
▲
by
manwe150
3y ago
But then mark and sweep also doesn’t have to free the memory (it just does a bulk sweep occasionally), and RC languages do need to free memory used to hold the values later (they have to run expensive compaction and locking steps). So defin
300.
▲
by
manwe150
3y ago
That card would be dead (non responsive or short circuited) by the time it made it to Mars. Rough rule of thumb I have heard is add 2 zeros to the cost of every IC for space grade stuff.
More ›