Abstract
We present a library for specifying session types implemented in Rust, and discuss practical use cases through examples and demonstrate how session types may be used in a large-scale application. Specifically we adapt parts of the ad-hoc communication patterns in the Servo browser engine to use session typed channels. Session types provide a protocol abstraction, expanding on traditional typed communication channels, to ensure that communication takes place according to a specified protocol. Thus, the library allows us to provide compile-time guarantees of adherence to a specific protocol without incurring significant run-time penalties.
Originalsprog | Engelsk |
---|---|
Titel | Proceedings of the 11th ACM SIGPLAN Workshop on Generic Programming : WGP 2015 |
Antal sider | 10 |
Forlag | Association for Computing Machinery |
Publikationsdato | 30 aug. 2015 |
Sider | 13-22 |
ISBN (Trykt) | 978-1-4503-3810-3 |
DOI | |
Status | Udgivet - 30 aug. 2015 |
Begivenhed | ACM SIGPLAN Workshop on Generic Programming 2015 - Vancouver, British Columbia, Canada Varighed: 31 aug. 2015 → 2 sep. 2015 Konferencens nummer: 11 |
Konference
Konference | ACM SIGPLAN Workshop on Generic Programming 2015 |
---|---|
Nummer | 11 |
Land/Område | Canada |
By | Vancouver, British Columbia |
Periode | 31/08/2015 → 02/09/2015 |
Emneord
- Rust, Session types, concurrency, generic types