Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sprocklem
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
Sprocklem
3y ago
> Granted, a lot of this boils down to whether AI learns or copys/remixes; [...] I mean, it certainly isn't learning in the same way humans learn. Human learning involves some degree of understanding , which is wholly absent i
32.
▲
by
Sprocklem
3y ago
There is also ongoing work to add a `try_collect` method specifically for collecting into `Result`, etc. Hopefully, when this lands it will make this pattern more intuitive/obvious and eliminate some inconveniences in its use.
33.
▲
by
Sprocklem
3y ago
POSIX only guarantees write atomicity for pipes and FIFOs, not for regular files.
34.
▲
by
Sprocklem
3y ago
I was not suggesting the caller hold a mutex, but rather getenv(), which eould be transparent to the caller.
35.
▲
by
Sprocklem
3y ago
A number of libc functions return a pointer to an internal thread-local buffer, which is invalidated on subsequent calls. If the function copies the environment variable's value to such a buffer while holding the mutex controlling acce
36.
▲
by
Sprocklem
3y ago
I recently visited my local Indigo after having not gone for a couple of years, and was surprised at how little space was dedicated to bookshelves. And even those shelves were surprisingly empty. I'm sure that those other categories ha
37.
▲
by
Sprocklem
3y ago
Of course, *_r is a better option, but the existing API is used so pervasively that it needs to be made thread-safe to actually avoid thread-unsafe code in, e.g, libraries.
38.
▲
by
Sprocklem
3y ago
I was suggesting that the buffer be invalidated by each subsequent call – like some other libc functions' internal buffers – although, as I noted in the edit this would need `getenv()` to be able to indicate errors (specifically ENOMEM
39.
▲
by
Sprocklem
3y ago
The pointer isn't guaranteed to point into `environ` directly. `getenv()` could copy the value to a thread-local, (dynamically-allocated?) buffer while holding the lock. Edit: In hindsight, a dynamic buffer would require returning ENOM
40.
▲
by
Sprocklem
3y ago
How do you propose that DNS resolution precede without opening a socket?
41.
▲
by
Sprocklem
3y ago
Greed is part of human nature, sure, but so is empathy and selflessness and a sense of justice. We certainly didn't need to build a society that rewards people for giving into one of their most selfish and cruel impulses.
42.
▲
by
Sprocklem
3y ago
Those might be better, but neither is a tag that is used in kernel commits. There is a list of specific tags that are used, and specific conditions on their use. "Reported-by:" was not a wholly arbitrary choice of words by the mai
43.
▲
by
Sprocklem
3y ago
What the maintainer actually said was [0]: > Thanks for your patch, but I wanted to fix it differently. Can you try the patch below and make sure it fixes the bug for you? Which to me, at least, reads very differently than claiming the a
44.
▲
by
Sprocklem
3y ago
Not quite. ChatGPT incorrectly mixes up SI and non-SI units.
45.
▲
by
Sprocklem
3y ago
Also, firefox on android will be supporting the install of any extension without using nightly and collections very soon.
46.
▲
by
Sprocklem
3y ago
Notably, the example given by GP also cannot function as a restrictive clause, since "that" is acting as a demonstrative rather than the head of a clause: *Upon the submission of the cause the appellant made a motion (to amend its
47.
▲
by
Sprocklem
3y ago
This notably differs from the example in OP by its position outside of the first sentence. AFAICT, your second sentence cannot function as a parenthetical like the example with "which motion".
48.
▲
by
Sprocklem
3y ago
Additionally, humans are unique in their ability to create complex social constructs and realities, which is a reasonable prerequisite for a potential to create novel methods of social organization.
49.
▲
by
Sprocklem
3y ago
Similarly, a list of firefox's "about:" URLs can be found in "about:about".
50.
▲
by
Sprocklem
3y ago
I think the murkiness of this recent history is more a matter of misunderstanding at the time than people misremembering after the fact. I remember believing it prevented optionality for more than common words. I can't recall exactly w
51.
▲
by
Sprocklem
3y ago
One (admittedly speculative) reason to believe that all natural spoken languages have a common ancestor derives from the fact that modern humans seem to rapidly develop new languages in the absence of an existing language, as was seen in th
52.
▲
by
Sprocklem
3y ago
There is a balancing act here: while beekeeping does in many ways help support the population of non-native species, you are right in noting that a lot of eurasian plant species that we rely on need domestic bees – and honey bees, in partic
53.
▲
by
Sprocklem
3y ago
It generally does cache built crates for future builds on the same system, so it is usually only the initial build on a given system and the build after dependencies are updated that requires rebuilding serde_derive. I honestly don't k
54.
▲
by
Sprocklem
3y ago
Perhaps I should have been more explicit: sending "a commit sha and branch name" is functionally equivalent in that it contains both the information necessary to retrieve the commits and a method of responding to the new commits,
55.
▲
by
Sprocklem
3y ago
I'm not sure I phrased that correctly. The point I was trying to get across with that sentence was not so much that web UIs are bad, but that if you are using a forge with in-browser support for reviewing changes (generally in the cont
56.
▲
by
Sprocklem
3y ago
The biggest difference is the need to have shared access and it therefore does not easily allow for contributions from people without write access to the repo, although a similar workflow is possible with multiple publicly-readable repos (e
57.
▲
by
Sprocklem
3y ago
I strongly disagree. I've recently contributed to a project that uses an email-based workflow, and find it considerably easier to use: after a surprisingly brief one-time setup, I can contribute patches using a single `git send-email`
58.
▲
by
Sprocklem
3y ago
For completeness sake, throwaway201606 linked to the resonse upthread: https://www.computerworld.com/article/2567290/no-more-bull.a...
59.
▲
by
Sprocklem
3y ago
In some disciplines, at least, the background also follows a separate introduction that briefly explains the problem and the paper's contribution. This follows an explanation->conclusion order, but only explains enough to understand
60.
▲
by
Sprocklem
3y ago
Occasionally a leap second is added or removed, to account for various sources of drifts. This leap second is taken to be the last second of the day where it is inserted, so the time technically either goes 23:59:59→23:59:60→00:00:00 or 23:
More ›