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.
Original language | English |
---|---|
Title of host publication | Proceedings of the 11th ACM SIGPLAN Workshop on Generic Programming : WGP 2015 |
Number of pages | 10 |
Publisher | Association for Computing Machinery |
Publication date | 30 Aug 2015 |
Pages | 13-22 |
ISBN (Print) | 978-1-4503-3810-3 |
DOIs | |
Publication status | Published - 30 Aug 2015 |
Event | ACM SIGPLAN Workshop on Generic Programming 2015 - Vancouver, British Columbia, Canada Duration: 31 Aug 2015 → 2 Sept 2015 Conference number: 11 |
Conference
Conference | ACM SIGPLAN Workshop on Generic Programming 2015 |
---|---|
Number | 11 |
Country/Territory | Canada |
City | Vancouver, British Columbia |
Period | 31/08/2015 → 02/09/2015 |