« first day (1390 days earlier)      last day (3574 days later) » 

8:00 AM
Humm but I do not fully understand why the helper struct gets inlined and the function not.
 
see, here's your problem
none of us know shit about the VS optimizer.
you're asking us a question we can't possibly answer.
go ask someone who's worked on it or something
 
or ask on stackoverflow
 
closed as unanswerable.
being as how it'd be unanswerable by pretty much everybody.
 
Hey maybe that one guy who actually works on MSVC compiler posts on SO
 
or maybe lippert and/or skeet have some relationships inside the microsoft mob
 
8:04 AM
Nah if I understand it correctly it is related to what exact type is passed to the function template.
 
and can delegate the task to the msvc godfather
 
@AlexM. You forgot STL.
 
you don't understand it correctly
 
With these fixes, I don't get why standard library bugs are so intertwined with compiler bugs, well, aside from MSVC being a complete pain.
 
Stdlib is the only thing they test the compiler on
Sometimes
 
user3010322
8:11 AM
Sometimes indeed...
 
._.
 
user3010322
@melak47 How's life?
 
8:26 AM
noooo
coliru's dead again
> execution expired
first the milk and now this
damnit
 
Or infinite loop.
 
What do you guys use for quick file hosting?
 
@MarkGarcia it's not an infinite loop, as the code works on other kind of colirus
 
user3010322
@Rapptz tinyupload ?
 
user3010322
Dropbox / Box / Google Drive?
 
8:29 AM
@AlexM. "other kind of colirus" lol
 
I don't have any of those installed on this machine
also tinyurl doesn't host files
 
can you like shift the bits to the right one position to divide a number by two
 
user3010322
tinyupload
 
is this a common way to do it
 
user3010322
Or whatever it's called
 
8:30 AM
or am I the only guy who found out about it today?
 
don't do that
 
@Rapptz Dropbox
 
Copy and paste the .exe text on Pastebin!
 
it's an archive lol
 
You don't need to have the client installed
 
8:31 AM
okay, cool
 
Dropbox, GDrive, OneDrive, etc. All have web clients.
 
yeah I just noticed
I knew Google Drive did but meh
 
8:44 AM
I want a sandwitch statement.
#define sandwitch switch
 
¬_¬ my god, imagine a switch statement, but where it would execute all the sections for which the test is true, not just the first one it finds, a true 'sANDwitch'
 
hey, I've also seen this
switch(var):
{
     default: <some code>;
}
 
what's a sandwitch statement?
 
... what?
2 mins ago, by thecoshman
¬_¬ my god, imagine a switch statement, but where it would execute all the sections for which the test is true, not just the first one it finds, a true 'sANDwitch'
fucking read
 
8:53 AM
ok :P
 
@StackedCrooked no, I wouldn't think so. I consider myself slow at puzzles. But I do perform better at abstract tasks than with real life things. Also I suppose it might have been more. But certainly 20 minutes tops. Anything more would have made me ditch it. Which, btw, I did after l22
 
sugoi
 
does sandwitch statement actually exist?
 
no
 
@AlexM. that's not dead. Just don't compile any heavy TMP sHit there :)
 
8:54 AM
tmp... shit?
what's that?
 
yeah
 
template metaprogramming
 
@AlexM. dude. Do you even c++
 
he doesn't
 
ooooooooh
well it was no TMP then
it was just this
 
8:56 AM
careful man
don't wanna be pasting code blocks here
it's against the law
 
unsigned int width = 1280;
unsigned int height = 720;
unsigned int webWidth = width >> 1;
unsigned int webHeight = height >> 1;
not exactly a code block
it's tiny
well it was that and std::cout-ing webWidth and webHeight
 
You shouldn't do x >> 1 to divide
 
I know
 
@Rapptz any thing to say about it?
 
that's what I said above
28 mins ago, by Alex M.
can you like shift the bits to the right one position to divide a number by two
changed it to / 2 in the code I'm working on since the compiler most likely uses bit shifts to do division anyway
 
8:59 AM
@thecoshman Looks promising.
 
but I didn't know you could shift to the right by 1 to divide by 2
and I wanted to test it out
 
There's no reason to do it really. it makes the code trickier to read, and more birttle
 
yeah that's what I felt when I first saw it
 
is doing >>1 not faster than /2 ?
 
@Hellboy Depends on how smart your compiler is.
 
9:00 AM
no
 
it's yet another optimisation throw back that is stupid now that a compiler can see you have an unsigned int and dividing by two
 
since the compiler turns / 2 into >> 1 anyway
 
pretty sure any compiler does this
 
Yes, basically any compiler made in this century will perform this optimization.
 
put it this way, -2 >> 1 != -2 / 2
if you just wrote what you wanted to do in the first place ಠ_ಠ
 
9:01 AM
while at it I also extracted two C1 / C2 operations from a ternary into named constants because fuck even with paranths around I still thought what followed them only applied to the second branch of the conditional
I should get a job as a code cleaner
 
haha
 
I doubt there's much money in it
"so, you want us to pay you to take code that works, and make code that works?"
 
do it for the community ;)
 
yeah me too
I'll clean it along the way
 
I don't know if your code is really clean judging from what I've seen :v
I'd describe it as 'fragmented'
 
9:06 AM
I'd describe it as readable
 
Biased.
 
how do you decide what's readable and unreadable without being biased?
 
@AlexM. I can also read your palm. :P
 
there's always some bias involved
what's unreadable to some may be readable to others who are familiar with the patterns found in the code
 
@AlexM. let someone else say
@AlexM. if it's unreadable to some, it's unreadable.
 
9:09 AM
@AlexM. It's different if it's your bias
Like I can say my code is readable but who knows if it actually is
 
The general rule is, bad programmers can't read a good programmer's code and vice versa.
 
Foo::doThing(aBar, otherBar); <-- unreadable
Calculator::difference(myAge, herAge); <-- readable
 
agreed.
 
@Rapptz I'll be sure to request pair programming from now on
to actually be 100% sure naming constants that consist of long operations makes it easier to understand the grand scheme of things
and it's not only me being biased
 
I need a way to make Preferences.sublime-settings be platform specific
Hmm
 
9:12 AM
long descriptive names are much more preferable imo than short abbreviations
unless the abbreviations are well known
 
welp
I had trouble with a guy once
who didn't know what "rhs" and "lhs" mean
so...
(the context of operators was obvious)
 
you are entitled to tell people they are idiots
 
without being blunt, of course
 
It's not like you could look up "lhs rhs" on a search engine or anything like that.
 
well, everything depends on the scenaria where you are programming
 
*scenario
 
damn
every other setting can be platform specific.. why not these
 
Xeo
damn bugs that happen on any other PC but mine
 
how frustrating
 
Xeo
and it can't even be my local data, since we're all using the same test web client
 
9:21 AM
time to make a plug-in, I suppose..
how.. idiotic.
 
10:15 AM
@Xeo how I hate bugs like that
 
you mean, all of them? :P
 
yes all bugs
 
Bugs you can't reliably reproduce are far worse than ones that you can though :p
 
damn, C++ won't let you overload on non-staticness?
 
Xeo
10:32 AM
@TonyTheLion turns out it wasn't a bug ;_;
phantom bugs, yay
@Puppy err
of course not?
you can call statics like instance functions, so how the fuck would that get resolved?
 
@Xeo oh
 
people need to use "DRY" instead of "dry" more often
there was this guy asking about ways to make his API more dry
and I was like "what?"
 
@Xeo Obviously, the instance function is preferred if you call on an instance.
 
Xeo
"obviously"
what about inside a member function, calling just foo(); which is both static and not?
 
FTR, the reason I would have liked such a feature is to delete the instance version.
@Xeo non-static.
 
Xeo
10:38 AM
welp, lunch time
 
Yeah. Life's a bitch
@AlexM. not damp. Also, DMC!
@chmod711telkitty oh god, wonderful how you distill such valuable life lessons from arbitrary news items.
@AlexM. wokay. Then coliru is misbehayving
 
just thought ... prevention is better than cure ... in case ... you know ...
 
Yeah. Good job. Keep at it.
 
was reading this answer: http://stackoverflow.com/a/1410632/1317018

in many such answers where they bring in language specifications, they use this : [...] as in below :

A declaration is a definition unless it [...] is a class name declaration [...].

What those three dots inside square brackets means?
2
C noob here
 
It's placeholder text to shorten the length of the quote
Like for example shortening the phrase 'I like cats, dogs, and other animals' into 'I like [...] animals'
 
10:50 AM
lolz thats it?
 
yes
 
Man I think I've just opened up my first support ticket for anything ever
 
lol I'm using a WP8 device for the first time
I knew the OS was lag free but damn
this is really smooth
makes my android look laggy at times
 
reminds me, I need to get a new phone soon ...
Or I can cut cost & going to a lower plan when my current contract expires
 
the fucking vending machine guys saw I always buy kitkats so they increased the price
caffeine and sugar keeps me up and running throughout the day
especially sugar
 
11:04 AM
need it to help you push against the quantum vacuum virtual plasma
 
@Mahesha999 It means they have removed some details.
 
Quoting is hard
 
how to do a essay based on others research without being caught commiting plagiarism is hard
 
just don't take credit for the research?
 
Put tiny quote marks around the entire thing
 
11:28 AM
Not just don't take credit for the research, but also need to label all the quotes and mark where they are from.
 
@AlexM. welcome to capitalism
 
agile reminds me of ninja hacking
hackathon style
yeah, what's the point of writing good code when you have to do it all again in 3 years because of the new OS just being rolled in ... </sarcasm>
good new for software developers though - we create jobs for ourselves! ... just like the lawyers (why don't those super rich fight to death ... on the court)
 
ah shit, I think I have to define my own calling convention.
 
My calling convention is "don't call me"
18
 
11:37 AM
string CatPlusPlus(Cat cat){cat++; return "cat been plussed";}
 
How are Qt sockets broken? Let me count the ways...
 
totally going to call that!
 
@CatPlusPlus so the first instruction inside the stack frame is int 3?
http://gizmodo.com/the-chinese-government-has-banned-employees-from-using-1616819426
Well that was predictable
 
microsoft hides games inside another app on wp8
what the hell
 
the C++ ABI was way easier than the C ABI.
 
12:02 PM
I like the implication that "Microsoft used to suck at development but that's all in the past now, and everything is super agile and they're not at all lagging behind"
> No longer is it the case that developers have to wait years at a time for better standards conformance; they get to see, and use, the progress several times each year.
lol
 
I DID 31!!!
 
@Rapptz That's what you get for configuration files not being written in full-featured programming languages.
 
I woke up too early again
Like 1AM too early
I'm dead tired and it's barely 2PM
 
@CatPlusPlus you really should get your self back to healthy sleep cycle
 
Imma take a nap
I just can't think
 
12:13 PM
don't man
2 mins ago, by thecoshman
@CatPlusPlus you really should get your self back to healthy sleep cycle
 
Fuuuck it
 
@PolymorphicPotato oooh, cicada
 
12:26 PM
Evening
Or whatever time it is there
 
you should use "hello"
it's very portable
 
True
Another cute one I heard is "timezone's greetings"
I've broken out of my multi year singular chat room mode to check out this room :p
 
Wow I've never seen that haha
 
why do we have daytime greetings anyway
all mean the same thing
greeting someone
"hello" should be the only greeting
 
12:35 PM
Just avoid pointing out that it's not evening/morning/afternoon in your country when someone says so, because 1) it's boring 2) it's repetitive 3) it's repetitive.
 
Or maybe I'll base my greetings on UTC
 
or maybe you could use "hello"
 
Alright you win
I'm sold
hello
 
@Jefffrey I always find it entertaining when people talk about "eliminating noise" from places that (like here) are pretty much pure noise anyway.
 
@JerryCoffin I don't hear anything :P
 
12:51 PM
@TonyTheLion I hear my hard drive...
 
@StackedCrooked someone stole your face
 
> If you see me answer on the topic of c++ templates then my account has probably been hacked.
 
1:05 PM
I don't care to here about it ಠ_ಠ
 
Xeo
So @StackedCrooked took a look at my LinkedIn profile, apparently.
 
let's be friends on linkedin
 
@TonyTheLion The quote given is hilarious. "Blah blah; BRITAIN SO GREAT; blah blah"
 
we'll like each other's professional crap
I wish I didn't like a chick's job switch
now I get notified whenever people like her job switch too
 
@AlexM. what? are you an HR?
 
1:09 PM
nope, but you have to have a connection with someone that has a connection with the person you want to connect with
 
wait a second
 
no
 
You from the U.K.?
I hear that LinkedIn is real big there
 
I'm pretty sure @jalf said something after the link I posted?
 
and the wider the network the more possible it is for me to find people I'm interested in
 
1:09 PM
and now its not there
 
(and message them)
 
@TonyTheLion He was (rightfully) slapping Arcoth for being a fuckface, and the pirate binned it.
 
afaik messaging a 1st grade connection is free
anyway
THE FRIENDS THING WAS A JOKE
OKAY
 
@Puppy ah I see. For a second I thought I was hallucinating
 
I thought it was obvious
 
1:10 PM
@TonyTheLion You are, but that's orthogonal.
 
@Puppy kekeke
 
damn
I hate living here
I feel like whenever I want to make a phone call, everybody is listening in.
triply so in summer.
 
I live on the ground floor, right next to the primary living area, and have to have all my windows (out into the garden where my mother is currently planting shit) to survive the heat.
 
ah I see
time get a job and move out
 
1:15 PM
working on it
 
-2
Q: Does std::make_shared(new Foo()) create singletons?

Danny AWhen std::make_shared(new Foo()) is called, it constructs a Foo and returns a std::shared_ptr<Foo> for the caller (viz. here). If this is called multiple times from various objects, does it construct a new Foo() each time? In this case is it no different than each caller getting a single referenc...

 
@Puppy not just the slapping, the whole bitch fight
 
Wasn't there a question earlier that asked if make_unique made singletons?
 
@Puppy no your not, that's the problem :P
 
Xeo
@Insilico lol
 
1:21 PM
I don't see how people make the leap from smart pointers to singletons. wtf.
 
Xeo
@Insilico To be fair, such a makeFoo function is baaaaad.
Factory functions should return unique_ptrs, because you can create other smart pointers out of them
 
arguably, that's not always quite the same thing, though.
e.g. intrusive control block allocation w.r.t. shared_ptr.
 
Xeo
true
 
BBC is just ridiculous - "some Ukrainian soldiers were killed today; Russia concentrates army near Ukrainian border but denies that". Just how is that related %)
 
1:36 PM
@Abyx in the same way that news that "kid shoots a bunch of people at a school" are often followed by stories about people considering stricter gun laws?
 
or I think to be more fair, "Kids shoots bunch of people at a school; NRA continues selling guns to kids"
 
NRA doesn't sell guns, do they?
 
I don't think they actually do retail guns to kids
but Russia does sell weapons to Ukraine rebels, so
 
yeah, other countries also helped USSR to fight against fascism in WW2 times
 
yeah; except back then both sides were fascists and now only Russia is fascist.
 
1:46 PM
you have to read the definition of fascism.
 
@Abyx enlighten us...
 
wiki is good enough
 
I'm looking at the Wikipedia article right now and it seems to sum things up in Russia just fine.
 
I'm asking you
 
Fascism /fæʃɪzəm/ is a form of radical authoritarian nationalism that came to prominence in early 20th-century Europe. Influenced by national syndicalism, fascism originated in Italy in the immediate aftermath of World War I, combining more typically right-wing positions with elements of left-wing politics, in opposition to liberalism, Marxism, and traditional conservatism. Although fascism is usually placed on the far right on the traditional left–right spectrum, several self-described fascists have said that the description is inadequate. Fascists sought to unify their nation through an a...
 
1:47 PM
You clearly have opinions about it
I'm pretty sure they had this thing called an election in Ukraine some months ago. Do you disagree?
 
@jalf oh about that - how did they get the power?
 
@Abyx who "they"?
 
nationalist bullshit? check. invading other nations? check. political violence? check. minority repression? check. communications control? check.
 
@jalf current Ukrainian government
 
1 min ago, by jalf
I'm pretty sure they had this thing called an election in Ukraine some months ago. Do you disagree?
The interim government they had up to the election, sure, that was a bit iffy. That's why they held an election, no?
 
1:49 PM
@jalf and what happened before that? there wasn't the time for next elections
 
@Abyx What happened was that the boss guy managed to piss off his own population so much that they rioted, and he fled
 
Russian citizens could take a hint here, since Putin is cracking down on political dissent, minorities, freedom of communications, etc.
 
That's part of democracy too, you know. Democracy doesn't mean a carte blanche to abuse and exploit your country for 4 years at a time.
 
@Puppy That's just Stalinism
 
1:51 PM
the main difference between Hitler and Stalin is that after the fact, the German people figured out that their leader and his nationalist/racist/etc crap was full of shit.
 
@jalf oh I see
@jalf so that Maidan in Kiev is democratic, but referendums in Crimea, Lugansk and Donetsk are not?
 
@Abyx Last I checked, Kiev was not already occupied by a hostile power, and did not hold a "political campaign" in about 2 seconds flat.
 
@Abyx given that the latter ones were arranged with a couple of days' notice and that heavily armed vigilantes were patrolling the streets at the time and that many people were scared to vote, I'd say they were not
Have you heard report of people being prevented from voting in the election a few months ago?
 
@Puppy there was no nationalism. and what more important Fascism go along well with Communism, because Fascism is a branch of Capitalism.
@Puppy hostile power? hostile to what?
 
Honestly, if Crimea wants to be russian, that's fine by me. But it should be decided openly and peacefully, not by a group of angry kids with support from Russian soldiers launching a coup and then making a mock vote with zero oversight
 
1:57 PM
@Abyx How about, I dunno, Russian tanks. Hostile to people who, say, don't want to be part of Russia.
 
@jalf oh and what do you think would happen if there was no armed people? Ukrainian nazis and Ukrainian magnates would just allow them to separate?
 

« first day (1390 days earlier)      last day (3574 days later) »