1 / 15

CS 3304 Comparative Languages Fall 2000

Explore programming paradigms, language features, implementation strategies, and influences on language design to enhance your understanding of programming languages.

sawyera
Download Presentation

CS 3304 Comparative Languages Fall 2000

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 3304Comparative LanguagesFall 2000 Lenwood S. Heath McB 638: MW 1:15-3:00 heath@cs.vt.edu http://courses.cs.vt.edu/~cs3304/Fall00/

  2. What Will You Learn? • Survey of programming paradigms, including representative languages • Language definition and description methods • Overview of features across all languages • Implementation strategies  Chapter 1: Introduction 

  3. Semester Outline Part I: Paradigms and Description • Introduction and Language Evaluation • Programming Language Paradigms • History and Evolution • Imperative, Functional, Logic, Object-Oriented • Syntax and Semantics  Chapter 1: Introduction 

  4. Semester Outline (cont.) Part II: Features and Implementation • Names and Typing • Data Types • Expressions and Assignment • Control Structures • Subprograms • Abstract Data Types (ADTs)  Chapter 1: Introduction 

  5. Reasons to Study Concepts of PLs Why bother with this stuff anyway? • Increased capacity to express programming concepts • Improved background for choosing appropriate languages • Increased ability to learn new languages • Understanding the significance of implementation • Increased ability to design new languages • Overall advancement of computing  Chapter 1: Introduction 

  6. Chapter 1: Introduction • Language evaluation criteria • Main implementation methods • Trade-offs • Influences on language design • Programming paradigms  Chapter 1: Introduction 

  7. Evaluating A Language • 4 main criteria: • Readability • Writability • Reliability • Cost • Are there others?  Chapter 1: Introduction 

  8. Evaluation: Readability • The most important criterion • Overall simplicity • Too many features is bad • Multiplicity of features is bad • Orthogonality • Makes the language easy to learn and read • Meaning is context independent • Control statements • Data type and structures • Syntax considerations  Chapter 1: Introduction 

  9. Evaluation: Writability • Factors: • Simplicity and orthogonality • Support for abstraction • Expressivity  Chapter 1: Introduction 

  10. Evaluation: Reliability • Factors: • Type checking • Exception handling • Aliasing • Readability and writability  Chapter 1: Introduction 

  11. Evaluation: Cost • Categories • Programmer training • Software creation • Compilation • Execution • Compiler cost • Poor reliability • Maintenance • Other criteria: portability, generality, well-definedness  Chapter 1: Introduction 

  12. Implementation Methods • Compilation • Translate high-level program to machine code • Slow translation • Fast execution • Pure interpretation • No translation • Slow execution • Becoming rare • Hybrid implementation systems • Small translation cost • Medium execution speed  Chapter 1: Introduction 

  13. Language Design Trade-offs • Reliability versus cost of execution • Writability versus readability • Flexibility versus safety  Chapter 1: Introduction 

  14. Primary influences on language design 1. Computer architecture • We use imperative languages, at least in part, because we use von Neumann machines 2. Programming methodologies • 1950s and early 1960s: Simple applications; worry about machine efficiency • Late 1960s: People efficiency became important; readability, better control structures • Late 1970s: Data abstraction • Middle 1980s: Object-oriented programming  Chapter 1: Introduction 

  15. Language Categories Programming paradigms: • Procedural/Imperative • Functional/Applicative • Logic • Object-oriented (closely related to imperative) • Problem-oriented/application-specific  Chapter 1: Introduction 

More Related