CSE-321 Programming Languages Overview POSTECH March 2, 2010 박성우.

Slides:



Advertisements
Similar presentations
CSE 332: C++ overview CSE 332 Overview and Structure CSE 332 emphasizes studio-based active learning –Introductory lecture material followed by hands-on.
Advertisements

Programming Paradigms Introduction. 6/15/2005 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L1:
CSE 341, Winter Type Systems Terms to learn about types: –Type –Type system –Statically typed language –Dynamically typed language –Type error –Strongly.
Programming Language Paradigms: summary. Object-oriented programming Objects are the fundamental building blocks of a program. Interaction is structured.
CS 101 Course Summary December 5, Big Ideas Abstraction Problem solving Fundamentals of programming.
CS565 Advanced Software Development (1 unit) Lecturer: Adrian O’Riordan Contact: is Office: prefab, behind.
Summer 02-03Programming Language Concepts1 Programming Language Concepts (CS 360) Lecture 1: Overview, Grammars, and Little Languages Jeremy R. Johnson.
CSE341: Programming Languages Lecture 26 Course Victory Lap Dan Grossman Spring 2013.
CSE341: Programming Languages Lecture 26 Course Victory Lap Dan Grossman Winter 2013.
1 Programming Languages Marjan Sirjani 2 1- The Study of Programming Languages The purpose of language is simply that it must convey meaning. (Confucius)
CS 415: Programming Languages Chapter 1 Aaron Bloomfield Fall 2005.
Foundations of Programming Languages – Course Overview Xinyu Feng Acknowledgments: some slides taken or adapted from lecture notes of Stanford CS242
Chair of Software Engineering Beyond Eiffel these slides contain advanced material and are optional.
CSE 425: Intro to Programming Languages and their Design A Few Key Ideas No particular language is a prerequisite for this course –However you should be.
Introduction COMP104: Fundamentals and Methodology.
1 CSCE Programming Languages Introduction and Course Administration Dr. Hyunyoung Lee 410B HR Bright
CSE-321 Programming Languages Overview POSTECH March 4, 2014 박성우.
MCS 270 Spring 2014 Object-Oriented Software Development.
G Programming Languages T he main themes of programming language design and use: –Model of computation –Expressiveness types and their operations.
CSE Fundamentals of Computing Prof. Douglas Thain Fall 2011.
Types for Programs and Proofs Lecture 1. What are types? int, float, char, …, arrays types of procedures, functions, references, records, objects,...
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Programming Languages –14 David Watt (Glasgow) Steven Wong (Singapore) Moodle : Computing Science → Level 3 → Programming Languages 3 © 2012 David.
1 Programming Languages Marjan Sirjani Course web site:
CSE-321 Programming Languages Overview POSTECH March 5, 2007 박성우.
CSE-321 Programming Languages Overview POSTECH March 3, 2009 박성우.
CSE-321 Programming Languages Overview POSTECH March 3, 2011 박성우.
E81 CSE 532S: Advanced Multi-Paradigm Software Development Chris Gill Department of Computer Science and Engineering Washington University in St. Louis.
Object Oriented Programming (FIT-II) J. H. Wang Feb. 20, 2009.
Chapter 6 Programming Languages (1) Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Logic in Computer Science - Overview Sep 1, 2009 박성우.
Monday, Jan 6, 2003Kate Gregory with material from Deitel and Deitel CO 204 Object Oriented Programming 2003 Trent University Kate Gregory.
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
Engr. Isabelo Jun D. Paat, ME-CoE Lecturer 1 Programming Languages.
Notes for Week 11 Term project evaluation and tips 3 lectures before Final exam Discussion questions for this week.
Allyson M. Hoss, January 14, 2008 CSC 7101 Programming Language Structures Spring 2008 Louisiana State University.
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 1 Overview A good programming language is.
CSCE 314 Programming Languages
Programming Language Concepts (CIS 635) Elsa L Gunter 4303 GITC NJIT,
CSE-321 Programming Languages Abstract Machine E POSTECH May 1, 2006 박성우.
CSE-321 Programming Languages Introduction to Functional Programming POSTECH March 8, 2006 박성우.
CSE-321 Programming Languages Overview POSTECH March 5, 2013 박성우.
서울대한양대 ( 안 산 ) 충남대 1년1년 컴퓨터기초 (C) 컴퓨터프로그래밍 (C, Java) 컴퓨터프로그래밍 (C) 2. 봄 프로그래밍 원리 (Scheme, ML) Structure & Interpretation of Computer Programs 프로그래밍 방법론.
Language Paradigms CS655.
CSE341: Programming Languages Lecture 26 Course Victory Lap
Introduction to programming languages, Algorithms & flowcharts
Types for Programs and Proofs
Introduction to programming languages, Algorithms & flowcharts
CSE 332 Overview and Structure
Programming Language Design Concepts
slides created by Marty Stepp
CSE 332 Overview and Structure
Programming COMP104: Fundamentals and Methodology Introduction.
Introduction to programming languages, Algorithms & flowcharts
CSE 332 Overview and Structure
Foundations of Programming Languages – Course Overview
CSE341: Programming Languages Lecture 26 Course Victory Lap
Ada – 1983 History’s largest design effort
Foundations of Programming Languages – Course Overview
Organization of Programming Languages
CSE 341 Programming Languages Autumn 2003
CSE-321 Programming Languages Overview
Computer Programming 1 introduction to JAVA Lecture 1 Instructor: Ruba A. Salamah Islamic University of Gaza.
Principles of Programming Languages
Overview of Programming Paradigms
CSE 341 Programming Languages Autumn 2003
CSE-321 Programming Languages Overview
CSE-321 Programming Languages Overview
CSE341: Programming Languages Lecture 26 Course Victory Lap
Presentation transcript:

CSE-321 Programming Languages Overview POSTECH March 2, 2010 박성우

2 Language = Frame of Thought The language defines the frame of thought. –what you can communicate to others –what concepts you are able to think over –how you think Big question: "Does the programming language define the frame of thought in the course of programming?"

3 C Exercise: Integration Specification –input: function f from int to int range a and b –output: f(a) + f(a + 1) f(b) Solution? int integral(int (*f)(int), int a, int b) { int i, sum = 0; for (i = a; i <= b; i++) sum += f(i); return sum; } Question: what if there were no function pointer?

4 C Exercise: Derivative Specification –input: function f from float to float –output: derivative f' of f such that f'(x) = (f(x +  ) - f(x)) /  Solution?

5 Question for You What is your favorite language? –Assembly, Basic, Pascal, C, C++, C#, Java, Perl, Python, Ruby, Prolog, Lisp, SML, Haskell, Scheme,... What is its strength? What is its weakness? What is its limitation? Do you think your language defines the frame of thought?

Never (mistakenly) think that your favorite language is all you will need ever. Cf. 'Beating the Averages' by Paul Graham

Evolution of programming languages

8 Structured Programming Features –split programs into sub-sections (e.g., functional units) and reuse the sub-sections procedural programming –limited number of control structures for, while, do/while, repeat/until goto is discouraged. Pascal, Ada, C,... Enabled the development of large-scale software in 1970s –Unix operating system written in C –1st revolution in programming language history

9 Object-oriented Programming Features –focus on objects, rather than operations –hide the internal representation of an object –code reuse by inheritance or subclassing Smalltalk, C++, Java, C#,... Enabled the cooperative development of large- scale software in 1980s –2nd revolution in programming language history

10 Dominance of OO TIOBE programming community index, Feb 2010

11 Limitation of OO Programming No code reuse for different datatypes –templates in C++ –generics in Java No "first-class" functions –closures in Java No inherent support for modular programming –Classes are okay for modular programming of moderate scale. –OO does not scale afterwards. Why?

12 Functional Programming Standard ML, Haskell, Objective CAML, F#,... Savior for OO programming –templates in C++, generics in Java ) primitive forms of polymorphism in type theory –closures in Java ) functions in functional programming –modular programming ) structures and functors in functional programming F# in Microsoft Visual Studio 2010

What is the (ongoing) 3rd revolution in programming language history?

14 CPU Frequency

15 Multicore Revolution Intel reaches thermal wall, 2004 ) no more free lunch! Intel, 80-cores, 2011 source: Herb Sutter – "Software and the concurrency revolution"

16 Intel Roadmap

17 Tim Sweeney's POPL '06 Invited Talk - Last Slide

Parallel Programming: 3rd Programming Revolution ) It's no longer optional.

What is the hottest issue in programming language research? ) Verification (verifying that your software is okay)

20 Technologies for Verification Testing –white box testing, black box testing –limited assurance Model checking –verifying both software and hardware systems Static analysis –many success stories Astree, 100,000 lines of Airbus A380 control software –many industrialized tools (e.g., Sparrow of SNU) Deductive verification (theorem prover, proof assistant) –next-generation technology in verification

21 Can you trust your compiler? Critical software requires the correctness of compilers. –Compilers are far from perfect, producing unintended, erroneous code. –Unfortunately the verification of compiler is not trivial at all. Formal verification of CompCert (Xavier Leroy, 2006) –Clight to PowerPC assembly code –Verification in Coq (proof assistant)

Course Overview

23 Topics to Be Covered Basic programming language theory –inductive reasoning – -Calculus –basic type theory –modular programming (assignment) –object-orientation (lecture, assignment) –parallelism/concurrency (tentative)

24 Grading 50% assignments (heart of this course) –8 programming assignments, all in Standard ML 10% quizzes –4 quizzes (substitute for written assignments) 20% midterm 20% final Absolute grading system

25 No Cheating Read the document on the disciplinary policy –7 students cheated (out of 46 students) –2 suspicious cases We will check your programs at the end of the semester. –all your programs + those submitted in the previous years Cheating will not be tolerated. –Cheating will expel you from class and get you an F.

26 Homework by Thursday Visit the course webpage. – Visit the discussion board. –telnet pl.postech.ac.kr, board 321 Install –Standard ML –AFS client software. Read articles for fun. –A Critical Look at Programming Languages –The Free Lunch is Over: A Fundamental Turn Toward Concurrency in Software –Software and the Concurrency Revolution –Beating the Average