کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
437933 690210 2009 26 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Amalgamating sessions and methods in object-oriented languages with generics
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Amalgamating sessions and methods in object-oriented languages with generics
چکیده انگلیسی

We suggest an amalgamation of communication-based programming (centered on sessions) and object-oriented programming, whereby sessions between concurrent threads are amalgamated with methods. In our proposal, threads consist of the execution of session bodies on objects and communicate with each other by asynchronously sending/receiving objects on channels. The response to a session request is based on the name of the request and the class of the object receiving the request. The decision of how to continue a session is based on the class of the object sent/received. Sessions can be delegated to other sessions, although sessions themselves are not first class objects.We demonstrate our ideas through a core language with generic types, , and an example. We then formalize a small calculus, , and prove subject reduction and progress. The latter property is notoriously difficult to achieve in concurrent calculi.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Theoretical Computer Science - Volume 410, Issues 2–3, 6 February 2009, Pages 142-167