Concept model and realization of object orientied system with metaprogramming

The purpose of the research is to develop a conceptual model of an object oriented system and implement it using a functional language with metaprogramming support. Methods. A conceptual model of an object oriented system was developed based on a dynamic object system with message passing and dynamic dispatch. The developed object oriented system includes functions for creating and deleting classes, creating and deleting object instances of a class, functions for working with object properties, functions for adding methods to a class and passing messages. Inheritance is also possible, when a child class will have the properties of the parent class and its own properties. Results. The object oriented system was implemented using a set of macros and helper functions. The basic data structure was a hash table with key access capabilities, which was also implemented using macros. When a class is created, an instance constructor is automatically generated, setting the initial values of the object’s fields. Inheritance is implemented as the inclusion of fields of a parent class in a child object. Polymorphism is implemented as dynamic dispatch: when processing a message, a handler method is searched. The resulting object oriented system, together with the hash table module, occupies 97 lines. Conclusion. As a result of the work, a conceptual model of an object oriented system was created and implemented, which includes the main functions of the object oriented programming paradigm. It has been shown that macros can be used to create a compact object oriented system without the need to add any new functions or capabilities to the functional language interpreter.

Authors

Institutions

Publication Details

Journal
Proceedings of the Southwest State University Series IT Management Computer Science Computer Engineering Medical Equipment Engineering
Published
2024-11-15
DOI
https://doi.org/10.21869/2223-1536-2024-14-3-223-237
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Concept model and realization of object orientied system with metaprogramming

А. А. Chaplygin
Proceedings of the Southwest State University Series IT Management Computer Science Computer Engineering Medical Equipment Engineering
Logic, programming, and type systems
article

Concept model and realization of object orientied system with metaprogramming

А. А. Chaplygin
article en

Abstract

The purpose of the research is to develop a conceptual model of an object oriented system and implement it using a functional language with metaprogramming support. Methods. A conceptual model of an object oriented system was developed based on a dynamic object system with message passing and dynamic dispatch. The developed object oriented system includes functions for creating and deleting classes, creating and deleting object instances of a class, functions for working with object properties, functions for adding methods to a class and passing messages. Inheritance is also possible, when a child class will have the properties of the parent class and its own properties. Results. The object oriented system was implemented using a set of macros and helper functions. The basic data structure was a hash table with key access capabilities, which was also implemented using macros. When a class is created, an instance constructor is automatically generated, setting the initial values of the object’s fields. Inheritance is implemented as the inclusion of fields of a parent class in a child object. Polymorphism is implemented as dynamic dispatch: when processing a message, a handler method is searched. The resulting object oriented system, together with the hash table module, occupies 97 lines. Conclusion. As a result of the work, a conceptual model of an object oriented system was created and implemented, which includes the main functions of the object oriented programming paradigm. It has been shown that macros can be used to create a compact object oriented system without the need to add any new functions or capabilities to the functional language interpreter.

Proceedings of the Southwest State University Series IT Management Computer Science Computer Engineering Medical Equipment EngineeringVol. 14(3)
Southwest Minnesota State University (US)
Reduced inequalities
Openalex Percentile: Top 82%
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Concept model and realization of object orientied system with metaprogramming — А. А. Chaplygin · Proceedings of the Southwest State University Series IT Management Computer Science Computer Engineering Medical Equipment Engineering (2024) | TGRS Research Map | TGRS