GPCE Generative Programming and Component Engineering
Link to Published Version
GPCE '10 The ninth international conference on Generative programming and component engineering
Oct. 10-13, 2010
Eindhoven, The Netherlands
Writing correct and efficient concurrent programs still remains a challenge. Explicit concurrency is difficult, error prone, and creates code which is hard to maintain and debug. This type of concurrency also treats modular program design and concurrency as separate goals, where modularity often suffers. To solve these problems, we are designing a new language that we call Panini. In this paper, we focus on Panini's asynchronous, typed events which reconcile the modularity goal promoted by the implicit invocation design style with the concurrency goal of exposing potential concurrency between the execution of subjects and observers.
Since modularity is improved and concurrency is implicit in Panini, programs are easier to reason about and maintain. The language incorporates a static analysis to determine potential conflicts between handlers and a dynamic analysis which uses the conflict information to determine a safe order for handler invocation. This mechanism avoids races and deadlocks entirely, yielding programs with a guaranteed deterministic semantics. To evaluate our language design and implementation we show several examples of its usage as well as an empirical study of program performance. We found that not only is developing and understanding Panini programs significantly easier compared to standard concurrent object-oriented programs, butt also performance of Panini programs is comparable to their equivalent hand-tuned versions written using Java's fork-join framework.
© ACM, 2010. This is the author's version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in ACM Sigplan Notices, vol. 46, no. 2, pp. 63-72. ACM, 2010. https://doi.org/10.1145/1942788.1868304
Association for Computing Machinery
Long, Yuheng; Mooney, Sean L.; Sondag, Tyler; and Rajan, Hridesh, "Implicit invocation meets safe, implicit concurrency" (2011). Computer Science Conference Presentations, Posters and Proceedings. 40.