« first day (921 days earlier)      last day (4253 days later) » 

10:00
C++ has by far the least efficient IO
streams are terrible
but your performance would likely be bandwidth-limited, not disk or CPU limited
-2
Q: Implementation of vector of integers with overloaded operators, fails to run properly

SzarlejI have huge problems with making this code work properly. http://pastebin.com/Mi6gj188 There's an output from example program on the bottom. It simply crashes and doesn't deliver proper results too. It seems that none of the overloaded operators work as it should

@DeadMG it's a proxy server, so IO would be done via ASIO, not std streams
also a proxy server introduces some additional latency, and maybe affects bandwidth
Which dick is flagging?
I'd like to use C# with async/await instead of C++ with asio and lambdas madness, but I'm afraid there will be a performance loss, like +5ms of latency
10:05
tbh I wouldn't expect it
1 message moved from PHP
oh, I see
buahahahahaha!
@DaveRandom Which message was that?
8 mins ago, by Jimbo
C++ SUCKS
obviously
:-P
The moving notice should point to the messages in question, since they get inserted in chronological order.
C++ WHAT?
Jan 24 at 11:27, by R. Martinho Fernandes
Yeah, C++ sucks.
@Jimbo meh, tell us something new
10:08
I know that sucks, it has a link in the system notice in the source room, but not in the dest room
I once used C++ and it caused my C buffer to overflow
C++ is, basically, JAVA.
@DaveRandom We have more! hahahahaha
Wait, that's not good, is it?
10:11
lol
It just means you're more passionate
You can tell yourself that, anyway
PHP is so bad, we're all very concerned for the future of the Internets.
The Internet is fucked up regardless.
The PHP -> C++ transpiler?
@DomagojPandža Agreed. But that's not just PHP's fault, the entire W3 stack sucks big fat hairies.
10:12
C++ is great! For little CGI scripts and that's basically it.
Hey, you guys might have some worthwhile opinions on whether this is any good
Instead of actually using the admitted 2 years of development to swap it out completely, they find a way to persist the piece of shit that is PHP.
I've worked through the first couple of chapters and I kinda like the no-bullshit writing style, and the author seems to have a vague clue what he's talking about
I've...
I've slain 23 bosses...
Without stopping...
@DaveRandom Most regulars here don't think C is worth it, so you won't find the kind of opinions you are looking for.
10:14
.... I think I should sleep.
@R.MartinhoFernandes What, no bashing on C? :(
Oh and my BlockingQueue and ThreadPool are done.
I am disappoint.
@DomagojPandža C in and of itself is not terrible.
Xeo
Xeo
10:15
Hm, how long do mails take to normally show up on std-proposals?
@R.MartinhoFernandes ...but isn't it a decent idea to learn C, the basis of C++, before learning C++?
Xeo
Xeo
@DaveRandom no
no²
no³
no³²
@ThePhD I'll just pretend I didn't read that. :P
Although I suppose that's like saying you should learn SGML, then HTML 1,2,3,4 before HTML 5
@DaveRandom No, not really. Decent C++ code uses few C constructs, actually.
10:15
@DaveRandom Most beginner code isn't real C++ or real C code. It just compiles.
@DaveRandom It's actually a bad idea. A very bad idea.
@DomagojPandža I mean, C by itself sets out to accomplish vastly different goals than C++.
@DaveRandom Extremely bad idea.
Half the people will Open VS and compile their C as C++ and wonder why they need to cast malloc
lolz
I'm getting the impression you think it might be a bad idea
10:16
C was a good catapult to kickstart C++'s popularity, but, were it not for the enormous base of legacy code, C++ could shed the C bits and not lose much.
There are very few things C++ inherited from C that are worth learning as a beginner.
@R.MartinhoFernandes Except unions. Those are necessary. <3
Xeo
Xeo
@ThePhD variant. Or ADTs.
Legacy code -- a way for relatively reasonable people to take the shit they've written and smear it on the walls of perpetuity.
Meeeh. You could totally just use a union. :D
@Xeo (The PhD type-puns through union. :Đ)
10:18
@DomagojPandža I do not (sometimes!)!
@DaveRandom Yes. Programming in C and in C++ involve entirely different mindsets. If you start with C you will have to unlearn that mindset first and learn the C++ one afterwards. A waste of time, I'd say.
@ThePhD I once used a bit field
@ThePhD Since unions are not usable without out-of-band information, there is close to nothing you can do with one that you cannot do with std::aligned_union.
Unions are bad news. But I think Zoidberg mentioned C++11 allows type-punning between same-layout PODs.
reinterpret_cast can do that yes. It's a feature useful for C interop, so yeah...
10:22
@R.MartinhoFernandes ...in that C++ is an OOP language, or something deeper? I already have the separation between the OOP/procedural mindsets well enough I think, I work with C# sometimes and I work with PHP a lot, I know when to use OOP and when not to, and I don't try and mix them. I want to know the nuts-and-bolts of C and how it all works underneath, but I also know that a lot of the point of C++ is to abstract most of that stuff away so you don't need to worry about it.
@R.MartinhoFernandes Meh, I didn't unlearn C. Of course, it was still of no use whatsoever. But it never got in the way.
C is useful for all kinds of things.. like.. drivers.. and uh..
Oh, oh, it's useful for printing thing to the screen! :)
ohai
@Neil drivers are written in C++ FYI
Hm.
I've bought all the spells, miracles, and pyromancy the world has to offer.
10:31
@BartekBanachewicz You can write drivers in C
@DaveRandom Not just that. There's the whole resource management thing and value semantics; and in C you are more likely to shed type safety for flexibility, while in C++ you can often keep both. Of course you can use the C mindset when writing C++, but you will basically end up with a C program that uses method call syntax.
Not sure why you'd want to though
@Neil you can, in theory, write anything in C.
exactly
So essentially C is like latin: a dead language
2
Blergh.
it implies it was alive
too bad Lisp wasn't adopted back then
user1357851
10:35
Discrimination against fat colored chick
user1357851
Humans so sad
@DomagojPandža :'( legacy code is how I painfully earn my pennies
IRTA penis
how surprising
@BartekBanachewicz ... tony?
I got to work a bit earlier today
that skewed up my biorythm
10:38
Your what?
don't ask.
I should make void return overload for Lundi's bound functions
user1357851
Why is that everytime I have a fat chick in my avatar I get suspended for very silly reasons?
ITT Telkitty got suspened again
@thecoshman huh?
@Telkitty ahahahahaha
user1357851
It seems whenever I have a really hot chick in my avatar I can get away with anything
10:40
@R.MartinhoFernandes And if you start with C++, you will have to unlearn everything when you start learning Haskell later ;)
@Telkitty oooh, just seen the new one...
user1357851
This site should be glad I am not a b!tch, otherwise I will sue the heck out of SO for discrimation against ugly chicks
@Telkitty you spelt bitch wrong
user1357851
On purpose
"sue the hack out"
what the fuck does that mean
10:41
It's a pun.
I don't get it and probably don't want to.
so I contributed after all
to what?
user1357851
Online stupidity? :p
10:43
@Telkitty you are suspended; you shouldn't talk
user1357851
Were*
ah I see it now
@BartekBanachewicz should she ever talk?
2
Q: How to avoid C++ anonymous objects

RaymondI have a ScopedLock class which can help to release lock automatically when running out of scope. However, the problem is: Sometimes team members write invalid lock-code such as { ScopedLock(mutex); // anonymous xxx; } The above code is wrong because the ScopedLock object is constru...

I'm sure I asked this already last year
@TonyTheLion now we got a handy reason
But can find no evidence >.<
10:44
@BartekBanachewicz lol
user1357851
What's kera.name?
user1357851
Are you a chick, kera is a very feminine name so is your avatar?
user1357851
Can we be sisters <3
@LightnessRacesinOrbit Meh, no abuse of ranged-for :|
10:47
@Telkitty, another weird avatar, huh
@Abyx If that's weird, you don't want to see her real pic.
you don't want to see it regardless of whether it's weird or not
hrhrhr
@R.MartinhoFernandes Because it's non-relevant! Also, no C++11
You humans are all racist.
humans? here?
10:49
@Telkitty So is this supposed to be the ugly woman you were referring to the other day?
I bet that lady would be very offended to know that you think she's worthy of being your ugly woman gravatar
I need more upvotes on my answer
lol
I need more upvotes in python.
STOP FLAGGING, YOU FUCKING DIPSHIT RETARDS
2
0
A: How to avoid C++ anonymous objects

Lightness Races in OrbitNo, unfortunately there is no way to do this, as I explored in a blog post last year. In it, I concluded: I guess the moral of the story is to remember this story when using scoped_locks. You can try to force all programmers in your team to use a macro, or a range-for trick, but then if ...

lunchtime
You are really desperate, huh?
10:52
that burn.
Megaburn.
what did I miss?
Telkitty is posting terrifying images and Tomalak oozes of desperation.
lol
I validated the flag on that image, for lulz
fuck it
user1357851
10:54
:( ... what's so bad about my pic?
0
Q: remove reputation and let everyone chat,vote and modrate

stackexchangespambotplese or i will spam Spam Message: I hate Stack Exchange.This post DOES meet quality stanrads When i try to chat is asking for stupid reputation.I am going to spam this website with links to fcc.gov and gop.com UNTIL Stack Exchange idiots learn from this and disable repuation and let eveyone cha...

^^ round 2
lol stackexchangespambot
I just want to be appreciated for my excellent SO contributions
> quality stanrads
fail
user1357851
10:56
@LightnessRacesinOrbit Be my sister please? I will change to prettier avatar?
oops, I stupidly refreshed the meta page and now can't see the q
Let everyone rate mods.
@Mysticial did... did some one upvote that?
@Mysticial WTF
10:57
@thecoshman no it went down at -9, and no rep changes on the OP
@LightnessRacesinOrbit who said you weren't appreciated?
How kosher is it to answer a question that has no answers and is almost a year old?
@Mysticial ah I see...
@CaptainObvlious Perfectly acceptable.
There are badges for it.
@CaptainObvlious If you have an answer, go ahead, I don't see anything wrong with it
10:57
And this was round-one for anyone who missed it: chat.stackoverflow.com/transcript/message/9022278#9022278
15 hours ago, by jalf
"or else I will spam this website"
@TonyTheLion Groovy!
@TonyTheLion the lack of upvoters!
@LightnessRacesinOrbit Here you go :)
That reminds me I need more Necros.
10:58
@TonyTheLion Oh, thanks!
@R.MartinhoFernandes thanks. forgot about that one
@LightnessRacesinOrbit And I just want to be appreciated for my Python-related contributions :(
user1357851
FU Lion 4 being a pussy
@R.MartinhoFernandes I appreciate your Python-related contributions.
10:59
Been an hour since I posted an answer and no votes whatsoever. Python tag sucks.

« first day (921 days earlier)      last day (4253 days later) »