« first day (873 days earlier)      last day (4077 days later) » 

4:00 PM
hmm
 
@EtiennedeMartel Hey!
 
now I don't know what the previous commit was :P
 
user142019
$ git log shows commit hashes and messages.
 
@EtiennedeMartel Phrases about pots calling kettles black virtually leap to mind.
 
@JerryCoffin Don't you worry, the irony of my statement was not lost on me.
 
4:01 PM
@DeadMG HEAD is the last one, HEAD~1 is the one before it, ...
 
> septembre, 2010 - 2016 · Informatique
Six years?
 
You can always just look at the log and use hashes directly.
 
That's a fucking long degree.
 
@R.MartinhoFernandes Oh, didn't know you could do that.
 
@EtiennedeMartel While I certainly worry about some things, not much chance of my worrying about that one...
 
4:01 PM
could not access HEAD?
 
user142019
Do you have any commits?
 
yes
 
user142019
:P
 
@DomagojPandža Okay I won't
 
@JerryCoffin wut! A Pole!
 
4:02 PM
I always thought Legnica was your surname. :$
 
@EtiennedeMartel Where's that from?
 
@R.MartinhoFernandes Facebook.
 
user142019
My school is four yearz.
 
Anyways'
 
@BartekBanachewicz Name sounds Polish anyway.
 
4:03 PM
ah, got it
do I need to git diff args > something.output to get a file?
 
i am heading home, and if the tests fail after I leave...
 
2016 is both degrees
 
too bad for that iPad
 
user142019
@DeadMG > writes stdout to file.
 
I have year left on BSc
 
4:04 PM
yeah, you have to be in the repo's working directory to compare commits
git diff can't handle something like git diff repo HEAD^ HEAD
 
@EtiennedeMartel You really didn't know how old I am
 
user142019
Obviously.
 
Really
Honestly
 
What it means is that this code has the same semantics as if it were written in Java using volatile variables.

I like how he assumes the reader interested in C++ might know the festering cesspit aka Java.
 
@CatPlusPlus I'm gonna go on a limb and say 20.
Also, it's your birthday in 10 days!
 
4:05 PM
Let's all surprise Cat in Legnica on his birthday!
 
user142019
Quick! Make an event!
 
Anyone else going to CeBIT?
 
@DomagojPandža Yeah, you do that.
 
@DomagojPandža Joke's on you I don't live there
 
user142019
Cat Plus Plus is my grandfather since he lives in the same city as my grandfather.
 
4:06 PM
Ah, the name is for legacy reasons?
 
@DomagojPandža That's the field that says where you grew up.
@DomagojPandža Read the line above it.
 
@Zoidberg For real? What are the odds?
 
user142019
> Legnica, Poland — Hometown
 
I know that, but I thought he's going to be home for his birthday or something.
 
user142019
Time to eat Chinese food.
 
user142019
4:07 PM
BRB
 
I guess he's just studying in Wroclaw.
 
> Wroclaw, Poland — Current location
 
My hometown is Cheektowaga, NY, but I only lived there for 8 days...
 
hurray for reading
 
@CatPlusPlus how are you two years younger than me yet started uni the same year?
 
4:08 PM
Facebook just has strange ideas about what "hometown" means, is all. They're locked into the migratory patterns of American students.
 
I wouldn't want to live in a town called Cheektowaga either
 
user142019
My hometown is Schijf which is a terrible village and I still live there.
 
@melak47 That's not unusual.
 
@CatPlusPlus It was a cool town, outside of Buffalo. My grandfather sold chicken to the lady who invented the Buffalo Chicken Wing.
 
user142019
And it's suspiciously close to sehe's hometown.
 
4:08 PM
Mine is called Ivankovo, translates to Johntown.
 
user142019
Like, six kilometers. :P
 
> There are five different stories about how Buffalo wings came to be.[3][4] None of them are well substantiated:
 
So, everyone in C++ is Polish? Is that the general consensus?
 
@ShotgunNinja wut?
 
presumably you refer to Teressa Bellissimo
 
4:09 PM
@LightnessRacesinOrbit What is the origin of your name?
On SO :D
 
@melak47 Magic
 
@DomagojPandža Wild imagination
 
Honestly, that's it
One day I felt like coming up with a cool phrase and that was it. I loved it so much that I adopted it into my SO profile.
 
That's a funny way to spell "crazy"
 
4:11 PM
It is, isn't it?
 
@LightnessRacesinOrbit Yeah, he apparently knew Teresa Bellissimo.
 
Also, @DeadMG, thanks for your effort. I think I am beginning to understand what C++ is about, which seems really far from traditional OOP. And that makes me realize how ridiculuously little I know about it.
 
And having been a chicken farmer in Cheektowaga, I can only assume what their professional relationship was with one another.
 
what is "traditional OOP"?
C++ handles OOP just fine. It simply doesn't go mentally over-the-top with it, the way some languages do.
 
Inheritance an polymorphism
 
4:14 PM
@LightnessRacesinOrbit OOPs, I did it again!
 
It has objects, classes, constructors, polymorphism, [multiple] inheritance and encapsulation.
@melak47 very good
 
Traditional OOP is Smalltalk
 
Smalltalk eventually influenced Obj-C, also.
 
Are you guys making smalltalK?
 
Harh-har!
 
4:17 PM
puns
 
It's better to forget Obj-C exists though
CLOS is a nice OOP system
Ahahaha I got Populist
 
> If no new P1 appears within a week, I'd like to create first release candidate in the middle of next week, but please try to decrease the amount of changes to trunk till then, for every fix think twice whether it is really important to be already in 4.8.0 or if it can wait for 4.8.1, and if the patch isn't too risky at this point. and if the patch isn't too risky at this point.
@R.MartinhoFernandes Update on upcoming GCC 4.8.
tl;dr not just yet
 
Well.
That was a short, lame nap. ._.
Back to work.
 
Apparently, 30 minute naps are good for productivity.
 
Guise
I want to possess the memory of a std::vector or a std::string
 
Aww. :c
How will I make my MemoryStream work? D:
 
A what doing what
 
@ThePhD Ritual of possession must be performed.
 
Basically my life for the last 2 years.
2
 
Maybe I should just Template it.
Essentially, I have a std::vector or a std::string, whose memory I want to use as the backing store for a MemoryStream.
 
user142019
4:22 PM
@ThePhD #define private public and enter the land of UB.
 
You killed a Reaper. I need to know why.
 
@DomagojPandža followed by an exorcism before it can be freed?
 
@ThePhD Then just use vector as a backing store, what's the problem
(Also what the hell is that thing)
 
Ell
I'm guessing a memory stream is just a file in memory :3
 
Yeah, I'll just template my MemoryStream.
 
4:23 PM
What
 
Ell
Well, a char buffer with a stream like interface
 
std::stringstream
 
Ell
yeah that
 
what does a stream do under the covers?
 
Masturbate
 
4:24 PM
@CatPlusPlus Just look in the repo, you'll get to see it. The current iteration of it will probably make you laugh. :3c
 
Ell
fap
 
it really just writes to a buffer and hold pointers to end and various other places
and magic
 
Or cry.
It might make you cry...
 
user142019
std::stringstream
 
..... @CatPlusPlus Don't read it. :c
 
Ell
4:25 PM
Have you guise used boost iostreams before?
 
Yes
(Stop saying guise)
 
Guiles
 
Ell
@CatPlusPlus Why?
 
@TonyTheLion heh
Populist is a stupid badge
 
user142019
Because it's just as stupid as "o.O".
 
4:26 PM
Gold just because someone accepted an answer that wasn't necessarily the highest scored? Pffffft
 
@LightnessRacesinOrbit Just because you didn't get one.
 
@Zoidberg o.O
 
gaise
different spelling
 
Gayse
 
4:27 PM
TIL they serve breakfast at the Banquise.
 
user142019
Goatse
 
@EtiennedeMartel that...is breakfast?
 
@TonyTheLion I did
 
@melak47 It's got bacon and eggs and shit.
 
user142019
4:28 PM
@melak47 Why?
 
Oh, I didn't
lame
 
user142019
Looks like fine breakfast to me.
 
user142019
Anything you can eat for diner, you can eat for breakfast.
 
user142019
I often eat pizza or pie for breakfast.
 
Hey everyone. :)
 
4:29 PM
And you're a completely normal example of a human being.
 
Cold leftover pizza is the ultimate post-drunkfest breakfast.
 
user142019
Hello.
 
user142019
Pizza reheated in microwave is best pizza.
 
oh so how do you convert a std::function<T> to unsigned char* or whatever it was that @Zoidberg was asking last night? I didn't ever see the answer
 
user142019
4:30 PM
@TonyTheLion I solved it by using a wrapper function in between.
 
22 hours ago, by Abyx
@Zoidberg use pointer-to-pointer-to-member and memcpy.
more like this I wanted to know how it's done?
memcpy bit is what I wanted to find out
 
user142019
template<typename R, typename... Args>
R thunk(std::function<R(Args...)>* self /* this */, Args&&... args) {
    return (*self)(std::forward<Args>(args)...);
}
 
I have a question about C. Is there a better chat room to ask this in or can I ask here. :D
 
Okay thanks.
 
user142019
4:32 PM
We have an entire Q&A site on the corner.
 
Ugh. Implementing this for std:: containers is a bitch. :c
 
user142019
Use iterators.
 
I am.
And that's why this is difficult. :
:c*
 
uses bitches
oh wait
 
@ThePhD implementing what?
 
4:33 PM
@melak47 MemoryStream.
 
yay
my boss assigned me to read some docs for the rest of my time today.
 
@DeadMG You got a job? :O
 
user142019
Sounds fun.
 
52 mins ago, by ThePhD
q_q DeadMG why u work so hard
 
user142019
lol
 
4:37 PM
I thought you were implementating wide or something.
 
who'd pay him for that? :v:
 
Ah, Obj-C, we meet again. Just to get through to OS X and you're history again, my dawg.
 
It's still work.
 
user142019
Objective-C is nice.
 
I am back home
 
Xeo
4:40 PM
Fuck yeah, reducing a 522 line makefile to 40 lines feels good.
I love deleting stuff.
And I think with that my job for today is done.
Time to go home
 
@DeadMG any ETA on template solution? :)
 
user142019
Yay boring lecture about R tomorrow.
 
ah, yes
 
user142019
Let's not go there.
 
@Zoidberg It is fancy in its own right, but usually delegated "callbacks" auto-generated by XCode push the opening bracket of the function to a new line. Isn't pretty.
 
4:40 PM
GNU S. :D
 
user142019
And sleep in my bed instead.
 
user142019
@DomagojPandža wat.
 
user142019
Xcode never puts opening braces on new line automatically.
 
@Zoidberg but sleeping in lecture halls is so much better!
 
user142019
At least, not by default.
 
user142019
4:41 PM
@melak47 no of course not you fool.
 
Fresh install, as far as I know:

- (void)applicationWillTerminate:(UIApplication *)application
{
 
user142019
Don't use templates.
 
Yeah, yeah, I clear them usually down to blank, just noticed that.
 
@DeadMG If I have a random-access range, how do I test if an iterator has gone beyond or is at the "end" ?
 
4:44 PM
@ThePhD You can only test for at, going beyond is UB.
and that's just == end.
 
user142019
Give me weekend.
 
also, consider this
 
Lol.
 
user142019
I'm going to learn C++.
 
This is gonna be fantastic. :3c
 
4:45 PM
I've just noticed that I've been listening to The Fray for the past couple of hours.
I usually just play something to kill the ambient silence.
 
there are other mechanisms if you want to have multiple resource types for each name
but this one is the simplest
 
@DeadMG you have a base class!
 
@BartekBanachewicz Indeed I do.
but here's why mine is so much better than yours
it's a private implementation detail.
 
That base class exists only inside the ResourceCache.
And it only handles deletion.
 
hi guys
 
4:48 PM
your external code doesn't give a shit about my base class, doesn't deal with it, doesn't do anything with it.
 
Albeit, it would be nice to have personal deleters, which I'm sure could be implemented with another argument and some wankery, but... meh.
 
user142019
How do lock-free atomic queues work?
 
if I changed my implementation to not have one (which I could), then you wouldn't know or notice.
 
how to debug stored procedure in visual studio solution...
 
@DeadMG okey. Is returning raw pointer okay in that case though?
 
user142019
4:48 PM
@PeterJennings using the bin.
 
@BartekBanachewicz Well I could also throw exception if you prefer. That behaviour is more or less irrelevant.
 
The ResourceCache is the owner.
Might as well return the raw pointer or just throw-throw-throw!
 
user142019
Return reference or throw.
 
@DeadMG Can I return optional<T&>?
 
I don't see the point of optional.
 
4:49 PM
@BartekBanachewicz It should be pretty trivial to modify it to have whatever you want behaviour.
 
Isn't it just syntactic sugar, in the end?
 
@DeadMG This. It is very important to contemplate changes which are fucking frequent. You must not break the user's code, your code, later on.
 
user142019
@ThePhD Uh no?
 
user142019
It's a useful abstraction.
 
user142019
You have either an object or no object.
 
4:50 PM
@ThePhD optional<T&> could be. But optional<T> in general is definitely not.
 
@DeadMG sweet. What's the licence on that snippet? :>
 
user142019
INVARIANTS
 
@BartekBanachewicz For you, only six million dollars and a blowjob from your girlfriend.
3
 
That's pretty specific. Unless she's not pretty.
 
@BartekBanachewicz He's gonna dissasemble your code and sue you for the above if the assembly matches.
 
4:51 PM
Anyone watched prison break?
 
user142019
@GamesBrainiac You did.
 
@R.MartinhoFernandes That's what hair is for.
Like curtains, you don't have to see to feel.
 
@ThePhD Since you're using it primarily (exclusively?) for implementation, can you use private inheritance?
 
@Zoidberg Nope, I want to watch it, so I just wanted a heads up from anyone who has watched it.
 
@DeadMG You could buy his girlfriend with a fraction of the six million dollars. :P
 
4:52 PM
oh
haha
 
user142019
@GamesBrainiac I said you did so you did.
 
user142019
I'm never wrong.
 
I just noticed that derived doesn't actually inherit from base.
oops
 
@BartekBanachewicz Erm.
 
4:52 PM
@DeadMG that's the spirit
 
Ell
heh
 
43
Q: Type erasure techniques

Xeo(With type erasure, I mean hiding some or all of the type information regarding a class, somewhat like Boost.Any.) I want to get a hold of type erasure techniques, while also sharing those, which I know of. My hope is kinda to find some crazy technique that somebody thought of in his/her darkest ...

 
@R.MartinhoFernandes huh?
 
yea, I was thinking about that
 
@melak47 Nothing.
 
4:53 PM
Nothing.
 
because that's what you are doing more or less, @DeadMG, right? Erasing the Model type
 
@BartekBanachewicz There are other techniques which aren't listed, but yes, that's fundamentally it.
 
@DeadMG I can a bit more C++ now! Thanks again.
 
@JerryCoffin Maybe. :O I dunno.
 
I wish I had a fresh link to that BoostCon presentation about something something value types from one of the Adobe guys.
 
4:54 PM
@BartekBanachewicz No problem.
 
@DeadMG I conclude that I am not totally useless since you are spending your time on me :3
 
Can't find link to slides.
 
@BartekBanachewicz Oh, since I'm not supposed to be coding right now at work, I can boot back into Windows! yay.
fuck you, ubuntu! /pissing on harddrive
 
Ubuntu is a piece of shit. D:
 
4:56 PM
@DeadMG at least you support me with Windows/VS
 
@BartekBanachewicz ... Annnd DirectX? :D
 
Duality is running on the iPhone 5. Damn, I'm good. The magic of having a consistent and agnostic rendering interface ftw.
 
@ThePhD shhhh... don't fuel puppy
 
@ThePhD Puppy knows both IIRC.
 
@JerryCoffin That should be it, good find.
 
4:56 PM
Would this be OT for SO? superuser.com/questions/561268/…
 
@r.tanner.f probably
 
@LucDanton Glad to help.
 
Although I suspect that this presentation is a repeat of a similar 2011 presentation and I read those slides. No matter, it should be better than the predecessor.
 
@DeadMG you started job already? they work fast
 
Anyone know of a meta I can link to? I'm trying to explain to SU that it doesn't belong anywhere else. :|
 
user142019
4:57 PM
Is there a way to block until an atomic Boolean becomes true without a busy loop?
 
@thecoshman I started the day after I interviewed.
it's a remote working job so why not start immediately?
 
Yey
 
@Zoidberg Not without involving kernel synchronization objects. Which would actually probably involve replacing it outright. So I'm going to go for "no".
 
@DeadMG Anything exciting at work? :D
 
@DeadMG I trust you are working naked :P
 
Ell
4:58 PM
@Zoidberg condition variable? idk
 
user142019
@DeadMG :(
 
@DomagojPandža Eh, not especially, but I'm going to get to the good stuff tomorrow, one hopes.
there's nothing like fixing a parser that doesn't have anything wrong with it.
 
user142019
Condition variables: used to wait for a particular condition to become true (e.g. characters in buffer).
_wait(condition, lock): release lock, put thread to sleep until condition is signaled; when thread wakes up again, re-acquire lock before returning.
signal(condition, lock): if any threads are waiting on condition, wake up one of them. Caller must hold lock, which must be the same as the lock used in the wait call.
 
user142019
@Ell seems like it.
 

« first day (873 days earlier)      last day (4077 days later) »