-
Notifications
You must be signed in to change notification settings - Fork 0
/
references.bib
17 lines (17 loc) · 2.08 KB
/
references.bib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@inproceedings{example-cite,
author = {Annus, Tavo and Joram, Philipp},
title = {{Term Search in Rust}},
year = {2024},
isbn = {9798400711039},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3678000.3678210},
doi = {10.1145/3678000.3678210},
abstract = {The Rust programming language offers a rich type system, including sum- and product types. Developer experience is often similar to that of a high-level functional programming language. Yet, it lacks a tool for interactively synthesizing programs based on types; a feature of many functional languages. We devise a general term search algorithm, and integrate it with rust-analyzer, Rust’s official language server, making it usable from any client supporting standard LSP features. It suggests expressions for unfinished parts of a Rust program (as long as their type is known), or offers terms of matching type while typing via autocompletion. We develop the algorithm in three iterations. The first iteration is a backward search, inspired by Agsy, a similar tool for Agda proof assistant. The second iteration reverses the search direction, simplifying the caching of intermediate results. In the final iteration, we implement a tactic-based bidirectional search. This algorithm can synthesize terms in many more situations than the previous iterations, without a significant decrease in performance. To evaluate the performance of our algorithm, we run it on 155 popular open-source Rust libraries. We delete parts of their source code, creating holes, and let the algorithm re-synthesize the missing code. We measure how many holes the algorithm can fill and how often it suggests the original code. We have upstreamed our code, and term search is available as part of the official rust-analyzer distribution starting from v0.3.1850.},
booktitle = {Proceedings of the 9th ACM SIGPLAN International Workshop on Type-Driven Development},
pages = {62–73},
numpages = {12},
keywords = {Rust, rust-analyzer, term search, type-driven development},
location = {Milan, Italy},
series = {TyDe 2024}
}