Comp 311 Principles of Programming Languages Lecture 1 Course Overview and Culture Corky Cartwright August 25, 2008.

Slides:



Advertisements
Similar presentations
CIS-74 Computer Software Quality Assurance Systematic Software Testing Chapter 1: An Overview of the Testing Process.
Advertisements

Chapter 1: Preliminaries
Lecture 01 - Introduction Eran Yahav 1. 2 Who? Eran Yahav Taub 734 Tel: Monday 13:30-14:30
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
1 Programming for Engineers in Python Autumn Lecture 5: Object Oriented Programming.
R R R CSE870: Advanced Software Engineering (Cheng): Intro to Software Engineering1 Advanced Software Engineering Dr. Cheng Overview of Software Engineering.
Reasons to study concepts of PL
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Russell Taylor Lecturer in Computing & Business Studies.
CS 153: Concepts of Compiler Design August 25 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Copyright © 1998 by Addison Wesley Longman, Inc. 1 Concepts of Programming Languages Chapter 1.
Course Instructor: Aisha Azeem
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
1.3 Executing Programs. How is Computer Code Transformed into an Executable? Interpreters Compilers Hybrid systems.
CS 331, Principles of Programming Languages Introduction.
COMP313A Programming Languages Introduction. More Housekeeping Stuff Reading Material Textbook –Programming Languages: Principles and Practice by Kenneth.
Language Evaluation Criteria
CS 355 – Programming Languages
1 Software Development Topic 2 Software Development Languages and Environments.
(1.1) COEN 171 Programming Languages Winter 2000 Ron Danielson.
Programming. What is a Program ? Sets of instructions that get the computer to do something Instructions are translated, eventually, to machine language.
Chapter 1. Introduction.
Overview of the Course Copyright 2003, Keith D. Cooper, Ken Kennedy & Linda Torczon, all rights reserved. Students enrolled in Comp 412 at Rice University.
Testing in Extreme Programming
Parser-Driven Games Tool programming © Allan C. Milne Abertay University v
Chapter 10: Compilers and Language Translation Invitation to Computer Science, Java Version, Third Edition.
Introduction to Programming Peggy Batchelor.
Programming Languages Summer
Programming Languages –14 David Watt (Glasgow) Steven Wong (Singapore) Moodle : Computing Science → Level 3 → Programming Languages 3 © 2012 David.
1 COMP 3438 – Part II-Lecture 1: Overview of Compiler Design Dr. Zili Shao Department of Computing The Hong Kong Polytechnic Univ.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
Class 1: What this course is about. Assignment Read: Chapter 1 Read: Chapter 1 Do: Chapter 1 ‘workbook’ pages not finished in class Do: Chapter 1 ‘workbook’
Unit-1 Introduction Prepared by: Prof. Harish I Rathod
Comp 311 Principles of Programming Languages Lecture 1 Course Overview and Culture Corky Cartwright August 25, 2008.
Introduction to Compilers. Related Area Programming languages Machine architecture Language theory Algorithms Data structures Operating systems Software.
3.2 Semantics. 2 Semantics Attribute Grammars The Meanings of Programs: Semantics Sebesta Chapter 3.
Comp 312 Production Programming Lecture 1 Course Overview and Culture Corky Cartwright January 12, 2005.
CS 331, Principles of Programming Languages Chapter 1.
CSC 1010 Programming for All Lecture 2 Introduction to Python Some material based on material from Marty Stepp, Instructor, University of Washington.
The single most important skill for a computer programmer is problem solving Problem solving means the ability to formulate problems, think creatively.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
CS223: Software Engineering
Exceptions Lecture 11 COMP 401, Fall /25/2014.
FUNCTIONAL PROGRAMING AT WORK - HASKELL AND DOMAIN SPECIFIC LANGUAGES Dr. John Peterson Western State Colorado University.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Programming Languages Concepts Chapter 1: Programming Languages Concepts Lecture # 4.
Concepts of Programming Languages Lecturer: Dr. Emad Nabil Lecture # 2.
Chapter 1. Introduction.
Compilers Principles, Techniques, & Tools Taught by Jing Zhang
Corky Cartwright January 9, 2017
Advanced Computer Systems
Before You Begin Nahla Abuel-ola /WIT.
Names and Attributes Names are a key programming language feature
SYSTEM SOFTWARE & COMPILER DESIGN
PROGRAMMING LANGUAGES
Corky Cartwright January 13, 2014
System Programming and administration
Chapter 1 Reasons to study concepts of PLs Programming Domains
课程名 编译原理 Compiling Techniques
1.1 Reasons to study concepts of PLs
Chapter 1 Preliminaries.
Programming Concepts and Languages
Overview of the Course Copyright 2003, Keith D. Cooper, Ken Kennedy & Linda Torczon, all rights reserved. Students enrolled in Comp 412 at Rice University.
Assembler, Compiler, Interpreter
EE422C Software Design and Implementation II
Assembler, Compiler, Interpreter
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer Low level programming language: A programming.
Compilers Principles, Techniques, & Tools Taught by Jing Zhang
Presentation transcript:

Comp 311 Principles of Programming Languages Lecture 1 Course Overview and Culture Corky Cartwright August 25, 2008

Course Facts See web page Participate in the course newsgroup

What is Comp 311? Anatomy (Syntax) and Physiology (Semantics) of Programming Languages –What is the anatomy of a programming language Parsing and abstract syntax Lexical nesting and the scope of variables –What are the conceptual building blocks of programming languages? (common anatomical structures and their functions)‏ –Use high-level interpreters to define meaning of languages (expression evaluators)‏

What is Comp 311, cont. –Using anatomy to prevent bugs Type systems Type checking Type inference (reconstruction)‏ –Mechanisms for language extension Syntax extension (macros)‏ Reflection Custom class loaders –Sketch how the interpretation process can actually be efficiently implemented by machine instructions CPS transformation Garbage Collection

Subtext of Comp 311 Teach good software engineering practice. You have to write lots of lines of conceptually challenging lines of code in this course. With good software engineering practices, the workload is reasonable. With poor software engineering practices, the workload is unreasonable.

Good Software Engineering Practice Test-driven design –Unit tests for each non-trivial method written before any method code is written –Unit tests are a permanent part of the code base Pair programming Continual integration Continual refactoring to avoid code duplication Conscientious documentation (contracts)‏ Avoiding mutation unless there is a compelling reason

Why Study Programming Languages? Programmers must master the programming languages of importance within the domains in which they are working. New languages are continually being developed. Who knows what languages may be involved in computing 25 years from now? Many software applications involve defining and implementing a programming language. A deep knowledge of programming languages expands the range of possible solutions available to a software developer. A program design may involve extending the designated implementation language either explicitly (macros, new/revised translators & custom class loaders) or implicitly (new libraries, hand-translation) Some implementation languages are extensible through macros, reflection, or customizable class loaders.

Course Culture Approximately 8 programming assignments 7 required 1-2 extra credit Assignments must be done in either Generic Java (Java 6.0). We encourage you to use DrJava. Both JUnit and javadoc are built-in to DrJava and it fully compatible with command line compilation, execution, and testing (using for example ant scripts). Late assignments not accepted, but … –Every student has 7 slip days to use as he/she sees fit. –Saving as many as possible until late in the term is advantageous.

Course Culture, cont. Assignments are cumulative. Class solutions are provided for the first three assignments within three days after they are due. After the third assignment, you are on your own. Extensive unit testing is important because you can reuse previous unit tests on subsequent assignments with no change in most cases.

Course Culture, cont. My teaching style –Encourage you to develop a passion for the subject and personally digest and master the material. –Make the course accessible to students who don't aspire to become language researchers (avoid repeating my experience in complex analysis with Andy Gleason)‏ –Weaknesses: Tendency to digress Explain concepts at too abstract a level without sufficient examples