Supporting Concurrency Abstractions in High-Level Language Virtual Machines

Total Page:16

File Type:pdf, Size:1020Kb

Supporting Concurrency Abstractions in High-Level Language Virtual Machines Faculty of Science and Bio-Engineering Sciences Department of Computer Science Software Languages Lab Supporting Concurrency Abstractions in High-level Language Virtual Machines Dissertation Submitted for the Degree of Doctor of Philosophy in Sciences Stefan Marr Promotor: Prof. Dr. Theo D’Hondt Copromotor: Dr. Michael Haupt January 2013 Print: Silhouet, Maldegem © 2013 Stefan Marr 2013 Uitgeverij VUBPRESS Brussels University Press VUBPRESS is an imprint of ASP nv (Academic and Scientific Publishers nv) Ravensteingalerij 28 B-1000 Brussels Tel. +32 (0)2 289 26 50 Fax +32 (0)2 289 26 59 E-mail: [email protected] www.vubpress.be ISBN 978 90 5718 256 3 NUR 989 Legal deposit D/2013/11.161/010 All rights reserved. No parts of this book may be reproduced or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the author. DON’T PANIC ABSTRACT During the past decade, software developers widely adopted JVM and CLI as multi-language virtual machines (VMs). At the same time, the multicore revolution burdened developers with increasing complexity. Language im- plementers devised a wide range of concurrent and parallel programming concepts to address this complexity but struggle to build these concepts on top of common multi-language VMs. Missing support in these VMs leads to tradeoffs between implementation simplicity, correctly implemented lan- guage semantics, and performance guarantees. Departing from the traditional distinction between concurrency and paral- lelism, this dissertation finds that parallel programming concepts benefit from performance-related VM support, while concurrent programming concepts benefit from VM support that guarantees correct semantics in the presence of reflection, mutable state, and interaction with other languages and libraries. Focusing on these concurrent programming concepts, this dissertation finds that a VM needs to provide mechanisms for managed state, managed execution, ownership, and controlled enforcement. Based on these requirements, this disser- tation proposes an ownership-based metaobject protocol (OMOP) to build novel multi-language VMs with proper concurrent programming support. This dissertation demonstrates the OMOP’s benefits by building concur- rent programming concepts such as agents, software transactional memory, actors, active objects, and communicating sequential processes on top of the OMOP. The performance evaluation shows that OMOP-based implementa- tions of concurrent programming concepts can reach performance on par with that of their conventionally implemented counterparts if the OMOP is supported by the VM. To conclude, the OMOP proposed in this dissertation provides a unifying and minimal substrate to support concurrent programming on top of multi- language VMs. The OMOP enables language implementers to correctly im- plement language semantics, while simultaneously enabling VMs to provide efficient implementations. iii SAMENVATTING Over de laatste jaaren hebben softwareontikkelaars de JVM en CLI beginnen gebruiken als multi-language virtual machines (VM). Gelyktydig werd door de multicore revolutie de taak van de softwareontwikkelaar vermoeilijkt. Pro- grammeertaalontwerpers ontwikkelden een grote variëteit aan concurrente en parallelle programmeerconcepten, maar het implementeren van deze con- cepten bovenop de multi-language VM’s blijft een penibel probleem. Gebrek- kige ondersteuning hiervoor in de VM’s leidt tot afwegingen in de program- meertaalimplementaties tussen simpliciteit, correctheid en performantie. Vertrekkende van de traditionele verdeling tussen concurrent en parallel programmeren vindt deze verhandeling dat parallelle programmeerconcepten voordeel halen uit performantie-gerelateerde VM ondersteuning, gelykaardig halen concurrente programmeerconcepten voordeel halen uit correctheids- garanties van semantiek onder reflectie, mutable state en interactie met an- dere programmeertalen en libraries. Door het toe te spitsen op deze concurrente programmeerconcepten vindt deze verhandeling dat een VM mechanismen moet aanbieden voor managed state, managed execution, ownership en controlled enforcement. Daarop gebaseerd stelt deze verhandeling een ownership-based metaobject protocol (OMOP) voor om vernieuwende multi-language VM’s te bouwen met fatsoenlijke onderste- uning voor concurrente programmeerconcepten. We demonstreeren de voordelen van de OMOP door er concurrente pro- grammeerconcepten bovenop te bouwen, zoals agents, software transactional memory, actors, active object en communicating sequential processes. De per- formantieëvaluatie toont aan dat implementaties bovenop de OMOP van deze concurrente programmeerconcepten de performantie kan evenaren van con- ventionele implementaties, zolang de OMOP ondersteund is door de VM. In conclusie, de OMOP biedt een verenigd substraat aan om concurrent pro- grammeren te ondersteunen bovenop multi-language VM’s. De OMOP laat programmeertaalontwikkelaars toe om op een correcte manier de semantiek van een taal te implementeren, maar het laat ook deze VM’s toe om hiervoor een efficiënte implementatie te voorzien. v ACKNOWLEDGMENTS First and foremost, I would like to heartily thank my promotors Theo D’Hondt and Michael Haupt for their advice and support. I am truly grateful to Theo for the opportunity and freedom to pursue my research interests at his lab. I am greatly indebted to Michael for sparking my interest in virtual machines with his lectures and for his continuous support throughout the years. I sincerely thank the members of my Ph.D. committee for the time and effort they put into the evaluation of this work: David Ungar, Shigeru Chiba, Tom Van Cutsem, Wolfgang De Meuter, and Jacques Tiberghien. I am earnestly thankful to David Ungar and IBM Research for their collab- oration as part of the Renaissance project. His persistence in searching for the fundamental roots of a problem greatly influenced my work and thinking. To all of my colleagues of the Software Languages Lab, I am equally grate- ful. Your feedback guided my investigations for this dissertation. Moreover, I am truly indebted for your support from the very beginning. Your help was essential for me to successfully write and defend my scholarship proposal. Special thanks goes to the Parallel Programming Group for all of our insight- ful debates. I would especially like to thank Charlotte Herzeel and Bruno De Fraine for their feedback on the very first drafts of this dissertation. My personal thanks go to Stijn Timbermont and Elisa González Boix for “getting ze German started” at the lab and helping me to find my way in Brussels. I also want to thank Andoni, Andy, Carlos, Christophe, Coen, Eline, Engineer, Jorge, Lode, Nicolás, Wolf, et al. for their friendship and support. Ganz besonders möchte ich mich auch bei meinen Eltern und Schwestern für ihre bedingungslose Liebe, stetige Unterstützung und beständigen Rückhalt bedanken. I want to thank my friends in Brussels from all over the world. Brussels is a wonderful place to learn about cultural differences and I would not want to miss this experience, nor the beach volleyball during rainy summers. Thanks! Last but not least, I would like to thank Kimberly for her patience and understanding and the time we have together. This work is funded by a Ph.D. scholarship of IWT, for which I am grateful. vii CONTENTS 1. Introduction 1 1.1. Research Context . 2 1.2. Problem Statement . 3 1.3. Research Goals . 5 1.4. Dissertation Outline . 6 1.5. Supporting Publications and Technical Contributions . 8 2. Context and Motivation 13 2.1. Multi-Language Virtual Machines . 14 2.2. The Multicore Revolution . 17 2.3. Concurrent vs. Parallel Programming: Definitions . 18 2.3.1. Concurrency and Parallelism . 18 2.3.2. Concurrent Programming and Parallel Programming . 20 2.3.3. Conclusion . 23 2.4. Common Approaches to Concurrent and Parallel Programming 23 2.4.1. Taxonomies . 24 2.4.2. Threads and Locks . 26 2.4.3. Communicating Threads . 27 2.4.4. Communicating Isolates . 30 2.4.5. Data Parallelism . 33 2.4.6. Summary . 35 2.5. Building Applications: The Right Tool for the Job . 36 2.6. Summary . 37 3. Which Concepts for Concurrent and Parallel Progr. does a VM need to Support? 39 3.1. VM Support for Concurrent and Parallel Programming . 40 3.1.1. Survey Design . 40 3.1.1.1. Survey Questions . 40 ix Contents 3.1.1.2. Survey Subjects . 41 3.1.1.3. Survey Execution . 42 3.1.2. Results . 44 3.1.2.1. Threads and Locks . 45 3.1.2.2. Communicating Threads . 49 3.1.2.3. Communicating Isolates . 50 3.1.2.4. Data Parallelism . 53 3.1.2.5. Threats to Validity . 53 3.1.3. Conclusion . 55 3.2. A Survey of Parallel and Concurrent Programming Concepts . 56 3.2.1. Survey Design . 57 3.2.1.1. Survey Questions . 57 3.2.1.2. Selecting Subjects and Identifying Concepts . 58 3.2.2. Results . 59 3.2.3. Threats to Validity . 67 3.2.4. Summary . 67 3.2.4.1. General Requirements . 69 3.2.4.2. Connection with Concurrent and Parallel Pro- gramming . 70 3.2.4.3. Conclusions . 71 3.3. Common Problems for the Implementation of Concurrency Ab- stractions . 71 3.3.1. Overview . 71 3.3.2. Isolation . 72 3.3.3. Scheduling Guarantees . 75 3.3.4. Immutability . 77 3.3.5. Reflection . 79 3.3.6. Summary . 81 3.4. Requirements for a Unifying Substrate for Concurrent Program- ming . 82 3.5. Conclusions . 86 4. Experimentation Platform 89 4.1. Requirements for the Experimentation Platform . 90 4.2. SOM: Simple Object Machine . 90 4.2.1. Language Overview and Smalltalk Specifics . 91 4.2.2. Execution Model and Bytecode Set . 94 4.3. Squeak and Pharo Smalltalk . 100 x Contents 4.4. RoarVM . 101 4.4.1. Execution Model, Primitives, and Bytecodes . 102 4.4.2. Memory Systems Design . 104 4.4.3. Process-based Parallel VM . 107 4.4.4. Final Remarks . 107 4.5. Summary . 108 5. An Ownership-based MOP for Expressing Concurrency Abstractions109 5.1. Open Implementations and Metaobject Protocols . 110 5.2. Design of the OMOP . 113 5.3. The OMOP By Example . 118 5.3.1. Enforcing Immutability . 118 5.3.2.
Recommended publications
  • Ref.Pdf 7.02KB 2020-09-13 23:03:26
    Introduction to Smalltalk - References Ó Ivan Tomek 9/18/00 References Books Kent Beck: Smalltalk: Best Practice Patterns, Prentice-Hall, 1997. Timothy Budd: A Little Smalltalk, Addison-Wesley, 1987. Erich Gamma, Richard Helm, Ralph Johnson, John Vlassides: Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, 1995. Adele Goldberg: Smalltalk-80: The Interactive Programming Environment, Addison-Wesley, 1983. Adele Goldberg, David Robson: Smalltalk-80: The Language and its Implementation, Addison-Wesley, 1985. Adele Goldberg, David Robson: Smalltalk-80, The Language, Addison-Wesley, 1989. Trevor Hopkins, Bernard Horan: Smalltalk: An Introduction to Application Development Using VisualWorks, Prentice-Hall, 1995. Tim Howard: The Smalltalk Developer’s Guide to Visual Works, SIGS Books, 1995. Ted Kaehler, Dave Patterson: A Taste of Smalltalk, Norton, 1986. Wilf Lalonde: Discovering Smalltalk, Addison-Wesley, 1994. Wilf Lalonde, John R. Pugh: Inside Smalltalk, Volume I, II, Prentice-Hall, 1991. Wilf Lalonde, John R. Pugh: Smalltalk/V, Practice and Experience, Prentice-Hall, 1994. Simon Lewis: The Art and Science of Smalltalk, Prentice-Hall, 1995. Chamond Liu: Smalltalk, Objects, and Design, Prentice-Hall, 1996. Mark Lorenz: Rapid Software Development with Smalltalk, SIGS Books, 1995. Lewis J. Pinson: An Introduction to Object-Oriented Programming and Smalltalk, Addison-Wesley, 1988. Jonathan Pletzke: Advanced Smalltalk, Wiley, 1997. Wolfgang Pree: Design Patterns for Object-Oriented Software Development, Addison-Wesley, 1994. Timothy Ryan: Distributed Object Technology, Concepts and Applications, Prentice-Hall, 1996. Dusko Savic: Object-Oriented Programming with Smalltalk, Prentice-Hall, 1990. Susan Skublics, Edward J. Klimas, David A. Thomas: Smalltalk with Style, Prentice-Hall, 1996. Dan Shafer, Dean A. Ritz: Practical Smalltalk, Springer-Verlag, 1991.
    [Show full text]
  • A Metacircular Architecture for Runtime Optimisation Persistence Clément Béra
    Sista: a Metacircular Architecture for Runtime Optimisation Persistence Clément Béra To cite this version: Clément Béra. Sista: a Metacircular Architecture for Runtime Optimisation Persistence. Program- ming Languages [cs.PL]. Université de Lille 1, 2017. English. tel-01634137 HAL Id: tel-01634137 https://hal.inria.fr/tel-01634137 Submitted on 13 Nov 2017 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Universit´edes Sciences et Technologies de Lille { Lille 1 D´epartement de formation doctorale en informatique Ecole´ doctorale SPI Lille UFR IEEA Sista: a Metacircular Architecture for Runtime Optimisation Persistence THESE` pr´esent´eeet soutenue publiquement le 15 Septembre 2017 pour l'obtention du Doctorat de l'Universit´edes Sciences et Technologies de Lille (sp´ecialit´einformatique) par Cl´ement B´era Composition du jury Pr´esident: Theo D'Hondt Rapporteur : Ga¨elThomas, Laurence Tratt Examinateur : Elisa Gonzalez Boix Directeur de th`ese: St´ephaneDucasse Co-Encadreur de th`ese: Marcus Denker Laboratoire d'Informatique Fondamentale de Lille | UMR USTL/CNRS 8022 INRIA Lille - Nord Europe Numero´ d’ordre: XXXXX i Acknowledgments I would like to thank my thesis supervisors Stéphane Ducasse and Marcus Denker for allowing me to do a Ph.D at the RMoD group, as well as helping and supporting me during the three years of my Ph.D.
    [Show full text]
  • The Future: the Story of Squeak, a Practical Smalltalk Written in Itself
    Back to the future: the story of Squeak, a practical Smalltalk written in itself Dan Ingalls, Ted Kaehler, John Maloney, Scott Wallace, and Alan Kay [Also published in OOPSLA ’97: Proc. of the 12th ACM SIGPLAN Conference on Object-oriented Programming, 1997, pp. 318-326.] VPRI Technical Report TR-1997-001 Viewpoints Research Institute, 1209 Grand Central Avenue, Glendale, CA 91201 t: (818) 332-3001 f: (818) 244-9761 Back to the Future The Story of Squeak, A Practical Smalltalk Written in Itself by Dan Ingalls Ted Kaehler John Maloney Scott Wallace Alan Kay at Apple Computer while doing this work, now at Walt Disney Imagineering 1401 Flower Street P.O. Box 25020 Glendale, CA 91221 [email protected] Abstract Squeak is an open, highly-portable Smalltalk implementation whose virtual machine is written entirely in Smalltalk, making it easy to debug, analyze, and change. To achieve practical performance, a translator produces an equivalent C program whose performance is comparable to commercial Smalltalks. Other noteworthy aspects of Squeak include: a compact object format that typically requires only a single word of overhead per object; a simple yet efficient incremental garbage collector for 32-bit direct pointers; efficient bulk- mutation of objects; extensions of BitBlt to handle color of any depth and anti-aliased image rotation and scaling; and real-time sound and music synthesis written entirely in Smalltalk. Overview Squeak is a modern implementation of Smalltalk-80 that is available for free via the Internet, at http://www.research.apple.com/research/proj/learning_concepts/squeak/ and other sites. It includes platform-independent support for color, sound, and image processing.
    [Show full text]
  • April 22 -- STEPS NSF 2012 Report
    ! 2012 REPORT ! STEPS Toward Expressive Programming Systems ! “A#Science#Experiment”# ! by# (In#random#order)#Yoshiki#Ohshima,#Dan#Amelang,#Ted#Kaehler,#Bert#Freudenberg,# Aran#Lunzer,#Alan#Kay,#Ian#Piumarta,#Takashi#Yamamiya,#Alan#Borning,#Hesam# Samimi,#Bret#Victor,#Kim#Rose*# VIEWPOINTS#RESEARCH#INSTITUTE# # # *These#are#the#STEPS#researchers#for#the#year#2012.#For#a#complete#listing# of#the#participants#over#the#length#of#the#project#see#the#section#on#the# NSF#site#which#contains#this#report.# TABLE OF CONTENTS — The STEPS Project for the General Public Summary of the STEPS project . Origin . STEPS aims at personal computing . What does STEPS look like? . STEPS is a “science project” . General approach . “T-shirt programming” . Overall map of STEPS . General STEPS results . Making “runnable maths” . Assessing STEPS Summary of STEPS research in 2012 . Inventing & building a language for STEPS “UI and applications”, and rewriting Frank in it . Producing a workable “chain of meaning” that extends from the screen all the way to the CPU . Inventing methods that create automatic visualizers for languages created from metalanguages . Continuing the start of “What vs How” programming via “Cooperating Languages and Solvers” Reflections on the STEPS Project to Date References Outreach Activities for final year of NSF part of the STEPS project Publications for the NSF part of the STEPS project Appendix I: KScript and KSWorld Appendix II: Making Applications in KSWorld ——— ! The$STEPS$Project$For$The$General$Public$ If#computing#is#important—for#daily#life,#learning,#business,#national#defense,#jobs,#and#
    [Show full text]
  • Multiprocessing Contents
    Multiprocessing Contents 1 Multiprocessing 1 1.1 Pre-history .............................................. 1 1.2 Key topics ............................................... 1 1.2.1 Processor symmetry ...................................... 1 1.2.2 Instruction and data streams ................................. 1 1.2.3 Processor coupling ...................................... 2 1.2.4 Multiprocessor Communication Architecture ......................... 2 1.3 Flynn’s taxonomy ........................................... 2 1.3.1 SISD multiprocessing ..................................... 2 1.3.2 SIMD multiprocessing .................................... 2 1.3.3 MISD multiprocessing .................................... 3 1.3.4 MIMD multiprocessing .................................... 3 1.4 See also ................................................ 3 1.5 References ............................................... 3 2 Computer multitasking 5 2.1 Multiprogramming .......................................... 5 2.2 Cooperative multitasking ....................................... 6 2.3 Preemptive multitasking ....................................... 6 2.4 Real time ............................................... 7 2.5 Multithreading ............................................ 7 2.6 Memory protection .......................................... 7 2.7 Memory swapping .......................................... 7 2.8 Programming ............................................. 7 2.9 See also ................................................ 8 2.10 References .............................................
    [Show full text]
  • 1. with Examples of Different Programming Languages Show How Programming Languages Are Organized Along the Given Rubrics: I
    AGBOOLA ABIOLA CSC302 17/SCI01/007 COMPUTER SCIENCE ASSIGNMENT ​ 1. With examples of different programming languages show how programming languages are organized along the given rubrics: i. Unstructured, structured, modular, object oriented, aspect oriented, activity oriented and event oriented programming requirement. ii. Based on domain requirements. iii. Based on requirements i and ii above. 2. Give brief preview of the evolution of programming languages in a chronological order. 3. Vividly distinguish between modular programming paradigm and object oriented programming paradigm. Answer 1i). UNSTRUCTURED LANGUAGE DEVELOPER DATE Assembly Language 1949 FORTRAN John Backus 1957 COBOL CODASYL, ANSI, ISO 1959 JOSS Cliff Shaw, RAND 1963 BASIC John G. Kemeny, Thomas E. Kurtz 1964 TELCOMP BBN 1965 MUMPS Neil Pappalardo 1966 FOCAL Richard Merrill, DEC 1968 STRUCTURED LANGUAGE DEVELOPER DATE ALGOL 58 Friedrich L. Bauer, and co. 1958 ALGOL 60 Backus, Bauer and co. 1960 ABC CWI 1980 Ada United States Department of Defence 1980 Accent R NIS 1980 Action! Optimized Systems Software 1983 Alef Phil Winterbottom 1992 DASL Sun Micro-systems Laboratories 1999-2003 MODULAR LANGUAGE DEVELOPER DATE ALGOL W Niklaus Wirth, Tony Hoare 1966 APL Larry Breed, Dick Lathwell and co. 1966 ALGOL 68 A. Van Wijngaarden and co. 1968 AMOS BASIC FranÇois Lionet anConstantin Stiropoulos 1990 Alice ML Saarland University 2000 Agda Ulf Norell;Catarina coquand(1.0) 2007 Arc Paul Graham, Robert Morris and co. 2008 Bosque Mark Marron 2019 OBJECT-ORIENTED LANGUAGE DEVELOPER DATE C* Thinking Machine 1987 Actor Charles Duff 1988 Aldor Thomas J. Watson Research Center 1990 Amiga E Wouter van Oortmerssen 1993 Action Script Macromedia 1998 BeanShell JCP 1999 AngelScript Andreas Jönsson 2003 Boo Rodrigo B.
    [Show full text]
  • Notetaker2 Systenl Manual
    This document is for Xerox internal use on!y DRAFT· "DRAFT· DRAFT - DRAFT NoteTaker2 Systenl Manual BY Douglas G. Fairbairn and Bruce Horn October 1978 SSL-78-1 xxx ABSTRACT This manual describes the NoteTaker2 computing system. The NoteTaker2 is a portable computer of considerable power useful for a wide range of computational and simulation­ oriented functions. XEROX PALO ALTO RESEARCH CENTER 3333 Coyote Hill Road / Palo Alto / California 94304 This document is for Xerox internal use only DRAFT· DRAFT· DRAFT· DRAFT NoteTaker2 System Manual - DRAFT· DRAFT ~ September 30, 1979 5:39 PM 2 PREFACE NoteTaker2 is a very powerful portable computer intended for a wide variety of applications. Its intended users are "children of all ages": five-year-olds and high school students, as well as writers, researchers, artists, managers, and engineers. NoteTaker2 offers the capability of a general-purpose minicomputer, and allows it to be used without even plugging it into an AC power outlet. This manual describes the hardware components of the system in three levels of detail. The introduction summarizes the main features of the NoteTaker2 hardware. Section 2 gives an overview of the architecture. Section 3 offers the detail required to program the system and to interface other devices to it. NoteTaker2 has its roots in the long-time desire of the Learning Research Group at the Xerox Palo Alto Research Center (Xerox PARe) to have a portable system on which to experiment with its ideas concerning personal computers. The architecture of the machine was defined by Douglas Fairbairn of the LSI Systems Area at PARC in conjunction with LRG.
    [Show full text]
  • Instructions Separator
    An Introduction to Smalltalk for Objective-C Programmers O’Reilly Mac OS X Conference October 25—28, 2004 Philippe Mougin - [email protected] http://www.fscript.org IT Management & Consulting What you will get from this session • An understanding of the basic principles of Smalltalk. • The ability to read code. • An overview of Smalltalk options available on Mac OS X. Objective-C “Objective-C is a hybrid language that contains all of C language plus major parts of Smalltalk-80.” Brad Cox Objective-C: [playList addSong:aSong] Smalltalk: playList addSong:aSong Xerox Palo Alto Research Center Alan Kay Dan Ingalls Adele Goldberg Ted Kaehler Steve Jobs meets Smalltalk • “They showed me 3 things: graphical user interfaces, object oriented computing and networking.” • z • z • z • z Steve on a chair Smalltalk on a Xerox Alto III • “I only saw the first one which was so incredible to me that it saturated me...” • “If I'd only stayed another 20 minutes!” • “It took really until a few years ago for the industry to fully recreate it, in this case with NeXTSTEP.” Smalltalk • ANSI standard approved in 1998: ANSI INCITS 319-1998 • A pure object language: everything is an object •“Smalltalk'sdd design is due to the insight that everything we can describe can be represented by the recursive composition of a singled kind of behavioral building block that hides its •combination of state and process inside itself and can be dealt with• onls y through the exchange of messages.” Alan Kay • Message sending is (almost) the only control structure. • Interactive environment. • Simplicity and power.
    [Show full text]
  • On the Revival of Dynamic Languages
    On the Revival of Dynamic Languages Oscar Nierstrasz, Alexandre Bergel, Marcus Denker, St´ephane Ducasse, Markus G¨alli, and Roel Wuyts Software Composition Group, University of Bern www.iam.unibe.ch/∼scg Abstract. The programming languages of today are stuck in a deep rut that has developed over the past 50 years. Although we are faced with new challenges posed by enormous advances in hardware and internet technology, we continue to struggle with old-fashioned languages based on rigid, static, closed-world file-based views of programming. We argue the need for a new class of dynamic languages that support a view of pro- gramming as constant evolution of living and open software models. Such languages would require features such as dynamic first-class namespaces, explicit meta-models, optional, pluggable type systems, and incremental compilation of running software systems. 1 Introduction It is no exaggeration to say that mainstream programming languages of today are inherently static. That is to say, these languages tolerate change at compile time, but precious little at run-time. To state the case more strongly, most languages assume a closed world view: specifically, they assume that the world is consistent, and it will not change. That this assumption is patently false is obvious to anyone who has experi- enced the development of real, large software systems. Nevertheless, it is a fact that virtually no programming language today provides specific language mech- anisms to help developers cope with the fact that the systems they work on will, inevitably change [LB85]. As concrete examples, we can observe that it is hard to: – modify a running system, – make changes that impact the whole system, – reason about consequences of change, – introduce run-time reflection on-demand, – keep code, documentation and tests synchronized.
    [Show full text]
  • Chapter 3 – Design Patterns: Model-View- Controller
    SOFTWARE ARCHITECTURES Chapter 3 – Design Patterns: Model-View- Controller Martin Mugisha Brief History Smalltalk programmers developed the concept of Model-View-Controllers, like most other software engineering concepts. These programmers were gathered at the Learning Research Group (LRG) of Xerox PARC based in Palo Alto, California. This group included Alan Kay, Dan Ingalls and Red Kaehler among others. C language which was developed at Bell Labs was already out there and thus they were a few design standards in place[ 1] . The arrival of Smalltalk would however change all these standards and set the future tone for programming. This language is where the concept of Model-View- Controller first emerged. However, Ted Kaehler is the one most credited for this design pattern. He had a paper in 1978 titled ‘A note on DynaBook requirements’. The first name however for it was not MVC but ‘Thing-Model-View-Set’. The aim of the MVC pattern was to mediate the way the user could interact with the software[ 1] . This pattern has been greatly accredited with the later development of modern Graphical User Interfaces(GUI). Without Kaehler, and his MVC, we would have still been using terminal to input our commands. Introduction Model-View-Controller is an architectural pattern that is used for implementing user interfaces. Software is divided into three inter connected parts. These are the Model, View, and Controller. These inter connection is aimed to separate internal representation of information from the way it is presented to accepted users[ 2] . fig 1 SOFTWARE ARCHITECTURES As shown in fig 1, the MVC has three components that interact to show us our unique information.
    [Show full text]
  • Comparative Programming Languages CM20253
    We have briefly covered many aspects of language design And there are many more factors we could talk about in making choices of language The End There are many languages out there, both general purpose and specialist And there are many more factors we could talk about in making choices of language The End There are many languages out there, both general purpose and specialist We have briefly covered many aspects of language design The End There are many languages out there, both general purpose and specialist We have briefly covered many aspects of language design And there are many more factors we could talk about in making choices of language Often a single project can use several languages, each suited to its part of the project And then the interopability of languages becomes important For example, can you easily join together code written in Java and C? The End Or languages And then the interopability of languages becomes important For example, can you easily join together code written in Java and C? The End Or languages Often a single project can use several languages, each suited to its part of the project For example, can you easily join together code written in Java and C? The End Or languages Often a single project can use several languages, each suited to its part of the project And then the interopability of languages becomes important The End Or languages Often a single project can use several languages, each suited to its part of the project And then the interopability of languages becomes important For example, can you easily
    [Show full text]
  • Commemorative Booklet for the Thirty-Fifth Asilomar Microcomputer Workshop April 15-17, 2009 Programs from the 1975-2009 Worksho
    35 Commemorative Booklet for the Thirty-Fifth Asilomar Microcomputer Workshop April 15-17, 2009 Programs from the 1975-2009 Workshops This file available at www.amw.org AMW: 3dh Workshop Prologue - Ted Laliotis The Asilomar Microcomputer Workshop (AMW) has played a very important role during its 30 years ofexistence. Perhaps, that is why it continues to be well attended. The workshop was founded in 1975 as an IEEE technical workshop sponsored by the Western Area Committee ofthe IEEE Computer Society. The intentional lack of written proceedings and the exclusion of general press representatives was perhaps the most distinctive characteristic of AMW that made it so special and successful. This encouraged the scientists and engineers who were at the cutting edge ofthe technology, the movers and shakers that shaped Silicon Valley, the designers of the next generation microprocessors, to discuss and debate freely the various issues facing microprocessors. In fact, many features, or lack of, were born during the discussions and debates at AMW. We often referred to AMW and its attendees as the bowels of Silicon Valley, even though attendees came from all over the country, and the world. Another characteristic that made AMW special was the "required" participation and contribution by all attendees. Every applicant to attend AMW had to convince the committee that he had something to contribute by speaking during one of the sessions or during the open mike session. In the event that someone slipped through and was there only to listen, that person was not invited back the following year. The decades ofthe 70's and 80's were probably the defining decades for the amazing explosion of microcomputers.
    [Show full text]