Source author record

David Cao

David Cao appears in the imported research catalog. Authorship, coauthor and topic links are available while profile ownership is still unclaimed.

ResearcherUnclaimed source record

Catalog footprint

What is connected

2works
3topics
4close collaborators

Actions

Connect this record

Log in to claim

Research graph

See the researcher in context

Open full explorer

Inspect adjacent papers, topics, institutions and collaborators without losing the researcher page.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Published work

2 published item(s)

preprint2022arXiv

Type-Directed Program Synthesis for RESTful APIs

With the rise of software-as-a-service and microservice architectures, RESTful APIs are now ubiquitous in mobile and web applications. A service can have tens or hundreds of API methods, making it a challenge for programmers to find the right combination of methods to solve their task. We present APIphany, a component-based synthesizer for programs that compose calls to RESTful APIs. The main innovation behind APIphany is the use of precise semantic types, both to specify user intent and to direct the search. APIphany contributes three novel mechanisms to overcome challenges in adapting component-based synthesis to the REST domain: (1) a type inference algorithm for augmenting REST specifications with semantic types; (2) an efficient synthesis technique for "wrangling" semi-structured data, which is commonly required in working with RESTful APIs; and (3) a new form of simulated execution to avoid executing APIs calls during synthesis. We evaluate APIphany on three real-world APIs and 32 tasks extracted from GitHub repositories and StackOverflow. In our experiments, APIphany found correct solutions to 29 tasks, with 23 of them reported among top ten synthesis results.

preprint2020arXiv

Intensity equations for birefringent spin lasers

Semiconductor spin lasers are distinguished from their conventional counterparts by the presence of spin-polarized carriers. The transfer of angular momentum of the spin-polarized carriers to photons provides important opportunities for the operation of lasers. With the injection of spin-polarized carriers, which lead to the circularly polarized light, the polarization of the emitted light can be changed an order of magnitude faster than its intensity. This ultrafast operation of spin lasers relies on a large birefringence, usually viewed as detrimental in spin and conventional lasers. We introduce a transparent description of spin lasers using intensity equations, which elucidate the influence of birefringence on the intensity and polarization modulation of lasers. While intensity modulation is independent of birefringence, for polarization modulation an increase in birefringence directly increases the resonant frequency. Our results for dynamical operation of lasers provide a guide for their spin-dependent response and spintronic applications beyond magnetoresistance.