SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Programming Language
Paradigms
Chapter 1
Language Design Issues
Why Study Programming Language?
1. To improve ability to develop effective
algorithms:
– Many languages provide features that when used
properly are of benefit to programmer but when use
improperly may west large amount of computer time,
consuming logical errors.
– Even programmer who has used a language for years
may not understand features.
– A typical example is recursion.
– New programming methods are constantly being
introduced in the literature.
– Use of best concept like object oriented programming,
logical programming or concepts.
Why Study Programming Language?
(cont.)
2. To improve your use of your existing
programming language:
– By understanding how features in your language
are implemented, greatly increase your ability to
write efficient program.
– For example understanding how data in array,
string or records are created and manipulated, by
understanding class, objects or recursion you can
build more efficient program.
Why Study Programming Language?
(cont.)
3. To allow better choice of programming
language:
– Knowledge of variety of languages may allow the
choice of just language for particular project,
there by reducing required coding efforts.
4. To make it easier to learn a new language:
– Varity of programming language constructs and
implementation techniques allows the
programmer to learn a new programming
language more easily.
Why Study Programming Language?
(cont.)
5. To make easier to design a new language:
– For programmer who think of themselves as
designers can need to have deep understanding
of basic languages.
– For example many new languages are based on c
or pascal as implementation models. This aspect
of program design is often simplified if the
programmer is familiar with a variety of
constructs and implementation methods from
ordinary programming language.
What is Programming Language?
• A language designed for programming
computers.
• A programming language is an artificial
language designed to communicate
instructions to a machine, particularly a
computer. Programming languages can be
used to create programs that control the
behavior of a machine and/or to express
algorithms precisely.
What is Programming Language?
• Programming languages are essentially
carefully designed notations.
• Programming language use to specify,
organize different aspect of problem solving.
• The designer of programming languages have
twin goal:
– Making computing convenient for people
– Making efficient use of computing machine.
Evolution of software Architecture
• Evolution of software is a step by step process
Evolution of software Architecture
(cont.)
• The computing industry has now entered in
third major era in the development of
computer program.
• For certain class of problem certain software
or languages are defined which is tested,
modified and used with minimum investment.
• Smalltalk and Perl are cost effective in that the
overall time and effort expended in solving a
problem on computer.
Evolution of software Architecture
(cont.)
• Maintenance:
– Evolution of software also include maintenance, as
studies have shown that the largest cost involved in
any program that is used over a period of year is not
the cost of initial design, coding and testing of
program but total life cycle costs include development
as well as maintenance.
– Maintenance includes repair error, changes in
program if required as the underlying hardware or
operating system is updated and extension and
enhancement of program.
Attributes of language
• Syntax and Semantics:
– The Syntax of a programming language is what the
program looks like.
– The Semantics of a programming language is the
meaning given to the various syntactic constructs.
– For example in C to declare vector V, of integers
• Int v[10]
– In contrast in Pascal specified as
• V array[0…9]of integer
– Although they create same object at run time, their
syntax is different
Language Paradigms
• There are four basic computational models
that describe most programming today
– Imperative
– Applicative
– Rule based
– Object Oriented
Language Paradigms
• Imperative languages:
– Imperative or procedural languages are command
driven or statement oriented languages.
– The basic concept is the machine state the set of
all values for all memory locations in the
computer.
– A program consists of a sequence of statements
and the execution of each statements cause the
computer to change the value of one or more
locations in its memory that is enter a new state.
Language Paradigms
• The syntax of such languages generally has the
form
• Statment1;
• Statmenet2;
• Applicative language:
– An alternative view of the computation performed
by a programming language is to look at the
function that the program represents rather than
just the stat changes as the program executes,
statement by statement.
Language Paradigms - Applicative
language
• In applicative language rather than looking at sequence
of states that the machine must pass through in
achieving an answer the question to be asked is what is
the function that must be applied to initial machine
state by accessing initial data.
• We can view this model as a lens that takes the initial
data and by manipulating the view of memory,
produce the desired answer.
• Program development proceeds by developing
functions from previously developed functions to build
more complex function.
Language Paradigms – Rule based
language
• Rule based languages execute by checking for the
presence of certain enabling condition and when
present, executing an appropriate action the
most common rule based language is prolog also
called a logic programming language.
• Enabling conditions determine the order of
execution
• The syntax is
– Enabling condition  action1
– Enabling condition  action2
Language Paradigms – Object Oriented
Programming
• Object Oriented Programming: In this case
complex data object are build , then a limited
set of functions are designed to operate on
those data.
• Complex object are designed as execution of
simple objects, inheriting property of simpler
objects.
Language standardization
• The need for standards - to increase
portability of programs
• Problem: When to standardize a language?
• If too late - many incompatible versions
• If too early - no experience with language
• Problem: What happens with the software
developed before the standardization?
• Ideally, new standards have to be compatible
with older standards.
Internationalization
• How to specify languages useful in a
global economy?
• What character codes to use?
• Collating sequences? - How do you
alphabetize various languages?
• Dates? - What date is 10/12/01?
10-12-01? 12.10.01 ?
Is it a date in October or
December?
Internationalization
• Time? - How do you handle
• time zones,
• summer time in Europe,
• daylight savings time in US,
• Southern hemisphere is 6 months out of phase
with northern hemisphere,
• the date to change from summer to standard
time is not consistent.
• Currency? - How to handle dollars, pounds,
marks, francs, euros, etc.
Timeliness
• One important issue is when to standardize a language.
FORTRAN was initially standardized in 1966 after there
were many incompatible version.
• This lead a problem because each implementation is
different from others.
• At the other extreme Ada was standardized in 1983 before
there were any implementations
• When it was not clear weather the language would even
work.
• The first effective Ada compiler did not appear until 1987
• C and Pascal were standardized while growing and before
there were too many incompatible version.
Programming environments
Programming environment is where programs are
created, tested.
Usually consists of support tools and command
language for invoking them
Typical tools include:
•editors
•debuggers
•verifiers
•pretty printers
•test data generators
Effects on language design
Programming environments have had two
large effects on language design:
• Features aiding separate
compilation/assembly from
components
• Features aiding program testing and
debuggin
Effects on Language Design
Separate compilation:
•For large programs, different programmers will be working on
separate parts.
•This requires a language that can compile the parts and merge
together later
•Separate compilation can be difficult because subprograms might
need each other
•There are ways to provide information to subprograms during
separate compilation:
•Information may need to be redeclared (FORTRAN)
•An order of compilation may be required (Ada)
•A library containing relevant specifications may be required
(Java/C++)
Effects on Language Design
•Option 1 above uses independent compilation. The subprogram is entirely self
contained.
•The disadvantage is inability to check inconsistency of data between external
declaration and internal re declaration. You will have assembly errors even though the
subprograms may have 0 errors.
•Options 2 and 3 require the use of libraries. The body is usually omitted during the
compilation of subprograms.
•Separate compilation has the side effect of enabling name collisions issues
•Several subprograms or portions of programs may have the same name
•This may not be determined until attempting to merge all subprograms
•There are three main ways languages avoid these name collisions
•Use of naming conventions (obligation is the programmer's)
•Use of scoping rules (Used by Pascal, C, Ada)
•Add name definitions from external library(inheritance in Object oriented)
Environment Frameworks
•Support environment: Uses infrastructure services called
environment framework
Environment framework: supplies data repository, GUI, security,
communication
•Ex: An environment framework would contain the following
A window manager such as Motif
VB and Visual Studio provide for libraries to build
windows

Weitere ähnliche Inhalte

Was ist angesagt?

Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software EngineeringFáber D. Giraldo
 
Language processing activity
Language processing activityLanguage processing activity
Language processing activityDhruv Sabalpara
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsMukesh Chinta
 
Software Coding- Software Coding
Software Coding- Software CodingSoftware Coding- Software Coding
Software Coding- Software CodingNikhil Pandit
 
The Object Model
The Object Model  The Object Model
The Object Model yndaravind
 
Lexical analyzer generator lex
Lexical analyzer generator lexLexical analyzer generator lex
Lexical analyzer generator lexAnusuya123
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process ConceptsMukesh Chinta
 
Publish subscribe model overview
Publish subscribe model overviewPublish subscribe model overview
Publish subscribe model overviewIshraq Al Fataftah
 
Unit1 principle of programming language
Unit1 principle of programming languageUnit1 principle of programming language
Unit1 principle of programming languageVasavi College of Engg
 
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programmingsonalikharade3
 
Interfacing With High Level Programming Language
Interfacing With High Level Programming Language Interfacing With High Level Programming Language
Interfacing With High Level Programming Language .AIR UNIVERSITY ISLAMABAD
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structuresMukesh Chinta
 
Challenges of Conventional Systems.pptx
Challenges of Conventional Systems.pptxChallenges of Conventional Systems.pptx
Challenges of Conventional Systems.pptxGovardhanV7
 

Was ist angesagt? (20)

Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software Engineering
 
Language processing activity
Language processing activityLanguage processing activity
Language processing activity
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Type Checking(Compiler Design) #ShareThisIfYouLike
Type Checking(Compiler Design) #ShareThisIfYouLikeType Checking(Compiler Design) #ShareThisIfYouLike
Type Checking(Compiler Design) #ShareThisIfYouLike
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
 
Software Coding- Software Coding
Software Coding- Software CodingSoftware Coding- Software Coding
Software Coding- Software Coding
 
The Object Model
The Object Model  The Object Model
The Object Model
 
Lexical analyzer generator lex
Lexical analyzer generator lexLexical analyzer generator lex
Lexical analyzer generator lex
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
On demand provisioning
On demand provisioningOn demand provisioning
On demand provisioning
 
Publish subscribe model overview
Publish subscribe model overviewPublish subscribe model overview
Publish subscribe model overview
 
Unit1 principle of programming language
Unit1 principle of programming languageUnit1 principle of programming language
Unit1 principle of programming language
 
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programming
 
Interfacing With High Level Programming Language
Interfacing With High Level Programming Language Interfacing With High Level Programming Language
Interfacing With High Level Programming Language
 
Unit1
Unit1Unit1
Unit1
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
 
Challenges of Conventional Systems.pptx
Challenges of Conventional Systems.pptxChallenges of Conventional Systems.pptx
Challenges of Conventional Systems.pptx
 

Andere mochten auch

Unit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesUnit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesVasavi College of Engg
 
Jimon baru presentasi SIAP UNTUK SUKSES DI MASA DEPAN
Jimon baru presentasi SIAP UNTUK SUKSES DI MASA DEPANJimon baru presentasi SIAP UNTUK SUKSES DI MASA DEPAN
Jimon baru presentasi SIAP UNTUK SUKSES DI MASA DEPANNamaku Aan
 
От стихийных емейл-рассылок к стратегическому емейл-маркетингу / кейс Oktogo
От стихийных емейл-рассылок к стратегическому емейл-маркетингу / кейс OktogoОт стихийных емейл-рассылок к стратегическому емейл-маркетингу / кейс Oktogo
От стихийных емейл-рассылок к стратегическому емейл-маркетингу / кейс OktogoNatalya Semagina
 
Rm20140507 4key
Rm20140507 4keyRm20140507 4key
Rm20140507 4keyyouwatari
 
Quote spreekt over Berkeley International Nederland
Quote spreekt over Berkeley International NederlandQuote spreekt over Berkeley International Nederland
Quote spreekt over Berkeley International NederlandBerkeley International
 
Visual Basic ADO
Visual Basic ADOVisual Basic ADO
Visual Basic ADOSpy Seat
 
Foley grammar book
Foley grammar bookFoley grammar book
Foley grammar bookfoley59658
 
Pankaj malhotra training profile
Pankaj malhotra   training profilePankaj malhotra   training profile
Pankaj malhotra training profileNupur Sood
 
CHANGEOVERFALSEHOODbcsnet6
CHANGEOVERFALSEHOODbcsnet6CHANGEOVERFALSEHOODbcsnet6
CHANGEOVERFALSEHOODbcsnet6Nkor Ioka
 
Mm3 project ppt group 1_section a
Mm3 project ppt group 1_section aMm3 project ppt group 1_section a
Mm3 project ppt group 1_section aAbhijeet Dash
 
Creacion de organigramas
Creacion de organigramasCreacion de organigramas
Creacion de organigramasinelca
 
ESPN Covers Rafael Nadal’s Next French Open Run
ESPN Covers Rafael Nadal’s Next French Open Run ESPN Covers Rafael Nadal’s Next French Open Run
ESPN Covers Rafael Nadal’s Next French Open Run Jed Drake
 
Did they mean to do that?
Did they mean to do that?Did they mean to do that?
Did they mean to do that?Hayling Island
 

Andere mochten auch (20)

Unit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesUnit 2 Principles of Programming Languages
Unit 2 Principles of Programming Languages
 
Jimon baru presentasi SIAP UNTUK SUKSES DI MASA DEPAN
Jimon baru presentasi SIAP UNTUK SUKSES DI MASA DEPANJimon baru presentasi SIAP UNTUK SUKSES DI MASA DEPAN
Jimon baru presentasi SIAP UNTUK SUKSES DI MASA DEPAN
 
От стихийных емейл-рассылок к стратегическому емейл-маркетингу / кейс Oktogo
От стихийных емейл-рассылок к стратегическому емейл-маркетингу / кейс OktogoОт стихийных емейл-рассылок к стратегическому емейл-маркетингу / кейс Oktogo
От стихийных емейл-рассылок к стратегическому емейл-маркетингу / кейс Oktogo
 
Spring sport coats 2013
Spring sport coats 2013Spring sport coats 2013
Spring sport coats 2013
 
Rm20140507 4key
Rm20140507 4keyRm20140507 4key
Rm20140507 4key
 
Quote spreekt over Berkeley International Nederland
Quote spreekt over Berkeley International NederlandQuote spreekt over Berkeley International Nederland
Quote spreekt over Berkeley International Nederland
 
Visual Basic ADO
Visual Basic ADOVisual Basic ADO
Visual Basic ADO
 
Panda therapy
Panda therapyPanda therapy
Panda therapy
 
Green it
Green itGreen it
Green it
 
Foley grammar book
Foley grammar bookFoley grammar book
Foley grammar book
 
Pankaj malhotra training profile
Pankaj malhotra   training profilePankaj malhotra   training profile
Pankaj malhotra training profile
 
Analyze This - #SPSSac
Analyze This - #SPSSacAnalyze This - #SPSSac
Analyze This - #SPSSac
 
CHANGEOVERFALSEHOODbcsnet6
CHANGEOVERFALSEHOODbcsnet6CHANGEOVERFALSEHOODbcsnet6
CHANGEOVERFALSEHOODbcsnet6
 
Mm3 project ppt group 1_section a
Mm3 project ppt group 1_section aMm3 project ppt group 1_section a
Mm3 project ppt group 1_section a
 
Creacion de organigramas
Creacion de organigramasCreacion de organigramas
Creacion de organigramas
 
Class Action Lawsuits Explained
Class Action Lawsuits ExplainedClass Action Lawsuits Explained
Class Action Lawsuits Explained
 
Daftar isi
Daftar isiDaftar isi
Daftar isi
 
ESPN Covers Rafael Nadal’s Next French Open Run
ESPN Covers Rafael Nadal’s Next French Open Run ESPN Covers Rafael Nadal’s Next French Open Run
ESPN Covers Rafael Nadal’s Next French Open Run
 
Did they mean to do that?
Did they mean to do that?Did they mean to do that?
Did they mean to do that?
 
Connecticut Practice Research
Connecticut Practice ResearchConnecticut Practice Research
Connecticut Practice Research
 

Ähnlich wie Ch1 language design issue

Unit 1_Evaluation Criteria_session 3.pptx
Unit 1_Evaluation Criteria_session 3.pptxUnit 1_Evaluation Criteria_session 3.pptx
Unit 1_Evaluation Criteria_session 3.pptxAsst.prof M.Gokilavani
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Professor Lili Saghafi
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming VanessaBuensalida
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptxcrAmth
 
Programming language design and implemenation
Programming language design and implemenationProgramming language design and implemenation
Programming language design and implemenationAshwini Awatare
 
CHAPTER-1.ppt
CHAPTER-1.pptCHAPTER-1.ppt
CHAPTER-1.pptTekle12
 
Interaction With Computers FIT
Interaction With Computers FITInteraction With Computers FIT
Interaction With Computers FITRaj vardhan
 
Computer programing 111 lecture 1
Computer programing 111 lecture 1 Computer programing 111 lecture 1
Computer programing 111 lecture 1 ITNet
 
Lec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there studyLec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there studysamiullahamjad06
 

Ähnlich wie Ch1 language design issue (20)

Unit 1_Evaluation Criteria_session 3.pptx
Unit 1_Evaluation Criteria_session 3.pptxUnit 1_Evaluation Criteria_session 3.pptx
Unit 1_Evaluation Criteria_session 3.pptx
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 
Ppl 13 july2019
Ppl 13 july2019Ppl 13 july2019
Ppl 13 july2019
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
 
Programming language design and implemenation
Programming language design and implemenationProgramming language design and implemenation
Programming language design and implemenation
 
CHAPTER-1.ppt
CHAPTER-1.pptCHAPTER-1.ppt
CHAPTER-1.ppt
 
Interaction With Computers FIT
Interaction With Computers FITInteraction With Computers FIT
Interaction With Computers FIT
 
Presentation-1.pptx
Presentation-1.pptxPresentation-1.pptx
Presentation-1.pptx
 
1. reason why study spl
1. reason why study spl1. reason why study spl
1. reason why study spl
 
Computer programing 111 lecture 1
Computer programing 111 lecture 1 Computer programing 111 lecture 1
Computer programing 111 lecture 1
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Lec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there studyLec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there study
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
Computer Programming
Computer Programming Computer Programming
Computer Programming
 
Computer
ComputerComputer
Computer
 

Kürzlich hochgeladen

New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 

Kürzlich hochgeladen (20)

New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 

Ch1 language design issue

  • 2. Why Study Programming Language? 1. To improve ability to develop effective algorithms: – Many languages provide features that when used properly are of benefit to programmer but when use improperly may west large amount of computer time, consuming logical errors. – Even programmer who has used a language for years may not understand features. – A typical example is recursion. – New programming methods are constantly being introduced in the literature. – Use of best concept like object oriented programming, logical programming or concepts.
  • 3. Why Study Programming Language? (cont.) 2. To improve your use of your existing programming language: – By understanding how features in your language are implemented, greatly increase your ability to write efficient program. – For example understanding how data in array, string or records are created and manipulated, by understanding class, objects or recursion you can build more efficient program.
  • 4. Why Study Programming Language? (cont.) 3. To allow better choice of programming language: – Knowledge of variety of languages may allow the choice of just language for particular project, there by reducing required coding efforts. 4. To make it easier to learn a new language: – Varity of programming language constructs and implementation techniques allows the programmer to learn a new programming language more easily.
  • 5. Why Study Programming Language? (cont.) 5. To make easier to design a new language: – For programmer who think of themselves as designers can need to have deep understanding of basic languages. – For example many new languages are based on c or pascal as implementation models. This aspect of program design is often simplified if the programmer is familiar with a variety of constructs and implementation methods from ordinary programming language.
  • 6. What is Programming Language? • A language designed for programming computers. • A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely.
  • 7. What is Programming Language? • Programming languages are essentially carefully designed notations. • Programming language use to specify, organize different aspect of problem solving. • The designer of programming languages have twin goal: – Making computing convenient for people – Making efficient use of computing machine.
  • 8. Evolution of software Architecture • Evolution of software is a step by step process
  • 9. Evolution of software Architecture (cont.) • The computing industry has now entered in third major era in the development of computer program. • For certain class of problem certain software or languages are defined which is tested, modified and used with minimum investment. • Smalltalk and Perl are cost effective in that the overall time and effort expended in solving a problem on computer.
  • 10. Evolution of software Architecture (cont.) • Maintenance: – Evolution of software also include maintenance, as studies have shown that the largest cost involved in any program that is used over a period of year is not the cost of initial design, coding and testing of program but total life cycle costs include development as well as maintenance. – Maintenance includes repair error, changes in program if required as the underlying hardware or operating system is updated and extension and enhancement of program.
  • 11. Attributes of language • Syntax and Semantics: – The Syntax of a programming language is what the program looks like. – The Semantics of a programming language is the meaning given to the various syntactic constructs. – For example in C to declare vector V, of integers • Int v[10] – In contrast in Pascal specified as • V array[0…9]of integer – Although they create same object at run time, their syntax is different
  • 12. Language Paradigms • There are four basic computational models that describe most programming today – Imperative – Applicative – Rule based – Object Oriented
  • 13. Language Paradigms • Imperative languages: – Imperative or procedural languages are command driven or statement oriented languages. – The basic concept is the machine state the set of all values for all memory locations in the computer. – A program consists of a sequence of statements and the execution of each statements cause the computer to change the value of one or more locations in its memory that is enter a new state.
  • 14. Language Paradigms • The syntax of such languages generally has the form • Statment1; • Statmenet2; • Applicative language: – An alternative view of the computation performed by a programming language is to look at the function that the program represents rather than just the stat changes as the program executes, statement by statement.
  • 15. Language Paradigms - Applicative language • In applicative language rather than looking at sequence of states that the machine must pass through in achieving an answer the question to be asked is what is the function that must be applied to initial machine state by accessing initial data. • We can view this model as a lens that takes the initial data and by manipulating the view of memory, produce the desired answer. • Program development proceeds by developing functions from previously developed functions to build more complex function.
  • 16. Language Paradigms – Rule based language • Rule based languages execute by checking for the presence of certain enabling condition and when present, executing an appropriate action the most common rule based language is prolog also called a logic programming language. • Enabling conditions determine the order of execution • The syntax is – Enabling condition  action1 – Enabling condition  action2
  • 17. Language Paradigms – Object Oriented Programming • Object Oriented Programming: In this case complex data object are build , then a limited set of functions are designed to operate on those data. • Complex object are designed as execution of simple objects, inheriting property of simpler objects.
  • 18. Language standardization • The need for standards - to increase portability of programs • Problem: When to standardize a language? • If too late - many incompatible versions • If too early - no experience with language • Problem: What happens with the software developed before the standardization? • Ideally, new standards have to be compatible with older standards.
  • 19. Internationalization • How to specify languages useful in a global economy? • What character codes to use? • Collating sequences? - How do you alphabetize various languages? • Dates? - What date is 10/12/01? 10-12-01? 12.10.01 ? Is it a date in October or December?
  • 20. Internationalization • Time? - How do you handle • time zones, • summer time in Europe, • daylight savings time in US, • Southern hemisphere is 6 months out of phase with northern hemisphere, • the date to change from summer to standard time is not consistent. • Currency? - How to handle dollars, pounds, marks, francs, euros, etc.
  • 21. Timeliness • One important issue is when to standardize a language. FORTRAN was initially standardized in 1966 after there were many incompatible version. • This lead a problem because each implementation is different from others. • At the other extreme Ada was standardized in 1983 before there were any implementations • When it was not clear weather the language would even work. • The first effective Ada compiler did not appear until 1987 • C and Pascal were standardized while growing and before there were too many incompatible version.
  • 22. Programming environments Programming environment is where programs are created, tested. Usually consists of support tools and command language for invoking them Typical tools include: •editors •debuggers •verifiers •pretty printers •test data generators
  • 23. Effects on language design Programming environments have had two large effects on language design: • Features aiding separate compilation/assembly from components • Features aiding program testing and debuggin
  • 24. Effects on Language Design Separate compilation: •For large programs, different programmers will be working on separate parts. •This requires a language that can compile the parts and merge together later •Separate compilation can be difficult because subprograms might need each other •There are ways to provide information to subprograms during separate compilation: •Information may need to be redeclared (FORTRAN) •An order of compilation may be required (Ada) •A library containing relevant specifications may be required (Java/C++)
  • 25. Effects on Language Design •Option 1 above uses independent compilation. The subprogram is entirely self contained. •The disadvantage is inability to check inconsistency of data between external declaration and internal re declaration. You will have assembly errors even though the subprograms may have 0 errors. •Options 2 and 3 require the use of libraries. The body is usually omitted during the compilation of subprograms. •Separate compilation has the side effect of enabling name collisions issues •Several subprograms or portions of programs may have the same name •This may not be determined until attempting to merge all subprograms •There are three main ways languages avoid these name collisions •Use of naming conventions (obligation is the programmer's) •Use of scoping rules (Used by Pascal, C, Ada) •Add name definitions from external library(inheritance in Object oriented)
  • 26. Environment Frameworks •Support environment: Uses infrastructure services called environment framework Environment framework: supplies data repository, GUI, security, communication •Ex: An environment framework would contain the following A window manager such as Motif VB and Visual Studio provide for libraries to build windows