Jump to content

  • Log In with Google      Sign In   
  • Create Account


Auto-threading Compiler


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 kuramayoko10   Members   -  Reputation: 383

Posted 18 December 2012 - 10:27 AM

I know people in this forums like to talk about compilers and paralelism.

In recent news, some folks at Microsoft Research published a paper about an auto-threading compiler. Yes, it should be able to analyze a single-threaded code and determine what parts are safe to run in parallel.

Research on this field is happening for some time now, but this is the most recent (promising) news I've seen so far.
Programming is an art. Game programming is a masterpiece!

Sponsor:

#2 slicer4ever   Crossbones+   -  Reputation: 2598

Posted 18 December 2012 - 12:18 PM

this is a pretty awesome.
Check out https://www.facebook.com/LiquidGames for some great games made by me on the Playstation Mobile market.

#3 Shannon Barber   Moderators   -  Reputation: 1373

Posted 18 December 2012 - 08:41 PM

It's interesting but the problem with parallelism is that you have to design the entire program and entire code-base around it.
You can't add it in afterwards and expect it to work well.

So this compiler would make it easier to write new threaded libraries but it won't do much for existing code.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

#4 frob   Moderators   -  Reputation: 16138

Posted 19 December 2012 - 09:04 AM

Interesting paper.

They needed to add a few keywords (readable, writable, immutable, isolated, consume). They have several logistical restrictions that make it impossible to add to C++ as an extension, but keep it possible to add to C#.

I find section 6.6 of the paper the most interesting section. Just like adding const correctness to a program helps you discover various types of bugs, when the researchers started specifying a readable/writable intent they similarly discovered software defects.

It still has the issues that several other keywords (restrict, const, etc) face: It is up to the programmer to add it; the program runs just fine without it; and if they aren't added the compiler will silently be unable to take the optimization.

They've still got some serious bugs to work out, but I can imagine this getting added to C# around 2016 or so.
Check out my personal indie blog at bryanwagstaff.com.

#5 Eelco   Members   -  Reputation: 244

Posted 22 December 2012 - 02:59 PM

It does not appear conceptually different from the stuff functional language guys have been talking about for years.

 

However, if ms throws its weight behind it and actually delivers on these promises, thatd be awesome.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS