LooPy: interactive program synthesis with control structures
LooPy: interactive program synthesis with control structures
复制标题
LooPy:具有控制结构的交互式程序合成
DOI:
10.1145/3485530
复制
发表时间:
2021
影响因子:
--
通讯作者:
Polikarpova, Nadia
中科院分区:
文献类型:
--
作者:
Ferdowsifard, Kasra;Barke, Shraddha;Peleg, Hila;Lerner, Sorin;Polikarpova, Nadia
One vision for program synthesis, and specifically for programming by example (PBE), is an interactive programmer's assistant, integrated into the development environment. To make program synthesis practical for interactive use, prior work on Small-Step Live PBE has proposed to limit the scope of synthesis to small code snippets, and enable the users to provide local specifications for those snippets. This paradigm, however, does not work well in the presence of loops. We present LooPy, a synthesizer integrated into a live programming environment, which extends Small-Step Live PBE to work inside loops and scales it up to synthesize larger code snippets, while remaining fast enough for interactive use. To allow users to effectively provide examples at various loop iterations, even when the loop body is incomplete, LooPy makes use oflive execution, a technique that leverages the programmer as an oracle to step over incomplete parts of the loop. To enable synthesis of loop bodies at interactive speeds, LooPy introducesIntermediate State Graph, a new data structure, which compactly represents a large space of code snippets composed of multiple assignment statements and conditionals. We evaluate LooPy empirically using benchmarks from competitive programming and previous synthesizers, and show that it can solve a wide variety of synthesis tasks at interactive speeds. We also perform a small qualitative user study which shows that LooPy'sblock-levelspecifications are easy for programmers to provide.
登录
查看更多内容
DOI:
10.4230/darts.6.2.16
发表时间:
2020
期刊:
2016 IEEE 32nd International Conference on Data Engineering (ICDE)
影响因子:
--
作者:
Hila Peleg;N. Polikarpova
通讯作者:
N. Polikarpova
影响因子:
--
作者:
Yu Feng;R. Martins;O. Bastani;Işıl Dillig
通讯作者:
Yu Feng;R. Martins;O. Bastani;Işıl Dillig
影响因子:
1.8
作者:
Bavishi, Rohan;Lemieux, Caroline;Stoica, Ion
通讯作者:
Stoica, Ion
DOI:
10.1145/2814228.2814235
发表时间:
2015
期刊:
2015 ACM International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software (Onward!)
影响因子:
--
作者:
Shaon Barman;Rastislav Bodík;S. Chandra;Emina Torlak;A. Bhattacharya;D. Culler
通讯作者:
D. Culler
DOI:
--
发表时间:
2020
期刊:
International Conference on Human Factors in Computing Systems
影响因子:
--
作者:
Sorin Lerner
通讯作者:
Sorin Lerner