« first day (667 days earlier)      last day (4286 days later) » 

5:00 PM
but the thread will freeze untill report_progress returns
and also I need to use the same library for GUI also
then also the same processor function will be called from GUI thread
 
And for GUI the callback puts an event in the event queue, instead of printing.
 
wouldn't that freeze the GUI ?
 
@NeelBasu If you don't want to block when that happens, use an event loop.
@NeelBasu No. The GUI is constantly reading the event queue and processing events.
 
What I am saying is when I'll process it from GUI thread wouldn't the processing freeze the GUI thread ?
 
You don't process in the GUI thread.
 
5:03 PM
@R.MartinhoFernandes Then I will be using threads in future so why don't I make the library threaded instead ?
wouldn't that be future safe ?
 
@NeelBasu Because it's the user code that needs the threads.
(Assuming this processing is sequential)
All the library needs is to accept a report_progress callback.
 
@R.MartinhoFernandes Yes the job is sequential but can be executed parallelly e.g. the job is not stateful. so Its easily splitable into parallal jobs that can be executed paralally
 
Then the client decides what will run in what thread, and what the callback does. In the case of a GUI, the processing if launched in another thread, and the callback puts an event on the event queue of the GUI thread.
 
actually What I am doing is comparisns. and there can be ~10000 comparisns and one comparisn has nothing to do with other
 
My point is, if you try to put more than this little callback in the library to report progress, you will be tying the library to a certain scheme, and possibly making it harder to use.
 
5:08 PM
Hmm
Well is there any plus in doing these comparisns paralally ?
 
Make the library so that the library user can register a callback...
 
Dunno. But that can be done regardless of progress display: just make the processing function launch the threads it wants.
From the point of view of the library, progress reporting is just a "ping".
If the user doesn't even want progress, then can just pass a function that does nothing as a callback.
 
or there can be an overload that doesn't take a callback
 
And duplicates the code except for the progress reports?
 
@Chimera how do I get the value of errno, I read something about sig_info and si_errno in the man pages, not sure exactly how to use it.
 
5:11 PM
@R.MartinhoFernandes No it supplies a blank callback to the other function
 
@NeelBasu Ah, right.
 
Well now comming to another point. the processor will do N comparisns. and one comparisn has to do nothing with the other one. So would it improve performance if I make it multi threaded ?
e.g. runnung in a thread pool ?
 
@MrAxilus The sigaction should return a siginfo_t which contains si_errno
@NeelBasu Only if the pool has a diving board.
 
@Chimera what is a diving board ?
 
5:26 PM
@NeelBasu Lol... it was just a joke. A diving board is something you jump from into a pool.... :-)
 
ah so, what is the difference between using sa_sigaction and sa_handler to reference the fucntion
 
@Chimera Oh! I thought Its some kind of new idiom.
 
mornin'
 
@NeelBasu Ah... sorry..... it's not an idiom that I'm aware of. :-)
Hi @LuchianGrigore
 
actually I thought Its a joke when I first heard Pimpl on COW latter I understood what is Pimpl and what is Copy on write
 
user1445205
5:28 PM
Anyone know how to answer this question: stackoverflow.com/questions/11931945/…
 
I wondered How can a Cow get pimpl on its face
 
@AlexanderMacLeod Linkdumping here will almost certainly get your question downvotes.
 
already has
 
pow! headshot!
 
user1445205
Sorry if I have annoyed people
 
5:30 PM
@AlexanderMacLeod That isn't even a question. Format it and try again.
 
Will probably get answered faster if you tag it obj c
 
user1445205
@I
 
user1445205
@ITNinja @Sam Thanks for the advice
 
I think the worst part is that it reads like a "please do this for me" question.
 
I never got 5 Upvotes. How did you manage to get 5 downvotes ?
 
5:31 PM
Damn hiccups.
 
Xeo
@NeelBasu People are a lot more willing to provide downvotes rather than upvotes
especially since downvotes on questions are free
 
@NeelBasu Link your question in the C++ Lounge when the grumpsters are in force.
 
So there should be a Pay and Downvote Button
 
it used to cost 2 rep to downvote questions
but then they made it free because questions weren't getting downvoted enough
 
@DeadMG Grumpsters, lol.
 
5:33 PM
Oh! Really ? Its free now ?
I didn't know that
 
Xeo
@DeadMG 1 rep for downvotes in general
-2 reps is what you get when you're downvoted
 
@Xeo -1 for answers, -2 on questions.
I thought, anyway
 
Xeo
nopes
 
'Twas -1 for bastard, -2 for victim, regardless of post type.
 
oh well
the important thing is that it is now free
 
5:40 PM
I posted a question, and an answer for my own question, and I'm waiting for other answers, but I'm not sure how I'll objectively pick a "best" answer. I'll probably wait 24 hr, then have someone here pick for me I think.
 
Hey, did any of you guys read a good book regarding the C++11 standard? One you would recommend
 
If you vote - on questions, it doesn't affect your rep.
 
@MooingDuck just choose whatever answer appeals to you the most
 
@Papergay it's new, not many books have been released already
@Papergay hard to be objective when one answer is my answer though.
 
Greetings earthling! Take me to your leader bacon!
 
5:50 PM
There, I finally received that damn ReSharper license. So much red tape...
 
@MooingDuck You thanked someone for a cplusplus.com link? /downvote
 
Hmm. My question got a downvote. I understand that it's a short question, but I can't think of what more to day
@SamDeHaan no, I definitely did not. I thanked someone who gave useful information. (The one with the upvote)
 
@MooingDuck Ah, my bad. I need to l2read some time.
 
Ain't she beautiful!
 
I'd take a mustang or camaro over this anytime
Or a 6-series 8->
 
5:55 PM
@LuchianGrigore The Camaro SS is pretty nice. Still a very heavy car though.
 
The car, sure. The picture, not so much.
 
@SamDeHaan Thanks... I love the car.
What's your favorite vehicles?
 
6-series, X6, the new Audi A6, Merc CL
 
Audi R8 is a superb specimen. Audi's in general seem to be pretty nice.
 
New audi's, yes. I didn't really like the models pre-2010
 
5:59 PM
In a year or so I will be selling that car and getting a 2011 or 2012 Corvette Grand Sport.
 
Good for you!
I hate you!
 
@LuchianGrigore I thought the Audi TT was great until I drove one... yuck!
@LuchianGrigore Sorry :-)
 
I live in Michigan... so I don't worry all that much about cars that I could only drive four months out of the year.
 
I drive a Cruze... it's ok
:)
 
@SamDeHaan I used to live in Wisconsin, so I know how you feel.
Two seasons in Wisconsin, Winter and Road Repair season.
 
6:01 PM
btw
 
This:
UFO
 
has anyone seen that nubbery domagoj recently?
seems to me like he's dropped off the face of the earth
 
@LuchianGrigore That's a beautiful car!
 
The new A6
 
@DeadMG Haven't seen him in a long time.
 
6:02 PM
@DeadMG The Earth is not flat, silly.
 
I drive an old (not that old, '99) Camry. It gets me where I need to be, and the mileage is good. /shrug.
 
@SamDeHaan Ain't nothing wrong with that!
 
This is a whole new segment
 
Iron Sky is a nice film.
 
The R8 is an exotic car
 
6:03 PM
Now that is a beautiful car, probably not worth the price, but still nice.
 
100k +
 
Oh, you're talking about cars. Good thing I'm here to save the room from such an excruciating topic, and change the subject to spaceships.
 
@LuchianGrigore They start out at 114,200
 
@CatPlusPlus we were talking about spaceships. Did you miss chat.stackoverflow.com/transcript/message/4918186#4918186 ?
 
@CatPlusPlus We can talk about movies if you'd like
 
6:05 PM
That's not a spaceship.
room topic changed to Lounge<C++>: Spaceship beats car. Always. [c++] [c++11] [c++-faq] [fun] [nsfw]
 
I really enjoyed, Good Will Hunting, Gattaca and Girl Interrupted
 
Not even KITT can save you.
 
I didn't care for KITT
I used to watch Viper
 
Viper didn't talk.
 
I can't do it Captain! She's breaking up!
Allow me to cause a ruckus. Romney or Obama and why?
 
6:12 PM
I don't vote.
 
@MooingDuck sry, I never had any problem like that D: I always go with the answer that I think is the most helpful one (meaning, most appealing)
 
@R.MartinhoFernandes Not into politics?
 
@Chimera There's what, 2 or whatever other Americans that frequent this?
 
@Collin Not too many Americans, but a lot of Europeans seem to still have an opinion...
 
@Collin I know there's at least four of us, just not often when you Europeans are on.
@Chimera nobody likes Romney
 
6:15 PM
@MooingDuck Really? I'm guessing it's going to be another close race.
 
@Chimera nobody less than age 30 likes Romney
 
@MooingDuck That's more accurate. See also: nobody less than age 30 actually votes
 
Obama will win again, but by a smaller margin than last time
@SamDeHaan hrm. True. Hadn't considered that.
 
@MooingDuck Time will tell I guess.
 
And, for my final entry into this discussion: man, two party politics is annoying.
 
6:16 PM
@SamDeHaan srsly
 
@MooingDuck I don't know the voracity, but I've heard several times that there are way more liberal leaning people than conservatives in the US, but no comparatively few liberals vote
 
@Collin sounds accurate AFAIK
 
Well, either way, once again we don't have a really good person to vote for.
 
@Chimera this time I think we're voting for a useless Obama vs a harmful Romney. I think Obama will win again.
 
The system is too far stacked against a third party candidate.
@MooingDuck Well, I think Obama is harmful enough.
So we have no good choices.
 
6:20 PM
@Chimera Obamacare is debatably harmful, but almost everyone I know doesn't want Romney in office.
 
I want to see an average Joe be elected.
 
@Chimera I keep considering that, but there's too many lobbyists, who would eat average Joe alive, and convince him to do stupid things.
Remember, this is America, where only half the population realizes that Obama is Christian.
 
@MooingDuck Yep, that is probably true. If we could keep the lobbyists out of politics and force the leaders to represent the people, things should improve.
 
Despite there being an uproar during his election over something his pastor said.
@Chimera thus the 99%
 
I don't subscribe to class warfare, so I don't recognize the 99% or 1%.
 
6:24 PM
@Chimera the reason for the "we are the 99%" rally thing was to protest corporate money in politics.
 
@MooingDuck That was one part of it.....
I agree with that part.
 
@Chimera that was the reason the rally was organized. Though most of the people who participated didn't know that, and it went totally berserk from there. But the original message was that.
wait no. "Occupy Wall Street". Wrong group. Sorry.
occupywallst.org "Both the Democratic and Republican Parties are controlled by moneyed interests and the 1%..."
 
Well the Occupy Wall Street self identified themselves as the 99%
 
@Chimera yeah, but that was a different message. As you mentioned, at that point it became class warfare.
 
@MooingDuck We need serious campaign financing reform.
 
6:29 PM
@Chimera I vote on referendums because on those I can make an informed decision. I don't vote on anything else.
 
protest corporate influence on democracy, the lack of legal consequences for those who brought about the global crisis of monetary insolvency, and an increasing disparity in wealth... reduction in the influence of corporations on politics, more balanced distribution of income, more and better jobs, bank reform (Especially to curtail speculative trading by banks.), forgiveness of student loan debt or other relief for indebted students, and alleviation of the foreclosure situation.
 
We just need a vote results modifier: effective votes = total votes / campaign funding. Perfect solution!
 
I find it extremely harmful that every change of President leads inevitably to a cancellation of half of the realized "stuff" by the previous one.
 
@SamDeHaan Perfect solution for what? To increase unofficial/illegal funding?
 
@R.MartinhoFernandes Perfect solution to significant lack of sarcasm in preceding conversation >.>
 
6:31 PM
And the fact that education in the US is pretty harmful all by itself....
 
@rubenvb Agreed... we need to get serious about the state of public education.
 
Nah, we just need to shoot the right people.
 
@Chimera And that will never happen, because half of the US votes are made by morons that can't think for themselves.
@R.MartinhoFernandes In the US, that would mean about 50% of the total population.
 
@rubenvb Which half is that?
 
@rubenvb Wait, you think elsewhere it's very different?
 
6:32 PM
@Chimera I never said they all vote on the same side.
 
I think some sort of test should be given to people who want to vote. To see if they know the issues.
 
@R.MartinhoFernandes no, but I know for sure that in most European countries, there are more than just two parties, and the votes and resultant policy are smudged out more.
@Chimera impossible: who writes the test?
 
@rubenvb us
 
oh, that would improve the situation.
Aristocracy anyone?
oh wait, that's how it is now :P
 
6:34 PM
And more than half of the US population think we are a democracy.
 
@Chimera that's because they don't know what a democracy is
 
@rubenvb That says nothing about the voting population's moronicity.
 
Apathy is the biggest problem we face.
 
@R.MartinhoFernandes but it does reduce the resulting polarization by a large factor.
 
As long as "American Idol" is on TV, most people are happy.
 
6:36 PM
@Chimera I think a lot of US citizens vote with their emotions on the forefront. It's just that they're based on false information
 
@rubenvb Emotions shouldn't be involved. And a lot of people vote straight party line as well without knowing the issues.
 
@Chimera No. Currently, lots of them vote because (they think) Obama is a Communist and the sole reason for the crisis is Obamacare.
Oh, and he wasn't born in America, how could you vote for that guy?
 
@rubenvb I still don't see how that reflects the population's moronicity. And I find your claim that most European countries have more than two parties not matching my (admittedly reduced) experience. From the news coverage I've seen: UK? Two parties. France? Two parties.
 
@rubenvb Man, those kenyan muslims, infiltrating our government again.
 
@R.MartinhoFernandes Oh, and the UK and France is Europe. There's a lot more diversity, also across countries' boundaries. Although the EU in itself has the exact same problem as the US IMHO.
 
6:39 PM
@rubenvb except for all the americans... :D
 
In the EU, all that seems to happen is the French President vs/with the German Bundeskanzler (why is there no English word for this?).
I may be wrong, but that is the full impression of European politics I get from the media here in Belgium.
 
@rubenvb I can list more such countries if I look them up.
 
@rubenvb Chancellor.
 
@ecatmur you're forgetting half of the word and its meaning...
And introducing a crazy Star Wars reference.
 
@rubenvb so "Federal Chancellor", but English-native sources just use "Chancellor".
Angela Dorothea Merkel , née Kasner (born 17 July 1954) is the Chancellor of Germany and Chairwoman of the Christian Democratic Union (CDU). Merkel is the first female Chancellor of Germany. A physical chemist by professional background, Merkel entered politics in the wake of the Revolutions of 1989 and briefly served as the deputy spokesperson for Lothar de Maizière's democratically elected East German government prior to the German reunification. Following reunification in 1990, she was elected to the Bundestag, where she has represented the state of Mecklenburg-Vorpommern since. She s...
 
6:42 PM
@ecatmur I'm not quite sure Germany works as a Federation. Not at all actually.
oh well, guess "bundes-" means federal after all
I'll blame the dutch words for these things as the cause of my confusion.
We in Belgium sport 6 parties in our federal government.
The Netherlands isn't much better.
 
We have five, but it's two + bottom feeders.
 
@R.MartinhoFernandes That's a huge difference from 1 party with all the "power" and another to crack down on it.
 
Sorry, what does that mean?
 
Oh gods first cars now politics.
I can't leave you people alone for 10 minutes.
 
it's frustrating that I am typing faster than my computer can process and I'm not even compiling or anything. Stupid computers.
@rubenvb google suggests chancellor, federal, federal chancellor, the federal, and "bundeskanzleramt" as English translations.
 
6:50 PM
@R.MartinhoFernandes Just look at Obama's last term: first 2? years he has a majority in the "parliament" (congress?) and he can do stuff. Last couple of years, everything he wants to do is blocked completely. No middle ground possible, because the other side is the complete opposite.
 
That's pretty much what happens here.
Well, now not anymore, but that's because of the special circumstances.
 
well, in the US it has been that way (plus the reversal of policy every 4-8 years => standstill) for... ever.
 
Here it's been like that since this Republic was established, ~40 years ago.
Same old crap all the time.
 
Well, Portugal is indeed not the example I should be defending with what I'm trying to say...
(no offense)
 
Sometimes, the opposition party votes against policy X, and four years later, when they get a majority in the elections, they set forth to establish policy X.
 
6:55 PM
Well, of course, but it's totally different (wink wink, nudge nudge, if you get what I mean)
 
lol
Let's get out the big guns (pun intended): at least we don't start wars over sewage infrastructure.
 
@SamDeHaan Of course it is different. That's why the party that first proposed it is now against it! If it were the same they would approve.
 
Exactly!
 
This is why I don't vote. I don't know who I should pick to play these petty games in my name.
 
Whether you chose or not, you've made a choice.
 
6:59 PM
indeed.
So you better vote on the lesser of two (or hopefully more) evils.
 

« first day (667 days earlier)      last day (4286 days later) »