« first day (639 days earlier)      last day (4294 days later) » 

12:00 AM
DirectWrite does support that, though.
 
@Mysticial Really? I thought he was looking for algorithm ideas. Is he specifically trying to measure the loop overhead?
i just wanted to keep my calculation variable far — tuğrul büyükışık 1 min ago
 
@sehe The OP confirmed that that he wants to prevent the compiler from messing with the benchmark loop.
 
I'm not convinced
 
So I edited the title to (hopefully) clarify it.
 
ok i stick to use clock() and System.nanoTime() to prevent optimizing again — tuğrul büyükışık 1 min ago
WTF.
 
12:04 AM
Clearly he has no idea how to approach the problem...
 
Well, C++ has a keyword for the sole purpose of preventing optimization.
 
@Mysticial I don't even know what his "problem" is.
 
I don't know how that helps, but well.
 
He has this comment:
to stop optimizing so that i can use my calculations inside without adding other things to stop optimizing — tuğrul büyükışık 7 mins ago
Clearly English isn't his first language, but I'm interpreting that as he wants to the stop the compiler from interfering with the benchmark loop.
Or maybe I'm completely off...
 
What loop?
Oh wait.
 
12:07 AM
Oh nvm... now that I think about it... it does indeed make no sense.
2
 
The things are mutually recursive.
Ow. WTF.
@Mysticial lol
 
You'd need at least 3 balls, only two of which need to be available at the start of the online-for-4yo example. The eyeballs come in (somewhat) later :) — sehe 1 min ago
 
Alright, my headphones are finally dead.
I need a replacement. Anyone got suggestions?
 
12:09 AM
Hey, I'm trying to help as best as I can.
 
You're not very helpful, actually. But thanks anyway.
 
An std::pair<left,right> to be more precise.
 
Clearly you say S-T-D and not "stood", like some.
 
@EtiennedeMartel A dealer
 
so to summarize
Unicode UI is unbelievably owch.
 
12:11 AM
@Mysticial invalid number of template arguments
 
I'd use a std::array<headphone, 2>.
 
#define headphones left,right
 
@EtiennedeMartel I use Creative Fatality.
the previous brands I tried simply couldn't keep up with my rough treatment of them
 
Yeah, dogs chew on those things.
 
however, if you're an audiophile instead of a headset caveman like me, Sennheiser is usually given as giving great audio output
 
12:13 AM
Yeah, I was actually looking at Sennheiser's stuff.
 
I never used them myself, so take with pinch of salt and some ketchup and fries
 
I have a pair of Bose ones, but they were very expensive. Worth it IMHO
 
@DeadMG I prefer mayonnaise on my fries. Like basically 99% of all Canadians.
Hmm, the HD 515 have good reviews.
 
If you want good sound when watching porn movies, you should get a decent pair of Headphones :)
 
who cares about the sound when watching porn?
 
12:16 AM
lol
 
@DeadMG Dude, there's a story and everything. It's important to listen to the dialogues.
 
lol
 
Dia-what?
Isn't it just a series of grunts and moans?
 
hmmmm people who want porn to sound convincing ?
 
@RMartinhoFernandes And skin-on-skin sound effects.
 
12:17 AM
There's the "Ohh Ohh Yeah yeah yeah fuck , fuck , fuck me hard" dialogue ...
 
With twins, the temptation to sell the "extra" one on eBay is almost overwhelming at times.
 
I regret having said anything :(
 
Jeff is evil.
 
12:18 AM
Martiño ? like in "little martin" ?
voce o mais grande do mondo ?
 
It's the direct equivalent of "Martin", so no.
"Little Martin" would be Martinhinho, which I think I never heard before.
I would probably go with "pequeno Martinho" instead.
 
> Fernandes is a Portuguese language surname.
Well, Wikipedia is quite accurate, it seems.
 
Fernandes is so generic :Đ
 
12:23 AM
I love my internet connectino
 
I'm highly specialized, actually.
 
Connectino tastes nice.
 
I have like, three hobbies total. And one is the same as my job.
 
Do what you love and you would never have to call it a job.
 
Well, if it pays the bills, it's a job.
 
12:25 AM
nah
if you wouldn't do it if you didn't get paid, it's a job
 
Hmm, interesting definition.
 
Good #define.
 
Does that mean you would do it for free if money just landed automagically in your pockets?
 
yep
 
you mean like going out with a "I will write algorithms for food" sign ?
 
12:26 AM
My definition is like that of Etienne's: you get paid for it, it's a job.
 
You wouldn't do it if you didn't get paid, it's a crappy job.
 
@CheersandhthAlf Hey, that's Pusheen the Cat!
 
if ( cat::baker == this.AWESOME)
 
this is a pointer!
 
12:29 AM
You are right ! That is just my java knowledge getting in the way.
 
heh
 
this is not a pointer: int x;
 
as if there's anything worth knowing about Java except "Don't use this".
 
Don't use this?
 
I wonder if Nyan Cat feels jealous if Baker Cat.
 
12:30 AM
this is amazing. And this is also.
 
> You've been watching for: 200.4
 
this->execute();
that->run();
 
You mean because of the issues static objects may arise ?
 
@LeandroArielPezzente <nitpick> Its name is Pusheen. </nitpick>
 
It's a me - this.
 
12:31 AM
@DomagojPandža I always name my copy-ish ctor arguments that.
 
@RMartinhoFernandes Damnit, I wasn't paying attention. I mean "Don't use Java."
 
Oh, the timer pauses when you're not on the same tab.
Clever.
 
@RMartinhoFernandes I tend to name them other.
 
@EtiennedeMartel Them premium download/streaming sites.
 
12:32 AM
@EtiennedeMartel When it's not visible.
 
@RMartinhoFernandes Btw, boost::bind works, thanks!
 
I just placed it on a separate window on the second screen.
 
@DomagojPandža I was talking about Pusheen baking a cake.
 
bob
@RMartinhoFernandes ok so I tried that. Usually I create a mutex with: mutable SystemMutex mx; and then the critical section with: { CriticalSection cs(mx); [do_thread_safe_work] }. However when using one mutex for each Queue instance, the compiler made me create them this way: (in .h:) mutable SystemMutex m_mx; (in .cc:) SystemMutex Queue::getMutex() { return m_mx; }...
@RMartinhoFernandes ...And now I get this error:"no matching function for call to (CriticalSection::SystemMutex), candidates are: (CriticalSection::SystemMutex&)"
 
I have to try boot's reflection library sometime in the __future.
 
12:36 AM
I love the boot library.
 
I don't wear boots.
 
Can I use that name for my next project?
 
I only wear shoes. Always the same shoes. Even in a meter of snow.
 
boot::wear()
 
Then I'd have wheels and boots. Coming soon rails. Wait, that already exists.
 
12:36 AM
@EtiennedeMartel Same.
 
@RMartinhoFernandes C++ on Rails. CoR. Sounds like a foot disease.
 
It would be a genuine disease.
 
Actually, "cor" is French for "callus".
 
If anyone cares, I'm working on a second answer to "Can anyone please explain move semantics to me?". I guess I'm 80% done, and the answer is already 3 times as long as the first one :)
 
Hey, I just compiled you... And this is crazy... But here's this dangling pointer... So derefence it maybe.
 
12:38 AM
I hope I can finish it by tomorrow.
 
And I win again!
Poor compiler keeps losing.
 
So much badassery in here.
 
@FredOverflow Well, I didn't really go into detail about move semantics.
 
bob
so can someone help me with my mutex issue please ? I have to create one mutex per thread, which I did as mentioned above, but I get this error: unknown conversion from SystemMutex to SystemMutex&
 
@bob You pretty much guarantee that everybody will ignore you now.
 
12:40 AM
(Also, pro-tip: if your tests are failing and you're certain your code is correct after double-checking ten times, i.e., 2^10-checking, make sure your tests are asserting what you expect)
 
@DeadMG Did you answer it as well?
 
@FredOverflow I'm the first answer, nubbins :P
 
@FredOverflow Maybe I should answer it and post my comic.
 
Alright, time to watch Monsieur Lazhar.
 
63
Q: Can someone please explain move semantics to me?

dicroceI just finished listening to the Software Engineering talk radio podcast interview with Scott Meyers regarding C++0x. Most of the new features made sense to me and I am actually excited about C++0x now, with the exception of one. I still don't get "Move Semantics"... What are they exactly?

 
12:41 AM
oh
 
@DeadMG Am I blind? I don't see your answer.
 
2
A: Transferring ownership to function with std::unique_ptr

DeadMG However, I get a compile error when I try doing this with a unique_ptr, as if copy assignment is disabled for unique_ptrs. It is. unique_ptr has one, and only one, owner. It cannot be copied because that would result in two owners. In order to pass it by value into another function, the or...

 
Oh crap, my new answer is already 9 pages long. I guess it'll end up somewhere at 12 pages. Everything you ever wanted to know about move semantics, I promise :)
 
Hmm, it begins with a school teacher hanging herself in her own classroom.
 
12:44 AM
> You move shit and it gets moved.
 
This film is gonna be the funsies.
 
Oh kewl, histedit is now part of core hg.
0
Q: Error, dynamically allocating objects to an array

DarestiumI have a pointer to an array of structs like so: class Terrian { ... private: Vector *terrian_vertices; ... } And the data for the pointer is generated in the "construct_vertices" function Terrian::Terrian(int width, int height) { this->width = width; this-&...

:/
 
Well, that's a nice typo for "terrain".
 
Terrian
I might just call the Kyro scene optimizer Terrian.
 
LOL i meant boost ... hahahahaha boot->wear()
 
12:56 AM
Slowpoke.
 
I needed to take a bath in order to get a little bit warm
Didnt knew pokemon's where allowed in this room. That is a really good news.
 
Didn't knew.
pokemon's.
where.
a really good news.

You did that on purpose, didn't you? :P
 
zombie kittens ^
 
Kitties! <3
 
1:01 AM
Wow, that was fast
I got an upvote, like, 5 seconds after posting.
 
Have another one :P
 
0
Q: Understanding -Weffc++

chrisConsider the following program: #include <string> struct S { S (){} private: void *ptr = nullptr; std::string str = ""; }; int main(){} This, when compiled with -Weffc++ on GCC 4.7.1, will spit out: warning: 'struct S' has pointer data members [-Weffc++] warning: but d...

hmmm
std::string doesn't require a copy ctor when it's a member of a class, no?
 
@TonyTheLion There's a pointer along with the string!
 
yea I know, but if you remove the pointer, OP says, the compiler still complains
 
The string has rule-of-3 builtin, but the pointer doesn't.
@TonyTheLion Ah, still reading :)
Ah, basically, the OP has now realized -Weffc++ sucks.
 
1:07 AM
@RMartinhoFernandes yes, that's my assumption
@RMartinhoFernandes ah
 
It generates lots and lots of false positives.
 
I don't know that flag
lol
 
@TonyTheLion It enables warnings from Effective C++.
 
The road to hell is paved with Effective C++.
 
1:09 AM
Moar effective C++
 
Rooooar effective C++
 
Good Practices are well appriciated
 
Naked pointers - A guide for C++ rapists.
5
 
Nekkid pointers.
 
Naked Pointers and sexy patterns
 
1:12 AM
I'm in such a good mood to play some detective shit like LA Noire
 
@EtiennedeMartel it is?
 
But the engine of that game is such a disappointment, it's not even funny.
 
@DeadMG Not really.
 
man
Stephano 4:0 Alicia
so disappointing
Stephano/MC was the real NASL final
 
1:14 AM
What's that? SC2 results?
 
yep
 
oh games
 
It's exciting that you can create such a community around games, that's why I love game development.
 
@DomagojPandža Someone should write that.
 
Stephano bossed Alicia so hard, it was a complete waste of time to watch it, really.
 
1:15 AM
No, wait. No, they shouldn't. Someone will not understand it is a joke and will adopt as a bible.
 
so I've been thinking
 
I'm still looking for a nice domain to preach C++11 love.
 
if I want to create a program with an actual UI, I will basically have no choice but to use .NET or Qt or something like that.
 
Mwahahaha. The puppy is screwed.
I'm glad I only write libs or small CLI tools.
I wrote some C# this weekend.
 
think I'd rather use .NET over Qt
 
1:17 AM
@DeadMG Pure C++ with the Windows SDK and do it like a man - by hand. Or better yet, do it like a champ - write a GUI tool.
.NET wins over Qt.
 
@DomagojPandža lol
 
If only MS made the .NET framework integral to the system.
 
what do you mean, integral?
 
When you have to hassle your user to install additional crap, they're more likely to give up.
A part of the system, up to date. Or do it in the background, early on.
 
uh, all recent versions of Windows ship with the .NET Framework
the most up to date one that existed when that version of Windows was built
IIRC, anyway
 
1:19 AM
True, true. But many cunts still are stuck in the old ways. I prefer to just force VC++ redists on them
Quick and easy, done.
 
And it comes down through Windows Update.
@DomagojPandža What's the difference?
You can package a .NET redist too.
 
Much more faster and transparent.
I remember .NET installs, that shit sometimes took ages.
 
I'd say it's exactly the same.
@DomagojPandža Ah, that's a different thing.
Yeah, it takes forever because it NGENs the whole thingy.
 
Yeah, it's a pain in the ass.
 
In 4.0 they made the installer do the ngenning in parallel, but it didn't help enough.
 
1:22 AM
.NET is awesome, but that's its downside.
At least, for me.
 
I hate .NET for many of the same reasons as Java
 
It's far from ideal, but it is quite useful, especially for fast prototyping of GUI apps.
 
The problem with sharp knives is that they're quite good at cutting your own skin.
 
I'm adept with a knife
 
@DeadMG I'm not :(
@EtiennedeMartel You don't need to tell me that.
 
1:27 AM
Yeah, when I'm bleeding, I always have this urge to tell others.
 
I have an urge to faint.
I really hate how fragile human bodies are.
The gravity of our own planet can kill us.
 
Gravity is cool.
 
Try falling off a bed at night. :P
 
It's been a while since that happened. But, ignoring the pain, it's quite a rush, isn't it?
 
Sure is, but goddamn. I don't know what could kill me first - the moment of panic before I capture what has just transpired or the actual impact.
And then you sit on the floor, violated, no going back to sleep. And there it is - Visual Studio on one of the displays, calling you.
 
1:32 AM
What movie is that?
 
My left thumb is currently inoperable.
 
Oh, the movie is called "Crippled C++11"
 
Good thing I'm right handed.
 
@DomagojPandža That's really not particularly remarkable.
the gravitational attraction to something as large as Earth is quite enough to cause significant fun
 
True, but the interaction is strong enough to cause severe damage even below a height of 1 m.
 
1:34 AM
@DeadMG Dwarf Fortress fun?
 
My train of thought while cutting these tomatoes was "woa, this new knife is quite sharp... ouch."
 
Hell, 20 cm is enough if the geometry of the terrain is rigid enough.
 
@EtiennedeMartel And then "Yep, it is."?
 
Yeah. Then I realized I was all out of bandages.
Good thing I heal fast.
 
With me it's more like "Careful, or you'll cut yourself. This is a knife you're holding, these things were made to cut meat. Like yours. So be careful and you won't cut yourself. slash Fuck! There we go."
 
1:35 AM
@EtiennedeMartel Which spell?
 
Fast Healing.
Duh.
 
I love when I try to cut out something out of a packaging.
 
@EtiennedeMartel Got a Medivac?
 
Apply small pressure.
Nothing.
Increase.
 
Usually, for me, it's "Damn, my hold on this knife is horrible. I'm going to cut myself... yep, I'm good at predicting stuff."
 
1:37 AM
Nothing.
Increase.
Bam, right in the hand.
 
damn, am I the only one who can use a knife without causing more damage to himself than what he's trying to cut?
 
@DeadMG No, I think I'm just that badass.
@DeadMG Yes.
 
@DeadMG Seems so.
 
but then
 
It's not easy, you know.
 
1:37 AM
for my brekkie I cut four thin slices of cheese every day
 
I dumped all my "Knife Handling" points into "Alcohol Resistance".
 
@RMartinhoFernandes It's a simple case of "Don't put your hands in the way of the blade."
 
"Knife Handling" was my dump stat.
 
My hands were made for science and technology. Not crude, domesticated tools of war.
 
@DeadMG But it's the blade that puts itself on the way of the hands!
 
1:38 AM
you're pushing too hard
 
The blade is alive.
 
don't push down hard on tomato, saw the blade back and forth
 
I recommend high frequency lasorz.
 
I don't cut tomatoes.
 
I even cut part of my nail.
 
1:39 AM
Because tomatoes suck.
 
what do you cut such that you cut yourself?
 
Meat, obviously.
 
:)
@DeadMG I don't know. Things. Cheese. Ham.
 
cheese is an easy cut (unless you have some ridiculous cheese)
just put left hand on top of knife near tip
then push down with both hands
 
Oh, I also cut myself more than once on some sausage cans.
 
1:41 AM
Or, better yet, eat the cheese whole.
@RMartinhoFernandes You have sausages in cans?
 
No knife required.
 
No knife required.
Just slide cheese. Watch your hands.
 
"Look at that can. Look at it. It's so sharp, I must be careful or... fuck."
 
My hands have a special (non-)working mode for when I'm aware of sharp things nearby.
 
@RMartinhoFernandes std::retarded_mode?
 
1:44 AM
std::retard(Martinho);
For derp value references.
 
Hey.
I can hear you.
 
I wonder if it scraps the skin and pulls the guts out and puts it in a new skin container.
The gut analogy really doesn't work for move semantics. Seems like a lot of work. Messy, also.
 
Xeo
@FredOverflow: Seen this one? For your one question regarding implicit conversions and template argument deduction
 
@RMartinhoFernandes No you can't, my mic is off. Unless you're standing right behind me.
 
whistles
silently so you won't hear it
 
1:46 AM
@EtiennedeMartel Hint: Martinho is the knife.
He cuts you, softly.
 
@RMartinhoFernandes I always knew you were obsessed by me and my devilish handsomeness.
 
Dammit, I keep forgetting I'm on a nested screen session.
You know, I only learned to whistle about a year ago, but I knew how to whistle silently since ever!
I'm awesome.
 
I can whistle songs. I like myself.
 
Must be a problem with your sound chip.
 
Remembered to install the drivers a year ago.
 
1:53 AM
 
He fancies a wank. AHAHAHAH.
 
lol
 
Those fake ads are incredibly lulz worthy.
 
1:54 AM
you know
implementing code completion for Wide is gonna be an unbelievable bitch
 
> Vous devez être inscrit pour visualiser ce contenu.
 
how do you link those?
 
1:57 AM
AKA "register, bitch"
And I'm like "Oh hell naw ".
 
@DeadMG Mirror them on imgur.
 
the suicide one was the best
 
Or grab the image url.
Like, right-click > grab image URL
 
@RMartinhoFernandes That's the link I posted.
 
What am I saying?
 
1:58 AM
Nonsense.
 
ah
I grabbed "link address", not "image URL".
haven't tried to steal an image that was also a hotlink previously
also, YAY
Torrents: They provide ... ... Leverage
yeahhhh
 

« first day (639 days earlier)      last day (4294 days later) »