We present a compiler for a concurrent programming language, which utilizes linear typing to create a safer promise abstraction. The compiler is implemented in OCaml and produces source-level Java code. We provide example programs to demonstrate use of the language, as well as translations of incorrect JavaScript code from StackOverflow to showcase the ability of our language to catch many classes of bugs. Finally, we provide a minimal runtime environment to allow the execution of compiled programs.
@Article{rau_et_al:DARTS.7.2.15, author = {Rau, Ohad and Voss, Caleb and Sarkar, Vivek}, title = {{Linear Promises: Towards Safer Concurrent Programming (Artifact)}}, pages = {15:1--15:3}, journal = {Dagstuhl Artifacts Series}, ISSN = {2509-8195}, year = {2021}, volume = {7}, number = {2}, editor = {Rau, Ohad and Voss, Caleb and Sarkar, Vivek}, publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik}, address = {Dagstuhl, Germany}, URL = {https://drops.dagstuhl.de/entities/document/10.4230/DARTS.7.2.15}, URN = {urn:nbn:de:0030-drops-140394}, doi = {10.4230/DARTS.7.2.15}, annote = {Keywords: promises, type systems, linear typing, operational semantics, concurrency} }
f6ecd59c832dbe016d2bf78256bc96d9
(Get MD5 Sum)
Feedback for Dagstuhl Publishing