introduction liam o connor
play

Introduction Liam OConnor CSE, UNSW (and data61) Term3 2019 1 - PowerPoint PPT Presentation

Admin Course Overview PL Implementation Introduction Liam OConnor CSE, UNSW (and data61) Term3 2019 1 Admin Course Overview PL Implementation Who are we? I am Liam OConnor, a casual academic at UNSW. I do research work on formal


  1. Admin Course Overview PL Implementation Introduction Liam O’Connor CSE, UNSW (and data61) Term3 2019 1

  2. Admin Course Overview PL Implementation Who are we? I am Liam O’Connor, a casual academic at UNSW. I do research work on formal methods and programming languages with various companies and the people at data61. Dr. Christine Rizkallah, who will be delivering four lectures throughout the course, is a lecturer at UNSW who works on, among other things, trustworthy systems and formal methods projects with data61. Vivian Dang and Ed Pierzchalski are the tutors for this year, and both work in the Trustworthy Systems group. 2

  3. Admin Course Overview PL Implementation Who are we? I am Liam O’Connor, a casual academic at UNSW. I do research work on formal methods and programming languages with various companies and the people at data61. Dr. Christine Rizkallah, who will be delivering four lectures throughout the course, is a lecturer at UNSW who works on, among other things, trustworthy systems and formal methods projects with data61. Vivian Dang and Ed Pierzchalski are the tutors for this year, and both work in the Trustworthy Systems group. 3

  4. Admin Course Overview PL Implementation Who are we? I am Liam O’Connor, a casual academic at UNSW. I do research work on formal methods and programming languages with various companies and the people at data61. Dr. Christine Rizkallah, who will be delivering four lectures throughout the course, is a lecturer at UNSW who works on, among other things, trustworthy systems and formal methods projects with data61. Vivian Dang and Ed Pierzchalski are the tutors for this year, and both work in the Trustworthy Systems group. 4

  5. Admin Course Overview PL Implementation Contacting Us http://www.cse.unsw.edu.au/~cs3161 Forum There is a Piazza forum available on the website. Questions about course content should typically be made there. You can ask us private questions to avoid spoiling solutions to other students. I highly recommend disabling the Piazza Careers rubbish. Administrative questions should be sent to liamoc@cse.unsw.edu.au . 5

  6. Admin Course Overview PL Implementation What do we expect? Maths This course uses a significant amount of discrete mathematics . You will need to be reasonably comfortable with logic , set theory and induction . MATH1081 is neither necessary nor sufficient for aptitude in these skills. Programming We expect you to be familiar with C and at least one other programming language. Course assignments are in Haskell. Only very simple Haskell is required, but some self-study may be needed. 6

  7. Admin Course Overview PL Implementation What do we expect? Maths This course uses a significant amount of discrete mathematics . You will need to be reasonably comfortable with logic , set theory and induction . MATH1081 is neither necessary nor sufficient for aptitude in these skills. Programming We expect you to be familiar with C and at least one other programming language. Course assignments are in Haskell. Only very simple Haskell is required, but some self-study may be needed. 7

  8. Admin Course Overview PL Implementation Assessment COMP3161 COMP9164 Participation 8% — Assignment 1 15% 20% Assignment 2 17% 20% Midsession Exam 15% 15% Final Exam 45% 45% 8

  9. Admin Course Overview PL Implementation Tutorials Start this week! (after the lecture) Participation is noted for 3161 students. You may change tutorials, just seek approval first. Please attempt some of the questions beforehand. Generally they cover the content up to the Monday lecture of that week. After the public holiday in week 4, the monday tutorials will lag behind by one week. 9

  10. Admin Course Overview PL Implementation Midterm Exam Likely on Friday of Week 4. Lasts for 50 minutes. Runs in lecture time slot. All students must attend! Still organising venues. 10

  11. Admin Course Overview PL Implementation Assignments Given a formal specification, implement in Haskell. Released around Week 5 and Week 8 Approximately 2 weeks to complete each assignment. 10% penalty for one day late, 25% for two, 50% for three and 100% for four+. 11

  12. Admin Course Overview PL Implementation Lectures There is one stream of lectures, which are recorded. If you don’t attend in person, you must watch recordings as they come out. Recordings are available through echo 360. I will to my best to make these usable. All board-work will be done digitally and made available to you. Separate lecture notes are also published. 12

  13. Admin Course Overview PL Implementation Books There is no textbook for this course. Regular written lecture notes are made available throughout the semester, along with challenge exercises. Much of the course material is covered in these two excellent books, however their explanations may differ and the usual disclaimers apply — this course does not follow these books exactly: Types and Programming Languages by Benjamin Pierce, MIT Press. https://www.cis.upenn.edu/~bcpierce/tapl/ Practical Foundations for Programming Languages by Bob Harper, Cambridge University Press. http://www.cs.cmu.edu/~rwh/pfpl.html 13

  14. Admin Course Overview PL Implementation Course Content This is a programming language appreciation course. These means we focus on the three R’s of computer science, giving you the skills to: Read and understand new programming languages; Write your own programming languages; and Reason about programming languages in a rigorous way. 14

  15. Admin Course Overview PL Implementation Why Read? The choice of programming language affects nearly every aspect of a system: Design Development Costs and Productivity Safety and Security Performance The Obvious Learning to read and understand new programming languages is a vital skill in any computing discipline. 15

  16. Admin Course Overview PL Implementation Why Write? You may not implement a general-purpose programming language like C or Haskell in your career. However.. Every company has its own hand-rolled domain-specific language for accomplishing some task, often embedded in another language in a very ad-hoc and ugly way. Example XSLT, Perl scripts for processing text files, CSE’s give system, etc. Learn how to make a PL properly and save yourself and your colleagues from headaches. 16

  17. Admin Course Overview PL Implementation Why Write? You may not implement a general-purpose programming language like C or Haskell in your career. However.. Every company has its own hand-rolled domain-specific language for accomplishing some task, often embedded in another language in a very ad-hoc and ugly way. Example XSLT, Perl scripts for processing text files, CSE’s give system, etc. Learn how to make a PL properly and save yourself and your colleagues from headaches. 17

  18. Admin Course Overview PL Implementation Why Write? You may not implement a general-purpose programming language like C or Haskell in your career. However.. Every company has its own hand-rolled domain-specific language for accomplishing some task, often embedded in another language in a very ad-hoc and ugly way. Example XSLT, Perl scripts for processing text files, CSE’s give system, etc. Learn how to make a PL properly and save yourself and your colleagues from headaches. 18

  19. Admin Course Overview PL Implementation Why Reason? Programming languages are formal languages. Formal specification and proof allows us to: Design languages better , avoiding undefined behaviour and other goblins. Make languages easier to process and parse. COMP3131 Give a mathematical meaning to programs, allowing for formal verification of programs. COMP4161, COMP2111 Develop algorithms to find bugs automatically. COMP3153 Rigorously analyse optimisations and other program transformations. These tools are also very important for the pursuit of research in programming languages. 19

  20. Admin Course Overview PL Implementation Why Reason? Programming languages are formal languages. Formal specification and proof allows us to: Design languages better , avoiding undefined behaviour and other goblins. Make languages easier to process and parse. COMP3131 Give a mathematical meaning to programs, allowing for formal verification of programs. COMP4161, COMP2111 Develop algorithms to find bugs automatically. COMP3153 Rigorously analyse optimisations and other program transformations. These tools are also very important for the pursuit of research in programming languages. 20

  21. Admin Course Overview PL Implementation Bridging the Gap Programmer Source Language Computers can’t typically execute source code directly. Computer Machine Code 21

  22. Admin Course Overview PL Implementation Bridging the Gap Programmer A compiler translates from source Source Language code to a target language, typically machine code. Example: C, C++, Haskell, Rust Compiler Computer Machine Code 22

  23. Admin Course Overview PL Implementation Bridging the Gap An interpreter executes a program as Programmer it reads the source code. Source Language Examples: Perl, Python, JavaScript JIT compilers complicate this picture some- what. Interpreter Computer Machine Code 23

  24. Admin Course Overview PL Implementation Bridging the Gap Some languages make use of a hy- Programmer brid approach. First translating the Source Language source language to an intermediate language (abstract or virtual ma- chine), then interpreting that. Compiler Examples: Java, C# Interpreter Computer Machine Code 24

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend