Kasra Ferdowsi

Kasra Ferdowsi

Auto-generated profile, based on publicly available information

Kasra Ferdowsi

Computer Science & Engineering, UC San Diego, United States

Research Focus & Metrics

Academic Career Length

6Years (2021-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
11 May 2024
Verified
Conference Paper
Open access
KFKasra Ferdowsi
Kasra Ferdowsi
RHRuanqianqian (Lisa) Huang
Ruanqianqian (Lisa) Huang
MJMichael B. James
Michael B. James
NPNadia Polikarpova
Nadia Polikarpova
SLSorin Lerner
Sorin Lerner
AI-powered programming assistants are increasingly gaining popularity, with GitHub Copilot alone used by over a million developers worldwide. These tools are far from perfect, however, producing code suggestions that may be incorrect in subtle ways. As a result, developers face a new challenge: validating AI’s suggestions. This paper explores whether Live Programming (LP), a continuous display of a program’s runtime values, can help address this challenge. To answer this question, we built a Python editor that combines an AI-powered programming assistant with an existing LP environment. Using this environment in a between-subjects study (N = 17), we found that by lowering the cost of validation by execution, LP can mitigate over- and under-reliance on AI-generated programs and reduce the cognitive load of validation for certain types of tasks.

15 October 2021 in Proceedings of the ACM on Programming Languages
Verified
Journal Article
Open access
KFKasra Ferdowsifard
Kasra Ferdowsifard
SBShraddha Barke
Shraddha Barke
HPHila Peleg
Hila Peleg
SLSorin Lerner
Sorin Lerner
NPNadia Polikarpova
Nadia Polikarpova
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 of live 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 introduces Intermediate 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's block-level specifications are easy for programmers to provide.

23 February 2024 in arXiv
Verified
Preprint
Open access
PDF file
KFKasra Ferdowsi
Kasra Ferdowsi
RHRuanqianqian Huang
Ruanqianqian Huang
MJMichael B. James
Michael B. James
NPNadia Polikarpova
Nadia Polikarpova
SLSorin Lerner
Sorin Lerner
AI-powered programming assistants are increasingly gaining popularity, with GitHub Copilot alone used by over a million developers worldwide. These tools are far from perfect, however, producing code suggestions that may be incorrect in subtle ways. As a result, developers face a new challenge: validating AI's suggestions. This paper explores whether Live Programming (LP), a continuous display of a program's runtime values, can help address this challenge. To answer this question, we built a Python editor that combines an AI-powered programming assistant with an existing LP environment. Using this environment in a between-subjects study (N=17), we found that by lowering the cost of validation by execution, LP can mitigate over- and under-reliance on AI-generated programs and reduce the cognitive load of validation for certain types of tasks.