« first day (1264 days earlier)      last day (3908 days later) » 

so what?
at various stages in history, rape, murder, suicide, and a belief that the Earth was flat were all popular things.
you can go and do those things if you want, but I'll stick with my rational scientific thought.
not to mention that one random website is hardly a reliable source.
@Luchian Grigore The answer is correct. The question does not mean using expressions to change the object. When you apply const_cast to a pointer you get rvalue.So you may not change the object with the original point. You can change the object using an expression with lvalue to rvalue conversion. It is different things. — Vlad from Moscow 6 mins ago
go have some fun
I need sleep
you might be right, but i think if you want to be a real computer science student C is mandatory to learn.
I think you're completely wrong.
there's nothing C has to offer that C++ cannot offer, but the reverse is very definitely not true.
the only thing you learn programming C is that C is a terrible language.
@Bilal C is just a syntax. There's nothing inherently computer sciency about it.
00:05
i see
the only thing notable about C is how many morons still defend it as serving any non-niche purposes.
@Bilal (a) Complete nonsense. (b) Also, absolutely true.
In practice you're likely to have to write some at some point. Increasingly rarely, though.
But especially in some academic branches of CS.
In others you will be expelled for even considering it.
Er, yes. Bed.
@LightnessRacesinOrbit yes
@StackedCrooked just... no.
thanks for the answers, see ya.
00:59
surely this must be an April fools joke
ok, knowing the date, reading this title alone got me giggling
but it always takes a second or two before I realize it's a joke
01:18
@L
we were too busy being meh
@ScottW have you ever heard "Sabbra Cadabra" by Black Sabbath, by any chance? :)
it has some strange transitions. not sure if forced or nice.
@LightnessRacesinOrbit and @Bilal I use C in a course introducing students to the underlying hardware (we start at transistor level) as a bridge from assembly to high level languages, teaching them about stack conventions etc. Because of name-mangling and other things under the hood, C++ is not as easy to interface with from raw assembly. The students find it difficult enough to grasp the concepts without the additional complexities introduced by C++.
but it gets long winded in the end.
@Eponymous C is good for that.
I sometimes want to inspect the assembly generated by the compiler and C compiles to much cleaner and readable code. In C++ there's the mangling ...and then there's iostream that generates mountains of ..stuff.
that's really iostreams as a failure in general.
@Eponymous You can simply export C functions with a defined name, you know.
I'm also gonna point out that you'll basically have to move to something with a more problematic implementation if you actually intend to go to any high level languages.
you can't stay on C and teach HLLs
tasty
also a complete coverage from transistors to HLLs would take several years to end up with any remotely useful understanding of all the levels involved.
 
1 hour later…
03:08
woah, the room died
And meta is in read-only mode?
Maybe theyre cleaning up all the unicorn blood
03:40
peeking
04:19
@Mysticial wow the chat really is dead =/ wtf guys
 
1 hour later…
188 votes omfg
06:03
@StackedCrooked How did it last long enough to be photographed? If it was in my hand, it would not stay there.
06:13
@Eponymous The name-mangling is easily turned off with 'extern C', so it's not much of a problem for me. I do use C, mainly to support ancient, legacy hardware that has only C compilers available. Later stuff, on ARM, I use C++ because going back to C after decades of OO is just dire, like I'm trying to run through deep mud. C++ still has free functions and writing embedded hardware drivers, interrupt-handlers in C++ is no more difficult than with C and, in some ways, easier.
Oh -and I don't use iostream for anything:)
> Nineteenth-century patent books are filled with inventions involving combinations of cork, sawdust, rubbers, and gums, even blood and milk protein, all designed to yield materials that had some of the qualities we now ascribe to plastic.
06:53
When do you think they will make the unicoin related questions/answers slaughter? I am betting on it would start in 5 hrs time ...
07:15
morning
@telkitty.exe I'm sorry your unicoin question was closed
10
A: Why can't my program compile under Windows 7 in French?

Manu-EPITATry to eat more bread, that may to do the trick. Otherwise, use a croissant.

7
A: Why can't my program compile under Windows 7 in French?

elwin013Have you tried turning your PC off and on again? I think it will help.

@BoltClock lol.
Since April Fools is over, I'd say go ahead and clean up the non-answers.
iswydt :D
hiya
@BoltClock @_@ ... iz nawt
@BoltClock that's my favorite so far (the question that is)
08:05
@AlexM. Most of the April Fools jokes that lounge members have launched live after April Fools. I assume that one will too - but not before some cleaning up. :)
Xeo
Xeo
I'm kinda surprised that it got so many votes
I'm not, it's funny :D
This question appears to be off-topic because we hate fun. — Kobi 20 hours ago
lol
Xeo
Xeo
Ain't "wash the exterior, wipe the interior" a common practice with storage mediums filled with leftover data from previous owner? Anyway, I suppose I can attribute your puzzlement with the fact that French people are more open to premarital user experience; if I had knew that 5 years earlier... sighvaxquis 9 hours ago
hahaha
I just caught my coworkers doing a:
A::~A(){ delete this; }
15
08:27
@Nican kill them
yowzers
You have green coworkers :) This could be nice too. But that's... scary
@Nican delete this program
gotta add currencies that replenish over time in the current game. yes! now is the time to do it right unlike the shitload of programmers whose programs break when the user time travels. so excited.
I'm sure I'll fuck something up
here goes...
> Study finds that when no financial interests are involved programmers choose DECENT languages source
^ rather meh April Fool
> The researchers argue that their data support the view that the prevalent use of indecent languages, Java in particular, is the result of money influencing programmer decisions.
morning
08:42
morning
morning
there's no way to alias a template correct? something like using x = std::map, right?
Wrong.
template <typename... T> using x = std::map<T...>;
yeah there is
template<typename T> using ptr = std::unique_ptr<T>;
How is that even related :}
08:45
you are aliasing a type there, not a template :)
std::map<T...> is a qualified-id
what are you smoking
It has the desired effect. But, no, you cannot do the other thing. Unless you want to do this: [wip]
It's all yours ladies:
8
Q: template template alias to a nested template?

iavrTemplate aliases are very convenient in simplifying types like typename F <T>::type to just F <T>, where T and type are types. I would like to do the same for templates like F <T>::map, i.e., simplify them to F <T>, where T and map are template structs or aliases. For instance, consider the fol...

a perl from 2013 unanswered
I believe the answer is that it's not possible. I've tried everything and read the standard for an hour now.
But if you have an answer I'm listening.
and here's the "template" for testing
@Jefffrey you don't like my solution? It's the way template aliases were emulated in c++03, but with variadics FOR GREAT JUSTICE
08:55
Meh, template template arguments.
Well, it's better than nothing at all here
@sehe It doesn't work the way I've tried it (for the question above)
and it even makes sense, but I'm done with template templates arguments for today
me too
I'm bored
and my day has been ruined
by what?
09:00
sleeping
you haven't slept well?
you are always bored
I went to take a "nap" at 7 PM and I woke up at 3 AM
I had plans and things to do
that happened to me once
why can't you use it for doing better things - like practice your troll on meta
09:02
now your sleeping cycle is fucked up as well
when I woke up all I wanted to do was play games despite the fact that I had an exam in the same morning
I failed it but at least I shot a lot of nazis in moh
I wish I could sleep eariler and get up earlier
@Eponymous I think that's good.
Shit me, +184 rep today and I've only been up for a few minutes. :)
My question seems to have been closed as a dup of James's April Fools' OCR question from last year. Whut
it needs 1 more vote
but yeah, strange
oh yes that banner confuses me on my own Qs
09:06
guy who initially close voted doesn't even frequent
yeah, knowledge is really required on that question :)
I tend to look anyway
if I vtc, would you people reopen it?
@LightnessRacesinOrbit why do you even care if it gets closed? :/
@StackedCrooked The interesting part was seeing the endless stack trace of the same destructor.
09:20
@LightnessRacesinOrbit already did my reopen vote earlier
@Jefffrey I don't want my question closed :(
@Rapptz :)
@LightnessRacesinOrbit why? it won't get deleted, relax
@LightnessRacesinOrbit, if you really want, I will cast an open vote
@Jefffrey shrug it looks bad!
lol porn flags
Xeo
Xeo
^ has been flagged
09:33
balls
I went to see my GP and forgot an important part
lol cos midnight is a strange time when you can't go outside
@Xeo not sure that reposting it is necessary
oh, people
wowzer, message interleaving
@DeadMG Important part? You left your gall bladder at home so they could not cut it out?
Xeo
Xeo
@R.MartinhoFernandes Btw, the comment font was Comic Sans: meta.stackoverflow.com/a/228037/156727
@Xeo tamest porno I've seen
09:38
Hmm, yeah. I don't have Comic Sans installed it seems.
@MartinJames hah
@R.MartinhoFernandes how dare you
Pornguy used to code in comic sans.
Wonder what he's doing now
I don't like Proto any more. It hurt me.
That time of the month ~_~ ... this time 2 days late ...
Proto?
09:43
13
Q: How do I get my cat to wear a tuxedo for several hours?

JoshDMMy cat is quite dapper and handsome, and when we sit down for a candlelight dinner, he should have the proper attire. Therefore, I would like for my cat to wear a tuxedo. What is the best way to get my cat to wear a cat-sized tuxedo? I think he should be dressed for several hours. I do not ...

> You can attach the monical to the underside of the top hat.
@R.MartinhoFernandes Wat happened? (Inb4 stale refs to temps in assigned expression templates?)
No, all my issues are at compile time.
I'm hardcore like that.
Xeo
Xeo
...
@Nican it ends up deleting more than it asks for
double delete means exit program
it's a feature :)
So... if I use custom tags Proto simply makes a terminal and wraps it with my tag? WTF, I'm using a custom tag because I don't want it to be a terminal :<
what's a terminal?
09:54
@MartinJames my private prescrition for amytriptiline
@R.MartinhoFernandes that's a design decision, presumably made to make life very easy for bootstrapping unrestricted dsls. Did you try proto/0x (or what does Eric call it again)?
Also FFS there's no compiler that gives a decent error message for this. Why do you withhold information from me :(
@sehe WTF?! Poor cat.
You tried Clang™?
"Have you tried Clang" // FTFY
10:06
Clang is way overhyped.
And 99% says yes, he tried
I know
@R.MartinhoFernandes Mmm. I think it isn't.
The supposed edible error messages that come out in pure gold, they are overhyped
I'm actually using clang primarily now.
Almost forgot it.
Meaning: I haven't actually tried GCC and clang, but clang and clang.
Ooops.
I just want libclang to be easily available.
I think GCC is better at template error messages
from what I've seen anyway
10:08
That's how much better clang's error messages look to me: I forget which one I'm using even after staring at the error messages for so long.
Xeo
Xeo
@R.MartinhoFernandes lol
0
Q: Is it legal to modify a dynamically-allocated `const` object through a re-used non-`const` name?

Lightness Races in OrbitConsider the following program: #include <iostream> int main() { int x = 0; const int* px = new (&x) const int(0); x = 1; std::cout << *px; // 1? } It compiles under GCC 4.8 (and produces the "expected" output), but I suspect it's entirely UB because the dynamic object has type c...

you can turn off the ~~~~~~~ stuff?
@Rapptz vim can filter that out.
But they both have that shit now.
My GCC doesn't :s
10:09
I filter it out mentally anyway.
it just has a single caret
Ah, I see what you mean.
I think it's useful sometimes
wait, why don't we have ADL in Haskell?
oh shit
10:10
Yeah, didn't pay much attention to it.
I ate some breakfast.
@Jefffrey Why would we?
@Jefffrey huh
@Rapptz I agree. It might be bias, but I like it a lot more when navigating the error novel in vim
IME they're pretty much the same.
(Not just from this one episode)
10:12
moar reopen votes plz, my little soldiers!
To the point that they both share the same shortcomings.
I've added another question for clarification. Kindly advise. — user1173240 2 hours ago
I'm soo gonna ignore this user
@LightnessRacesinOrbit pfft
It's not even having different sets of equally annoying shortcomings. It's the exact same ones.
are you getting recursive depth errors?
those always suck
> note: candidate template ignored: substitution failure [with Before = <>, After = <1, 2>]: no matching function for call to 'transform_sizes'
Nothing else after.
I want to see the transform_sizes candidates, but no, fuck you is all I get from both.
10:14
really?
I always get function candidates
I often get them.
that kind of thing is problematic because the compiler doesn't know what you think is important
@R.MartinhoFernandes It's the little differences that count for me. Anyways, with GCC I can scroll and easily "predictively scan" for the actual error message. I hate how GCC somehow manages to omit file:linenumber from the call site (very first line in an error during template instantiation error)
and there's a massive quantity of unimportant going around.
10:15
EVERYTHING
show everything
I want to see how deep the rabbit hole goes.
Fuck the whiners.
@Rapptz be careful what you wish for
well
Anyways, libclang zu ze reskew
10:16
or give the compiler a --verbose flag
all I'm saying is that "everything" is a massive quantity.
so it's for people who want it
I don't care. I've survived much worse than this.
WAT 12:16 already.
Need to run
A ton of information is still fine if I can figure out the error from just the top level stuff.
Just the top level stuff is close to useless if I need more information to figure it out.
It's the wrong starting point.
10:18
@R.MartinhoFernandes well, to import qualified modules and be still able to do M.Type a + M.Type b instead of M.Type a M.+ M.Type b or specify which operators we want to include the in the "global namespace"
The compiler should be able to provide everything before being able to provide only a portion of it.
I'm not sure about that M.+ though, it might be M.(+)
@Jefffrey Er, + comes from Num.
@R.MartinhoFernandes and I can't define M.Type to be an instance of Num?
You can.
But there won't be an M.+.
10:19
oh wait
yeah
ooook, nvm
@jalf you'r sweets arived
or is that 'my'?
Now I can post you some ricin :P
> I just wanted to share the fact that March 2014 is the first month in the last decade that had 0 American Deaths in the War on Terror. Hooah. imgur
Then:
> Unfortunately, 1,892 US Veterans have committed suicide since January 1, 2014
Ouch
What's even worse...
I don't even get to see a chain of instantiations that leads to transform_sizes.
There's so much shit missing here :<
So I'm back to the olds of instantiating templates in my head.
@sehe zing
ooh 4 reopen votes
thanks guys <3 :o) xoxo
@DumbCoder: I wrote the question and the answer to share knowledge, as encouraged by SO. I don't see why I shouldn't reap the rep rewards just as I would for any standalone question or answer! Besides that, it has been impossible to post a question as community wiki for two and a half years. I hope that answers your question. — Lightness Races in Orbit 1 min ago
sucker
context:
Why don't you post this as community wiki rather than a points harvester ?? You have enough points, it seems to satiate, one's ego. Or you are counting the points equated to $$ ? — DumbCoder 9 mins ago
finally, megalols #srsly #umadbro
wtf SO isn't collapsing my edits any more
10:35
Fuck yeah.
@R.MartinhoFernandes run dude! shits about to get cold!
what
where are you?!
@thecoshman well, I'm pretty sure it's not "you'r", at least :p
also yay
hello
10:49
@jalf she you
wtf do people really think that this was a question, not an answer?
people are stoopids
I found this, from a C library that tries to look like C++:
//	BEWARE: Orthogonal rectangles should be passed ONLY BY REFERENCE.
//	(C++'s default copy constructor will not allocate new point
//	storage, then on return the destructor free's storage, and then
//	you get into big trouble in the calling procedure.)
class ANNorthRect { [...] (everything public)
@jalf vOv aye phink eye nead two jost ceep spilling sit rung four yue
@LightnessRacesinOrbit was that not just a joke question for the day?
11:00
@thecoshman Of course not. It was a real problem I faced.
@LightnessRacesinOrbit ¬_¬ is that so...
@thecoshman ¬_¬
¬_¬
¦_¦
i'm all over the place, bitches
you missed one
it's also under recent highlights
@DeadMG ooh yay
well, that's me repcapped for the day. bye. #notreallybye
@LightnessRacesinOrbit why... is there sparkling bjarne?
@Rapptz I was wondering whether that's left-over from yesterday. But, frankly, I bet it's a permanent fixture.
Oh!
It's because of Pubby.
> Note: The short article is serious. The author’s favorite image, maybe not so much.
@R.MartinhoFernandes, this is actually what I mean by "we need ADL":

*Pony> :type (4++)

<interactive>:1:3:
Not in scope: `++'
Perhaps you meant one of these:
`Pre.++' (imported from Prelude), `Pre.+' (imported from Prelude)
*Pony>
11:15
where has Pubby gone
maybe hit by a bus ... maybe by a train, or perhaps by tennis ball large hail storm
he comes he comes
@Jefffrey Import it unqualified?
import Prelude((++))
Jefffrey is already unqualified. By extension, so are his calls.
aw shit
why oh why did I eat breakfast
@R.MartinhoFernandes I see, thanks.
import is really awesome.
The amount of fine grained control it gives you is very nice, and it can provide both opt-in (as you see above) and opt-out (with hiding) semantics.
Importing C++ modules should be that way, but probably won't.
All languages should do it that way, to be honest (Wide? :P)
@R.MartinhoFernandes I don't really mind opt-out, but I want opt-in a lot
but modules will probably suck
Xeo
Xeo
11:51
@R.MartinhoFernandes Agreed
@R.MartinhoFernandes good answer
@LightnessRacesinOrbit ¬‿¬

« first day (1264 days earlier)      last day (3908 days later) »