« first day (728 days earlier)      last day (4237 days later) » 

2:00 PM
@R.MartinhoFernandes C++
hmm...
 
@R.MartinhoFernandes What shit is that? Setting up a callback with no context void*?
 
Xeo
Any half-decent callback mechanism would atleast allow you a void*
 
@MartinJames Piece of shit, basically.
 
Any decent callback mechanism would allow you to pass a closure.
 
@daknøk ..whatever. Just a function pointer is just plain stupid.
 
2:02 PM
oh, and it gets better, that call back is set globally
 
Callback in C++ without either std::function or template<class F> is terrible.
 
@thecoshman ffs - whatever it is, stop using it. It's too bad to be used for..well.. stuff.
 
@daknøk you fancy re-writing the X11 library for me?
 
lol X11, now I understand your pain.
 
@daknøk It's C.
 
Xeo
2:03 PM
@daknøk Storing a callback closure in C++03 without boost was quite an ordeal
 
C++ is C++11, otherwise I’d have said C++03.
 
X11....
 
@Xeo All you had to do was write std::function.
 
guis
 
well, I can pass it a lambda right
 
2:04 PM
@DeadCicada Are you litb in disguys?
 
Xeo
@R.MartinhoFernandes That's what I meant with "quite an ordeal"
 
@thecoshman But no captures.
 
oh yes i love std::function. this shit is great
@daknøk spot on
 
@daknøk it didn't really add anything to the answer.
 
@DeadCicada that shit is fat and slow.
 
2:05 PM
+ I know how much censorship irritates you, that's always a bonus....
 
@thecoshman if the callback is set globally anyway, you don’t need a void*; just set a global.
 
@Abyx Like your mom. But it's awesome for multi-signature callbacks!
 
and from that lambda I could do stuff... but what would be useful I wonder. I really don't want to have to do some sort of class variable that floats around just to be set
 
@DeadCicada Erm, no. For multi-signature callbacks, it sucks because... It fixes a single signature.
 
@DeadCicada it's awesome to debug code with std::functions.
 
2:06 PM
@daknøk yeah... I might as well just have a 'global' function that is the callback that sets a 'global' variable. and by global I of course mean 'in my name space'
 
@thecoshman That's pretty much your only option.
Unless you plan on emitting code at runtime.
 
@R.MartinhoFernandes But you can use it on different classes! A::somefunc B::somefunc! Osom!
 
well, I guess rather then namespace level, I should so it as a static class thing
 
What's the point?
 
could the lambda modifier a class static varaible?
 
2:09 PM
@R.MartinhoFernandes Registering callbacks
 
if not I will just use functions, how 03
 
@thecoshman Yeah, but there's no functional difference between a class static and a global.
 
@DeadCicada Any thoughts on this?
3 hours ago, by Konrad Rudolph
My Skype user name is a girl’s name (long story, don’t ask) and I get the creepiest contact requests there … is it like that to be a girl online? Because, ewww!
 
@R.MartinhoFernandes hmm...
 
(from your unique perspective as a dead cicada …)
 
2:10 PM
stupid crappy callback system
 
@KonradRudolph So very true.
 
sucks to be you...
 
Or does it.
I've noted that in the games where I play a female character, people tend to rage more when I kill them than when I have a male character.
It's a very interesting behavior.
 
More particularly on online FPS
On another site, I used to have a nickname that was rather gender-neutral, so people defaulted my gender to "male". The community was rather aggressive. Then some day I hinted I might be a female and suddenly everyone was either calm or jealous. Wut.
Like "oh wow you're a girl I'm so sorry let's be friends"
Or opposite reaction "gtfo bitch"
 
2:14 PM
@DeadCicada According to r/gaming that’s the second most annoying type of gamer ;)
 
I still think human behavior towards females is most interesting.
 
@DeadCicada … and that’s the first most annoying one
 
The most annoying is the "OOOOOH WE HAVE A GIRL IN HERE" whenever you get on a voice chat in team games.
Blablabla
2
 
@DeadCicada practice your butch voice :P
 
@DeadCicada Take up smoking
 
2:17 PM
@KonradRudolph she's French, of course she smokes :P
 
ah, true
 
She probably also has the worst English accent on planet Earth, so I can kind of sort of understand "gtfo bitch".
 
@thecoshman No thanks, I'd rather choose another cancer.
 
@DeadCicada well, if you are going to jump to having cancers, you may as well smoke to get it
 
2:19 PM
And yeah my accent isn't too great, but it's much better than the average frenchie.
 
Do you say "ze"?
 
ov courze
 
isn't it 'we' they like to say?
 
All my cousins from France do. I don't know why I have not stabbed them yet.
 
I properly say "the".
 
2:20 PM
Might be because I stay away from knives on principle.
 
ZEZEZEZE
 
@R.MartinhoFernandes Is that a Portuguese thing? Having cousins in France? Because fuck it seems common
 
@thecoshman I'm pretty sure it's "ze".
 
Yeah they come build our houses.
 
as in 'yes'?
 
2:21 PM
@KonradRudolph There was a large wave of emigration to France during our latest dictactorship (1926-1974). Since it was around the time of Franco in Spain, France was the nearest "free" country.
 
I'll put a stronk focus on improving my accent the day I visit some english speaking country
But honestly guys, It's not so bad.
 
@DeadCicada 'stronk' :P
 
I also speak spanish with a flawless south american accent, k? ._.
 
@DeadCicada Yeah, pretty much.
 
@DeadCicada That’s a joke my sister always tells … comment les parents Portugais décident-ils le métier de ses fils?
 
2:23 PM
@DeadCicada and you are more then welcome to come visit the most over populated middle of nowhere known to man
 
@thecoshman India?
 
@DeadCicada oooh, for us it's the Polish
 
@R.MartinhoFernandes Most portuguese builders don't speak french though.
 
@R.MartinhoFernandes ¬_¬
 
@KonradRudolph I've never heard that one. How?
 
2:24 PM
Erm, all my uncles speak French. In fact, they now have difficulty speaking anything else.
 
Ils les jettent contre un mur. S’ils collent ils deviennent maçons, sinon, carreleurs.
 
lol
 
(sorry for the atrocious French, I’m horrible at it)
 
It's almost perfect. just s/jettend/jettent/
 
my sister can be pretty racist considering she’s been an immigrant most of her life
oops
 
2:24 PM
I already like her.
 
@KonradRudolph Hey, you used diacritics. That gives enough leeway to let pass a few typos.
 
@DeadCicada For what (little) it's worth, I find English as spoken by French people generally easier to understand than English as spoken by English people.
 
@JerryCoffin Generally speaking, I find non-natives easier to understand than natives, but that's because they put more effort into being understandable.
Depends on the accent, though.
 
I like how you all wish you could speak a third language better, and little old me is sat here wishing he could get to grips with his native language :(
 
Also, there's different levels of french accent. Really.
 
2:26 PM
 
@thecoshman Heh, just to spite you, I'm going for a fourth.
 
high five
 
@DeadCicada I've noticed that too. I'm not sure if it's what you're referring to, even to my untrained ears, there's a pretty distinct difference between French accents in Strasbourg vs. Brussels vs. Paris (etc.)
 
I'm learning Korean. :_:
 
2:28 PM
@DeadCicada what for?
 
To understand Gangnam Style lyrics.
 
@Abyx I'm spending my last year of studies in Daejeong, next year.
 
@JerryCoffin Yeah, the difference is very strong.
Sometimes it's difficult to understand people from Marseille (south of france), because of their strong accent.
 
@DeadCicada you know, they eat insects
 
2:29 PM
Brussels French is something else entirely.
 
@DeadCicada Oh gawd. I had trouble realizing he had switched to English.
 
@Abyx I do too. I even ate Cicadas!
 
uhm... is it another traditional French food? it's so weird %)
 
I don't know. You just remove the wings, head, and legs and you eat it.
 
@R.MartinhoFernandes ¬_¬
 
2:32 PM
I want to learn Russian too. And Chinese. But that's just not possible without a lot of effort. ;_;
 
The ladybug is a lazybug.
 
@DeadCicada Never been to Marseille, but the accent in Annecy was definitely interesting (seemed to be about as much Italian as French).
 
@JerryCoffin That's a beautiful city.
 
@DeadCicada deadly, though
 
2:35 PM
@KonradRudolph I was referring to Annecy :D
 
@DeadCicada So was I … already forgot the espionnage thriller that recently took place there?
 
@rubenvb You are right. It's on this list stackoverflow.com/questions/6399615/…
@KonradRudolph They put something in the water.
 
@DeadCicada I certainly liked it. The city's nice and the lake was even nicer.
 
@KonradRudolph That happens daily in Marseille. Annecy's pretty safe in comparison.
 
@R.MartinhoFernandes There is so much wrong in the answers and comments to that question :/ (except Pete's answer)
 
2:37 PM
@DeadCicada Fair enough, in Marseilles they even use proper weapons, not those girly guns but real, manly AK-47s. F’ed up city …
 
@KonradRudolph Did they find out what happened? I haven't followed that case.
 
@DeadCicada Not that I know of.
 
@DeadCicada Wasn't that in Taxi? Or was that The Transporter?
 
This whole world is mad anyway.
 
It's because of the fucked up physics governing everything.
 
2:39 PM
fuck gravity
 
@DeadCicada fuck space-time curvature <-- FTFY
 
@DeadCicada Eh, that’s only a theory anyway
 
don't ground me
dat pun
 
Well, I have to go do something certain to be lots more fun (spreading some gravel around in the yard). Later all.
 
Have fun :)
Back on that topic of "internet gender" for a second.
 
2:41 PM
@DeadCicada My soon to be aching muscles thank you. :-)
 
For some reason, people always want to know your gender. Why??
 
Because they're stupid.
 
A wild cat appears.
 
@DeadCicada indeed, it's much more interesting to know their fetishes
 
Hi, I just met you and this is crazy... what are your fetishes?
...
 
2:46 PM
I have a crush on bread, cheese, and awful accents.
 
@DeadCicada It’s stupid but I do interact differently with men and with women, even on the internet … not much and not often but it happens
 
@DeadCicada I have a feeling my French will have you at "Bonjour" ;-)
 
@KonradRudolph How do you interact differently with men/women on the internet? IRL I can figure why, but on the internet?
 
He must have an internal passive flirtation speech filter.
 
@KonradRudolph presumably you do IRL
 
2:48 PM
@DeadCicada Forget it, I think it’s not true now that I think about it
 
@DeadCicada I was going to answer something along the lines of “you know, different kind of humour, coarser language etc.” but that’s pretty much bullshit
 
penis
 
I do interact differently with men and women on the Internet: I use "bitch" for women and "bastard" for men.
 
@DeadCicada see, a dude would have said “cock”. You ARE different.
@R.MartinhoFernandes Bitch, please!
 
2:50 PM
@KonradRudolph "cock" isn't as international as "penis" though.
 
@KonradRudolph It's kind of a meme (on reddit maybe), and it doesn't work with "cock".
 
"scrub" is too
 
@KonradRudolph Planck is awesome.
 
@R.MartinhoFernandes It is? Wow, didn’t know. I wasn’t serious anyway.
incidentally, are dick jokes inappropriate in a presentation on Unix to biologists? I can’t tell … :p
 
2:54 PM
by george! I think I have finished writing the X11 code :O
 
> I own a small clothing shop. I'm being harassed by a pro-obesity group for not selling fat-sized clothes. What's the best way to resolve this? I'm trying to avoid legal action.
WTF there are pro-obesity groups?
 
now to write some sort of thing to test it works, and then fix it
@R.MartinhoFernandes most people call it America
 
@R.MartinhoFernandes what.
 
Is this right or wrong?
@MatthieuM. - thanks for pointing that out. The image was blurry, and I mis-read the period as a comma. This is old-style aggregate initialization, and a compiler that rejects it is wrong. As to int a{1.2}, yes, that the new initializer form, and the rule is that narrowing conversions aren't allowed. — Pete Becker 3 mins ago
in other words: is "old style initialization" excempted from the narrowing conversion rules of braced-init-lists?
 
No.
 
3:01 PM
Can someone with a ton of rep please clear that Q up?
 
@rubenvb He is wrong.
There is even an example of this in the standard document.
 
He justed posted an answer quoting a bunch of stuff in the Standard...
 
@rubenvb oh well he must be right then
 
Annex C.2. lists it.
 
@rubenvb The question seems clear enough?
 
3:04 PM
I just installed my SSD, and as expected, the results are far from optimal:
/dev/sda:
 Timing cached reads:   2632 MB in  2.00 seconds = 1316.54 MB/sec
 Timing buffered disk reads: 572 MB in  3.01 seconds = 190.27 MB/sec
But hey, it's fast enough for me :) Three times as fast as my old HDD, and more importantly, the silence... :)
 
@rubenvb Direct him to C.2.4 and 8.5.4/3. The examples there are clear enough.
 
@LucDanton I meant all the answers and whole comment discussion. It misses the point I've been trying to make entirely.
 
Can anybody with a Linux system and an SSD do hdparm -Tt /dev/sda and tell me the results for comparison?
 
I'm not reading the comments. Top-voted answer is fine.
 
@LucDanton Lol, I fear Matt's Standard quotes are going to attract a bunch of dung vote flies.
 
3:08 PM
I don't think that throwing rep at the problem is any help. Why not add quotes to Pete's answer if you think those are important?
 
reddit users, on average, are even more annoying than SO users
 
Hey whats up
 
@KonradRudolph I just downvote questions on /r/cpp without reading. I think there's a reason /r/cpp_questions exists.
 
@R.MartinhoFernandes it exists because people don't know about SO
 
@R.MartinhoFernandes thanks for helping explaining with the init-list question. the end result is three times the same quote from the Standard in different places, but hey... at least the final conclusion is correct now :)
 
3:38 PM
@DeadCicada oh
 
@KonradRudolph Would be funny if it is due to damaged hardware.
 
3:54 PM
Is puppy working for oracle now?
 
Dunno. It's something really weird.
He went there for an interview, but they put him doing some bug fixing or something. He wasn't too happy about it.
0
Q: Passing a 2-D array to a function in c++ via pointer

user1743613How do I pass 2-D array to function in c++ via pointer. I get following error when I try the code below. error: cannot convert 'int ()[10][10]' to 'int *' for argument '1' to 'void fn(int **)' void fn(int **a) { cout<<a[0][0]<<" "<<a[0][1]; } int main() { int A[10][10]; A[0]...

Yet another dupe.
 
Maybe the puppy is in jail for bringing down Oracle’s website.
 
@R.MartinhoFernandes in an interview?
 
Dunno.
I have a feeling the puppy doesn't know either.
 
he's only just got there right, like a few days? hes's hardly started working already
 
4:02 PM
The puppy has no fucking idea what's going on.
 
Skype y u 20% CPU. I’m not even using it right now. Piece of junk.
 
@R.MartinhoFernandes indeed
hmmm... and I find my self yet again stuck thinking how I want to actually create these windows... I don't like the idea of factory methods for the sake of it, but I am sure there was a reason why factory method was the 'desired' way of doing it
 
SO blew up: 'Server Error in '/' Application'
 
lol lol lol
 
cd home
rm -rf
 
4:11 PM
Half of it is back: 'This site is currently in read-only mode; we’ll return with full functionality soon'
 
4:36 PM
Err.. hello? Anyone out there? Are you still dead?
 
I'm here silently lurking.
 
I'm busy being dead.
Also playing World vs World in GW2 actually.
 
I lost contact for couple mins. SO a bit wobbly at the moment.
 
They're testing out their servers in Oregon.
 
@Mysticial Oh - a planned screwup.
 
4:39 PM
which is why they chose a weekend
 
@Mysticial OK, fair enough.
 
meta is completely down
I was trying to see if this was related the data dump updates.
I remember Nick saying something about it.
 
> 4. Get beer
Good plan.
 
I like how the vote buttons are greyed out.
 
4:53 PM
in theory they are business as usual now
 
@Mysticial implying it was up at some point
 
A girl wants to Skype with me, but she’s nervous. Shouldn’t I be nervous? I’m the programmer.
 
@daknøk your reputation precedes you
 
:<
 
@daknøk What are you nervous about? Did you work on skype? Are you afraid it'll crash? :P
 
5:03 PM
I’m joking about the fact that programmers are generally known to have inferior social skills.
 
I know, and I raised you a "programmers are even more afraid to find bugs in their own code"
 
I’m not afraid to find bugs in my own code.
I don’t make bugs.
 
Denial? I see how it is
 
5:27 PM
is there a pre-processor function to stop looking at a file? or does the whole thing have to be wrapped in a #ifdef?
 
Hi guys ! , can someone answer my question here? stackoverflow.com/questions/12874714/specific-folder-save-read/…
Im having problems for reading and saving
 
read the rules
 
Oo
Im just trying to find if someone knows the answer
 
yeah, I know. but we are not here for that. we are here to chat to each other. If we want to look to answer questions, we would take our selves to the SO
 
I believe this is the relevant section
 
5:37 PM
The fact is , if you dont know the answer ... you dont have to .
I know the rules
 
Oh, I'm pretty sure we all know the answer.
 
Ive been on lounge plenty of times
 
I think I've seen you a few times, yes.
 
I mean, if nobody wants to answer its not mandatory to do that
 
@Giuseppe that has nothing to do with it
it's the drive by linking that annoys us
 
5:39 PM
Yeah, we're in here, circle jerking and finding new ways to be unproductive, and you barge in and ask us to answer your question? A question that is tagged C++ despite only containing C code? Meh.
 
well , im sorry if i annoyed someone.g2g Have to keep my job done in a couple of hours
Its bec its developed on visual c++ ...
 
Giving your file a .cpp extension does not make it automagically C++.
 
Im not a fuull of knowladge programmer, im still on college
 
and if you are going to link dump a link on us, at least do it properly
 
lots of things to learn yet
 
5:42 PM
Sure.
 
hehe, automagically. love that expression
 
@sbi did you say you once worked on a cross platform code base, where all the files where compiled, but the platform specific ones where wrapped with a #ifdef so that to the 'wrong' platforms they appear to be empty? What did you make of that system? pain in the ass to work with? would you advise such a system?
 
@EtiennedeMartel What? All these years, I've been lied to !
 
@DeadCicada Ouais, c'est un running gag par ici.
 
6:06 PM
Fried potatoes 2nite wee ~
And either salmon or chicken. Idk yet.
 
@DeadCicada tasty indeed
@DeadCicada why not both?
 
Damnit
you were too fast
 
@DeadCicada ¬_¬
 
it's an meme
a old one even
 
6:10 PM
¬_¬
 
There are no old memes, just ones that have stood the test of time and those that havent
(aka good ones and bad ones)
 
6:24 PM
Salmon it is.
Expiry date was yesterday.
 
damit women! don't you care how upset we all got last time you tried to show your face!
 
posted on October 13, 2012 by Scott Meyers

Today I read Martinho Fernandes' post, "Some pitfalls with forwarding constructors." What caught my attention was his claim that a forwarding constructor (i.e., a templatized constructor taking a universal reference) is a copy constructor.  "Can't be true," was my initial thought, because in the past it was true that it couldn't be true. But then I kicked myself.  "Crawl out of the 19

 
though I do prefer it to the insect you had
 
@thecoshman Next time I'll put on a burqa.
 
@DeadCicada or just reveal you inner animal like the rest of us
 
6:31 PM
Tomorrow I'm changing nickname. inb4 "AttentionWhore has joined the room."
 
can make_shared, and by extension the 'standard' implementation of make_unique support polymorphism?
 
Is there something wrong with this or something? I thought a short, one line solution would be pretty nifty, but no one seems to like simple.
 
After a quick glance, it doesn't compile.
Add a return 0 and it's good for me.
 
¬_¬ wait, if a function returns a shared_ptr<Foo> I can actually return a shared_ptr<derivesFromFoo> can't I
 
@thecoshman No
 
6:39 PM
@DeadCicada :(
me no think smart
same response if I switch to unique_ptr?
 
I don't know how covariance works in C++, sorry. I guess not but I may be wrong. Ask one of the stronk guys here.
 
@thecoshman, This one seemed to work.
 
@DeadCicada ¬_¬ and here's me thinking I could actually listen to you
 
@thecoshman Never ever
 
@DeadCicada what about that?
 
6:44 PM
Disregard what I said k.
 
@chris so I would presume that the same principle works with unique_ptr
 
It actually does work apparently. Just tried.
 
@DeadCicada o_0 do I disregard that?
 
@thecoshman, I would say so. I'm just going based off of my experiment.
 
@thecoshman It does work so my assumption was wrong.
I told you I'm bad at C++.
 
6:46 PM
now I just need to work out how to wrangle the right version of the class to be used
isn't cross-platform code fun children
 
WOOOOOOOT @R.MartinhoFernandes got mentioned on Scott Meyers blog:
11
> Today I read Martinho Fernandes' post, "Some pitfalls with forwarding constructors." - Copying constructors
6
 
hello ¬_¬
 
@KonradRudolph I like to use gender neutral screen names
 
Does anyone know C?
 
6:52 PM
> "Can't be true," was my initial thought, because in the past it was true that it couldn't be true. But then I kicked myself. "Crawl out of the 1990s," -- Scott Meyers (in response to the robot)
 
@BrandonDamante yes
 
@BrandonDamante Not. Again.
 
@sehe do I plonk now?
 
@thecoshman can you answer my question at stackoverflow.com/questions/12874960/… ?
 
@thecoshman How do I know?
 
6:53 PM
Please don't plonk me!!!
 
@BrandonDamante We can. But it would be useless, because you already have the answer
 
@BrandonDamante might be able to, would probably take me not being annoyed by some effectively running up to me in the pub and thrusting work in my face
 
@BrandonDamante Yeah. That works
 
what's this
 
I'm getting a bunch of errors still
 
6:55 PM
Have you tried logarithms?
 
I guess not.
 
What is that?
 
Something from under a bridge.
 
@R.MartinhoFernandes 'grats dude
 
6:56 PM
Hi @R.MartinhoFernandes
 
@sehe Oh. I commented in his previous post about him saying using enable_if was cumbersome, and linked to rmartinho.github.com/2012/06/01/almost-static-if.html. I guess he went and read the rest :)
 
Please help me on my question
 
@sehe HOLY CRAP gratz @R.MartinhoFernandes
 
Gratz for what, really?
Being on the Internet?
 
Being mentionned by a "famous" author?
Might be just me, but I hold the guy in high esteem
His books are really useful
 

« first day (728 days earlier)      last day (4237 days later) »