Что такое findslide.org?

FindSlide.org - это сайт презентаций, докладов, шаблонов в формате PowerPoint.


Для правообладателей

Обратная связь

Email: Нажмите что бы посмотреть 

Яндекс.Метрика

Презентация на тему Principles of programming. Languages introduction. Objectives

ObjectivesTo introduce several different paradigms of programmingBut isn’t one language pretty much like another? No!To gain experience with these paradigms by using example programming languagesTo understand concepts of syntax, translation, abstraction, and implementation
CS 331, Principles of Programming LanguagesIntroduction ObjectivesTo introduce several different paradigms of programmingBut isn’t one language pretty much Paradigms of Programming?There are several ways to think about computation:a set of Some Programming ParadigmsProceduralexamples: C, Pascal, Basic, FortranFunctionalexamples: Lisp, MLObject-orientedexamples: C++, Java, SmalltalkRule-based (or Logic)example: Prolog Why so many?Most important: the choice of paradigm (and therefore language) depends Models of ComputationRAM machineproceduraldirected acyclic graphsSmalltalk model of O-Opartial recursive functionsLisp and Lots of LanguagesThere are many programming languages out thereLots of other PL-like Issues for all LanguagesCan it be understood by people and processed by TranslationCompilationTranslate into instructions suitable for some other (lower level) machineDuring execution, that Trade-offsCompilationlower level machine may be faster, so programs run fastercompilation can be
Слайды презентации

Слайд 2 Objectives
To introduce several different paradigms of programming
But isn’t

ObjectivesTo introduce several different paradigms of programmingBut isn’t one language pretty

one language pretty much like another? No!
To gain experience

with these paradigms by using example programming languages
To understand concepts of syntax, translation, abstraction, and implementation

Слайд 3 Paradigms of Programming?
There are several ways to think

Paradigms of Programming?There are several ways to think about computation:a set

about computation:
a set of instructions to be executed
a set

of expressions to be evaluated
a set of rules to be applied
a set of objects to be arranged
a set of messages to be sent and received

Слайд 4 Some Programming Paradigms
Procedural
examples: C, Pascal, Basic, Fortran
Functional
examples: Lisp,

Some Programming ParadigmsProceduralexamples: C, Pascal, Basic, FortranFunctionalexamples: Lisp, MLObject-orientedexamples: C++, Java, SmalltalkRule-based (or Logic)example: Prolog

ML
Object-oriented
examples: C++, Java, Smalltalk
Rule-based (or Logic)
example: Prolog


Слайд 5 Why so many?
Most important: the choice of paradigm

Why so many?Most important: the choice of paradigm (and therefore language)

(and therefore language) depends on how humans best think

about the problem
Other considerations:
efficiency
compatibility with existing code
availability of translators

Слайд 6 Models of Computation
RAM machine
procedural
directed acyclic graphs
Smalltalk model of

Models of ComputationRAM machineproceduraldirected acyclic graphsSmalltalk model of O-Opartial recursive functionsLisp

O-O
partial recursive functions
Lisp and ML
Markov algorithms
Prolog is loosely based

on these

Слайд 7 Lots of Languages
There are many programming languages out

Lots of LanguagesThere are many programming languages out thereLots of other

there
Lots of other PL-like objects
document languages, e.g. LaTeX, Postscript
command

languages, e.g. bash, MATLAB
markup languages, e.g. HTML and XML
specification languages, e.g. UML



Слайд 8 Issues for all Languages
Can it be understood by

Issues for all LanguagesCan it be understood by people and processed

people and processed by machines?
although translation may be required
Sufficient

expressive power?
can we say what needs to be said, at an appropriate level of abstraction?


Слайд 9 Translation
Compilation
Translate into instructions suitable for some other (lower

TranslationCompilationTranslate into instructions suitable for some other (lower level) machineDuring execution,

level) machine
During execution, that machine maintains program state information
Interpretation
May

involve some translation
Interpreter maintains program state


  • Имя файла: principles-of-programming-languages-introduction-objectives.pptx
  • Количество просмотров: 113
  • Количество скачиваний: 0