« first day (1613 days earlier)      last day (3350 days later) » 

5:00 PM
That was my first time
 
@milleniumbug congrats. was it good for you?
/me sulks back to work
 
@rlemon It's all over the starboard
 
disregard those examples, sense made they not
 
dear god the committee makes it painful to track down the state of a proposal
 
@Pris paragonzpodrozy.pl/images/bartek-vs.jpg (Random image from google)
 
5:01 PM
@milleniumbug I hope you practiced safe-downvoting.
 
@AndyProwl thats what my face looks like when im programming
 
wtf why is the murkdown hating me today
 
Ruby is THE language for all your programming needs.
 
@AndyProwl Because you're not loving it enough.
 
lol at software using signed integers for file size — Lightness Races in Orbit 10 secs ago
 
5:05 PM
lol at software using unsigned integers
 
HOLY FUCK
I CANT BREATHE
 
@LightnessRacesinOrbit Being signed isn't the real problem, I'd say.
 
@milleniumbug It's a cardinal sin.
 
@R.MartinhoFernandes didn't say it was
 
5:06 PM
@orlp IDGI
 
although it's certainly not helping
fundamentally, some data type is too small. that's a combination of the wrong bit width and a retarded choice of signedness
 
@Jefffrey You don't get it 'cause you're not dank enough.
 
You mean drunk?
 
why do people enjoy DDOSin things
CS players getting DDOSed in an online match now :\
 
@AlexM. Probably because it's easy to do.
 
5:07 PM
what's the gain
 
It's "cool"
 
Reddit AMA with the #stackoverflow/#stackexchange sysadmins is live, come ask anything you want: https://www.reddit.com/r/sysadmin/comments/2zd9lz/we_keep_stack_exchange_stack_overflow_server/
 
if they DDOS enough the match probably gets cancelled so they don't win bets by DDOSing a particular team
 
@Feeds lol Reddit
 
I really wish Scarlett Johansson could act.
 
5:08 PM
so it can't be because of money
 
Like, really.
 
@khajvah that's a weird type of cool yeah lol
 
Wait a second... How are they getting the IPs to DDOS? Is CS:GO server based or P2P?
 
@AlexM. You don't get it, you are not a hack3r
 
5:10 PM
@orlp lol
 
If CS:GO is server based, I have no clue how they can DDOS particular teams. The most they should be able to do is DDOS the server.
 
DDoSing participants is enough to fuck it up for the participants. Each individual has access to finite bandwidth and processing power.
 
Right, but by DDOSing the server, you are also harming your teammates.
 
oh and btw it's not "LRIO vs Bartek" it's "Bartek vs being a decent person"
 
You can't choose who to attack.
 
5:12 PM
So don't DDoS the server
 
@Nooble they DDOS players
 
DDoS the participants
 
one of them got DDOSed and was replaced by someone else
 
But how do they get the participant's IP if it's server based?
 
@AlexM. Why not?
 
5:12 PM
It must be available.
 
@Nooble cmon
these are tier 1 players
famous all over the world
 
How do they get the IPs of the participants?
 
Oh.
 
I'm sure with enough effort you can find out anything about them
 
5:13 PM
I thought it was random players doing it to other random players.
 
nah
 
@AlexM. so what?
 
it's a kick off match for a major league
 
I'm hungry
 
they should have done a LAN
 
5:14 PM
@LightnessRacesinOrbit ROFL! Still trying to figure out whether you're just BSing, and actually stupid enough to believe your own BS.
 
but it was probably too difficult for kickoffs considering the number of teams
 
Still how do they get ips?
 
I don't know
I'm not a haxxor
another DDOS occurred at the ESL where someone DDOSed a team's TeamSpeak server
 
Is it an online game?
 
lol
play LAN
 
5:15 PM
No, they play by pidgeons
 
ESL was LAN
but TeamSpeak was not on LAN
 
@CatPlusPlus I meant through the internet
 
I remember a player mentioning something like "my mom runs an anti-DDOS at home"
 
Also lol esports
 
dunno what that means
probably the TS server being there and an anti-ddos crap running
 
5:16 PM
Run TeamSpeak server on LAN then. DISCONNECT EVERYTHING.
They can't DDOS you if they don't have physical connection.
 
you still need internets
for Steam
:D
you can't use CS GO without a connection to Steam
 
And that's what's wrong with gaming
 
(offline does not work)
 
I will find a time machine and connect to the old WAN servers.
 
anyway I don't get ddosers
it's like they have fun being assholes
and just that
 
5:18 PM
They do it for shiggles.
 
for the evulz
 
@khajvah I already posted a link explaining that.
 
user1804599
ahahahahah
 
@LightnessRacesinOrbit That link says you need server console access, but I doubt a third party has access to.
 
@AlexM. I'm not a CS player, but that sounded like it couldn't be true so I googled it reddit.com/r/GlobalOffensive/comments/2icujk/…
 
seems you can play without internet connection
 
@Nican You didn't read all of it.
 
@LightnessRacesinOrbit but IPs are only visible when executed from the server's console.
 
@LightnessRacesinOrbit Can't see it
 
@milleniumbug get more rep
 
5:19 PM
@LightnessRacesinOrbit Upvote me :)
 
@AlexM. So your theory is that LRiO is unique?
 
@rlemon that is not what was needed at ESL
 
ahh, okay well I'll take your word.
 
@khajvah You didn't read all of it.
 
user1804599
Ruby standard y u 200 bucks.
 
5:20 PM
"I will give up my career to homeschool her despite 7 years of university and professional development (plan on starting my own business alongside)." People like you are the reason sexism exists in the workplace. How can there be equality if men and women cannot be depended on to develop their careers equally? — rotard 6 mins ago
true
also, dat name
 
@khajvah Tell me if you find out what Lightness is talking about.
 
@Nican FOUND, it says "Reality is an illusion. Our universe exists subjectively - www.v1p3r.net" maybe htat is it
 
user1804599
> singing with raper!!
 
user1804599
> raper
 
@rlemon official matches have to be online for various reasons
e.g. VAC
and then there's streaming
 
5:21 PM
@Nican What is confusing?
@Nican The page clearly states that some servers have mods that show player IPs in chat.
 
ESL had POV streams where you could hear what players said to each other
among the usual casted streams
 
@Nican So if your server is running one of those mods, you can take the player IP from chat. If it is not, an attacker will have to have server console access.
@Nican I don't understand what further answer you're looking for.
 
@LightnessRacesinOrbit No, clearly not true. Anything claim that there is one and only one reason sexism exists in work places is obviously full of crap (if it used "a reason" or "one reason" it would at least be defensible, but as-is, it's obviously nonsense).
 
there's some weird stuff about how Valve's networking works in CS GO
 
user1804599
There's a free draft.
 
5:23 PM
just a series of valves
 
user1804599
Perhaps good enough.
 
a bunch of trolls connected via the network at ESL to the players' lobbies
so at one point there was the team vs 3 x players called "chiken"
 
@LightnessRacesinOrbit According to Alex, it was a serious game, I doubt they would post ips, but whatever
 
had to be manually kicked
and what's weird is that the same trolls are able to invade the lobbies of twitch streamers
I have no idea how they do that, heard they exploit a bug
I guess at the end of the day
were it not for these immature haxxors
there would be no incentive to improve the security of games
 
How do they protect from DDOS?
 
5:30 PM
@AlexM. It's trivial
You don't need any skills
 
@khajvah Either have a huge amount of bandwidth or use DDOS protection thingies.
Like Cloudflare.
 
You need bandwidth, decent networking equipment and a dedicated monitoring team that can blackhole that traffic when they spot it
(aka have fun doing it on your own)
:toot: 2 missed deadlines and now we're also overbudget :toot:
 
@CatPlusPlus So I guess there is no automatic protection software
 
I mean they probably have automated detection and reroute but you still need someone to watch over it
 
user1804599
Hmm.
 
user1804599
5:34 PM
I could make then optional when there's a newline.
 
user1804599
Because in that case a semicolon will be inserted.
 
@khajvah Well, they must have done. It's as simple as that.
@khajvah lol "a serious game"
 
whenever I see a low quality audio vid on youtube for some song with lots of views and comments
 
serious esports
 
@райтфолд How about if you go for the ultimate in clarity, and just do like MS BASIC used to: IF xxx THEN /* all the statements you can squeeze on one line */
 
5:37 PM
@AlexM. and no need to, either
 
I wonder what kind of low standards people who watched it have
 
then you realise that you're watching it yourself
 
nope, I switch to sth else
I can't take the audible shit
 
after incrementing the view count and possibly posting a derogatory comment
 
derogatory comments are ok :P
 
5:38 PM
View is not registered if you don't watch some significant portion of it
 
Is there a website where I can pay somebody experienced to review my code?
 
you can do it for free on
 
I mean, it is a big code, I want to review the class design. I doubt code review allows that kind of thing
 
you can review whole projects there though nobody is insane enough to do it
you need to extract main stuff from it but that's about it
 
And you get paid?
 
5:42 PM
no
but if you pay
I'm pretty sure people HERE would review your code
@BartekBanachewicz even does mentoring
wink wink wink
 
@AlexM. if it is of reasonable size
 
Bartek's size is XXL
 
@AlexM. Mentoring = Barketing.
 
you'll love it
or so I heard
 
@AlexM. and "you'll love it" sound wrong in so many levels
 
5:44 PM
@khajvah I take PayPal.
 
@AlexM. Maybe we should pin this to SO somehow?
 
@Cinch It's pinned to the Stack Exchange site list.
 
@LightnessRacesinOrbit But how many people think about that if they have a "homework" problem?
 
@khajvah He who makes mistake inside elevator is wrong on so many levels.
 
@khajvah: (a) How big is the code, roughly? (b) How deep a review do you require? (c) Is this for personal or commercial use?
 
5:45 PM
@LightnessRacesinOrbit Ok, I will write to you when I need
 
@Cinch Who cares?
 
@LightnessRacesinOrbit People that bitch about it and downvote.
 
"Putting the hood into childhoold."
 
@Cinch Who downvoted something?
 
@Cinch why is my code not working questions are offtopic on CR
 
5:46 PM
@AlexM. Asking for review on a "completed" homework would be on-topic
 
why is my code not working should be offtopic everywhere actually
 
@LightnessRacesinOrbit It is commercial, I just want the class design but I will write to you when I need. I can find you here I am sure :)
 
@AlexM. It would also be rarer than you getting basic arithmetic correct
 
@AlexM. Then where would they go?
 
@LightnessRacesinOrbit yes but who asks for code reviews on completed homework lol
 
5:46 PM
@khajvah I don't know "I just want the class design" means. That doesn't tell me anywhere near enough to give you a reasonable quote of cost.
@AlexM. People should!
@AlexM. Arguably they do so every time they hand the homework in
 
BTW I was talking to my professor yesterday and I felt really stupid and he was saying that C++ doesn't have that many jobs.
 
Depends where
 
@LightnessRacesinOrbit The choice of objects and the overall abstraction
 
There are not many C++ jobs in the Arctic Circle, for example.
 
That's ridiculous. C++ has no jobs.
 
5:47 PM
last I heard there were very few C++ jobs in the deep sea too
but really you were talking to a professor
 
@khajvah So you are looking for a general review of the types and interactions in your codebase? With the output being a series of suggestions of enhancements if any are appropriate? Or some other, more specific goal?
 
I had to talk to mine today about my graduation project
 
@AlexM. Yeah he's my project advisor this semester but wc
 
he had no idea what a virtual assistant is
and was oblivious to clouds and the tech based around them
 
What is a "virtual assistant"?
 
5:48 PM
@AlexM. Is that some sort of orgasm finisher/porn?
 
@LightnessRacesinOrbit Siri
 
It does... assist me.
 
why should a C++ professor give a fuck about that
 
who said anything about C++
 
He wasn't a C++ professor.
 
5:49 PM
@AlexM. Cinch did. In the statement that began this conversation
@Cinch What professor was he then? And why was he talking to you about C++?
 
this was my professor
 
@LightnessRacesinOrbit Nothing more specific. I just want to make sure the code is maintainable.
 
@AlexM. whoops
@AlexM. let us never speak of this again
@khajvah And how large is the codebase?
 
at the end he chose a name for my project
"Virtual assistance on a client-server based architecture"
 
5:50 PM
the most boring and borderline correct name
 
@LightnessRacesinOrbit i asked out of curiosity and to make talk
 
@LightnessRacesinOrbit 2000 lines max
 
but at least he lets me use the stuff I already worked on and finish quickly
there's this crazy prof that assigns whatever she wants to students
 
@AlexM. should've called it "SWISH!!!!"
 
and makes them read books about random shit
 
user1804599
5:51 PM
So I had this idea.
 
@khajvah The only way to be truly certain is to ensure it's so useless nobody will ever bother looking at it.
 
user1804599
A call immediately followed by a lambda makes the lambda the last parameter in the call.
 
@khajvah Right well it depends how deep a review you want, but it sounds like I would probably not need more than an hour to have a look. And the hourly rate is GBP150.
 
user1804599
So map(xs) { |x| x * x } becomes map(xs, { |x| x * x }).
 
@JerryCoffin This is my (actually not mine but I am working on it) first serious project and I always have the complex that my code sucks. I need somebody with experidnce
 
5:53 PM
That rate still applies if the answer is "the class design is fine", but in such a case I would try to go into detail about why it were "fine".
@khajvah FWIW, that's a real thing.
 
@LightnessRacesinOrbit Ok, I will talk to you, when I need it
 
@LightnessRacesinOrbit His thing looks more like the impostor syndrome.
Dunning-Kruger effect is when you suck but you think you don't.
 
@EtiennedeMartel that
 
Xeo
@khajvah All code sucks.
 
Impostor syndrome is when you always feel like you're not good enough.
 
5:57 PM
I always had that. It is even worse when I am alone working on something (there is nobody to "compete" with)
 
@EtiennedeMartel It's the opposite, too. Read the page I linked to.
@khajvah Okay.
 
crtp is so confusing
 
not really
"i have a code down there" You should see a doctor about that... — Lightness Races in Orbit 5 secs ago
 
@khajvah Being handed an existing project sounds at least somewhat like this may be work. If so, you may be able to ask somebody more senior for a review (but I don't know how your organization is structured). If you want small pieces reviewed, Stack Exchange includes a Code Review site that may be useful for you.
 
@JerryCoffin Thanks for help, I will try to formulate a reasonable question for Code Review. If not, I will ask somebody else :)
 
6:12 PM
Na na na
 
@LightnessRacesinOrbit That's not a good idea. Any optimizations the compiler can make can also be made by other parts of the system, so preventing things from being optimized out is guaranteed to do anything. — David Schwartz 10 mins ago
wot
 
user1804599
@Xeo My code doesn't.
 
is it bad to use typeid
 
user1804599
@Pris No.
 
user1804599
That's like asking whether it's bad to use goto.
 
6:23 PM
goto has pitfalls and its easy to misuse. Is the same true for typeid?
 
No. But like goto, there often are better alternatives.
 
user1804599
What do you want to do?
 
Create a lookup table based on type: map<typeid of T, ContainerBase> where ContainerBase is the base class of something like Container<T>
 
user1804599
What would you do with that?
 
I'm trying to write a simple entity component system because they are all the rage these days. I want a struct where I can hold N Container<T>'s and then retrieve them with GetContainer<T> to do work on.
 
user1804599
6:33 PM
> because they are all the rage these days
 
user1804599
There's your problem. Problem solved. Next.
 
@LightnessRacesinOrbit lol
 
@Mysticial nuked :(
what is wrong with people
other than having "code down there", I mean
 
@LightnessRacesinOrbit Why would volatile help with anything?
 
int x = 0;
if (x > 0) {
    foo();
}
Oh look, optimisations nuked my conditional.
Go from there
brb
 
6:36 PM
Yea, I was wondering about that too. volatile is meant for like, registers that change completely outside your control.
 
That's a very narrow definition
 
@райтфолд I actually think it might be useful in my application though! Can't knock it till I've tried it
 
I'm 90% sure that volatile specifically means "The hardware can change this value outside of the program."
 
Fun factoid: I failed a screening interview with Apple, probably because I couldn't answer what the volatile keyword did
 
I'm 100% sure that you are wrong.
It means this:
> [C++11: 1.9/8]: [..] Access to volatile objects are evaluated strictly according to the rules of the abstract machine. [..]
Optimising out the conditional I posted above would be illegal if x were declared volatile. That's the point
You do still need a mutex in there to make the read safe, but that's a totally different thing. David seems to be obsessively assuming that I'm trying to claim this is about synchronisation, when it's not.
 
6:39 PM
The 'abstract machine' is his code though. Everything outside the abstract machine is... hardware.
 
Mate
No
"The rules of the abstract machine" mean that when I write x > 0, a check is made to the value of x. Those rules must be evaluated strictly when x is volatile.
 
Or at least some piece of memory that the optimizer can't make assumptions about because it's being changed by a different process.
 
When it's not, the as-if rule can apply in this code flow.
@QuestionC Or a different thread
Actually the standard just says this:
> [C++11: 7.1.6.1/7]: [ Note: volatile is a hint to the implementation to avoid aggressive optimization involving the object because the value of the object might be changed by means undetectable by an implementation. See 1.9 for detailed semantics. In general, the semantics of volatile are intended to be the same in C++ as they are in C. —end note ]
It's not mandated what those means include, so fixating on "hardware" seems to me to be overly optimistic.
I can't guarantee that your compiler won't be able to figure out that the writes in the second thread can impact the reads in the first, which is why I haven't written an answer promising that volatile is the solution to the OP.
But this is what volatile does
 
@LightnessRacesinOrbit Or an hardware interrupt.
 
@EtiennedeMartel Yeah or a number of other things
 
6:42 PM
    std::vector<
        std::pair<
            std::type_info,
            std::unique_ptr<ComponentManagerBase*>
        >
    > m_list_type_component_managers;
Help my code is really ugly
 
room topic changed to Lounge<C++>: Forever. loungecpp.net/the-law/newbie-hints [c++] [c++11] [c++14] [c++-faq]
 
@EtiennedeMartel I'm not going crazy, right? The above makes sense?
All this disagreement has me concerned.
 
@LightnessRacesinOrbit Yes. Or at least that's how I understand how volatile works.
 
@Pris You're doing lookup on types with std::vector<std::pair<type, something>>??
 
@EtiennedeMartel I would be very grateful if you could chip in on the comment thread then because I started to doubt my own sanity. I certainly ran out of patience, as you can see.
 
6:43 PM
So maybe we're both wrong.
 
@EtiennedeMartel Maybe :P
 
sbi
> A superfluous copy of a std::function obj in a high-priority task can bring your embedded device to a grinding halt. Took 2 days to find... – sbi
Evening.
 
I am pretty sure the compiler has to respect other threads unless you somehow trick it. Like...

int x;

doStuff() {
x = 1;
while (x > 0) { }
}

Can't be optimized to an infinite loop because that x has external linkage. Compilers are smarter than that right?
If int x were static then yea, optimize all you want.
 
@milleniumbug yeah. The number of types in that list will be very small so using a vector should me faster than a map
 
@QuestionC How does it "respect other threads"? It doesn't know what they're doing, whether they even exist potentially, during compilation. In C++, translation units are compiled separately then linked together at the end.
 
6:44 PM
> * EnVyUs had internet issues on Mirage (map two) and couldn't fix them in the needed timeframe so Virtus.pro get the win on it

** Match stopped
 
@Pris All righty then
 
lol DDOSers won
the match was stopped
 
Woa, that's not a comment thread, that's a comment spool.
 
It should protect against other threads unless you're doing something very specific that breaks the model of what can/can't be modified by other things.
 
@QuestionC Yes, actually, that is precisely what it means. That function has undefined behaviour!!!! Because the loop has no side effects and does not terminate. 1.9/12 states that if x were volatile then the conditional check would be a side effect, giving the code meaning.
 
6:45 PM
what a good job, a bunch of kids pressed a button and they cancelled a match
 
@QuestionC So this entire function can be compliantly optimised to nothing!
I've seen it happen, too, albeit extremely rarely
 
 
@EtiennedeMartel Yeah :(
 
You're suggesting that every global across threads has to be volatile? Cuz... that's not the case.
 
@LightnessRacesinOrbit Do mutexes emit memory barriers? I'm studying this answer, and it says that you need to write to happen, and to make other thread see the change.
 
6:46 PM
@QuestionC You're like David. Not listening to what I'm telling you and quoting from the standard.
 
Also, please don't nitpick the fact that the example code has no side effects.
 
@milleniumbug That's a question.
@QuestionC That is not a "nitpick" — it's absolutely fundamental. I'm not convinced that you know what "side effects" are in this context.
 
If that genuinely caused you to not understand the point I was making then sorry, but I find it a little hard to believe.
 
I acknowledge that it's hard to believe
Doesn't make it any less so
 
Besides, it has a side effect. The instruction pointer never leaves that code.
It causes the program to not halt.
 
6:50 PM
That is not a side effect in C++ terms. It's irrelevant.
I've got a Q&A about this but I can't fucking find it
 
You're saying that for(;;); can be optimized to noop?
 
15
A: Is this infinite recursion UB?

Johannes Schaub - litbIt's UB because it's not worded in terms of loops, but in terms of (1.10p24): The implementation may assume that any thread will eventually do one of the following: terminate, make a call to a library I/O function, access or modify a volatile object, or perform a synchronization...

There you go
@QuestionC Yes.
 
0
Q: Clangs compared to MingW

MistyDI am currently fighting an uphill battle porting a VS project to Mingw. The hill seems to be getting steeper. This visual studio project that I am trying to port uses DirectX and some ATL (atldef , atlconv). I know Mingw has its own version of certain windows libraries for instance it has its ow...

lol, sometimes you see insanity and can just help but laugh
 

« first day (1613 days earlier)      last day (3350 days later) »