Researcher profile

David Cao

David Cao contributes to research discovery and scholarly infrastructure.

ResearcherAffiliation not importedOpen to collaborate

Trust snapshot

Quick read

Trust 13 - UnverifiedVerification L1Unclaimed author
2works
0followers
3topics
4close collaborators

Actions

Decide how to stay connected

Follow researcher0

Identity and collaboration

How to connect with this researcher

Claiming links this public author record to a researcher profile and unlocks direct collaboration workflows.

Log in to claim

Direct collaboration

Open a focused conversation when the fit is right

Claim this author entity first to unlock direct invitations.

Research graph

See the researcher in context

Open full explorer

Inspect adjacent work, topics, institutions and collaborators without jumping out to a separate graph page.

Building this graph slice

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.