Standardization, Internationalization Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section.

Slides:



Advertisements
Similar presentations
Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Advertisements

Programming Paradigms Introduction. 6/15/2005 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L1:
Transition from C to C++ …and a Review of Basic Problem Solving.
Programming Types of Testing.
CSE 341, Winter Type Systems Terms to learn about types: –Type –Type system –Statically typed language –Dynamically typed language –Type error –Strongly.
Gary MarsdenSlide 1University of Cape Town Statements & Expressions Gary Marsden Semester 2 – 2000.
PZ05A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ05A - Abstract data types Programming Language Design.
Programming Languages Language Design Issues Why study programming languages Language development Software architectures Design goals Attributes of a good.
PZ07B Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ07B - Basic statements Programming Language Design.
PZ06BX Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ06BX - Introduction to Smalltalk Programming Language.
Programming Languages Structure
Chapter 3 Program translation1 Chapt. 3 Language Translation Syntax and Semantics Translation phases Formal translation models.
PZ01BX Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ01BX - Standardization, Internationalization Programming.
Guide To UNIX Using Linux Third Edition
Decisions in Python Comparing Strings – ASCII History.
Unicode, character sets, and a a little history. Historical Perspective First came EBCIDIC (6 Bits?) Then in the early 1960s came ASCII – Most computers.
ECA 228 Internet/Intranet Design I Meta Tags & Directories.
Sophia Antipolis, September 2006 Multilinguality, localization and internationalization Miruna Bădescu Finsiel Romania.
Overview. Copyright © 2006 The McGraw-Hill Companies, Inc. Chapter 1 Overview A good programming language is a conceptual universe for thinking about.
PZ01A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ01A -- Introduction Programming Language Design and.
1 Web Based Programming Section 6 James King 12 August 2003.
Introduction to FORTRAN
CMSC CMSC 330: Organization of Programming Languages Instructor: Michael Lam (lam at cs) TA: Richard Johnson (rbjohns8 at cs) Introduction.
CS 326 Programming Languages, Concepts and Implementation
COP 4020 Programming Langauges Dr. Roy Levow –Office hours: M 5-6:30 – –
1 Introduction Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Sections
History of C 1950 – FORTRAN (Formula Translator) 1959 – COBOL (Common Business Oriented Language) 1971 – Pascal Between Ada.
CMSC CMSC 330: Organization of Programming Languages Instructor: Michael Lam (lam at cs)‏ TA: Aleks Aris (aris at cs)‏ Introduction.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
Formal Semantics Chapter Twenty-ThreeModern Programming Languages, 2nd ed.1.
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 14 Globalization Support in the Database.
PZ06C Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ06C - Polymorphism Programming Language Design and.
Polymorphism Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section 7.3.
Week 7 Lecture 2 Globalization Support in the Database.
Chapter 3 - Language Design Principles
8-1 Compilers Compiler A program that translates a high-level language program into machine code High-level languages provide a richer set of instructions.
Programming Fundamentals Lecture No. 2. Course Objectives Objectives of this course are three fold 1. To appreciate the need for a programming language.
1 Machine architecture Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Chapter 2.
Understanding Character Encodings Basics of Character Encodings that all Programmers should Know. Pritam Barhate, Cofounder and CTO Mobisoft Infotech.
1 Machine architecture Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Chapter 2.
© 2001, Penn State University Encoding on the Internet Elizabeth J. Pyatt CETS.
Programming Language Concepts (CIS 635) Elsa L Gunter 4303 GITC NJIT,
Ada, Scheme, R Emory Wingard. Ada History Department of Defense in search of high level language around Requirements drafted for the language.
Software Engineering Algorithms, Compilers, & Lifecycle.
Basic statements Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Abstract data types Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
1 Standardization, Internationalization Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section.
PROGRAMMING WITH C ++.
Why study programming languages?
PROGRAMMING LANGUAGES
CS 326 Programming Languages, Concepts and Implementation
Types of Programming Languages
Representing Information as bit patterns
Type Systems Terms to learn about types: Related concepts: Type
PZ06C - Polymorphism Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section 7.3 PZ06C.
Text.
High Level Programming Languages
Abstract data types Programming Language Design and Implementation
Introduction to Computer Programming
Overview of Programming Paradigms
강의 내용 및 방법 접근방법 리포트 시험 Lambda Calculus, Proof of Correctness
Programming Languages and Paradigms
Type Systems Terms to learn about types: Related concepts: Type
Abstract data types Programming Language Design and Implementation
Introduction to Smalltalk
Basic statements Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Basic statements Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
PZ07B - Basic statements Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Basic statements Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Presentation transcript:

Standardization, Internationalization Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section

2 Who defines a language?  Is: I = 1 && | 4; legal in C? What is assigned to I if it is?  3 ways typically to answer this:  1. Read language manual (Problem: Can you find one?)  부정확  2. Read language standard (Problem: Have you ever seen it?)  BNF, Vienna definition language,  3. Write a program to see what happens. (Easy to do!)  C 의 표준은 CC (UNIX)  Most do 3, but current compilers may not give correct answer

3 Creation of standards  Language standards defined by national standards bodies:  ISO - International Standards organization  IEEE - Institute of Electrical and Electronics Engineers  ANSI - American National Standards Institute   code, 언어, 통신규약, XML, 전자책, …  WWW Consortium, EPC Global, …  SMTP(7bits)  MIME(8bits) : Plain text, 음성, 영상,..  All work in a similar way:  1. Working group of volunteers set up to define standard  2. Agree on features for new standard  3. Vote on standard  4. If approved by working group, submitted to parent organization for approval.

4 Creation of standards  Standards in the US are voluntary:  There is no federal standards-making organization.  NIST - National Institute for Standards and Technology develops standards that are only required on federal agencies, not for commercial organizations.  But: Consensus is the key to standards making:  Contentious features often omitted to gain consensus  Only vendors have a vested interest in the results  Users don't care until standard approved, and then it is too late!  한국 ::: 표준연구소, 지경부, 교과부

5 Standards conforming programs  Standards define behavior for a standards conforming program - one that meets the rules of the language standard  In general (except for Ada), behavior of non-conforming program is not specified, so any extensions to a standards conforming compiler may still be standards conforming, even though the program is not standards conforming. –Java 와 관련된 MS 전략  Standards supposed to be reviewed every 5 years  Examples: –FORTRAN 1966, 1977, 1990, 1995, 2003 –Ada 1983, 1995  Not quite 5 years, but at least periodically

6 표준과 특허  De facto 표준  ISO 에서는 주로 특허로 제한된 기술은 표준으로 정하지 않음  국제표준에 따라 정해진 내용이 특허로 되면 심각한 법적 문제를 낳을 수 있음  특허에 의해 “ ㅈㅈㅈ ” -> “www” 로 고치 지 못함 ::: 특허와 관련된 몇 사례 !!!

7 숙제  한글코드의 표준화 과정을 조사한다. 특히 Unicode 가 어떻게 표준화되었 는지 조사한다. 또 KS5601, ISo646, ISO2422, UTF8, UTF16 은 무엇인가 ? – 정희성 박사 특허  자판을 중심으로 표준화가 낳을 수 있는 문제점을 조사한다. 실제 우리가 쓰는 자판은 최대한 글쇠가 엉키지 않게 만듦으로써 오히려 입력속도가 느리다 (QWERT). 이에 따라 새로운 자판 ( 이름을 조사 ) 이 나왔지만 익숙 하지 않아서 아직 보급되지 않고 있다. 한글자판도 2 벌식과 3 벌식이 있는 데 비슷한 문제점이 있다.  현재 XML 을 이용하여 각 분야의 문서표준화가 진행되고 있다. 그 예와 현재 진행상황을 설명하라 !! ( 예, eBook, vXML, 전자상거래 … ), 한 분야 만 잡아서 조사한다.  핸드폰과 스마트폰에서 한글 문자를 입력하는 방법은 표준화되어 있는 가 ? 현재 표준화 상황을 조사하라.  C, C++, Pyton, PHP, HTML, XHTML 의 표준화 과정을 설명하라.

8 When to standardize a language?  Problem: When to standardize a language? –If too late - many incompatible versions - FORTRAN in 1960s was already a de facto standard, but no two were the same –If too early - no experience with language - Ada in 1983 had no running compilers –Just right - Probably Pascal in 1983, although it is rapidly becoming a dead language  Other languages: –C in 1988 : ANSI C –LISP in Way too late : common LISP –De facto standards: ML - One major implementation - SML –Smalltalk - none –Prolog - none

9 Internationalization  I18N issue - Internationalization - How to specify languages useful in a global economy?  Characters used internationally: –Single 8-bit byte; usual format today character values. A lot in 1963, but insufficient today –ASCII is a 7 bit 128 character code  What about other languages? –Additional letters: German umlaut-ä, French accent-é, Scandanavian symbols-ö, –Russian, other alphabets (Greek, Arabic, Hebrew), ideographs (Chinese), 한글 –Unicode - 16 bit code allows for 65K symbols. 8-bit byte is insufficient

10 Internationalization (continued)  I18N name avoids deciding between internationalization and localization  Some of the internationalization issues:  What character codes to use?  Collating sequences? - How do you alphabetize various languages?  Dates? - What date is 10/12/01? Is it a date in October or December?  Time? - How do you handle time zones, summer time in Europe, daylight savings time in US, Southern hemisphere is 6 months out of phase with northern hemisphere, Date to change from summer to standard time is not consistent.  Currency? - How to handle dollars, pounds, marks, francs, euros, 원, etc.  XML 에서는 dublin core 를 사용

11 Summary  Language design today must:  Allow program solution to match physical structure of problem  Allow for world-wide use  Be easy to prove solution correct  Rest of course will work on these goals

12 Programming Environment  The environments in which programs are created and tested  Separate compilation –Co-development of any large program –Function prototypes, external variables(COMMON, extern), naming convention(_…), Scope rule (Pascal, C, Ada), inheritance (Ada, C++), polymorphism, overloaded (Ada) –Stub : a subprogram call made to a subprogram that has not yet been compiled –To provide information for separate compilation FOTRAN : COMMON <- redeclaration Compile 순서 관리 <- Ada. A library containing specifications –Consistency of the external data or subprograms Linking?

13 Programming Environment (cont.)  Testing and debugging –Execution trace features (LISP, Prolog, … C debugger) Statements, variables –Breakpoints –Assertions Assert(X>0)  % Exception handling