« first day (927 days earlier)      last day (4023 days later) » 

2:00 PM
@CatPlusPlus It's not nothing, it's initializing to zero
 
@ScottW simply disagreeing is not trolling, it's being a dick
 
@thecoshman not even close
 
@rvalue huh?
 
Zero-init for classes is doing basically nothing
 
@thecoshman you can't make less pressure than vacuum
 
2:01 PM
struct x { int a; }; int main() { x my_x = x(); /* broken */ }
 
@rvalue you can in a liquid. It's how trees are able to get fluid up 100's of meters of tree
 
@thecoshman you can't make less liquid than no liquid
 
user1357851
@kbok But you were also the one who told ape it was normal for frenchwomen to only cover half of their butt on raining days (when we were discussing robot's avatar)? Can not trust you
 
A pressure difference of only 1 atmosphere would limit trees to only being to get liquid up ten meeters
 
@kbok That's not zero-init
 
2:01 PM
90% of all biosphere lives in the ocean and is unknown to the human species
 
Also what
 
^ I totally made the number up
 
@rvalue I will get a video to explain it all to you shortly
 
it's also why there is a fundamental limit to sound power before you start dealing with shock or pump dynamics
 
@CatPlusPlus What is it then
 
2:02 PM
Default construction followed by an elideable copy construction
 
Value initialization.
 
@CatPlusPlus No.
 
trees largely transport fluid by capiliary and osmotic drive
2
more like a wick than a pump
 
Also the mere fact that you're thinking is offends me
 
2:03 PM
Document yourself about C++ and you will see.
 
Right
 
No seriously, this is a special syntax. It's in the standard. It's called value-initialization.
Like @LucDanton said.
 
Leads to zero-initialization for a POD.
 
memset() we done here?
 
And it's broken in VS2008 and previous versions and maybe later versions too
 
2:05 PM
Now I remember why I don't use this language
 
@CatPlusPlus Value initialization is one of the saner parts.
 
But it's totally not an elideable copy, don't say that, it makes me cringe
 
Elideable copy
 
it is if you don't use the result
 
It's only a workaround for MVP
 
2:07 PM
@thecoshman nope. it's over-used.
 
@kbok It can be both.
(it is)
 
Same semantics therefore I don't care
 
@thecoshman Someone will look at a question like stackoverflow.com/q/16300432/560648 then comment nothing but "what are you really trying to do? tell us what your program does and what you're trying to accomplish", leading me to shoot them in the face. That's X-Y abuse.
 
@LucDanton Yeah, it is, actually.
 
It does sound like "you're doing it wrong" so yeah I'd comment that
 
2:09 PM
I'd say "shoot in the head" instead of "in the face"
You hit someone in the face, but shoot in the head, don't you?
Maybe you can hit someone in the head if you try really hard but shoot in the face?
That hardly makes sense.
 
???
 
you shoot them in the area of the head that has the face on it == shoot them in the face
 
2:24 PM
ok children, I'm back
 
user1357851
=== In the next 2 hours, I will be sicking sweet, so sweet that you might want to duck and hide yourself in the nearest burrow ===
 
One of my friends majoring in elementary education has to write a 100 page research paper about kids. This makes me happy to be a computer science major...
 
@Telkitty For some reason, I choose to remain wary.
 
user1357851
why, sweetie, there is not need to fear
 
@Telkitty Except a slegdehammer.
 
user1357851
2:31 PM
Oh hun, you worry too much, but there is no slegdehammer on the internet
 
 
@rvalue learn
 
user142019
@EtiennedeMartel "on Tor" I was confused for a while.
 
user1357851
Oh, do love those slegdehammer holding, hard working men, they are the people who build our roads, bridges, so food delivery people can drive their pizza van to delivery our dinners before they get cold.
 
2:38 PM
@rightfold I'm mostly saying that for @R.MartinhoFernandes.
@ScottW You're starting to sound like Crowz.
 
@rvalue no, they don't. neither of those are sufficient enough to transport water the heights they do.
 
@thecoshman They probably use friendship magic.
 
@thecoshman How do they do it, then? Rope and a bucket?
 
@EtiennedeMartel magic is always the answer :D
@LightnessRacesinOrbit you learn too
 
Oh, okay, if YouTube said it...
 
user1357851
2:44 PM
Tommy ^_^
 
@LightnessRacesinOrbit You dummy, it's not YouTube, it's the guy who uploaded the video.
 
@LightnessRacesinOrbit all claims are backed up
 
> First, what they’re actually doing and represent, and secondly, why they enrage people so effortlessly.
Being extremely annoying
 
@CatPlusPlus You should watch the show.
 
Show's irrelevant
 
2:46 PM
Perhaps you could summarise the video for me, since I'm at work.
 
@CatPlusPlus You wouldn't find the fandom annoying if you liked the show.
Because you would be part of the fandom.
So the show is relevant.
 
You can like a show and not be fucking obnoxious
So, no I wouldn't be part of the fandom whether I liked it or not
 
@LightnessRacesinOrbit it really is worth a watch. Trees basically evaporate water out of there leaves, creating up to -15 atmospheres of pressure to suck water up.
 
Define "be fucking obnoxious".
 
If fandom means "mentioning ponies whenever you can"
 
2:48 PM
What's the problem with that?
 
user142019
Pwny
 
You don't get that kind of reaction when people drop Star Wars references all over the place.
 
Like many things on the Internet, it quickly becomes old and annoying
 
user142019
@CatPlusPlus Like you!
 
2:49 PM
SW fans aren't nearly as annoying
 
@LightnessRacesinOrbit something like capillary action would only work for about 1m
 
@BartekBanachewicz Looks like my code!
@CatPlusPlus But why?
 
user142019
@EtiennedeMartel Your code sucks.
 
I sense a double standard here.
 
Okay, maybe I'm just not seeing the annoying ones
 
2:50 PM
@EtiennedeMartel Erm, why?
 
@R.MartinhoFernandes Because Tor!
 
@EtiennedeMartel TLDR
 
Ask robot how mentioning Haskell got ran into the ground
 
why are there so few good American bands lately?
 
@Crowz Because you're not looking hard enough.
 
@Crowz Powerman 5000. Go!
 
@Crowz Grizzly Bear, Battles, Fleet Foxes, TV on the Radio, just to name a few.
 
@CatPlusPlus Another way to look at this is, it is only annoying to the degree that you let it annoy you
 
@TonyTheLion Thank you, sexy lion.
 
2:55 PM
Fleet Foxes is cool.
 
Also, The Books. Man, The Books. Although they're no longer active, unfortunately.
 
@CatPlusPlus Partly your fault.
Books are cool too.
Oh wait, you mean a band.
 
The Books were an American duo, formed in New York City in 1999, consisting of guitarist and vocalist Nick Zammuto and cellist Paul de Jong. Their releases typically incorporate samples of obscure sounds and speech. They have released three critically acclaimed albums on the German label Tomlab, and released their fourth studio album, The Way Out, on Temporary Residence Limited in July 2010. History 1999–2002: Thought for Food Zammuto and de Jong first met in New York City in 1999 as they shared the same apartment building. De Jong invited Zammuto to dinner at his apartment, where he pl...
 
@BartekBanachewicz yeah that was good
 
A book is a set of written, printed, illustrated, or blank sheets, made of ink, paper, parchment, or other materials, usually fastened together to hinge at one side. A single sheet within a book is called a leaf, and each side of a leaf is called a page. A set of text-filled or illustrated pages produced in electronic format is known as an electronic book, or e-book. Books may also refer to works of literature, or a main division of such a work. In library and information science, a book is called a monograph, to distinguish it from serial periodicals such as magazines, journals or ne...
 
2:57 PM
@Crowz So, yes, to summarize, there's crap all over the radio, but if you look elsewhere, you're going to find plenty of great stuff.
 
@thecoshman um, that is osmodic drive
 
@EtiennedeMartel It's more of just looking around on YouTube, always seem to get Norwegian, French, or Canadian bands
 
Btw, when I say that Fleet Foxes is cool, I mean "Godammit, I love those guys' music so fucking much"
 
@Crowz Yeah, our music is better.
@R.MartinhoFernandes I knew you had taste.
 
@EtiennedeMartel which country?
 
2:59 PM
@Crowz Canada.
 
yeah my favorite band ever is from Canada hah
 
Ha! Caught red-handed betraying your independentist friends!
 
@R.MartinhoFernandes I know
 
@R.MartinhoFernandes Fun fact: most of the music produced in Canada is actually made in Quebec. We have more artists per capita.
 
0
Q: Static assertions and SFINAE

bluescarniConsider this: template <typename T> struct hash { static_assert(false,"Not implemented."); }; struct unhashable {}; template <typename T> auto test(const T &t) -> decltype((*(hash<T> const *)nullptr)(t),int); void test(...); int main() { std::cout << std::is_same<decltype(test(std:...

 
3:00 PM
Because hey the audience here doesn't really change so we already know you like the goddamn thing
 
I bet Berlin has more artists per capita.
 
alright, nerdist, I don't get that question
 
Don't have to remind everyone every 10 minutes
 
@R.MartinhoFernandes Maybe. But I was calling about Canada.
Although I'm sure we beat you on the comedian front.
 
Supposedly Japan has a lot of music per capita
 
3:01 PM
IME the population <40 is distributed more or less like... one half artists, another half programmers, and a gripping half non-artistic muggles.
 
@LightnessRacesinOrbit no, osmosis is where water is absorbed to balance concentration of dissolved substances. If Trees relied on such a system, in mangroves where they are sat in very salty water, they would actually lose water.
 
@R.MartinhoFernandes I'll bet nobody can define "artist" in a meaningful enough way that they can make "artists per capita" a measurable metric.
 
@JerryCoffin Except when wanking.
 
@LightnessRacesinOrbit seriously, watch the video when you get home... then all of his other videos. They really are good.
 
artistic wanking?
 
3:02 PM
@TonyTheLion Political wanking.
 
@thecoshman Maybe I will.
 
@EtiennedeMartel Well, yes -- obviously you can make it measurable by saying (for example) "Everybody's an artist", and therefore "artists per capita" is always 1.
 
@JerryCoffin Not that I really care. I was merely building up to make a silly generalization/rant and drop an unnecessary reference to the Moties.
 
Come to think of it, since any programmer is also an artist...
Everyone in Berlin's an artist!
 
3:04 PM
@LightnessRacesinOrbit but yeah, negative pressure is what it is. Though, really the water is more like it is under tension.
In theory, as the water is not under pressure, it should boil, but the tubes are formed so perfectly that the water never gets a point at which to trigger it's evaporation, just like how you get super chilled water.
 
also, elephants
 
yes tony, they do have a rather phallic face
 
@EtiennedeMartel Well, I listed three halves because they are not disjoint (and because I felt like dropping a gratuitous reference). There are artist programmers, there are non-artistic artist muggles, and there are non-artistic muggle programmers.
 
and then there's me
:P
 
3:09 PM
Last I checked, you were not part of the population of Berlin.
 
@R.MartinhoFernandes "Muggles"? You elitist person.
 
@EtiennedeMartel mudbloods would be elitist
 
@R.MartinhoFernandes oh
 
oh god, drawn into harry potter references :(
 
3:10 PM
@EtiennedeMartel What? It's a term that clearly describes the set of people I am talking about.
 
> A Muggle is a person who is born into a non-magical family and is incapable of magic.
"incapable of magic":
anyone not dealing with C++, basically.
 
@TonyTheLion there is a quote about how to idiots, smart stuff is like magic
 
9
Q: A() = A() - why does it compile?

scdmbclass A {}; int main() { A() = A(); return 0; } Why this code compiles? Shouldn't be there some error that on the left side of assignment operator should be placed lvalue? Is A() lvalue? g++ 4.7 version

 
@TonyTheLion See, it's obvious!
 
Indeed
hahah
 
3:12 PM
It doesn't fit perfectly, but it's close enough.
"most muggles are unaware that wizards exist, and wizards (used to magical ways of doing everything) are perplexed and fascinated by muggle artifacts."
 
@Jueecy.new lol, that's gonna be the next multicollider question.
 
With s/wizards/programmers/ it's kind of the opposite.
 
@Mysticial, that's exactly what I though when the vote counter passed from 1 to 4 in less than a second...
 
Some programmers seem unaware that muggles exist, and muggles are perplexed and fascinated by programmer artifacts.
 
3:14 PM
@Jueecy.new Yeah, I can see it going over a hundred in the next 24 hours.
 
You give a decent answer there and you'll gain 1k rep in less than a day
IT'S A GOLD MINE!
 
Does coliru have clang? @Stacked
 
ALL THE GOLD
 
I'm not gonna try to make any bold predictions, but many of the posts I've seen that go up that fast, will reach +300 easily.
 
If you hit a nail with a hammer, you have clang
 
3:15 PM
Seems so.
@Jueecy.new I swinged my pick. Let us see ;)
 
@Jueecy.new Not in a day, because of the repcap. But a viral post will easily repcap you for a several days to a week.
 
@Mysticial, oh, right. I forgot about the repcap...
 
So you "just" have to find a fancy unusual construction and make it a well-written question ?
 
@R.MartinhoFernandes, I doubt you'll answer will ever reach the 1st place, it's all a matter of timing...
 
'just'
 
3:19 PM
"Why is int = double = bool = std::copy<int, double, bool> not raising a compilation error ?"
 
Because you're not compiling it
Zing
 
lol
 
@CatPlusPlus: That indeed was the answer I wanted to give.
Thanks for stealing the amazing joke...
 
@ereOn, post a comment
 
Any time
 
3:21 PM
You guys kill all the fun in me. ALL OF IT.
 
You'll become one of us
 
That may not happen sadly
I'm french so I am, by design, way superior to any of you. So I can't be "one of us".
 
@TonyTheLion That means no friendship? How sad.
 
3:22 PM
peace out
 
@Jueecy.new It's tough here since robot's answer isn't a direct answer to the question.
 
@ereOn it's probably better. These people star other friend's bad news! Savages!
 
And it's up:
> 30 A() = A() - why does it compile?
Multicollider
lower than I'd have expected it to be though...
 
@Mysticial 30?
 
3:27 PM
Hmm, Coliru does not have libc++, and clang there doesn't work with libstdc++ :( @Stacked
 
@Jueecy.new It's the "hotness" score.
 
@Mysticial, wat? isn't it 20?
 
@Jueecy.new That's the score of the post.
The "hotness score" is different.
 
oh, I see (not really)
 
user142019
@EtiennedeMartel What about it.
 
3:31 PM
@Jueecy.new The hotness score is some function of the # of votes, the # of answers, the views, and the age of the question.
 
@Mysticial, and where's the function definition?
 
@rightfold I'm so fucking excited.
 
@Jueecy.new In the source code for SO, of course.
 
user142019
OIC
 
21
A: How are "Hot" Questions Selected?

Jeff AtwoodWhat Formula Should Be Used To Determine "hot" Questions? Based on my analysis of the above and the comments so far, here's the second version of what I have implemented so far. This might suck. I don't know: (log(Qviews)*4) + ((Qanswers * Qscore)/5) + sum(Ascores) --------------------...

It's outdated though.
I'm aware of a few tweaks to do it mentioned directly/indirectly by other devs.
 
3:34 PM
@EtiennedeMartel :(
 
@Mysticial, ok, but where's that you've read 30?
 
@Jueecy.new It's a 36 now.
In the multicollider dropdown menu
 
user142019
Hot questions are selected by amount of energy released.
 
A& operator=(A&&) &= default; // ha, spot the error
 
user142019
@R.MartinhoFernandes longest token rule don't know what it's called. &= is a single token but it's meant as two tokens: & and =.
 
3:37 PM
That question doesn't have enough total answers to boost its "hotness" score.
 
@R.MartinhoFernandes ow
 
user142019
> This page is taking way too long to load.
 
user142019
It's funny how this message loads more quickly than pages usually do.
 
17
Q: What do you do when a player intimidates your campaign boss to surrender?

RavnSo my players recently fought a big bad campaign boss. The (custom made) boss was a kind of solo beserker king, and the encounter difficulty was designed to be fairly moderate until the boss became bloodied, at which point he would frenzy and dramatically increase his damage output and the encoun...

Wow, this is second from top in the multicollider.
 
@Mysticial I see. Never really used that tab...
 
user142019
3:40 PM
I like the web design.
 
@rightfold Normally called "maximum munch".
 
user1357851
@LightnessRacesinOrbit Oo Tommy <3 <3 <3
 
user142019
Yes that.
 
@LucDanton Painful ain't it?
 
Meh, funny. Straightforward error, no?
 
3:42 PM
Ins't he the potential threat?
 
Clang, continuing the tradition of having magnificent error messages, gives a straight from the parser error: expected ';' at end of declaration list.
 
@Jueecy.new At least claims to be a "she", not a "he".
 
@LucDanton Took me a while to understand it. For a moment I thought coliru had an old clang without ref-qualifiers.
 
@JerryCoffin, is him the cause of the let's-build-a-nuclear-weapon-monday, aka yesterday?
 
Especially since the error you get with GCC is error: expected ';' at end of member declaration (even with space).
 
user142019
3:45 PM
And that is why you always put a space before = default.
 
I made an edit.
 
user142019
Gevlagd.
 
looool
 
user142019
Oh hey we have a king.
 
3:49 PM
Hey, is there anyway to force the compiler to use static_cast?
 
Yes. Type static_cast.
 
user142019
@DavidJensen static_cast<T>(expr)
 
I know how to use it goddamnit
 
user142019
Well, then what's the problem?
 
But in my case the compiler says i cant
 
3:49 PM
easy boy
 
@DavidJensen That means you are doing something wrong.
 
user142019
(Pro tip: be clear or you won't get the answer you're looking for.)
 
And in this current case i know better than the compiler
 
"Forcing the compiler" is the wrong solution.
 
3:50 PM
#define static_cast reinterpret_cast
 
@Pubby reinterpret_cast is quite restrictive.
 
user142019
@Pubby #define static_cast cowboy_cast
 
@R.MartinhoFernandes Yeah, I figured.
 
The big hammer is C-style casts.
 
user142019
@ScottW Let me fix that for him:
 
3:51 PM
@DavidJensen Well, no way to tell without code.
 
C casts can't be #define though :(
 
user142019
auto xs = new T[n];
--xs; // one-based array!
 
Im using a base pointer to store a derived templated class, this templated class overrides a function that returns a more defined class.
The class returned is used on static cast
 
user142019
"More defined class" lol.
 
user142019
I think you mean "derived".
 
3:52 PM
@DavidJensen Sounds like dynamic_cast.
 
Well it is more defined isnt it?
 
@rightfold UB.
 
@DavidJensen "derived" would be the correct term, I think.
 
user142019
@DeadMG I know.
 
A base class is a more abstract class ie its less defined right?
 
3:52 PM
no.
 
user142019
Only incomplete types are less defined than other types. Except for (potentially cv-qualified) void, which is very well-defined!
 
all classes are either incomplete or defined.
 
@Jueecy.new Looks like it just overtook the other SO question on the multicollider. So it's high enough to see without scrolling. It looks like this one will take off.
 
But in the sence of english and theoretical , isn't a module that is more abstract less defined?
 
@Mysticial, actually I still need to scroll a little bit, but yeah it will take off
 
3:55 PM
And a concrete one more defined?
 
Whatever, it doesn't really matter.
 
@Jueecy.new It's not common for a question with only two answers to take off without intervention. But I think this one will.
 
Can i get back to my problem?
 
@DavidJensen OK
 
@DavidJensen,
 
3:56 PM
3 mins ago, by R. Martinho Fernandes
@DavidJensen Sounds like dynamic_cast.
 
@DavidJensen No.
 
I know martino! Thats what i want to avoid
 
Oh, great. You want to avoid the solution.
I have bad news.
You cannot solve problems if you avoid solutions.
6
 
@DavidJensen, it's Martin>>h<<o
 
Hey you want a iterator doing dynamic casts on operator ++?
 
3:57 PM
We don't care.
 
user142019
7 mins ago, by rightfold
(Pro tip: be clear or you won't get the answer you're looking for.)
 
user142019
@ScottW Oh, that explains the noob.
 
In my library I have an iterator that lugs around a vector :S
 
I know i dont need dynamic_cast´s in this case i know it. I am upwards casting only.
 
@DavidJensen Upcasting is implicit.
 
user142019
3:58 PM
If you do an upcast you can use static_cast.
 
He just knows it
 
If the compiler is rejecting an upcast you have a mistake somewhere.
 
user142019
Or have it implicitly done, yes.
 
Yes but not in this case!
 
Sure.
Zebras, right?
 
user142019
3:59 PM
SSCCE or GTFO.
2
 
@DavidJensen No.
 

« first day (927 days earlier)      last day (4023 days later) »