StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...

Imperative Languages vs Functional Languages - Essay Example

Cite this document
Summary
"Imperative Languages vs Functional Languages" paper states that very difficult to design and use concurrent execution in imperative languages. To allow the program to execute concurrently, the programmer first needs to identify concurrent parts of the program which are then written as tasks…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER92.5% of users find it useful
Imperative Languages vs Functional Languages
Read Text Preview

Extract of sample "Imperative Languages vs Functional Languages"

Download file to see previous pages

Imperative languages are greatly influenced by the von Neumann architecture due to their high dependency on an instruction counter and a store. They have control structures, like loops and while loops, which make incremental changes to the memory while iterating over instructions. Programs written in imperative languages are statement oriented, and their principle operation is the assignment of values to variables; in other words, computation is performed with side effects (Lee 118). Unlike imperative languages, functional languages do not rely on the Von-Neumann architecture as they do not have any concern with variables but only data objects and values.

The principle operation of functional languages is function application, and they treat functions as first-class objects that may be stored in data structures, passed as parameters, and returned as function results. Programs written in functional languages contain no variables, loop statements, and assignment statements, and use parameters and return values to communicate values; in other words, computation is performed with no side effects (Lee 119). Imperative languages heavily rely on side effects to implement their state and perform their operations.

On the other hand, functional languages lack side-effects that allow them to always produce the same result when given the same parameters. This characteristic of functional languages is called ‘referential transparency’ which makes the semantics of these languages far simpler than the semantics of imperative languages (Kedar and Thakare 6-4). In functional languages, the return value of the function can be of any data type including function type. But this is not possible in imperative languages; functions defined in imperative languages are restricted to return values of specific data types (Kedar and Thakare 6-4).  

...Download file to see next pages Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Functional languages vs. imperative languages Essay”, n.d.)
Retrieved de https://studentshare.org/logic-programming/1583487-functional-languages-vs-imperative-languages
(Functional Languages Vs. Imperative Languages Essay)
https://studentshare.org/logic-programming/1583487-functional-languages-vs-imperative-languages.
“Functional Languages Vs. Imperative Languages Essay”, n.d. https://studentshare.org/logic-programming/1583487-functional-languages-vs-imperative-languages.
  • Cited: 0 times

CHECK THESE SAMPLES OF Imperative Languages vs Functional Languages

Analysis of Language Acquisition

This coursework "Analysis of Language Acquisition " discusses an interactional strategy that can be described as one that goes down to the level of the child in establishing a communicative function.... It is a form of child language.... ... ... ... In parental diaries, parents in studying their children's speech write descriptions of the development of their language/speech in their diaries....
8 Pages (2000 words) Coursework

Multi-Paradigm Programming Languages

Name 11th December 2011 Multi-Paradigm Programming languages Programming languages are the formal way of interaction with the computers.... The various programming languages available for computer programming are classified according to the paradigm in which they operate.... This is where multi paradigm programming languages come into the picture.... Multi paradigm languages combine the concepts and features of various programming paradigms and help the user to solve various problems which are difficult to solve by following one paradigm alone....
3 Pages (750 words) Essay

Programming Paradigms Comparison

Pointers: the use of pointers is more common in C++ than in other languages.... The essay "Programming Paradigms Comparison" focuses on the critical analysis of the major issues in the comparison between programming paradigms.... C++ objects are members of its classes.... OOP possesses the feature of 'Inheritance', which enables it to import classes or subclasses....
9 Pages (2250 words) Essay

Week 5 Hand-In Assignment

A functional language program consumes large amount of computer's memory and are not time efficient but are they are well-designed.... ata manipulation language is one of the examples of imperative programming language.... The same program can run on Dell and IBM and are independent of their processor types or in other words they are independent of machine type....
3 Pages (750 words) Assignment

Language as dialect, language and gender in the classroom

It is imperative to note that pronunciation, accent, grammar and vocabulary, as well as the spoken and written human languages vary from the linguistic anthropological point of view.... It is imperative to note that pronunciation, accent, grammar and vocabulary, as well as the spoken and written human languages vary from the linguistic anthropological point of view....
2 Pages (500 words) Essay

Purpose and Function of Newspeak

As such, he created the language with the presumption that, countries such as Soviet Union (Germany) had had their languages deteriorated as a result of the dictatorial regimes they had been subjected (Conley & Stephen 135-145).... Newspeak as a language, refers to the fictional, but official language that was widely used by the Oceania, and was considered as a controlled language that the totalitarian state had created with the aim of limiting the freedom of thought among its subjects....
6 Pages (1500 words) Research Paper

Computer Programming Languages

"Computer Programming languages" paper presents a detailed overview of the programming languages.... This paper also discusses the purpose of development and types of different programming languages.... The main aim of programming languages is to offer a communication link between computers and humans.... I have offered a deep analysis of the main programming languages and their operational areas.... I hope that this research will offer a deep insight into the overall analysis of the programming languages....
6 Pages (1500 words) Coursework

Stages of Computer Programming

The "Understanding the Definition and Stages for Developing Programming languages" paper is intended to understand how a programming language can be created while discussing the background of the development of programming languages.... The essay would thereafter focus on understanding how programming languages are developed.... It also provides a list of annotated bibliographies to understand the development of programming languages....
8 Pages (2000 words) Essay
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us