logo

Report on Comparative Programming Language 2022

   

Added on  2022-09-16

12 Pages3489 Words38 Views
Running head: COMPARATIVE PROGRAMMING LANGUAGE
COMPARATIVE PROGRAMMING LANGUAGE
Name of the Student
Name of the University
Author Note
Report on Comparative Programming Language 2022_1
1COMPARATIVE PROGRAMMING LANGUAGE
Introduction
Banking encompasses a number of areas that includes aspects of business, finance and the
relation with the customer. Programming languages are created to do things in easier ways.
There are large number of programming languages that have been designed and implemented
for a particular problem domain. The programming languages are made with a set of
compromises, designs and decisions. There are different types of programming languages
such as object oriented, functional, procedural and logical programming languages. These
programming languages have different features such as management of memory, scoping,
features, abstraction, creation of interfaces and many more
The main aim of this report is to design a language for the dominion of banking. The
programming language should have features such as the efficiency, speed and robustness.
The main aim of this language is to do the tasks of banking efficiently without any
obstruction. The language for the dominion of banking should consist of the following
features that will; help the banking domain in performing their functions. The performance
of the language should be fast. The programming language for the domain of banking should
use precision data types and structures. The design and the implementation of the
programming language should be flexible. Last but not the least, the programming language
for the domain of banking should be robust as the domain is very critical. The security of the
programming language should also be good so that no one gets to know the source code of
the programs. The name of the programming language is COCONUT.
Interpretation and compilation methods
A compiler is a program that translates computer code that is scripted in one programming
language into another that high-level code into machine code. There are various types of
compilers. Compilation is the first step of executing a program. A high-level compiler is
Report on Comparative Programming Language 2022_2
2COMPARATIVE PROGRAMMING LANGUAGE
needed for the compilation of the programs for the problem domain of banking, as the
programs are critical. The programming language, which can be called as COCONUT,
should have a compiler and not an interpreter. The reason for choosing compiler over an
interpreter, as compilers are faster than interpreter is. The code that will be written in
COCONUT will be critical. The operations of the compiler are lexical analysis, analysis of
semantics, parsing, optimization of code, and generation of code. The advantage of using a
compiler in COCONUT is that the time of execution of code is less as the program code is
translated into machine code. Another advantage of compiler is that the compiler can see the
entire code and perform a lot of optimizations that make the code run faster but an interpreter
sees the code line by line and the optimizations of the code are not as robust as the compilers.
A high-level compiler can be used for executing the codes in COCONUT. High-level
compilers such as source-to-source compilers or just-in-time compilers or a byte code
compiler can be used for executing the program codes in COCONUT.
Memory Management and Scoping features
The programming language COCONUT should manage the memory itself and it does not
need the intervention of the programmer to manage the memory. The garbage collector
should be present in the programming language that makes sure that the space that is unused
gets cleaned and the memory can be freed when it is not needed. In every programming
language, the memory is the most important resource. In COCONUT, the memory is also
very important. Therefore, it is important to manage the memory without any memory
leakage. The deallocation and allocation of memory is a complex task. The programming
language COCONUT should have a garbage collector for the allocation of memory. The
COCONUT programming language should have a stack memory and a heap memory. The
heap memory is allocated during the execution of the code. The heap is a mound of memory
that is available to the programmers for the allocation and deallocation of the memory. If the
Report on Comparative Programming Language 2022_3
3COMPARATIVE PROGRAMMING LANGUAGE
programmers cannot handle this memory well, leakage of memory can occur. The stack
memory will also be there in the COCONUT programming language. The stack allocation
will occurs on the blocks of memory. This memory will be allocated during the function call.
In the stack allocation and deallocation, the programmers need not to worry about anything.
The programmer should also keep the memory leakage in mind. The leakage of memory is
type of leakage of resources when a program incorrectly manages allocation of memory. The
leakage of memory reduces the performance of a computer by reducing the quantity of
memory that is available. The COCONUT programming language will not have any leakage
of memory as it will created in that way to avoid leakage of memory. The programmers
writing the codes in the COCONUT programming language should also handle it.
The programming language COCONUT should have scoping features that will bind the
variables. Scope of a programming language means that an alliance of a name to an entity
such as variables. The scope of binding is also called visibility of an entity. The programming
language should have two kinds of scope- dynamic scope and static scope. Another name for
static scoping is lexical scoping. In this scoping, a variable refers to its environment that is at
the top level. Static scoping has a benefit. It helps to make a code that is modular in nature
and the programmer can understand the scope of the program by looking at the code. For
example, in most of the programming language, C, C++ and java, the variables are lexically
scoped.
Dynamic scoping means that each of the identifiers has bindings that are in the global stack
and the identifier is searched in the recent binding. Static scoping has more benefit than
dynamic scoping. The programming language COCONUT will have both dynamic scoping
and static scoping. For example, Perl is a programming language that has both dynamic
scoping and static scoping. The COCONUT programming language will have keywords that
are lexically scoped local variable and dynamic scoped local variables.
Report on Comparative Programming Language 2022_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Comparative Programming Language Report 2022
|11
|2300
|16

Comparitive Programming Language Essay 2022
|15
|4161
|19

Comparative Programming Language
|11
|3245
|49

Comparative Programming Language | Report
|15
|3473
|15

Assembly Language with Research and Analysis
|25
|2274
|12

Features of Java | Object Oriented Programming in Java
|13
|1682
|142