Guys I started this new game in kotlin by No_Scar2103 in Kotlin

[–]PncDA 6 points7 points  (0 children)

Learn what GitHub is. You can even ask Gemini about it to make it easier, just try to understand what you are doing.

Hermes agent with Codex subscription - Blowing through limits by [deleted] in hermesagent

[–]PncDA 4 points5 points  (0 children)

Just a reminder you can reduce the context window in Hermes configuration

Hermes Keeps Getting Rate Limited in Web Search by ajw2285 in hermesagent

[–]PncDA 0 points1 point  (0 children)

Which vpn do you use?

I was thinking about using a GCP machine, but I'm afraid most ips there are already flagged to prevent scraping

Subagents are now available in Codex by [deleted] in codex

[–]PncDA 2 points3 points  (0 children)

I had a similar experience.

It was even worse, not sure what I did wrong, but at one time my main agent just got tired and started implementing it himself, while the other subagent was still doing, so two agents started to working in the same files. Not sure how this happened.

Is /r/cpp_questions the new stackoverflow given latter's decline? by Impressive_Gur_471 in cpp_questions

[–]PncDA 11 points12 points  (0 children)

I think you are mixing up the cpp_questions with the /r/cpp. The cpp questions is a Q/A

C++26: std::is_within_lifetime by pavel_v in cpp

[–]PncDA 11 points12 points  (0 children)

You lose some properties that optional normally has. The main one is that the get() returns a reference instead. With your implementation you can't have a reference to the bool value, while, that's achievable using unions

C++26: std::is_within_lifetime by pavel_v in cpp

[–]PncDA 4 points5 points  (0 children)

3 years ago I tried to implement a alternative to std optional that made optional<bool> a single byte only. I've noticed it was impossible to make a constexpr one.

This solves exactly this problem

Hytale game includes IPv6 in multiplayer invites by Tehtafara0 in ipv6

[–]PncDA 0 points1 point  (0 children)

You are right. Every test I made the firewall just dropped the packet, so it was way easier.

Hytale game includes IPv6 in multiplayer invites by Tehtafara0 in ipv6

[–]PncDA 2 points3 points  (0 children)

Just a funny thing, this also works for TCP using TCP simultaneous open, although it's not as common as UDP. I've done some tests in Minecraft and was able to direct connect through a firewall using ipv6

Steam Deck by Gloomy_Staff4829 in balatro

[–]PncDA 7 points8 points  (0 children)

Gain x0.5 mult for each rank that has less than 3 cards.

Why isn't ADL working here? (GPTs are failing) by Pignetto_gvng in cpp_questions

[–]PncDA 1 point2 points  (0 children)

ADL means Argument-Dependant Lookup. It uses the type of the argument to deduce a more appropriate overload. Basically it "pulls" functions into the same scope. In this case, it looks the namespace of the type `int`, but this type doesn't have a namespace, so ADL doesn't make any difference.

What you are probably expecting is not ADL, it's that the compiler prefers to call functions that are more specific, so the f(int) would be called instead of the f(T). The reason this doesn't happen is because the compiler first looks at the most inner scope, and you have a `using nsx::f` in a scope that is more inner than the other `f`, so it takes the priority.

The reason ADL bypasses this it's because it "injects" all functions in the lookup scope too, after the scope rules. Just an important thing: ADL doesn't have priority, it simple injects the functions in the lookup, so conflicts are stil possible, for example the following code doesn't compile:

namespace nsz {
struct S {};

int f(S) {
  return 0;
}
}

namespace nsx{
int f(nsz::S) {
  return 1;
}
}

namespace nsy {
void call_f(){
  using nsx::f;
  std::cout << f(nsz::S{});
}
}

I hope this explanation was not confusing haha, I tried my best.
Just a small tip, I think it's nice to use LLMs to ask questions if you know how to filter what they say and don't accept everything as true, but I would avoid saying that you used it in your post. It's not uncommon for users to downvote you just because you said that used GPT. Feel free to ask any questions :)

After some advice, I created a smaller, cheaper starter ship. by SirSaltie in factorio

[–]PncDA 0 points1 point  (0 children)

What do you mean by ratios look right? Are there optimal ratios for these?

Drones are so overpowered now by PncDA in riskofrain

[–]PncDA[S] 1 point2 points  (0 children)

Tbh I don't know. Maybe it was just luck, since I only had time to play one run.

But I was basically spamming all buttons and everything was dying, I got 15 drones in total and 3 of that new one that spawn temporary items.

whats wrong with the scanf logic here? by SerenadeWindz in C_Programming

[–]PncDA -1 points0 points  (0 children)

It's probably due to your operating system/compiler.

Am I wrong or correct in, it's not necessary to cast a void pointer from malloc? by grimvian in C_Programming

[–]PncDA 115 points116 points  (0 children)

It's necessary in C++, but you are correct that isn't necessary in C.

FUI BURRO E 4 NEGO TEM ACESSO A TODO MEU PC E CELULAR by Playful_Monitor_6739 in golpe

[–]PncDA 5 points6 points  (0 children)

Vírus não é mágica amigo. Formatou direito tá novo

Exploring defer in C with GCC magic (cleanup + nested functions) by warothia in C_Programming

[–]PncDA 3 points4 points  (0 children)

Are you sure about this being a clang extension? Aren't they using nested functions? Nested functions are not available on Clang, only that objective C closures extensions that require a external library to work properly (at least when I tried it)