Research indexJournal article
Fluent Session Programming in C#
Kimura, Imai
Electronic Proceedings in Theoretical Computer Science1 Apr 2020Open access
NobleIDark:/48914/w1/20260524/244EF538DOI10.4204/eptcs.314.6
Fluent Session Programming in C#
Kimura, Imai · Electronic Proceedings in Theoretical Computer Science · 2020
NobleIDark:/48914/w1/20260524/244EF538DOI10.4204/eptcs.314.6
Abstract
We propose SessionC#, a lightweight session typed library for safe concurrent/distributed programming. The key features are (1) the improved fluent interface which enables writing communication in chained method calls, by exploiting C#'s out variables, and (2) amalgamation of session delegation with async/await, which materialises session cancellation in a limited form, which we call session intervention. We show the effectiveness of our proposal via a Bitcoin miner application.