« first day (1742 days earlier)      last day (1117 days later) » 

12:06 AM
Not really 5 years.
We open servers each 2 months
2-3 months 100k euro or so
I developed 5 months this server
 
12:21 AM
Exciting times then!
 
12:34 AM
For that i need a stable server.
And i/we need a good dev.. who can handle all
Item/player cache is bad
i was thinking to use this github.com/basiliscos/cpp-bredis
 
 
1 hour later…
1:53 AM
My poll() problem still persists, after I exit or terminate my client, poll() starts spamming POLLIN revents in my server executable, I'm clueless as to why this is happening after it worked fine about a month ago.
Could someone with experience in poll() please help me, otherwise, I'll be forced to comment out one bit of my server at a time to see which part seems to be changing the behavior of poll() (Even though poll() itself is giving me false data).
 
 
11 hours later…
12:43 PM
> I'll be forced to comment out one bit of my server at a time to see which part seems to be changing the behavior of poll()
You should be doing that regardless. Unless you can post a SSCCE/MVCE on Stack Overflow
> (Even though poll() itself is giving me false data).
That's a bold assumption. Likely, it isn't. And if it is your program most likely has UB causing this.
 
Maybe, but my point is, I never do anything with the data, I don't change it in any way/shape or form.
 
Ok. Then your problem doesn't exist. Good?
We're all developers here. We know the frustration. But you have to own your challenges.
 
I know, but poll is giving me false information for some reason, and if I'm not modifying the data, that could only mean one thing
I've tried compiling with a different version of C++, killing the client with 'killall' (to make sure that the client is actually dead) and tinkering around to see which events get triggered, but I've had no luck
 
 
2 hours later…
2:34 PM
@sehe Maybe you know how to debug mysql usage very high?
 
jrh
3:16 PM
I was kind of thinking of something, wouldn't a lot of the confusion around initializer lists vs constructors be avoided if C++ had used different characters instead of {} for list initialization? What about <>? Wouldn't the compiler have been able to handle std::vector<int> someVector<10,2> (vector of size 10 with value 2)? I know it looks a bit like declaring a template but I can't think of a case where the template parameter would be on the variable name offhand.
There's probably a reason why they couldn't use <>
 
maybe more comparison operator parsing issues
 
jrh
The other thing I kinda wonder is why they didn't just put a prefix on {}, like std::vector<int> someVector${10,2} or something like that
I really like {}'s lack of narrowing though. It's a great idea.
I wonder if there's a compiler flag to enable warnings for narrowing on () too, for old code
 
3:47 PM
@IrinelIovan I do.
16 hours ago, by sehe
yesterday, by sehe
So, I'd say we can look at this, but we need a good stress test to reproduce. I need a database script so I can repro locally, looking at the code in peace and also tweaking mysql configs, perhaps.
@jrh Bingo
Also, {} made sense due to aggregate iniitialization
@jrh Because C++ learned from Perl :)
 
jrh
@sehe yeah I guess, but someStruct t = {1,2,3,4} is IMO conceptually different enough
personally I don't look at the constructor {} syntax and say "finally I can re-use a C concept and it's easier to grasp"
 
The "problem" with {} is indeed "a lot of the confusion around initializer lists vs constructors" (your words) and none of that changes with the syntax. It is not so much any kind of lexical ambiguity. It's just the deduction rules for initializers lists and overload priority in that case.
@jrh More like, you can just use the same syntax and it will use C++ if applicable.
 
jrh
4:05 PM
@sehe ah ok. I didn't realize that could call a constructor
I thought = {...} only worked for initializer list constructors or structs that supported C-style default constructors
so that's pretty interesting
 
It even works anonymously: mytype foo() { return { a, b , c }; } will call regular constructors
 
jrh
yeah I use that all the time but never with constructors, now I can use it more often
 
@jrh "C-style default constructors" - contradictio in terminis?
 
jrh
whatever you call the "set every field with = {...}" thing
it's not a term I have to recall very often, it's probably in my brain somewhere
 
@jrh This is why they called it "uniform initialization". And that's basically the top reason it gets criticism: the syntax is uniform(er) but the behaviour isn't (always)
@jrh Aggregate initialization
 
jrh
4:09 PM
what do you call a type that supports it though?
My brain says "POD" but that's probably not right
 
The rules for aggregates have also been conveniently loosened, so you in practice can use aggregate initialization with a lot more types. I think that was c++17/c++20
 
jrh
ah yeah... that makes sense. That might be why I remember it being more restrictive
 
@jrh Yeah, it's close but not the same. Many non-PODs can be aggregates
I'm going to start dinner, bbl
 
jrh
okay, thanks for the tips/advice
 
 
6 hours later…
10:41 PM
@sehe U available now?
 
11:24 PM
@sehe
 

« first day (1742 days earlier)      last day (1117 days later) »