Le and Gulwani's paper does cite Little, but the refutation is a bit weak.
> Little and Miller propose a code completion tool that synthesizes the most likely Java expression in a code context from a set of keywords [23]. Smart-Synth is different, in that it synthesizes a complete script and does not require extra contextual information.
From the video, a "complete script" appears to be 1 or 2 simple expressions. And not requiring contextual information sounds like it can't take advantage of contextual information.
You put in a query and get out some code. Concrete code not connected to the query anymore. The code doesn't shift out from under you later, if that's what you're implying.
Why wouldn't it be used in a "proper piece of code"? You ask Visual Studio/XCode/Eclipse for something and it gives you back a snippet that you can use as a starting point.
oh absolutely, if they can get it general enough to do that. If they manage to include this in powershell (since it's MS), they could have the worlds greatest command line.
"Get all current running processes, select the ones that use over 5% CPU, and display them to me sorted descending by CPU usage"
More verbose than the normal, but damn it would make things easier for the non-initiated.
The danger is that you wind up with another AppleScript - something that might read more easily for the non-initiated, but is no easier to write, because it only accepts one particular finicky subset of natural language while dishonestly implying that it'll magically understand all of it.
I would hope that Microsoft is smarter and has learned from those mistakes. It does seem to be their intention to do it with full natural language processing. We'll have to wait and see.
Pretty neat. I noticed something a bit off about the "tint a random photo blue" example around 2:22. Two of the three search results are fine, but the second search result is
pics := media -> pictures
pic := pics -> random
pic -> tint (colors -> sepia)
c := colors -> blue
All the components are there but not in the right order -- it still tints with the default color.
I wouldn't say "Tint a random photo sepia, and then set an arbitrary unrelated variable to blue" is a possible interpretation of the text "Tint a random photo blue".
This system could be used together with speech recognition (Siri, Cortana, etc. personal agent) to automate tasks and write little apps on a mobile device.
Interesting research. Of course, you could always hack the Home button to act as a Command key and hold the device in landscape orientation without having to give up a piece of the screen.
Le and Gulwani's paper does cite Little, but the refutation is a bit weak.
> Little and Miller propose a code completion tool that synthesizes the most likely Java expression in a code context from a set of keywords [23]. Smart-Synth is different, in that it synthesizes a complete script and does not require extra contextual information.
From the video, a "complete script" appears to be 1 or 2 simple expressions. And not requiring contextual information sounds like it can't take advantage of contextual information.