First of all, I hate the analogy. I don't really think it makes sense, and I thought I was reading an Onion article at first.
Of note:
While we do not claim automated transplantation is now a solved problem, our results are encouraging: we report that in 12 of 15 experiments, involving 5 donors and 3 hosts (all popular real-world systems), we successfully autotransplanted new functionality and passed all regression tests.
So, that said, it seems that this relies on two key things: annotation of "donor" code (think docstrings, information about every parameter, etc. - I'm not exactly sure what it implies), and the "donor" having a test suite. They analyze the "donor" code and its sort of metadata, and it seems, take random bits and pieces from that code and put it together, trying different combinations of bits of it until all of the unit tests pass.
I think, anyway. That's what I could gleam from a quick read of the overview.
This doesn't seem more useful than dynamic linking or existing solutions like "just provide the source code for the library", so I think I'm probably misreading it.
It speaks nothing in regard to the optimization/quality of the translated code.
I think this is the most important part of this.
This process is nothing if code can't be maintained or understood. Although, I guess we could just let 'MuScalpel' create spaghetti code on top of spaghetti code.
About my take on it as well. However, I'm currently reading Nick Bostrom's Superintelligence and what jumped to mind for me was that this really sounded like some sort of genetic algorithm that plays assembly games with source code that's had some meta data added to it, that probably results in something more geared for a machine to read than a human. Sort of a potentially cleaner implementation of polymorphic code.
14
u/aftli Aug 11 '15
I had the same thought. Here's the overview.
First of all, I hate the analogy. I don't really think it makes sense, and I thought I was reading an Onion article at first.
Of note:
So, that said, it seems that this relies on two key things: annotation of "donor" code (think docstrings, information about every parameter, etc. - I'm not exactly sure what it implies), and the "donor" having a test suite. They analyze the "donor" code and its sort of metadata, and it seems, take random bits and pieces from that code and put it together, trying different combinations of bits of it until all of the unit tests pass.
I think, anyway. That's what I could gleam from a quick read of the overview.
This doesn't seem more useful than dynamic linking or existing solutions like "just provide the source code for the library", so I think I'm probably misreading it.