High-level optimizations
-
Is there any way possible for a computer program to "see" what your code does, and rewrite it to be more efficient? I don't mean unraveling loops and doing the obvious, I mean breaking down the most fundamental mechanism of the code and showing you alternatives that require less code. This type of tool would be extremely useful. I think the best way to do this would be to abstract and break down a program into common functioning points that fit in together mathematically with eachother and can be manipulated mathematically as a whole. An equation of sorts.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
-
Is there any way possible for a computer program to "see" what your code does, and rewrite it to be more efficient? I don't mean unraveling loops and doing the obvious, I mean breaking down the most fundamental mechanism of the code and showing you alternatives that require less code. This type of tool would be extremely useful. I think the best way to do this would be to abstract and break down a program into common functioning points that fit in together mathematically with eachother and can be manipulated mathematically as a whole. An equation of sorts.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
The getting to the original code and parsing it is roughly simple. The part about finding a better way to do it is hard. People have a hard time understanding intent and simplifying other people's code. I have been messing with semantic understanding lately, and capturing semantic patterns is tough.
Opacity, the new Transparency.
-
Is there any way possible for a computer program to "see" what your code does, and rewrite it to be more efficient? I don't mean unraveling loops and doing the obvious, I mean breaking down the most fundamental mechanism of the code and showing you alternatives that require less code. This type of tool would be extremely useful. I think the best way to do this would be to abstract and break down a program into common functioning points that fit in together mathematically with eachother and can be manipulated mathematically as a whole. An equation of sorts.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
The only level on which this is remotely possible, is the level on which .NET can take the same code, and optimise it for the type of processor being used. That is, a way where the code is compiled to something that's intermediate and designed for such optimisation.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Is there any way possible for a computer program to "see" what your code does, and rewrite it to be more efficient? I don't mean unraveling loops and doing the obvious, I mean breaking down the most fundamental mechanism of the code and showing you alternatives that require less code. This type of tool would be extremely useful. I think the best way to do this would be to abstract and break down a program into common functioning points that fit in together mathematically with eachother and can be manipulated mathematically as a whole. An equation of sorts.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
I don't see a program doing this for a long time (probably never*), but one way this can be performed by a human is to re-solve the problem in a different programming language. (*)Most existing "low-level" (and higher-level) optimisations can already solve many problems better than can be written in the source programming language. Regards, Mark Hurd, B.Sc.(Ma.) (Hons.)
-
Is there any way possible for a computer program to "see" what your code does, and rewrite it to be more efficient? I don't mean unraveling loops and doing the obvious, I mean breaking down the most fundamental mechanism of the code and showing you alternatives that require less code. This type of tool would be extremely useful. I think the best way to do this would be to abstract and break down a program into common functioning points that fit in together mathematically with eachother and can be manipulated mathematically as a whole. An equation of sorts.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
CaptainSeeSharp wrote:
Is there any way possible for a computer program to "see" what your code does, and rewrite it to be more efficient?
That's what the optimizer does. :rolleyes:
“Follow your bliss.” – Joseph Campbell
-
Is there any way possible for a computer program to "see" what your code does, and rewrite it to be more efficient? I don't mean unraveling loops and doing the obvious, I mean breaking down the most fundamental mechanism of the code and showing you alternatives that require less code. This type of tool would be extremely useful. I think the best way to do this would be to abstract and break down a program into common functioning points that fit in together mathematically with eachother and can be manipulated mathematically as a whole. An equation of sorts.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
There is a design methdology called Z which attempts to do what you say but from the outset rather than as a reverse engineer. Needless to say it is of accademic interest only. So no, there isnt a way. And this is why the human brain will never be replaced by a machine. Machines just do not have the imnagination to look at a problem, come up with a number of solutions and thenm select the best one.
Morality is indistinguishable from social proscription
-
The only level on which this is remotely possible, is the level on which .NET can take the same code, and optimise it for the type of processor being used. That is, a way where the code is compiled to something that's intermediate and designed for such optimisation.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
There is a design methdology called Z which attempts to do what you say but from the outset rather than as a reverse engineer. Needless to say it is of accademic interest only. So no, there isnt a way. And this is why the human brain will never be replaced by a machine. Machines just do not have the imnagination to look at a problem, come up with a number of solutions and thenm select the best one.
Morality is indistinguishable from social proscription
I disagree with all of you. I see a way for it to be possible, it's just complicated.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
-
I disagree with all of you. I see a way for it to be possible, it's just complicated.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
-
CaptainSeeSharp wrote:
I disagree with all of you. I see a way for it to be possible, it's just complicated.
Will there be a tutorial?
No because it's worth too much money to give away.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]
-
No because it's worth too much money to give away.
Watch the Fall of the Republic (High Quality 2:24:19)[^] Sons Of Liberty - Free Album (They sound very much like Metallica, great lyrics too)[^]