Shrek:a Dynamic Object-Oriented Programming Language

曹璟,徐宝文,周毓明
DOI: https://doi.org/10.3969/j.issn.1003-7985.2009.01.008
2009-01-01
Abstract:From a perspective of theoretical study, there are some faults in the models of the existing object-oriented programming languages. For example, C++ does not support metaclasses, the primitive types of Java and C are not objects, etc. So, this paper designs a programming language, Shrek, which integrates many language features and constructions in a compact and consistent model. The Shrek language is a class-based purely object-oriented language. It has a dynamical strong type system, and adopts a single-inheritance mechanism with Mixin as its complement. It has a consistent class instantiation and inheritance structure and the ability of intercessive structural computational reflection, which enables it to support safe metaclass programming. It also supports multi-thread programming and automatic garbage collection, and enforces its expressive power by adopting a native method mechanism. The prototype system of the Shrek language is implemented and anticipated design goals are achieved.
What problem does this paper attempt to address?