« first day (1184 days earlier)      last day (3989 days later) » 

14:05
@LightnessRacesinOrbit no, another one... 'Best Night Ever'
watched the trailer ... I am going to invite all my girlfriends to watch it with me ^_^
-10
Q: How to write a program using for loop?

user2959418I would like to ask how can I write a C++ program that will print 10 numbers by 3 but the last number will be subtracted by 1. using for loop only? please help me this is how it should be: 3 6 9 12 15 18 21 24 27 29

excellent
And Vlad is there of course
With a nice implicit conversion from bool to int
This stuff annoys me so much
> Deputy mayor Dave Budd said companies "have a moral obligation to treat everybody the same".
Right, so what is the problem?! That's what he's doing. Jesus.
All the equality act seems to do is create inequality
@LightnessRacesinOrbit I had to vote close that crap so as to save somebody a click or two
14:16
@LightnessRacesinOrbit stack is a commonly used abbreviation for the stackexchange network.. I guess. — Ranveer 17 secs ago
lol (there are beginners here on stack)
@LightnessRacesinOrbit we need to pop some of them
What is this capitalisation you speak of
It's 3PM and I'm so sleepy
same, woke up at 2AM today
I used to have a sleep schedule... back in a day, those were the times...
@LightnessRacesinOrbit I agree with the taxi people. Though strictly speaking, to treat them the same, the disabled people should get into a normal taxi and not expect a minibus.
It's kind of unfair that it is has to be, but ludicrous to expect otherwise, if you need a minibus you just have to pay for a minibus.
1
Q: Can the implementation of std::atomic with respect to locks change a program's behavior from correct to incorrect?

razehAre there C++ programs that are correct and deadlock free when atomic::is_lock_free returns true, but are undefined or could contain a deadlock when atomic::is_lock_free returns false? Given that any lock inside an atomic will be acquired and released under the library's control, I can't imagine...

Is this interesting? Not sure.
@thecoshman Quite. So it's not fair that life dealt you a shit hand and you're disabled, but that's certainly not the taxi company's fault.
Don't see why they should take the burden; further, they're sort of automatically expected to in our culture.
14:26
@LightnessRacesinOrbit So, of course, the answer is to raise taxi rates for everybody, so the rest of us subsidize minivans for the disabled, and call that "equality".
the best solution would be for the government to provide fare money of sorts for the disabled... (and pay the difference between a 4 seat and an 8 seat vehicle)
@LightnessRacesinOrbit They could just threaten that if they are going to tared with the label of discriminating that they will start charging disabled people more, because they might take more time to get in and out.
@ScarletAmaranth "why do they get money for taxis and I don't"
man, I wish there was a defined set of punctuation marks for when you are saying something in a mock fashion
@thecoshman because they had been dealt a shitty hand, they are not getting any luxury, just a way to get from point A to point B without having to pay extra plus the taxi company doesn't lose money - yes, governments do have money from taxes, I understand
certainly the taxi company isn't at fault here
@ScarletAmaranth positive-discrimination
there are programs that help people with cancer with money for treatment, do you also say why they get free money and you don't? we live in a somewhat "modern society", we need to take care of those that "had been dealth a shitty hand", it's the way of things
14:31
You commie
but not at expense of a single taxi company
@ScarletAmaranth oh no, I meant that as a counter argument some might have.
Government subsidy of the additional cost seems like the best solution.
@ScarletAmaranth How is that even remotely close to the best solution? It still ends up with everybody else subsidizing rates for the disabled, but means the subsidy is collected in taxes--which in turn means a substantial percentage will go to running the government bureaucracy to pay the money back out, so everybody pays still more.
14:33
@JerryCoffin " yes, governments do have money from taxes, I understand "
as I said, I understand it's not as simple
Maybe we'll get conquered by aliens or something and it'll get better
Ell
Ell
Are we talking about taxes or taxis here?
@JerryCoffin so what, disabled people just have to stay locked up in the homes?
although, by all means, feel free to suggest a better solution, @JerryCoffin
14:34
@Ell both :P
there is like a... metric thing, to judge a society, one of the metrics is something along the lines of: the ability to take care of those who can't take care of themselves, but should a single taxi company be responsible for that? nope
user1804599
What is so bad about LaTeX tables?
user1804599
I have never used them.
@thecoshman How do you figure that my comment leads anywhere even close to that conclusion?
Everything
14:36
@JerryCoffin oh now, hyperbol. But you seems very 'anti-subsidise'.
user1804599
That’s not a useful answer.
@rightfold IMO latex
user1804599
That answer is even less useful.
@thecoshman Well they could pay for service rendered
and I refuse to capitalize anything but the 'l', and only when starting a sentence.
14:37
Good job
That will never be confusing at all
Because latex is not a thing
@CatPlusPlus but then we consider the socialist aspect, dose the additional cost of taxis due to your disability come under health care needs?
@thecoshman I'm against subsidies when (as seems likely here) the cost of administering the subsidy would probably be several times larger than the subsidy itself, so (most likely) the total cost for the disabled people would actually rise or (at best) stay nearly constant, and the cost for everybody else would go up quite a bit.
@CatPlusPlus vOv they should have a better name.
Ell
Ell
@JerryCoffin +1
@JerryCoffin oh indeed, and considering a minibus for one person is not that much more than a normal taxi... well, as far as I know it isn't...
14:39
Latex (no funny capital letters) is natural rubber
@JerryCoffin I am still waiting for your suggested solution :P
And a place in Texas, because USians name their cities after every word in the dictionary.
@LightnessRacesinOrbit didn't you say you would stop repwhoring at 100k?
@ScarletAmaranth I never understood why "the government" had to automatically become responsible for funding everyone who's disadvantaged. Sigh.
14:41
@harold oh now really.
@thecoshman =)
@ScarletAmaranth How do you know it's not a luxury? What sort of disability is it? Perhaps they just can't be bothered to walk, same as me. You don't know.
@LightnessRacesinOrbit you're right, let's just ignore the sick and the disabled
@LightnessRacesinOrbit probably because the individual is selfish
@LightnessRacesinOrbit There's nobody else.
@ScarletAmaranth I don't think an extra couple of quid for a taxi ride really equates to anything here. It's not like anyone's stopping them from eating for a week.
14:43
so either you leave them to rot or the government funds them.
@ScarletAmaranth there is a difference between no health care at all, and paving there streets with gold.
@DeadMG Nonsense. Most good in the world is done by volunteer, non-profit, non-governmental organisations
@ScarletAmaranth strawman
@ScarletAmaranth The optimum is almost certainly to leave it alone. What the taxi company was doing was fair: regardless of why, if somebody orders a minivan, they pay for a minivan. If you really insist on making things unfair, the second best is that the taxi company raises rates enough to provide minivans for disabled and remain profitable, but without a government bureaucracy to administer a subsidy.
@LightnessRacesinOrbit Which are basically funded and operate in a very similar fashion, they just take up the slack of what the government won't cover.
@DeadMG No, nobody said "leave them to rot". There is a middle ground between "leave them to rot" and "let them have extra taxi space for free at the cost of the taxi company".
14:44
yes, and the middle ground is "Let the government pay for the extra space".
Again, this isn't like the taxi company was refusing to pick them up, or dumping horse shit on their face, because they were disabled.
@JerryCoffin sure, the taxi company is absolutely at right to charge for a mini bus, I have never claimed otherwise
well I'm not against the taxi company here
I think we all basically agree, which is ... strange.
I think that it was quite fair for them to charge disabled people full price for a minivan if they need a minivan.
14:45
nobody has said here ever that the taxi company is at fault
I'm not sure what the problem is
@ScarletAmaranth I just said that
social welfare is not the taxi company's problem or responsibility.
I AM AGAINST THE TAXI COMPANY!
(What's the taxi company done?)
@LightnessRacesinOrbit damn... I better start claiming the taxi company should be a free government service
14:45
@CatPlusPlus The problem is that the news article was written in a way that made what the taxi company was doing seem abhorrent, without really bothering to stop and think that somebody might not hold that view. Oh, plus, the threat of legal action.
FUCK THE SYSTEM TAXI COMPANY
Ell
Ell
tomalak is right
@LightnessRacesinOrbit Well, yeah, it's a news article, of course it's bullshit
Well yeah that's BBC News for you
Bigot central
@LightnessRacesinOrbit the most surprising thing is that it was a BBC article, and not the mail
14:46
It's not surprising.
@R.MartinhoFernandes Charge people for they ordered ;gasp:
Often they don't even explain what's wrong with Thing X, they just expect all of their readers to automatically know and agree. Particularly when it comes to foreign actions or cultures. It's really quite horrid
to be fair
they printed some pretty explanatory quotes from the taxi company.
Sure, it definitely wasn't the worst example.
IMO
14:47
@JerryCoffin leaving it alone is probably a good solution, sure, but not threatening taxi companies with legal action should be a part of this
it's hard to read the article and not come off with the impression that the taxi company are being screwed over here.
I guess it was more the citing of the Equalities Act and some dickhead who wanted to get the company over on it that pissed me off
that's true enough, but not the BBC's fault :P
I also want to have government to pay for my taxi if I don't have money atm
14:48
The BBC can be blamed for everything ever
BBC is literally Hitler
2
@CatPlusPlus You haven't been outside in 12 days. You do not need a taxi. You do not need to conform, remember? Other people get taxis, therefore Cat shall not.
@CatPlusPlus ^^
@LightnessRacesinOrbit I was outside yesterday :ssh:
I rarely use taxis, they're overpriced as shit
@ScarletAmaranth Threatening them with legal action would not (IMO) qualify as leaving it alone.
14:50
@JerryCoffin yeah, I was just emphasizing that very fact
there is not much that can be done to ameliorate this problem
Ameluminum
I have FINAL EXAM on Wednesday
@ScarletAmaranth Touché.
I have one on Wednesday and one on Friday
too lazy to study yet though
Last 20 minutes of uni, and then I can get my diploma and forget I ever did this
@CatPlusPlus masters or bachelors?
14:53
Yes
Ell
Ell
@thecoshman the BBC is biased to the left
Bullshitc
which one is it?
Ell
Ell
which is obvious, since they are funded by the government :3
@ScarletAmaranth bsc
Since you're bad at jokes and also deduction
So sleepsy
14:56
I am awesome at jokes
@Ell You only say that because you're pretty hard to the right so even a center perspective looks like left-wing bias.
I'm gonna play some RFG and blow some shit up and then go to sleep in like 3 hours
Ell
Ell
@DeadMG I don't think that that is the case
but what else can I say but disagree :3
most people don't recognize themselves as leaning towards one side
evidence, arguments...
14:59
and kinda like Dunning-Kruger, the further from the center you are the harder it is to see.
I am very impressed whenever somebody actually recalls "Dunning-Kruger" off the top of their head
Ell
Ell
What is the opposite of the Dunning-Kruger effect?
is it the white coat effect?
there's an opposite?
4
A: Does compiler adjust int size?

Uri YThe function returns int, the allocated memory will be sizof(int), regardless of the actual value stored in it.

Brilliant
Ell
Ell
@DeadMG idk, the one where a skilled individual underestimates their skill
15:01
that's part of DK as well.
I think.
@ScarletAmaranth Damn, needed that a few weeks ago for the crossword
Can't believe I forgot it
@LightnessRacesinOrbit the word phony ?
speaking of phony, last week's mentalist was pretty good, but if they slip into the "original state" of him solving random cases, I will get bored very soon, the latest episode has lost some of the light-heartedness of the ~3 preceding ones
@ScarletAmaranth yes
@ScarletAmaranth yes
as a coda it needs to ZING
pop POP!
I couldn't figure whether the drug dealer gal boss was hot or not
there was something about her, but she's not my type
15:29
same
stop being me
Vlad gonna vlad
9
user1804599
Stab Vlad.
user1804599
15:36
We should invite Vlad to Lounge<C++>.
SAM
SAM
Morning guys...!
@rightfold totally
user1804599
@SAM Good evening.
user1804599
Yay. My LaTeX tables work.
SAM
SAM
15:37
@rightfold He he ... good evening!
user1804599
It’s noon, silly.
SAM
SAM
@rightfold But they say "Morning" when you meet the first time in a day... isn't that?
hmmm
SAM
SAM
@BartekBanachewicz hiho?
@SAM something my random engine chose from my dictionary of greetings
15:39
if I have while (cond) { body }, do cond's local variables live during body or die before body is entered?
user1804599
Since you can use them in the body, they obviously live during the body.
SAM
SAM
@BartekBanachewicz Good one... :)
@SAM you know I had something like that in WoW
we had too many people saying "Ding!" or getting achievements
not as simple as I had first imagined.
15:41
so I made "congratulate" macro with exactly that functionality
SAM
SAM
@BartekBanachewicz hmm
you can't destroy cond's variables before entering or not the body, because then they're not alive during the body.
you can't destroy them after the body's variables, because then they don't get destroyed on the last iteration.
I might need different code paths for if the loop exited normally or was broken out of.
SAM
SAM
Hi@DeadMG.. How's Wide going on?
or I guess I could just change break to not destroy the cond's variables and then unconditionally destroy them after the loop exits.
user1804599
That won’t destroy them when you return from the body.
user1804599
15:44
Or throw.
returning in the middle of the body is easy
and I don't support exceptions right now but they are handled by a completely different mechanism to nonexceptional so it's not something I'm too worried about for the moment
so right now I'll compile while(cond) { body; if (...) break; } into while(cond) { body; if (...) { ~body(); break; } ~body(); ~cond(); } ~cond();.
user1804599
Uhg.
user1804599
Stupid website listing Netherlands under T.
ah
but continue is different.
I need to ~cond() before continue.
let's author some tests checking for, say, double destruction of cond's variables or something like that.
16:05
sup
16:25
yo homie
@DeadMG ← 1 message moved to bin
can't you read
Xeo
Xeo
What are you going to do if output fails? Print an error message? — Raymond Chen 14 mins ago
lol
user1804599
16:47
I/O is terrible.
user1804599
I watched television and I liked it.
user1804599
17:00
Is TAOCP a good series of books?
@rightfold I believe everything by Knuth is worth reading
Ell
Ell
Right. Time to learn what a parsec is :O
> a unit of distance used in astronomy, equal to about 3.25 light years (3.08 × 1016 metres). One parsec corresponds to the distance at which the mean radius of the earth's orbit subtends an angle of one second of arc.
(that's what google has to say about it)
Ell
Ell
Yeah, I'm just having trouble visualising it :S
I'm watching a video on it now though :)
17:14
Same here. Imagination fails.
How do you visualise a kilometre
By imagining a kilometre long stick? Well just imagine that the stick is one parsec long, done
Ell
Ell
Well I don't just need to know the definition
also try imagine how big the sun is :3
It's pretty hard
I need to know how they measure with parallax
@LightnessRacesinOrbit How can the universe be real if our eyes aren't real?
@Ell Try to visualise one second of arc.
@CatPlusPlus You can think of how long it takes you to cover it on foot, or by bike, or by car. It's a notion you can connect to your daily experience to gain some sense of it.
30 trillion kilometers is something hard to imagine
Then draw a trangle where one of the angles is 1/3600°.
17:17
you know
at least, my sense for proportion fails
user1804599
@AndyProwl Cat never goes outside so he cannot imagine a kilometre.
it's a shame thunderbolt doesn't have power
@rightfold lol, silly me
Then realise that that tiny little almost non existent edge of that triangle is 150000000 kilometers.
It's easy!
Ell
Ell
17:18
Here's what I needed
@Ell Which is exactly what I described.
Ell
Ell
@Griwes yes :)
@Griwes some people learn better with pictures
Except if you drawn that to scale, it wouldn't look like a triangle.
Ell
Ell
yeah
17:20
@Griwes scaling is a linear mapping, so it would :)
@BartekBanachewicz Depends on the resolution of your drawing.
And its size.
ooh we're getting into resolutions now
implementation details
@AndyProwl Except I don't need to, raw data is fine enough thanks
Cat has never been a kilometre away from home
this may not be the greatest question in the world, but it should not have been closed
17:25
Also I can pretty easily tell you how fast you can travel a parsec in a car
(Roughly forever
user1804599
LOL
You can even calculate it! On a calculator!
No gotta imagine a parsec long stick because it is very useful for something or whatever
@CatPlusPlus You're welcome. Also, no.
Do you feel a nagging feeling to put everything into relative terms?
"That'll be $5.22" "BUT HOW MUCH IT IS IN ORANGES"
wtf?
it's more like "That'll be $5.22" "Okay, now what else could I have bought with that? What is the value of $5.22 in reality?"
You do it all the time in foreign countries where you don't know the currency intuitively
but, hey, this stuff makes sense and I don't expect you to conform
17:30
@CatPlusPlus more like "€5.22? how much would that be in ƒ?"
which is basically what I just said
Except not really because parsec is precisely defined but that doesn't seem to be enough!
@LightnessRacesinOrbit well it's the same country
Light years?! I can't work with that, it's magic
Heaven forbid some people want to visualise a unit's relation.
17:32
@harold what is?
@LightnessRacesinOrbit ƒ and €, or at least, it can be the same country
@harold I think that's an inferior example because you're more likely to intuitively understand the value of both if they are both actively used in your country
It's a joke. Or at least it was.
A joke on the silly yet prevalent tendency of (especially older) people here to insist on converting everything to ƒ, even though ƒ has been gone since 2002
I suppose when @CatPlusPlus is waiting for the SO "no more than one every 15 seconds" comment submission timer to expire, he thinks to himself "right okay, well that's only fifteen times the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium 133 atom, so now I have a good idea of when I can try again"
@harold ok
Yes, I'm counting every passing nanosecond, sure
17:35
@harold you shouldn't assume people know what "here" is. I had to guess from the URL on your profile. not everybody is dutch.
@CatPlusPlus Depends on what you mean by "enough". It is enough for doing computations and proving theorems, it is not enough for gaining an intuition of how much it is.
though wouldn't that be fun?!
@LightnessRacesinOrbit it doesn't really matter where "here" is anyway
A fucking lot
If you're claiming that "gaining an intuition" is useless, well then good for you. Most people need to put things into relation in order to gain a thorough understanding of a subject.
17:37
@AndyProwl You're wasting your time. I've never encountered anybody so stubbornly autistic about life
OH.. the timers were bad enough. I go to the pub, come home and find that an outbreak of relatavistic physics has occurred:(
@MartinJames I'm not sure this would qualify as relativistic physics. Therapy, maybe.
Besides, there's lots of different fucking lots.
2
@AndyProwl so meta
17:39
And that's just our lot in life
repost but I can't help it:
@LightnessRacesinOrbit OK, I just read more posts. It's relativistic money. I got misled by the caesium second thingy.
@MartinJames Zing
Don't worry I'll draw you a triangle with some things and you'll gain a thorough understanding
17:43
It's about relativistic not knowing how to visualise anything, nor seeing the point
@CatPlusPlus understanding != intuitivity
Yeah - I'm tired and emotional:)
@MartinJames menopause?
@LightnessRacesinOrbit Doombar.
@MartinJames fav
actually that's a good point if I'm going to go and get some myself before "too late", I ought to think about putting some dinner on
Good flavour and only 4.0% - dificult to beat.
17:45
The triangle will explain everything! youtube.com/… (timed, 1:30)
Yes, your cynical humor definitely proves you right.
I'm here strictly to make fun of people
Twice the car he used to be
17:52
@CatPlusPlus oh god when the Americans start laughing
wtf is wrong with them
chill the fuck out
@LightnessRacesinOrbit congrats on 100k
now onto the mountain of rep that is Jon Skeet?
that mountain is constantly growing at a fucking lot of rep / fucking few time
0
Q: Macro don't work

YurkoFlisk#define SAFE_RELEASE(ptr) {if((ptr)){(ptr)->Release(); (prt)=nullptr;}} This is a macro from one game programming book; In VS2012 when I call this macro, there is a compilation error: SAFE_RELEASE(device3D); SAFE_RELEASE(direct3D); Error is " 'ptr': undeclared identifier ".

@Mgetz No chance
17:56
@LightnessRacesinOrbit It's a very quickly moving target, but one can always try
'Macro don't work', OK, a valid and understandable statement. Not exactly a question:) 'game programming book' - oh, now I understand...
Let's ban gamedevs from using the word "programming" in relation to the crap they're doing
@MartinJames Nice how he didn't even bother to tell us which one. That reveals a certain mindset, doesn't it?

« first day (1184 days earlier)      last day (3989 days later) »