Abstract

This paper presents a new programming paradigm named Notification-Oriented Paradigm (NOP) and analyses the performance aspects of NOP programs by means of an experiment. NOP provides a new manner to conceive, structure, and execute software, which would allow better performance, causal-knowledge organization, and decoupling than standard solutions based upon usual paradigms. These paradigms are essentially Imperative Paradigm (IP) and Declarative Paradigm (DP). In short, DP solutions are considered easier to use than IP solutions due to the concept of high-level programming. However, they are considered slower in execution and less flexible in development. Anyway, both paradigms present similar drawbacks such as redundant causal-evaluation and strongly coupled entities, which decrease the software performance and the processing distribution feasibility. These problems exist due to an orientation to a monolithic inference mechanism based upon sequential evaluation by searching on passive computational entities. NOP proposes another way to structure software and make its inferences, which is based upon small, collaborative, and decoupled computational entities whose interaction happens through precise notifications. In this context, this paper presents a quantitative comparison between two equivalent implementations of a computer game simulator (Pacman simulator), one developed according to the principles of Object-Oriented Paradigm (OOP/IP) in C++ and other developed according to the principles of NOP. The results obtained from the experiments demonstrate, however, a quite lower performance of NOP implementation. This happened because NOP applications are still developed using a framework based on C++. Besides, the paper shows that optimizations in the NOP framework improve NOP program performance, thereby evidencing the necessity of developing a NOP language/compiler.

Highlights

  • This section mentions the drawbacks of the main usual programming paradigms, introduces a new paradigm, and presents the paper objectives.1.1

  • This paper presents a quantitative comparison between two equivalent implementations of a computer game simulator (Pacman simulator), one developed according to the principles of Object-Oriented Paradigm (OOP/Imperative Programming (IP)) in C++ and other developed according to the principles of Notification Oriented Paradigm (NOP)

  • In Declarative Programming, the variable states are dealt in a Fact Base and the causal knowledge in a Causal Base (Rule Base in Rule Based System (RBS)), which are automatically matched by means of an Inference Engine (IE) [1,24,47]

Read more

Summary

A Game Comparative Study

Received July 13th, 2012; revised August 25th, 2012; accepted September 8th, 2012

Review Stage
Imperative and Declarative Programming
Paper Context and Objective
Background
Declarative Programming Issues
Other Approach Drawbacks
Enhancement in Programming
Comparative Study
Pacman Game Simulator
Features of Implementation
NOP Structural View
NOP Inference Process
NOP Performance
NOP—Decoupling and Distribution
NOP Originality
NOP Implementation
A Performance Study
Paper New Experiment
Structural Modeling—Class Diagram
Computational Experiments
Computational Experiments and Results
NOP Essence
NOP Features

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.