CS 331, Principles of Programming Languages Introduction.

Slides:



Advertisements
Similar presentations
Copyright © 1998 by Addison Wesley Longman, Inc. 1 Chapter One Preliminaries, including –Why study PL concepts? –Programming domains –PL evaluation criteria.
Advertisements

Chapter 1: Preliminaries
Programming Languages Language Design Issues Why study programming languages Language development Software architectures Design goals Attributes of a good.
Reasons to study concepts of PL
ISBN Chapter 1 Preliminaries. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.1-2 Chapter 1 Topics Motivation Programming Domains.
CS 354 Overview. Copyright © 2007 Addison-Wesley. All rights reserved. 1–2 Course Topics What is a programming language? What features do programming.
CS 101 Course Summary December 5, Big Ideas Abstraction Problem solving Fundamentals of programming.
Programming Languages Structure
ISBN Lecture 01 Preliminaries. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.1-2 Lecture 01 Topics Motivation Programming.
Introduction and Syntax. Course objectives Discuss features of programming languages. Discuss how the features are implemented in a simple computer architecture.
Summer 02-03Programming Language Concepts1 Programming Language Concepts (CS 360) Lecture 1: Overview, Grammars, and Little Languages Jeremy R. Johnson.
ISBN Chapter 1 Topics Motivation Programming Domains Language Evaluation Criteria Influences on Language Design Language Categories Language.
Copyright © 1998 by Addison Wesley Longman, Inc. 1 Concepts of Programming Languages Chapter 1.
Programming Language Concepts
1 Programming Languages Marjan Sirjani 2 1- The Study of Programming Languages The purpose of language is simply that it must convey meaning. (Confucius)
Programming Languages Lecture 12. What is Programming?  The process of telling the computer what to do  Also known as coding.
314450: PROGRAMMING PARADIGMS Teaching scheme: Examination Scheme: Lectures: 3 Hours/Week Theory: 100 Marks OBJECTIVE: To understand the basic building.
Overview. Copyright © 2006 The McGraw-Hill Companies, Inc. Chapter 1 Overview A good programming language is a conceptual universe for thinking about.
1 Programming Language Concepts Ethics Why study concepts of programming languages (PLs)? PL categories Influences on PL design Problem areas & needs that.
PZ01A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ01A -- Introduction Programming Language Design and.
CS 355 – Programming Languages
Chapter 8 High-Level Programming Languages (modified by Erin Chambers)
Programming languages1 Programming paradigms Families of programming languages.
Chapter 1. Introduction.
CS 363 Comparative Programming Languages
CS 330 Programming Languages 09 / 04 / 2008 Instructor: Michael Eckmann.
Programming Languages –14 David Watt (Glasgow) Steven Wong (Singapore) Moodle : Computing Science → Level 3 → Programming Languages 3 © 2012 David.
Chapter 1 - Introduction
February 25, ICE 1341 – Programming Languages (Lecture #1) In-Young Ko Programming Languages (ICE 1341) Lecture #1 Programming Languages (ICE 1341)
1 Programming Languages Marjan Sirjani Course web site:
1 Introduction Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Sections
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
Programming Languages Design Considerations (Qualities) Readability –Simplicity and Clarity –Orthogonality –Control Statements –Data Types and Structures.
ISBN CS 354 Preliminaries. Copyright © 2006 Addison-Wesley. All rights reserved.1-2 Course Topics What is a programming language? What features.
Software Development Programming & Languages. Programming: A Five-Step Procedure Define the problem Design a solution Code the program Test the program.
JavaScript Defined JavaScript Basics Definitions JavaScript is an object-oriented programming language designed for the world wide web. JavaScript code.
Programming Language Concepts (CIS 635) Elsa L Gunter 4303 GITC NJIT,
6. Program Translation CS100: The World of Computing John Dougherty Haverford College.
CS 331, Principles of Programming Languages Chapter 1.
Engr. Isabelo Jun D. Paat, ME-CoE Lecturer 1 Programming Languages.
Course No Programming Languages Theory & Practice First Semester ITTIHAD UNIVERSITY Computer Science Department Instructor: Dr. Rafiqul.
Programming Languages
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 1 Overview A good programming language is.
int k = Integer.MAX_VALUE; k++; int k = Integer.MAX_VALUE; k++; What happens when the following code executes? byte b = someFile.readByte(); b = (byte)(b.
1-1 1 Introduction  Programming linguistics: concepts and paradigms syntax, semantics, and pragmatics language processors.  Historical development of.
Programming Language Concepts (CIS 635) Elsa L Gunter 4303 GITC NJIT,
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
서울대한양대 ( 안 산 ) 충남대 1년1년 컴퓨터기초 (C) 컴퓨터프로그래밍 (C, Java) 컴퓨터프로그래밍 (C) 2. 봄 프로그래밍 원리 (Scheme, ML) Structure & Interpretation of Computer Programs 프로그래밍 방법론.
Software Engineering Algorithms, Compilers, & Lifecycle.
CSCE 343 – Programming Language Concepts Welcome!.
a medium allowing humans and computers to communicate an abstraction of the real world a notation for expressing algorithms the set of all syntactically.
Language Paradigms CS655.
CPS120 Introduction to Computer Science High Level Language: Paradigms.
Website Source Code Free Download.
Programming Languages 2nd edition Tucker and Noonan
Introduction to programming languages, Algorithms & flowcharts
Why study programming languages?
Introduction to programming languages, Algorithms & flowcharts
PROGRAMMING LANGUAGES
Introduction of Programming Languages
Programming Language Design Concepts
Problem Solving Using C: Orientation & Lecture 1
Chapter 1 Preliminaries.
Introduction to programming languages, Algorithms & flowcharts
Problem Solving.
and Program Development
Principles of Programming Languages
Overview of Programming Paradigms
강의 내용 및 방법 접근방법 리포트 시험 Lambda Calculus, Proof of Correctness
Presentation transcript:

CS 331, Principles of Programming Languages Introduction

Objectives To introduce several different paradigms of programming –But isn’t 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

Paradigms of Programming? There are several ways to think 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

Some Programming Paradigms Procedural –examples: C, Pascal, Basic, Fortran Functional –examples: Lisp, ML Object-oriented –examples: C++, Java, Smalltalk Rule-based (or Logic) –example: Prolog

Why so many? Most important: the choice of paradigm (and therefore language) depends on how humans best think about the problem Other considerations: –efficiency –compatibility with existing code –availability of translators

Models of Computation RAM machine –procedural directed acyclic graphs –Smalltalk model of O-O partial recursive functions –Lisp and ML Markov algorithms –Prolog is loosely based on these

Lots of Languages There are many programming languages out 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

Issues for all Languages Can it be understood by 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?

Translation Compilation –Translate into instructions suitable for some other (lower level) machine –During execution, that machine maintains program state information Interpretation –May involve some translation –Interpreter maintains program state

Trade-offs Compilation –lower level machine may be faster, so programs run faster –compilation can be expensive –examples: C (and Java?) Interpretation –more ability to perform diagnostics (or changes) at run-time –examples: Basic, UNIX shells, Lisp