Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sgsjchs
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Authentication is now sometimes required to clone public GitHub repositories
(github.com)
3 points
by
sgsjchs
13d ago
|
0 comments
2.
▲
by
sgsjchs
16d ago
What happens when a user without the cookie GETs a slow page? Does he get redirected to fast one to and back?
3.
▲
by
sgsjchs
16d ago
Maybe I misunderstand what you mean by "load the cookie". What is it if not Set-Cookie header with redirect status? That doesn't seem particularly special to me.
4.
▲
by
sgsjchs
16d ago
It's not reusable from a different IP.
5.
▲
by
sgsjchs
17d ago
How so?
6.
▲
by
sgsjchs
17d ago
It discards the cookie after one request and appears as a new user.
7.
▲
by
sgsjchs
17d ago
The people "consented" to this when they clicked OK on the user agreement.
8.
▲
by
sgsjchs
17d ago
Ironically, defense by obscurity may be the way to go here. Fork Anubis. Slightly modify the hash function it computes. Deploy. Do not try to make your fork widely adopted. Do not even publish it. You've just defeated ASICs and any cr
9.
▲
by
sgsjchs
17d ago
it'll load the cookie, make one request, move to a different ip, load the cookie, make one request, move to a different ip, ...
10.
▲
by
sgsjchs
1mo ago
> dictionary based compression That corresponds to PCFG models.
11.
▲
by
sgsjchs
1mo ago
The first LZ-step pretty much directly maps to BPE tokenization in LLMs.
12.
▲
by
sgsjchs
3mo ago
Make multiple nodes do the same job, compare results.
13.
▲
by
sgsjchs
5mo ago
You have it backwards. This formal game-theoretic notion of fairness acknowledges that power disparity exists and that having less power than your counterparty allows them to inflict greater disutility on you without you being able to infli
14.
▲
by
sgsjchs
7mo ago
Does it really matter that English is not as precise if the agent can make a consistent and plausible guess what my intention is? And when it occasionally guesses incorrectly, I can always clarify.
15.
▲
by
sgsjchs
8mo ago
It's the other way around.
16.
▲
by
sgsjchs
10mo ago
The trick is to provide dense rewards, i.e. not only once full goal is reached, but a little bit for every random flailing of the agent in the approximately correct direction.
17.
▲
by
sgsjchs
11mo ago
I, too, enjoy the craftsmanship, but at the end of the day what matters is that the software works as required, how you arrive at that point doesn't matter.
18.
▲
by
sgsjchs
11mo ago
> I still don't understand this decision. Variable declaration `T v;` means "declare `v` such that expression `v` has type `T`". Variable declaration `T *p` means declare `p` such that the expression `*p` has type `T`"
19.
▲
by
sgsjchs
1y ago
But in C that's just syntax sugar for pointer math.
20.
▲
by
sgsjchs
1y ago
You very rarely would actually want scalar types which don't map directly to hardware supported ones anyway.
21.
▲
by
sgsjchs
1y ago
Why would you want to store arbitrary individual passwords instead of deriving them with on demand from the service name/domain and a common secret?
22.
▲
by
sgsjchs
1y ago
Indeed, the "valid but unspecified state" refers only to some types defined in the he standard library. It essentially means that you can only call methods which have no preconditions and don't depend on what that state is, e
23.
▲
by
sgsjchs
1y ago
> No, the class can use a sentinel value internally only to mark moved-from objects. That's exactly where we actually started the conversation. The issue is that the "moved-from" state is exposed to the user when the moves
24.
▲
by
sgsjchs
1y ago
> Again, I don't see what this has to do with destructive moves. If you want a socket class that always refer to an open socket, you can already do that. Technically you can, but it's unreasonable to create an os-level socket j
25.
▲
by
sgsjchs
1y ago
> what difference would it make The same difference as making pointers always non-nullable and reintroducing nullability via an optional wrapper only when semantically appropriate. > what could you possibly do with an arbitrary user-d
26.
▲
by
sgsjchs
1y ago
You don't need optional in this case, the assignment would just destroy the old socket and immediately move the new one in its place.
27.
▲
by
sgsjchs
1y ago
> And what's the underlying value of such a default constructed socket? I assume it would be -1 resp. INVALID_SOCKET No, as explained, the default value would be the result of `::socket` call, i.e. a fresh OS-level socket. > So y
28.
▲
by
sgsjchs
1y ago
Reopen by constructing and assigning a new socket.
29.
▲
by
sgsjchs
1y ago
In this case, I would want the address family and protocol to be statically known, so it would have default constructor. But for example, a file might not have one, sure. As for closing before lifetime ends, why? I can just end lifetime. Wr
30.
▲
by
sgsjchs
1y ago
If the moves were destructive, I'd design it to have the default constructor call `::socket` and destructor call `::close`. And there wouldn't be any kind of "closed" state. Why would I want it?
More ›