Gridwars Parallel Programming Challenge 176
Peter_Pork writes "New Scientist has an article about GridWars, a challenging new game that runs on large clusters of computers. Programs fight each other for supremacy in terms of the number of processors they control, and the main point of the contest is to develop better parallel algorithms. It seems a nice idea: have fun while you improve the state-of-the-art in cluster computing. The result of the last contest was somewhat of an upset, since a craftsmanly Russian program defeated a sophisticated genetic algorithm from NASA."
A strange game. (Score:5, Funny)
I couldn't resist!
Re:A strange game. (Score:2, Funny)
Re:A strange game. (Score:2, Funny)
My brain hurts! (Score:2, Funny)
Re:My brain hurts! (Score:4, Funny)
Sound good?
Re:My brain hurts! (Score:2)
Re:My brain hurts! (Score:2)
If the Nunstruck is git and Slotermeyer?
WHUT?
Re:My brain hurts! (Score:2)
I hereby declare (Score:1)
Man.. (Score:1, Insightful)
Re:Man.. (Score:2)
My theory is that it was all computer generated, they couldn't really have built their own aeroplanes out of junk and flew them, could they?? ;-)
OMG (Score:5, Funny)
Re:OMG (Score:3, Funny)
And it'll be posted twice, with the evil bit set on the dupe.
Re:OMG (Score:1, Funny)
I might be good at this (Score:5, Funny)
Re:I might be good at this (Score:3, Funny)
Next article prediction (Score:3, Funny)
Sadly, the death of Stephen King during the game's promotion at E3 and LinuxWorld (where no one showed up) put a damper on things, while in Soviet Russia the people controlled YOU.
The event is expired. (Score:1)
LOL HAHAHAHAHA
Re:The event is expired. (Score:2)
"The result of the last contest was somewhat of an upset, since a craftsmanly Russian program defeated a sophisticated genetic algorithm from NASA."
Mean anything? You know... 'result' means it's over.
Re:The event is expired. (Score:2)
Everything old is new again. (Score:5, Informative)
Re:Everything old is new again. (Score:3, Informative)
Re:Everything old is new again. (Score:1)
Re:Everything old is new again. (Score:4, Informative)
There was a game based on core wars called "CoreLife [google.com]", which was 2 dimensional:
Re: Everything old is new again. (Score:3, Interesting)
Re:Everything old is new again. (Score:3, Interesting)
You write Java robots that battle each other by controlling movement, gun turret and radar turret. A great way to learn Java, be mentally stimulated and is entertaining to watch.
Re:Everything old is new again. (Score:2)
Someone remind me (Score:1)
This article just rings a bell... No wait, that's the tripwire. Gotta go.
Re:Someone remind me (Score:2)
You're thinking of Core Wars (Score:1)
Its like all the films (Score:1)
Its the beginning of the matrix people. We should stop it now!!!
*twitch*
Re:Its like all the films (Score:1)
Re:Its like all the films (Score:1)
The contest (Score:1)
Close but not quite (Score:4, Informative)
It should not read like that it should be.
since a craftsmanly Russian program defeated a sophisticated program created by a genetic algorithm from NASA.See (from NS):
"The final battle saw Wenig's program - created using genetic algorithms - take on a program designed by a computing student from Moscow State University."
A subtle, but important difference. Now if the prgrams were actually evolving in the Gridwars game that would be interesting, as it would be similar(ish) to my project.
*Dreams of a day they put an edit queue on slashdot*
Re:Close but not quite (Score:2)
Cool (Score:2)
Re:Cool (Score:2)
Gridwars, the next Rogue-alike (Score:4, Funny)
Re:Gridwars, the next Rogue-alike (Score:1)
Nitpick from someone knowledgeable:
A 'C' can either be a plains, forest, or mountain centaur. However, a 'c' can be a cockatrice, chickatrice, or pyrolisk, which are much more feared because of the danger of their insta-kill petrification attacks. Also, in later versions of Nethack, there is a patch option to change your character display symbol from a generic "@" into a race-specific symbol (if you're playing a human, 'h
Re:Gridwars, the next Rogue-alike (Score:2)
But Not Quite Gentlemanly... (Score:2)
hmmm
I'm guessing that this guy works for the Russian mobsters that put together the porn/spam network [slashdot.org] reported earlier.
experience (Score:2, Funny)
Perhaps their virus writing skills give them an edge
Craftmanship versus sofistication? (Score:5, Insightful)
This is not the first time something craftmanslike can beat something sofisticated. Even thought the following examples are strictly hardware, the general idea is the same.
Take, for instace the T34 [fas.org] vs the Tiger [tigertank-h-e-181.com]. The Tiger was one of the most sofisticated - if not the most sofisticated - tanks in production at the time, but were drowned by hordes of the more craftmanlike and easily manufactured T34.The battle between a simple, craftmanlike approach and sofistication was once again seen in the early sixties, in the race to get a man into space. The russians fielded the Vostok [astronautix.com], a design born more out of solid craftmanship than anything else. It's very simplicity was a strenght, allowing it to undertake missions up to five days long, while the american attemt at a longdurationflight in the highly sofisicated Mercury [astronautix.com] lasted just under a day and a half, leaving Gordon Cooper in a virtualy dead capsule (having to eyeball his attitude thru the windown and manualy fire the retros). Granted, one reason the US had to go for sofisication is that their rockets simply couldn't lift as much as russian rockets... but whereas derivatives of the Vostok still flies (as unmanned recoverable satelites), the line that breed the Mercury is dead.
Sofistication is well and good, but many times a less sofisticated but better crafted designs / programs can outperform it. Sofistication for it's own sake is usually not worth the tradeoffs.
Pens versus Pencils (Score:1, Informative)
NASA decided that the astronauts needed a writing utensil to take notes during space missions. NASA spend a large amount of money to develop the zero G ballpoint pen.
The soviets gave the cosmosnauts pencils.
Re:Pens versus Pencils (Score:2)
Re:Pens versus Pencils (Score:5, Informative)
NASA decided that the astronauts needed a writing utensil to take notes during space missions. NASA spend a large amount of money to develop the zero G ballpoint pen.
This is an urban legend [snopes.com].
Re:Craftmanship versus sofistication? (Score:3, Interesting)
I also remember seeing a magazine explaining the construction of an electric razor, and being able to buy all the components it was made of in a shop. Now unfortunately things seem to have "modernized" though, and all the crap that is produced n
Re:Craftmanship versus sofistication? (Score:2)
I used to use lot of Russian-made appliances and hold-house items like you mention. But the quality is crap to the level of quality faked from Hong Kong. Almost anything household items made by Russian was of very low quality compare to stuffs Made in Japan and U.S.A. And that was then, a little bit of 14 years since I have moved to the US.
The funny thing is that now even with a "Made in the U.S.A." label, it does not mean it is of high quality. Many American companies, having to
Re:Craftmanship versus sofistication? (Score:2)
Re:Craftmanship versus sofistication? (Score:2)
or one GA vs another? (Score:4, Insightful)
go nature!
Re:Why stop evolving when fighting? (Score:2)
Re:RTFC ... duh! (Score:2)
Anyway, I'd have to read the rules of the competition carefully to see if that would make any sense. If having two programs running means consuming more resources, then it may decrease the effectiveness of each program. Basically, by the time you figure out which one works "better" you may have already shot yourself in the foot through poor positioning by the "in
Re:Craftmanship versus sofistication? (Score:2)
Re:Craftmanship versus sofistication? (Score:2)
When you're outnumbered, you either win by sophistication or not at all.
Re:Craftmanship versus sofistication? (Score:1)
*sophistication* nagdammit!
Re:Craftmanship versus sofistication? (Score:2)
Re:Craftmanship versus sofistication? (Score:3, Interesting)
Re:Craftmanship versus sofistication? (Score:1)
Full marks for consistency though.....
take heed (Score:2)
Therein lies the lesson. Craftsmanly usually defeats sophisticated. It is pompous to assume otherwise. (And yes, the comparison of the American and Russian space programs bears this out.)
Re:take heed (Score:2)
How do you figure that the russian space program is any better than the American one?
Sheesh, what is it with this story to bring all of the russians out of the woodwork to proclaim the power of their space program?
Content information (Score:3, Informative)
Deja vu? (Score:3, Funny)
Dont that sound awfully familiar [imdb.com]?
You mean... (Score:1, Insightful)
Not to troll, but do you mean you were upset last time because craftsmanly russian spacecrafts (e.g. Soyuz) ended up being cheap and safer than $2B NASA shuttles ?
Remember, how exotic, things may look, the winner will always be one which is conceptually sound, fundametally strong and is architected by experienced engineers.
Re:You mean... (Score:2)
The Soyuz and the Shuttle are 2 completely different spacecrafts designed for 2 completely different purposes. There is no _winner_ nor is there a race (in the sense of who can build the best launch shuttle). The Soyuz may be craftsmanly and we may not have anything comperable, but that's just because we don't want to build anything like that.
Re:You mean... (Score:1)
PRobots or CRobots? (Score:2)
~Berj
Randomization (Score:2)
The reason the russian guy wan was *luck*. Tournements like this should be seeded randomly and played thousands of times. Only then could one player prove to be superior, and even then he would only be superior in his ability to beat up on th
Re:Randomization (Score:1)
(This came to my mind because I remember when Donovan Bailey beat Michael Johnson in some stupid 1 on 1 100m challenge, but what was really stupid was some American being interviewed saying "oh for sure Michael Johnson is the superior athlete and should have won". Granted, she did seem like a funny middle-aged woman who probably had no good reason to
Re:Randomization (Score:2)
My personal bias is that one of the genetic algorithm evolved codes should have won, but the way the tournement was set up it was kind of hard to tell who the real "winner" was.
Speaking of Johnson and Baily, I wonder 20 years from now what kind of blood doping and stimulants we will find they used. One doesn't just cut their 200m times from 19.8
bad programming (Score:3, Informative)
Quicky check at the NASA program and I find a switch statement of 2049 (2^11) parts. It is broken up in switch blocks of 64. This is sad coding on so many different levels. I am not sure how to express my feelings about it.
First let's look at a straight forward way of how to do this....the lookup-table. It is fast (speed is an issue).
Takes up less space (programming space can be an issue).
Easier to read (debugging tricky programs is hard enough without the obfuscation).
And should have been part of your basic programming education.
And this is state of the art coming out of NASA?
I'm impressed our shuttles go UP in the first place (ja, ja...low blow...just kidding ofcourse).
Really, if I see this kind of coding I cringe. Then talk to the person. Then make sure they learn from their mistakes and don't do it again, or they can find themselves a job outside of my team.
Re:bad programming (Score:3, Interesting)
Re:bad programming (Score:2)
Re:bad programming (Score:1)
Genetic programming is often implemented by taking little branches of a program's parse tree and swapping them around. Using a switch statement allows that swapping to occur easily, whereas using a lookup table would not all
Re:bad programming (Score:2)
Remember that, as other mentioned already, the NASA program is the result of a genetic algorithm. It's not NASA doing the coding themselves, the program is the result of several generations of the algorithm being applied.
Any questions? see here: http://www.google.com/search?q=genetic%20algorithm s [google.com]
Re:bad programming (Score:5, Interesting)
People are noting that NASA's program was created using genetic algorithms, but there is nothing preventing the use a data table to store the genetically evolving data. In fact, that might be a much better host because the evolving data is located in a single section of data.
Anyways, the table lookup is NOT necessarily faster than huge switch statement. The table lookup requires the data table to be loaded. If the table is large and has poor reference locality, then your program could end up thrashing the processor cache. The switch statement(s), however, can compute the jumps without loading stuff from the data segment (and flooding the processor cache).
And Linus Torvalds seems to agree with me: http://www.ussg.iu.edu/hypermail/linux/kernel/030
>
> gcc 3.4 will have a __builtin_ctz function which can be used for this.
> It will emit special instructions on CPUs that support it (i386, Alpha
> EV67), and use a lookup table on others, which is very boring, but
> also faster.
Classic mistake. Lookup tables are only faster in benchmarks, they are
almost always slower in real life. You only need to miss in the cache
_once_ on the lookup to lose all the time you won on the previous one
hundred calls.
"Small and simple" is almost always better than the alternatives. I
suspect that's one reason why older versions of gcc often generate code
that actually runs faster than newer versions: the newer versions _look_
like they do a better job, but..
Linus
Re:bad programming (Score:2)
If the switch statement is implemented with a jump table, then that table too must be in cache. If it doesn't use a jump table, but has a series of test/branches, then a missed branch prediction will also give a really nasty performance hit.
Would it be the case that a jump table is more likely to be in the code cache than a lookup table is to be in the data cache?
Re:bad programming (Score:2)
As Sam pointed out, the switch statement does not have to use a jump table. A "computed jump" can be compute to figure out how far to jump in the switch statement body (i.e., to which case label). And the switch statement probably has good code locality, so the code pages are "hot" and kept in the processor cache. Add some help from the processor's branch prediction for the most common switch cases and your code (might) really be flying. The processor's branch prediction is absolutely no help if you are ind
Re:bad programming (Score:1)
Russia won the cold war? (Score:2, Funny)
col^Hde war.
phew.
Programming parallell algorithms are difficult.... (Score:3, Informative)
Multi-threaded applications are less common that one might think. Even those GUI applications that would benefit alot from improved responsivness due to multi-treading avoids it, due to greatly increased complexity.
When the Gang of Four came out with their Design Pattern book, it was a great hit, and very usefull indeed. But design pattern for multi-threaded programming is not that well-know. But some are published, as the link below shows :
http://www.cs.wustl.edu/~schmidt/patterns-ace.ht ml
These things seem like a "cool" idea ... (Score:1)
Of course the human won. (Score:2, Interesting)
This is why AI is not more intellignet than humans, why we haven't found a fast way to factor products of large primes with computers, and why humans can still beat computers at chess.
Computers are good ate one thing. Doing mundane calculations over and over again ad.infinitum. They do this very fast. They cannot, however, compute something that (with enough time) could not be calculated by a human.
Re:Of course the human won. (Score:2)
Genetic programming (loosely speaking) simulates a population of programs that undergo a process of evolution, with those programs which seem to do the best at the task more likely to survive to the next generation. As such, it can be applied to problems where we can easily evaluate how good a heuristic is, but not necessarily know how to construct
They'll all remember this as how SkyNet started!!! (Score:2, Funny)
Site requires Flash? (Score:1)
Artificial life (Score:2)
The approach has been very successful, resulting in a better understanding of complicated topics such as the evolution of complex organs.
Tor
Microsoft Windows (Score:1)
No russian can beat that.
Publicity... (Score:2)
Problem solving AI (Score:1)
If a program can be developed to search for code snippets then test them in a protected environment of its own we might be able to develope a more effective self directing algorythm.
What I am suggesting is like digital DNA but with the ability to search and test new code, then add desired functions to the core.
The real le
Nice quote... (Score:1)
And yet, right above this, their page says 300kb+ connection recommended. Am I the only one who finds the humor in this?
Uh oh! (Score:2)
It's happening!!!
Noooooooooooooo!!!
meh. (Score:2)
Re:meh. (Score:2)
Re:meh. (Score:2)
zerg (Score:2)
Re:wait at second (Score:1)
Re:slashdotted already (Score:1)
Re:slashdotted already (Score:2)
Personally, I found it kinda funny, myself (being the one who originally got modded down).