Hmmm... now I have to figure what incredibly peaceful and safe country I was living in between 2001 and 2006.
Are you a moron? We're talking about culture. You're not even addressing that. By what objective metric can you say that the American culture is clearly more violent than Japanese culture? Is guro more violent than Rambo? Is one much more relevant to the national culture it belongs to as a whole than the other? See, that's my point, it's hard to even tell. You saying that Japan is a safe country to live in is just off-topic.
You're mixing the issues quite a bit here. While I'm sure that most Iranians are fine with having a Supreme Leader mixed in the parliamentary system, most Iranians aren't happy with their current administration, and what Hamadinedjad out really badly, and move on to progressivism and democratic reform.
Look at the polls, see how Mousavi was consistently reported as carrying the majority by several sources, then how both sides claimed to get 60% of the vote, and how Mousavi claimed the votes were swapped. The seeminly more likely explanation is that Mousavi's claims are true, which means 62% of the Iranian electorate wanted to show Ahmadinedjad the door, and explains the riots.
But no, sure, you're right, not all people yearn for freedom, these people over there in those mysterious civilisations actually like dictatorship and oppression. They totally don't yearn for democratic reform.
For starters, you need to learn that Americans have the most violent culture of any first world country.
Japan isn't a first world country? Just saying, your claim is hardly a clear cut fact. But then again you're American, in your mind America is always the most X or the least Y.
Ocean currents? Here's an even better idea : winds! I know it's true because when I throw a fridge magnet in the wind it goes in the same direction. So next time you want to know in what direction the wind is going, just look at a magnetic compass!
Maybe -1 would be a code for something, like, post not found? I know it doesn't seem to make sense to used a signed integer for things that can only be positive at first but here's a few things about using signeds instead :
you can use the negatives for some extra stuff like codes
it can avoid you some bugs if you do a subtraction of integers and use the result for some more maths (so you get 4 billion something instead of -1)
and then concerning the range, there are only a few cases when 2 billion numbers is not enough but 4 billion is always enough. If you care about range it doesn't matter whether you get 31 or 32 bits, either you have enough with 2 billions or you use 64-bit integers.
Actually, some people get practically all their food for free by buying it in a supermarket and then mailing the food company that they're not satisfied by the product for reason X, and get a full refund. The flaw with that approach is that if you do it for a family of 4-5 it's pretty much a full-time job.
So back to movies, perhaps you should be entitled to a refund if you didn't like it. I mean if it works for food..
If it was so they'd just stick satellites onto the celestial "ceiling";-). That would actually be quite convenient, your satellite TV would be much better for the satellite would be like 700 times closer.
Indeed! 20th century America got where it got because they knew how to attract all the big shots in engineering and science. If you were good at what you did then no matter where in Europe you were from you wanted to move to the USA, because they had bigger budgets, gave bigger pays, had the best resources, and so on..
But these days America wants to make itself desired and keep the Mexicans out so if you want to spend the next few decades in the USA you have to play a fucking lottery. I played it a few years ago. I lost, so I moved to Ireland instead.
Have any naked baby photos of your kids? Remember the mother who got arrested at Wal-Mart after taking such photos to be developed?
I don't have any naked baby photos of my kids, however I have sick naked baby porn like this (NSFW, child porn!!). I mean holy shit look at that flying naked baby porn, that is some sick fucking shit, that makes me want to throw up, I hope the guy who painted this abomination gets castrated, sent to jail and raped by inmates.
Isotopes and atoms are the same thing in nature, the difference in terms is that you use isotope for atoms of the same element with a different atomic mass. So if a chemical element only has one isotope and that it's radioactive then it's correct to claim that an atom has a half life.
Sounds like you're talking about something like Apple's Grand Central Station thing. If I'm not mistaken, instead of creating threads, you indicate which parts of your code can be parallelised, and the Grand Central thing takes care of parallelising it, with even less overhead than it takes to create a thread.
This being said, current threading implementations such as pthread aren't the most elegant way to do those things, but I still see working with threads something that's an integrating part of a program's high level algorithm, that is, if I make a flow chart of my program, well threads will be the things that run together simultaneously, and from what I decide to do it makes sense to use those. But this being said, all I know is threads, so of course I'm not going to think using a more elegant and sophisticated paradigm.
That sounds like a good approach indeed. If you have the luxury of having all the flexibility possible to make a multithreaded program then if you do things right I'm sure that in most cases you can come up with a design that will avoid the issues commonly met in parallel programs.
You consistently hear that a show's first seasons were better than the latest seasons, be it Family Guy/the Simpsons/House/Sarah Connor/etc.. when when you look at it the first episodes weren't all that great and the latest episodes aren't all that bad. I suppose it falls in the same category of behaviours as "back in my day, music was good".
The only show I can think of you can call out for having turned bad is South Park, between the 5th and 10th season it changed so radically you can either think that the first few seasons were awesome and the last few seasons are the gayest most unwatchable piece of televisual shit you've ever seen, or you can like it for the systematic bashing of just about anyone and parody of just about any show/movie seasoned with a generous dose of cynical libertarian agenda and think it's better than ever.
Who said I used nothing but the pthread library, or nothing but standard calls? If you want to write a portable program and you want to write more than a command line tool best believe you'll use platform dependent #ifdefs no matter what.
Like it matters, it's just one call to make at the beginning of the program.
How does that add data to the buffer in a way that doesn't conflict with the physics thread?
Well, I don't think that's that complicated actually. Make the physics thread get all the data from the AI thread all at once, let it perform its little loop, let it take AI data again, repeat... That's why I said it seems simple, of course it's not always simple, but as far as my limited experience goes all you have to do is find an elegant way to do this on paper and it all works out. I for one am not a big fan of locking, I try as much as possible to use mutex free code and just design things so that threads can keep doing their thing blindly without ever waiting. Well perhaps that's not always possible, but I think it's possible in most cases.
As for the physics-rendering problem, I think the most elegant solution is to use double buffering as you said, but to avoid the problem of the rendering loop starting just before the physics one ends, perhaps you can use some time measurement to determine whether the rendering loop should start or if it's late enough in the physics loop for it to wait for it.
I for one have never met any problems with debugging using GDB, and I think that if you get deadlocks on quad cores then there's something wrong about your design to begin with, i.e. you didn't plan for N cores correctly.
This being said you're absolutely right about it being easy if you design it from the ground up. Actually I'd consider turning a complete single threaded program into a parallelised program to be madness, not that you always have the choice though..
MP scalability in software is hard, because you don't know (and shouldn't assume) how many CPU cores are present in the user's system.
Well actually what I did (and what I think should be done) is to do just like with anything else and design it based on a variable, i.e. you know what you want if there's one core, you know what you want if there's 2, or 8, or 64, and based on that you write an algorithm that takes the number of detected cores into account and behaves as you want it to.
Re:Meanwhile, in Redmond
on
Unix Turns 40
·
· Score: 1
In honor of Unix's 40th anniversary, at 10:00 tonight there will be a celebratory Launching of the Chairs.
The ceremony opened with an impromptu speech by Microsoft CEO Steve Ballmer during which he declared: "I'll fucking kill UNIX, I've done it before and I'll do it again!".
Not trying to troll or anything, but I'd always hear of how parallel programming is very complicated for programmers, but then I learnt to use pthread in C to parallelise everything in my C program from parallel concurrent processing of the same things to threading any aspect of the program, and I was surprised by how simple and straightforward it was using pthread, even creating a number of threads depending on the number of detected cores was simple.
OK, maybe what I did was simple enough, but I just don't see what's so inherently hard about parellel programming. Surely I am missing something.
Of course you're not the brilliant Mr. Robinson, you're just one of his numerous avid fans who cruise the interwebs to benevolently spread his word and who coincidentally happen to post on Slashdot just like him.
And like I said, no one cares. Besides it was TL;DR. Anyways, have fun wasting your time fighting windmills, eventually you'll realise that even if you think your idea is the best idea since sliced bread, still no one will care about it.
Ask your representative what they think about the Robinson Method
lol, wow Mr. Robinson, you're seriously deluded if a) you think posting as AC will fool us and b) you really think anyone would know about your "method", let alone care. You're just a blogger, with everything it implies about how no one cares about whatever you gotta say. Besides, I couldn't bring myself to read your suggestion that would probably fill 20 pages when printed, but it seems very convoluted and basically be not electronic voting. Paper voting works very well, no need for some complicated bullshit.
any place I've submitted it has basically rejected the idea out of hand and has made no comment on it.
Get the fucking hint, if no one cares even to tell you what's wrong with your suggestion, it's probably because they don't consider it even worthy of commenting. Seriously, get the hint. Stop blogging, that shit sucks. Do something worthwhile, like spending time your family, or go to a pub and meet people. Or better yet work out, weighting 400 lbs is hardly healthy.
I was going to offer a rebuttal with examples of how you're wrong, but actually you're right, back then you'd just easily search for a song, download it, it would instantly start (can't say the same for BitTorrent or eMule), using a mere 33.6 K modem with a 20 hours/month connection you still could get quite a lot, and you could go to chatrooms, actually make new friends and even see what they had. And if you downloaded porn, you'd even get the person you were downloading from telling you to get your hands out your trousers.
Amazing how I forgot how it was better back then than it is now, except of course for the fact that now you get entire albums in a zip and the rarer stuff is much easier to find.
Japan isn't a first world country?
Japan is violent? Really??
Hmmm... now I have to figure what incredibly peaceful and safe country I was living in between 2001 and 2006.
Are you a moron? We're talking about culture. You're not even addressing that. By what objective metric can you say that the American culture is clearly more violent than Japanese culture? Is guro more violent than Rambo? Is one much more relevant to the national culture it belongs to as a whole than the other? See, that's my point, it's hard to even tell. You saying that Japan is a safe country to live in is just off-topic.
You're mixing the issues quite a bit here. While I'm sure that most Iranians are fine with having a Supreme Leader mixed in the parliamentary system, most Iranians aren't happy with their current administration, and what Hamadinedjad out really badly, and move on to progressivism and democratic reform.
Look at the polls, see how Mousavi was consistently reported as carrying the majority by several sources, then how both sides claimed to get 60% of the vote, and how Mousavi claimed the votes were swapped. The seeminly more likely explanation is that Mousavi's claims are true, which means 62% of the Iranian electorate wanted to show Ahmadinedjad the door, and explains the riots.
But no, sure, you're right, not all people yearn for freedom, these people over there in those mysterious civilisations actually like dictatorship and oppression. They totally don't yearn for democratic reform.
For starters, you need to learn that Americans have the most violent culture of any first world country.
Japan isn't a first world country? Just saying, your claim is hardly a clear cut fact. But then again you're American, in your mind America is always the most X or the least Y.
Ocean currents? Here's an even better idea : winds! I know it's true because when I throw a fridge magnet in the wind it goes in the same direction. So next time you want to know in what direction the wind is going, just look at a magnetic compass!
Maybe -1 would be a code for something, like, post not found? I know it doesn't seem to make sense to used a signed integer for things that can only be positive at first but here's a few things about using signeds instead :
Actually, some people get practically all their food for free by buying it in a supermarket and then mailing the food company that they're not satisfied by the product for reason X, and get a full refund. The flaw with that approach is that if you do it for a family of 4-5 it's pretty much a full-time job.
So back to movies, perhaps you should be entitled to a refund if you didn't like it. I mean if it works for food..
If it was so they'd just stick satellites onto the celestial "ceiling" ;-). That would actually be quite convenient, your satellite TV would be much better for the satellite would be like 700 times closer.
Indeed! 20th century America got where it got because they knew how to attract all the big shots in engineering and science. If you were good at what you did then no matter where in Europe you were from you wanted to move to the USA, because they had bigger budgets, gave bigger pays, had the best resources, and so on..
But these days America wants to make itself desired and keep the Mexicans out so if you want to spend the next few decades in the USA you have to play a fucking lottery. I played it a few years ago. I lost, so I moved to Ireland instead.
Global warming doesn't affect us now.
That is, unless you're from New Orleans.
Have any naked baby photos of your kids? Remember the mother who got arrested at Wal-Mart after taking such photos to be developed?
I don't have any naked baby photos of my kids, however I have sick naked baby porn like this (NSFW, child porn!!). I mean holy shit look at that flying naked baby porn, that is some sick fucking shit, that makes me want to throw up, I hope the guy who painted this abomination gets castrated, sent to jail and raped by inmates.
Isotopes and atoms are the same thing in nature, the difference in terms is that you use isotope for atoms of the same element with a different atomic mass. So if a chemical element only has one isotope and that it's radioactive then it's correct to claim that an atom has a half life.
Sounds like you're talking about something like Apple's Grand Central Station thing. If I'm not mistaken, instead of creating threads, you indicate which parts of your code can be parallelised, and the Grand Central thing takes care of parallelising it, with even less overhead than it takes to create a thread.
This being said, current threading implementations such as pthread aren't the most elegant way to do those things, but I still see working with threads something that's an integrating part of a program's high level algorithm, that is, if I make a flow chart of my program, well threads will be the things that run together simultaneously, and from what I decide to do it makes sense to use those. But this being said, all I know is threads, so of course I'm not going to think using a more elegant and sophisticated paradigm.
That sounds like a good approach indeed. If you have the luxury of having all the flexibility possible to make a multithreaded program then if you do things right I'm sure that in most cases you can come up with a design that will avoid the issues commonly met in parallel programs.
+1, Sad
For it is insightful.
You consistently hear that a show's first seasons were better than the latest seasons, be it Family Guy/the Simpsons/House/Sarah Connor/etc.. when when you look at it the first episodes weren't all that great and the latest episodes aren't all that bad. I suppose it falls in the same category of behaviours as "back in my day, music was good".
The only show I can think of you can call out for having turned bad is South Park, between the 5th and 10th season it changed so radically you can either think that the first few seasons were awesome and the last few seasons are the gayest most unwatchable piece of televisual shit you've ever seen, or you can like it for the systematic bashing of just about anyone and parody of just about any show/movie seasoned with a generous dose of cynical libertarian agenda and think it's better than ever.
The loss of liberties, you mean, the loss of the liberty to wander off without even knowing why you're wandering or where you are?
Who said I used nothing but the pthread library, or nothing but standard calls? If you want to write a portable program and you want to write more than a command line tool best believe you'll use platform dependent #ifdefs no matter what.
Like it matters, it's just one call to make at the beginning of the program.
How does that add data to the buffer in a way that doesn't conflict with the physics thread?
Well, I don't think that's that complicated actually. Make the physics thread get all the data from the AI thread all at once, let it perform its little loop, let it take AI data again, repeat... That's why I said it seems simple, of course it's not always simple, but as far as my limited experience goes all you have to do is find an elegant way to do this on paper and it all works out. I for one am not a big fan of locking, I try as much as possible to use mutex free code and just design things so that threads can keep doing their thing blindly without ever waiting. Well perhaps that's not always possible, but I think it's possible in most cases.
As for the physics-rendering problem, I think the most elegant solution is to use double buffering as you said, but to avoid the problem of the rendering loop starting just before the physics one ends, perhaps you can use some time measurement to determine whether the rendering loop should start or if it's late enough in the physics loop for it to wait for it.
I for one have never met any problems with debugging using GDB, and I think that if you get deadlocks on quad cores then there's something wrong about your design to begin with, i.e. you didn't plan for N cores correctly.
This being said you're absolutely right about it being easy if you design it from the ground up. Actually I'd consider turning a complete single threaded program into a parallelised program to be madness, not that you always have the choice though..
MP scalability in software is hard, because you don't know (and shouldn't assume) how many CPU cores are present in the user's system.
Well actually what I did (and what I think should be done) is to do just like with anything else and design it based on a variable, i.e. you know what you want if there's one core, you know what you want if there's 2, or 8, or 64, and based on that you write an algorithm that takes the number of detected cores into account and behaves as you want it to.
In honor of Unix's 40th anniversary, at 10:00 tonight there will be a celebratory Launching of the Chairs.
The ceremony opened with an impromptu speech by Microsoft CEO Steve Ballmer during which he declared: "I'll fucking kill UNIX, I've done it before and I'll do it again!".
Not trying to troll or anything, but I'd always hear of how parallel programming is very complicated for programmers, but then I learnt to use pthread in C to parallelise everything in my C program from parallel concurrent processing of the same things to threading any aspect of the program, and I was surprised by how simple and straightforward it was using pthread, even creating a number of threads depending on the number of detected cores was simple.
OK, maybe what I did was simple enough, but I just don't see what's so inherently hard about parellel programming. Surely I am missing something.
Of course you're not the brilliant Mr. Robinson, you're just one of his numerous avid fans who cruise the interwebs to benevolently spread his word and who coincidentally happen to post on Slashdot just like him.
And like I said, no one cares. Besides it was TL;DR. Anyways, have fun wasting your time fighting windmills, eventually you'll realise that even if you think your idea is the best idea since sliced bread, still no one will care about it.
Someone tag it marblecakealsothegame. Not saying that Arizona's voting system would be even remotely as exploitable as Time's.
Ask your representative what they think about the Robinson Method
lol, wow Mr. Robinson, you're seriously deluded if a) you think posting as AC will fool us and b) you really think anyone would know about your "method", let alone care. You're just a blogger, with everything it implies about how no one cares about whatever you gotta say. Besides, I couldn't bring myself to read your suggestion that would probably fill 20 pages when printed, but it seems very convoluted and basically be not electronic voting. Paper voting works very well, no need for some complicated bullshit.
any place I've submitted it has basically rejected the idea out of hand and has made no comment on it.
Get the fucking hint, if no one cares even to tell you what's wrong with your suggestion, it's probably because they don't consider it even worthy of commenting. Seriously, get the hint. Stop blogging, that shit sucks. Do something worthwhile, like spending time your family, or go to a pub and meet people. Or better yet work out, weighting 400 lbs is hardly healthy.
I was going to offer a rebuttal with examples of how you're wrong, but actually you're right, back then you'd just easily search for a song, download it, it would instantly start (can't say the same for BitTorrent or eMule), using a mere 33.6 K modem with a 20 hours/month connection you still could get quite a lot, and you could go to chatrooms, actually make new friends and even see what they had. And if you downloaded porn, you'd even get the person you were downloading from telling you to get your hands out your trousers.
Amazing how I forgot how it was better back then than it is now, except of course for the fact that now you get entire albums in a zip and the rarer stuff is much easier to find.