We present Choral, the first language for programming choreographies (multiparty protocols) that builds on top of mainstream programming abstractions: in Choral, choreographies are objects. Given a choreography that defines interactions among some roles (Alice, Bob, etc.), an implementation for each role in the choreography is automatically generated by a compiler. These implementations are libraries in pure Java, which developers can modularly compose in their own programs to participate correctly in choreographies.
翻译:我们展示了以主流编程抽象学为基础的编程舞蹈(多党协议)的第一语言《Choral》:在《Choral》中,编程是目标。鉴于舞蹈界定了某些角色(爱丽丝、鲍勃等)之间的相互作用,编程过程中每个角色的落实由编程者自动产生。这些作品是纯爪哇的图书馆,开发者可以在自己的编程中以模块形式组成,以便正确参与编程。