کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
549824 872428 2014 21 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
A hybrid class- and prototype-based object model to support language-neutral structural intercession
ترجمه فارسی عنوان
یک مدل شیء مبتنی بر مدل ترکیبی و متشکل از نمونه اولیه برای حمایت از شکنجه ساختاری بی طرفانه زبان
کلمات کلیدی
شکنجه ساختاری، اردک تایپ کردن، مدل شیء مبتنی بر نمونه اولیه، بازتاب، ماشین مجازی، زبان های پویا
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر تعامل انسان و کامپیوتر
چکیده انگلیسی


• A hybrid class- and prototype-based object model to support structural intercession.
• Structural intercession is provided for any object or class.
• A prior extension of the .Net platform was modified to include the proposed model.
• It shows the best average performance compared to 9 widespread implementations.
• Our platform provides a significant performance improvement compared to the DLR.

ContextDynamic languages have turned out to be suitable for developing specific applications where runtime adaptability is an important issue. Although .Net and Java platforms have gradually incorporated features to improve their support of dynamic languages, they do not provide intercession for every object or class. This limitation is mainly caused by the rigid class-based object model these platforms implement, in contrast to the flexible prototype-based model used by most dynamic languages.ObjectiveOur approach is to provide intercession for any object or class by defining a hybrid class- and prototype-based object model that efficiently incorporates structural intercession into the object model implemented by the widespread .Net and Java platforms.MethodIn a previous work, we developed and evaluated an extension of a shared-source implementation of the .Net platform. In this work, we define the formal semantics of the proposed reflective model, and modify the existing implementation to include the hybrid model. Finally, we assess its runtime performance and memory consumption, comparing it to existing approaches.ResultsOur platform shows a competitive runtime performance compared to 9 widespread systems. On average, it performs 73% and 61% better than the second fastest system for short- and long-running applications, respectively. Besides, it is the JIT-compiler approach that consumes less average memory. The proposed approach of including a hybrid object-model into the virtual machine involves a 444% performance improvement (and 65% less memory consumption) compared to the existing alternative of creating an extra software layer (the DLR). When none of the new features are used, our platform requires 12% more execution time and 13% more memory than the original .Net implementation.ConclusionOur proposed hybrid class- and prototype-based object model supports structural intercession for any object or class. It can be included in existing JIT-compiler class-based platforms to support common dynamic languages, providing competitive runtime performance and low memory consumption.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Information and Software Technology - Volume 56, Issue 2, February 2014, Pages 199–219
نویسندگان
, , ,