MobilityReadingGroup

π-calculus, Session Types research at Imperial College

Safe Parallel Programming with Session Java
Nicholas NG , Nobuko YOSHIDA , Olivier PERNET , Raymond HU , Yiannos KRYFTIS
13th International Conference on Coordination Models and Languages (COORDINATION 2011) p. 110 - 126

The session-typed programming language Session Java (SJ) has proved to be an effective tool for distributed programming, promoting structured programming for communications and compile-time safety.\r\n\r\nThis paper investigates the use of SJ for session-typed parallel programming, and introduces new language primitives for chained iteration and multi-channel communication. These primitives allow the efficient coordination of parallel computation across multiple processes, thus enabling SJ to express the complex communication topologies often used by parallel algorithms. We demonstrate that the new primitives yield clearer and safer code for pipeline, ring and mesh topologies through implementations of representative parallel algorithms.\r\n\r\nWe then present a semantics and session typing system including the new primitives, and prove type soundness and deadlock-freedom for our implementations. The benchmark results show that the new SJ is substantially faster than the original SJ and performs competitively against MPJ Express used as reference.”

@inproceedings{NYPHK2011,
  author = {Nicholas Ng and Nobuko Yoshida and Olivier Pernet and Raymond Hu and Yiannos Kryftis},
  title = {{Safe Parallel Programming with Session Java}},
  booktitle = {13th International Conference on Coordination Models and Languages},
  series = {LNCS},
  volume = {6721},
  pages = {110--126},
  publisher = {Springer},
  year = 2011
}
@inproceedings{NYPHK2011,
  author = {Nicholas Ng and Nobuko Yoshida and Olivier Pernet and Raymond Hu and Yiannos Kryftis},
  title = {{Safe Parallel Programming with Session Java}},
  booktitle = {13th International Conference on Coordination Models and Languages},
  series = {LNCS},
  volume = {6721},
  pages = {110--126},
  publisher = {Springer},
  doi = "10.1007/978-3-642-21464-6_8",
  year = 2011
}