A Declarative Metaprogramming Language for Digital Signal

Total Page:16

File Type:pdf, Size:1020Kb

A Declarative Metaprogramming Language for Digital Signal Vesa Norilo Kronos: A Declarative Centre for Music and Technology University of Arts Helsinki, Sibelius Academy Metaprogramming PO Box 30 FI-00097 Uniarts, Finland Language for Digital [email protected] Signal Processing Abstract: Kronos is a signal-processing programming language based on the principles of semifunctional reactive systems. It is aimed at efficient signal processing at the elementary level, and built to scale towards higher-level tasks by utilizing the powerful programming paradigms of “metaprogramming” and reactive multirate systems. The Kronos language features expressive source code as well as a streamlined, efficient runtime. The programming model presented Downloaded from http://direct.mit.edu/comj/article-pdf/39/4/30/1953749/comj_a_00330.pdf by guest on 25 September 2021 is adaptable for both sample-stream and event processing, offering a cleanly functional programming paradigm for a wide range of musical signal-processing problems, exemplified herein by a selection and discussion of code examples. Signal processing is fundamental to most areas handful of simple concepts. This language is a good of creative music technology. It is deployed on fit for hardware—ranging from CPUs to GPUs and both commodity computers and specialized sound- even custom-made DSP chips—but unpleasant for processing hardware to accomplish transformation humans to work in. Human programmers are instead and synthesis of musical signals. Programming these presented with a very high-level metalanguage, processors has proven resistant to the advances in which is compiled into the lower-level data flow. general computer science. Most signal processors This programming method is called Kronos. are programmed in low-level languages, such as C, often thinly wrapped in rudimentary C++. Such a workflow involves a great deal of tedious detail, as Musical Programming Paradigms these languages do not feature language constructs and Environments that would enable a sufficiently efficient imple- mentation of abstractions that would adequately The most prominent programming paradigm for generalize signal processing. Although a variety musical signal processing is the unit generator of specialized musical programming environments language (Roads 1996, pp. 787–810). Some examples have been developed, most of these do not enable of “ugen” languages include the Music N family (up the programming of actual signal processors, forcing to the contemporary Csound; see Boulanger 2000), as the user to rely on built-in black boxes that are well as Pure Data (Puckette 1996) and SuperCollider typically monolithic, inflexible, and insufficiently (McCartney 2002). general. In this article, I argue that much of this stems from the computational demands of real-time signal The Unit Generator Paradigm processing. Although much of signal processing is very simple in terms of program or data structures, The success of the unit generator paradigm is driven it is hard to take advantage of this simplicity in a by the declarative nature of the ugen graph; the general-purpose compiler to sufficiently optimize programmer describes data flows between primitive, constructs that would enable a higher-level signal- easily understood unit generators. processing idiom. As a solution, I propose a highly It is noteworthy that the typical selection of streamlined method for signal processing, starting ugens in these languages is very different from the from a minimal dataflow language that can describe primitives and libraries available in general-purpose the vast majority of signal-processing tasks with a languages. Whereas languages like C ultimately consist of the data types supported by a CPU and the Computer Music Journal, 39:4, pp. 30–48, Winter 2015 primitive operations on them, a typical ugen could doi:10.1162/COMJ a 00330 be anything from a simple mathematical operation c 2015 Massachusetts Institute of Technology. to a reverberator or a pitch tracker. Ugen languages 30 Computer Music Journal tend to offer a large library of highly specialized processing is vectorized to amortize the cost of ugens rather than focusing on a small orthogonal dynamic dispatch over buffers of data instead of set of primitives that could be used to express any individual samples. desired program. The libraries supplied with most Consider a buffer size of 128 samples, which is general-purpose languages tend to be written in often considered low enough to not interfere in those languages; this is not the case with the typical a real-time musical performance. For a ugen that ugen language. semantically maps to a single hardware instruction, Downloaded from http://direct.mit.edu/comj/article-pdf/39/4/30/1953749/comj_a_00330.pdf by guest on 25 September 2021 misprediction could consume 36 percent to 53 percent of the time on a Sandy Bridge CPU, as The Constraints of the Ugen Interpreter derived from the numbers previously stated. To I classify the majority of musical programming reduce the impact of this cost, the ugen should environments as ugen interpreters. Such environ- spend more time doing useful work. ments are written in a general-purpose programming Improving the efficiency of the interpreter could language, along with the library of ugens that are involve either increasing the buffer size further or available for the user. These are implemented in increasing the amount of useful work a ugen does per a way that allows late binding composition: the dispatch. As larger buffer sizes introduce latency, ugens are designed to be able to connect to the ugen design is driven to favor large, monolithic inputs and outputs of other, arbitrary ugens. This blocks, very unlike the general-purpose primitives is similar to how traditional program interpreters most programming languages use as the starting work—threading user programs from predefined point, or the native instructions of the hardware. native code blobs—hence the term ugen interpreter. In addition, any buffering introduces a delay In this model, ugens must be implemented via equivalent to the buffer size to all feedback connec- parametric polymorphism: as a set of objects that tions in the system, which precludes applications share a suitable amount of structure, to be able to such as elementary filter design or many types of interconnect and interact with the environment, physical modeling. regardless of the exact type of the ugen in ques- tion. Dynamic dispatch is required, as the correct An Ousterhout Corollary signal-processing routine must be reached through an indirect branch. This is problematic for contem- John Ousterhout’s dichotomy claims that program- porary hardware, as the hardware branch prediction ming languages are either systems programming relies on the hardware instruction pointer: In an languages or scripting languages (Ousterhout 1998). interpreter, the hardware instruction pointer and To summarize, the former are statically typed, and the interpreter program location are unrelated. produce efficient programs that operate in isolation. A relevant study (Ertl and Gregg 2007) cites C is the prototypical representative of this group. misprediction rates of 50 percent to 98 percent for The latter are dynamically typed, less concerned typical interpreters. The exact cost of misprediction with efficiency, intended to glue together distinct depends on the computing hardware and is most components of a software system. These are repre- often not fully disclosed. On a Sandy Bridge CPU by sented by languages such as bash, or Ousterhout’s Intel, the cost is typically 18 clock cycles; as a point own Tcl. of reference, the chip can compute 144 floating-point The Ousterhout dichotomy is far from universally operations in 18 cycles at peak throughput. There accepted, although an interesting corollary to are state-of-the-art methods (Ertl and Gregg 2007; musical programming can be found. Unit generators Kim et al. 2009) to improve interpreter performance. are the static, isolated, and efficient components Most musical programming environments choose in most musical programming languages. They instead a simple, yet reasonably effective, means are typically built with languages aligned with of mitigating the cost of dynamic dispatch. Audio Ousterhout’s systems programming group. The Norilo 31 scripting group is mirrored by the programming Nyquist: Signals as Values surfaces such as the patching interface described by Nyquist (Dannenberg 1997) is a Lisp-based synthesis Miller Puckette (1988) or the control script languages environment that extends the XLisp interpreter in ChucK (Wang and Cook 2003) or SuperCollider. with data types and operators specific to signal Often, these control languages are not themselves processing. The main novelty here is to treat signals capable of implementing actual signal-processing as value types, which enable user programs to routines with satisfactory performance, as they Downloaded from http://direct.mit.edu/comj/article-pdf/39/4/30/1953749/comj_a_00330.pdf by guest on 25 September 2021 inspect, modify, and pass around audio signals focus on just acting as the glue layer between black in their entirety without significant performance boxes that do the actual signal processing. penalties. Composition of signals rather than ugens A good analysis of the tradeoffs and division allows for a wider range of constructs, especially of labor between “systems” languages and “glue” regarding composition in time. languages in the domain of musical programming As for DSP, Nyquist remains close to the ugen has been
Recommended publications
  • Integrating Stream Parallelism and Task Parallelism in a Dataflow Programming Model
    RICE UNIVERSITY Integrating Stream Parallelism and Task Parallelism in a Dataflow Programming Model by Drago¸sDumitru Sb^ırlea A Thesis Submitted in Partial Fulfillment of the Requirements for the Degree Master of Science Approved, Thesis Committee: Vivek Sarkar Professor of Computer Science E.D. Butcher Chair in Engineering Keith D. Cooper L. John and Ann H. Doerr Professor of Computational Engineering Lin Zhong Associate Professor of Electrical and Computer Engineering Jun Shirako Research Scientist Computer Science Department Houston, Texas September 3rd, 2011 ABSTRACT Integrating Stream Parallelism and Task Parallelism in a Dataflow Programming Model by Drago¸sDumitru Sb^ırlea As multicore computing becomes the norm, exploiting parallelism in applications becomes a requirement for all software. Many applications exhibit different kinds of parallelism, but most parallel programming languages are biased towards a specific paradigm, of which two common ones are task and streaming parallelism. This results in a dilemma for programmers who would prefer to use the same language to exploit different paradigms for different applications. Our thesis is an integration of stream- parallel and task-parallel paradigms can be achieved in a single language with high programmability and high resource efficiency, when a general dataflow programming model is used as the foundation. The dataflow model used in this thesis is Intel's Concurrent Collections (CnC). While CnC is general enough to express both task-parallel and stream-parallel paradigms, all current implementations of CnC use task-based runtime systems that do not de- liver the resource efficiency expected from stream-parallel programs. For streaming programs, this use of a task-based runtime system is wasteful of computing cycles and makes memory management more difficult than it needs to be.
    [Show full text]
  • Synchronous Programming in Audio Processing Karim Barkati, Pierre Jouvelot
    Synchronous programming in audio processing Karim Barkati, Pierre Jouvelot To cite this version: Karim Barkati, Pierre Jouvelot. Synchronous programming in audio processing. ACM Computing Surveys, Association for Computing Machinery, 2013, 46 (2), pp.24. 10.1145/2543581.2543591. hal- 01540047 HAL Id: hal-01540047 https://hal-mines-paristech.archives-ouvertes.fr/hal-01540047 Submitted on 15 Jun 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. A Synchronous Programming in Audio Processing: A Lookup Table Oscillator Case Study KARIM BARKATI and PIERRE JOUVELOT, CRI, Mathématiques et systèmes, MINES ParisTech, France The adequacy of a programming language to a given software project or application domain is often con- sidered a key factor of success in software development and engineering, even though little theoretical or practical information is readily available to help make an informed decision. In this paper, we address a particular version of this issue by comparing the adequacy of general-purpose synchronous programming languages to more domain-specific
    [Show full text]
  • Chuck: a Strongly Timed Computer Music Language
    Ge Wang,∗ Perry R. Cook,† ChucK: A Strongly Timed and Spencer Salazar∗ ∗Center for Computer Research in Music Computer Music Language and Acoustics (CCRMA) Stanford University 660 Lomita Drive, Stanford, California 94306, USA {ge, spencer}@ccrma.stanford.edu †Department of Computer Science Princeton University 35 Olden Street, Princeton, New Jersey 08540, USA [email protected] Abstract: ChucK is a programming language designed for computer music. It aims to be expressive and straightforward to read and write with respect to time and concurrency, and to provide a platform for precise audio synthesis and analysis and for rapid experimentation in computer music. In particular, ChucK defines the notion of a strongly timed audio programming language, comprising a versatile time-based programming model that allows programmers to flexibly and precisely control the flow of time in code and use the keyword now as a time-aware control construct, and gives programmers the ability to use the timing mechanism to realize sample-accurate concurrent programming. Several case studies are presented that illustrate the workings, properties, and personality of the language. We also discuss applications of ChucK in laptop orchestras, computer music pedagogy, and mobile music instruments. Properties and affordances of the language and its future directions are outlined. What Is ChucK? form the notion of a strongly timed computer music programming language. ChucK (Wang 2008) is a computer music program- ming language. First released in 2003, it is designed to support a wide array of real-time and interactive Two Observations about Audio Programming tasks such as sound synthesis, physical modeling, gesture mapping, algorithmic composition, sonifi- Time is intimately connected with sound and is cation, audio analysis, and live performance.
    [Show full text]
  • Confessions-Of-A-Live-Coder.Pdf
    Proceedings of the International Computer Music Conference 2011, University of Huddersfield, UK, 31 July - 5 August 2011 CONFESSIONS OF A LIVE CODER Thor Magnusson ixi audio & Faculty of Arts and Media University of Brighton Grand Parade, BN2 0JY, UK ABSTRACT upon writing music with programming languages for very specific reasons and those are rarely comparable. This paper describes the process involved when a live At ICMC 2007, in Copenhagen, I met Andrew coder decides to learn a new musical programming Sorensen, the author of Impromptu and member of the language of another paradigm. The paper introduces the aa-cell ensemble that performed at the conference. We problems of running comparative experiments, or user discussed how one would explore and analyse the studies, within the field of live coding. It suggests that process of learning a new programming environment an autoethnographic account of the process can be for music. One of the prominent questions here is how a helpful for understanding the technological conditioning functional programming language like Impromptu of contemporary musical tools. The author is conducting would influence the thinking of a computer musician a larger research project on this theme: the part with background in an object orientated programming presented in this paper describes the adoption of a new language, such as SuperCollider? Being an avid user of musical programming environment, Impromptu [35], SuperCollider, I was intrigued by the perplexing code and how this affects the author’s musical practice. structure and work patterns demonstrated in the aa-cell performances using Impromptu [36]. I subsequently 1. INTRODUCTION decided to embark upon studying this environment and perform a reflexive study of the process.
    [Show full text]
  • Dataflow Programming Model for Reconfigurable Computing Laurent Gantel, Amel Khiar, Benoît Miramond, Mohamed El Amine Benkhelifa, Fabrice Lemonnier, Lounis Kessal
    Dataflow Programming Model For Reconfigurable Computing Laurent Gantel, Amel Khiar, Benoît Miramond, Mohamed El Amine Benkhelifa, Fabrice Lemonnier, Lounis Kessal To cite this version: Laurent Gantel, Amel Khiar, Benoît Miramond, Mohamed El Amine Benkhelifa, Fabrice Lemonnier, et al.. Dataflow Programming Model For Reconfigurable Computing. 6th International Workshop on Reconfigurable Communication-centric Systems-on-Chip (ReCoSoC), Jun 2011, Montpellier, France. pp.1-8, 10.1109/ReCoSoC.2011.5981505. hal-00623674 HAL Id: hal-00623674 https://hal.archives-ouvertes.fr/hal-00623674 Submitted on 14 Sep 2011 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. Dataflow Programming Model For Reconfigurable Computing L. Gantel∗† and A. Khiar∗ and B. Miramond∗ and A. Benkhelifa∗ and F. Lemonnier† and L. Kessal∗ ∗ ETIS Laboratory – UMR CNRS 8051 † Embedded System Lab Universityof Cergy-Pontoise/ ENSEA Thales Research and Technology 6,avenueduPonceau 1,avenueAugustinFresnel 95014 Cergy-Pontoise, FRANCE 91767 Palaiseau, FRANCE Email {firstname.name}@ensea.fr Email {firstname.name}@thalesgroup.com Abstract—This paper addresses the problem of image process- system, such as sockets. ing algorithms implementation onto dynamically and reconfig- It reduces significantly the work of application programmers urable architectures. Today, these Systems-on-Chip (SoC), offer by relieving them of tedious and error-prone programming.
    [Show full text]
  • FAUST Tutorial for Functional Programmers
    FAUST Tutorial for Functional Programmers Y. Orlarey, S. Letz, D. Fober, R. Michon ICFP 2017 / FARM 2017 What is Faust ? What is Faust? A programming language (DSL) to build electronic music instruments Some Music Programming Languages DARMS Kyma 4CED MCL DCMP LOCO PLAY2 Adagio MUSIC III/IV/V DMIX LPC PMX AML Elody Mars MusicLogo POCO AMPLE EsAC MASC Music1000 POD6 Antescofo Euterpea Max MUSIC7 POD7 Arctic Extempore Musictex PROD Autoklang MidiLisp Faust MUSIGOL Puredata Bang MidiLogo MusicXML PWGL Canon Flavors Band MODE Musixtex Ravel CHANT Fluxus MOM NIFF FOIL Moxc SALIERI Chuck NOTELIST FORMES MSX SCORE CLCE Nyquist FORMULA MUS10 ScoreFile CMIX OPAL Fugue MUS8 SCRIPT Cmusic OpenMusic Gibber MUSCMP SIREN CMUSIC Organum1 GROOVE MuseData SMDL Common Lisp Outperform SMOKE Music GUIDO MusES Overtone SSP Common HARP MUSIC 10 PE Music Haskore MUSIC 11 SSSP Patchwork Common HMSL MUSIC 360 ST Music PILE Notation INV MUSIC 4B Supercollider Pla invokator MUSIC 4BF Symbolic Composer Csound PLACOMP KERN MUSIC 4F Tidal CyberBand PLAY1 Keynote MUSIC 6 Brief Overview to Faust Faust offers end-users a high-level alternative to C to develop audio applications for a large variety of platforms. The role of the Faust compiler is to synthesize the most efficient implementations for the target language (C, C++, LLVM, Javascript, etc.). Faust is used on stage for concerts and artistic productions, for education and research, for open sources projects and commercial applications : What Is Faust Used For ? Artistic Applications Sonik Cube (Trafik/Orlarey), Smartfaust (Gracia), etc. Open-Source projects Guitarix: Hermann Meyer WebAudio Applications YC20 Emulator Thanks to the HTML5/WebAudio API and Asm.js it is now possible to run synthesizers and audio effects from a simple web page ! Sound Spatialization Ambitools: Pierre Lecomte, CNAM Ambitools (Faust Award 2016), 3-D sound spatialization using Ambisonic techniques.
    [Show full text]
  • Machine Learning with Multiscale Dataflow Computing for High Energy Physics
    Machine Learning with Multiscale Dataflow Computing for High Energy Physics 10.7.2019 Outline • Dataflow Concept and Maxeler • Dataflow for ML and Use Cases • Dataflow Programming Introduction • Hands-on Example 2 Dataflow Concept and Maxeler 10.7.2019 Programmable Spectrum Control-flow processors Dataflow processor GK110 Single-Core CPU Multi-Core Several-Cores Many-Cores Dataflow Increasing Parallelism (#cores) Increasing Core Complexity ( Hardware Clock Frequency ) GPU (NVIDIA, AMD) Intel, AMD Tilera, XMOS etc... Maxeler Hybrid e.g. AMD Fusion, IBM Cell 4 Maxeler Dataflow Engines (DFEs) • Largest Reconfigurable DataflowLMEM Engine (DFE) (Large Memory) Chip 4-96GB MaxRing • O(1k) multipliers High bandwidth memory link Interconnect • O(100k) logic cells Reconfigurable compute fabric • O(10MB) of on-chip SRAM MaxRing Dataflow cores & * links FMEM (fast • O(10GB) of on-card DRAM memory) • DFE-to-DFE interconnect Link to main data network * approaching 128GB on a ¾, single slot PCIe card 5 5 Maxeler Dataflow Engines (DFEs) CPU DFE (Dataflow Engine) 6 Control Flow versus Data Flow • Control Flow: • It is all about how instructions “move” • Data may move along with instructions (secondary issue) • Order of computation is the key • Data Flow: • It is about how data moves through a set of “instructions” in 2D space • Data moves will trigger control • Data availability, transformations and operation latencies are the key 7 Area Utilisation of Modern Chips AMD Bulldozer CPU Nvidia Tesla V100 GPU 8 DFE Area Utilisation 9 Dataflow Computing • A custom chip for a specific application • No instructions ➝ no instruction decode logic • No branches ➝ no branch prediction • Explicit parallelism ➝ no out-of-order scheduling • Data streamed onto-chip ➝ no multi-level caches Memory (Lots (Lots of) Rest of the My Dataflow world Engine 10 Dataflow Computing • Single worker builds a single • Each component is added to bicycle from a group of parts the bicycle in a production line.
    [Show full text]
  • DVD Program Notes
    DVD Program Notes Part One: Thor Magnusson, Alex Click Nilson is a Swedish avant McLean, Nick Collins, Curators garde codisician and code-jockey. He has explored the live coding of human performers since such Curators’ Note early self-modifiying algorithmic text pieces as An Instructional Game [Editor’s note: The curators attempted for One to Many Musicians (1975). to write their Note in a collaborative, He is now actively involved with improvisatory fashion reminiscent Testing the Oxymoronic Potency of of live coding, and have left the Language Articulation Programmes document open for further interaction (TOPLAP), after being in the right from readers. See the following URL: bar (in Hamburg) at the right time (2 https://docs.google.com/document/d/ AM, 15 February 2004). He previously 1ESzQyd9vdBuKgzdukFNhfAAnGEg curated for Leonardo Music Journal LPgLlCe Mw8zf1Uw/edit?hl=en GB and the Swedish Journal of Berlin Hot &authkey=CM7zg90L&pli=1.] Drink Outlets. Alex McLean is a researcher in the area of programming languages for Figure 1. Sam Aaron. the arts, writing his PhD within the 1. Overtone—Sam Aaron Intelligent Sound and Music Systems more effectively and efficiently. He group at Goldsmiths College, and also In this video Sam gives a fast-paced has successfully applied these ideas working within the OAK group, Uni- introduction to a number of key and techniques in both industry versity of Sheffield. He is one-third of live-programming techniques such and academia. Currently, Sam the live-coding ambient-gabba-skiffle as triggering instruments, scheduling leads Improcess, a collaborative band Slub, who have been making future events, and synthesizer design.
    [Show full text]
  • Graceful Language Extensions and Interfaces
    Graceful Language Extensions and Interfaces by Michael Homer A thesis submitted to the Victoria University of Wellington in fulfilment of the requirements for the degree of Doctor of Philosophy Victoria University of Wellington 2014 Abstract Grace is a programming language under development aimed at ed- ucation. Grace is object-oriented, imperative, and block-structured, and intended for use in first- and second-year object-oriented programming courses. We present a number of language features we have designed for Grace and implemented in our self-hosted compiler. We describe the design of a pattern-matching system with object-oriented structure and minimal extension to the language. We give a design for an object-based module system, which we use to build dialects, a means of extending and restricting the language available to the programmer, and of implementing domain-specific languages. We show a visual programming interface that melds visual editing (à la Scratch) with textual editing, and that uses our dialect system, and we give the results of a user experiment we performed to evaluate the usability of our interface. ii ii Acknowledgments The author wishes to acknowledge: • James Noble and David Pearce, his supervisors; • Andrew P. Black and Kim B. Bruce, the other designers of Grace; • Timothy Jones, a coauthor on a paper forming part of this thesis and contributor to Minigrace; • Amy Ruskin, Richard Yannow, and Jameson McCowan, coauthors on other papers; • Daniel Gibbs, Jan Larres, Scott Weston, Bart Jacobs, Charlie Paucard, and Alex Sandilands, other contributors to Minigrace; • Gilad Bracha, Matthias Felleisen, and the other (anonymous) review- ers of papers forming part of this thesis; • the participants in his user study; • David Streader, John Grundy, and Laurence Tratt, examiners of the thesis; • and Alexandra Donnison, Amy Chard, Juanri Barnard, Roma Kla- paukh, and Timothy Jones, for providing feedback on drafts of this thesis.
    [Show full text]
  • Graceful Language Extensions and Interfaces
    Graceful Language Extensions and Interfaces by Michael Homer A thesis submitted to the Victoria University of Wellington in fulfilment of the requirements for the degree of Doctor of Philosophy Victoria University of Wellington 2014 Abstract Grace is a programming language under development aimed at ed- ucation. Grace is object-oriented, imperative, and block-structured, and intended for use in first- and second-year object-oriented programming courses. We present a number of language features we have designed for Grace and implemented in our self-hosted compiler. We describe the design of a pattern-matching system with object-oriented structure and minimal extension to the language. We give a design for an object-based module system, which we use to build dialects, a means of extending and restricting the language available to the programmer, and of implementing domain-specific languages. We show a visual programming interface that melds visual editing (à la Scratch) with textual editing, and that uses our dialect system, and we give the results of a user experiment we performed to evaluate the usability of our interface. ii ii Acknowledgments The author wishes to acknowledge: • James Noble and David Pearce, his supervisors; • Andrew P. Black and Kim B. Bruce, the other designers of Grace; • Timothy Jones, a coauthor on a paper forming part of this thesis and contributor to Minigrace; • Amy Ruskin, Richard Yannow, and Jameson McCowan, coauthors on other papers; • Daniel Gibbs, Jan Larres, Scott Weston, Bart Jacobs, Charlie Paucard, and Alex Sandilands, other contributors to Minigrace; • Gilad Bracha, Matthias Felleisen, and the other (anonymous) review- ers of papers forming part of this thesis; • the participants in his user study; • and Roma Klapaukh, Juanri Barnard, Alexandra Donnison, Amy Chard, and Timothy Jones for providing feedback on drafts of this thesis.
    [Show full text]
  • Live Coding for Human-In- The-Loop Simulation
    Live coding for Human-in- the-Loop Simulation Ben Swift Research School of Computer Science Australian National University live coding the practice of writing & editing live programs Outline • Extempore: a software environment for live coding • Live demo: particle-in-Cell (PIC) simulation • Future directions: human-in-the-loop processing in simulation, modelling & decision support extempore • Open-source (MIT Licence) & available for OSX, Linux & Windows (http://github.com/digego/extempore) • Lisp-style syntax (Scheme-inspired) • High-performance compiled code (LLVM JIT) • Toll-free interop with C & Fortran • Hot-swappable at a function level programmer TCP extempore (local or remote) extempore Extempore code assembler & LLVM IR machine code any function can be redefined on-the-fly programmer extempore extempore extempore extempore extempore extempore extempore extempore extempore C/Fortran output main Extempore program C/Fortran output main extempore Extempore program changes main C/Fortran output init push solve extempore Extempore program changes main push C/Fortran output solve init extempore Extempore program changes main push C/Fortran output print init solve extempore Extempore program changes main push C/Fortran output print init solve extempore Extempore program changes main push C/Fortran output print init solve extempore Extempore program changes main push C/Fortran vis init solve extempore Extempore program changes main init push vis solve extempore The power of live programming • Change parameters on the fly, with feedback • Interactively add debug output (no loss of state) • Switch optimisers/solvers etc. on-the-fly (modularity in codebase & libraries helps) what does this have to do with DSI? Similarities • Numerical modelling (HPC-style problems) • High-dimensional, non-linear parameter spaces • Long-running jobs = long delays for feedback Opportunities • Joint simulation, experimentation and wargaming (e.g.
    [Show full text]
  • Alistair Riddell
    [email protected] [email protected] [email protected] http://www.alistairriddell.com au.linkedin.com/in/alistairriddell? https://www.researchgate.net https://independent.academia.edu/AlistairRiddell Alistair Riddell Brief Biography Over the past 40 years Melbourne born Alistair Riddell has been active as a musician, composer, performer, creative coder, installation artist, collaborator, educator, supervisor, writer and promoter of evolving digital creative practices. Beginning with a focus on music composition using technology in the 1980s, his interests have ranged widely over the digital domain where he developed particular interests in the processes of interaction between the creative mind and physical objects. He has spent considerable time experimenting with technology and ideas, and many of his completed works have been publicly presented in a diverse range of curated contexts. Alistair holds degrees in Music and Computer Science from La Trobe University and a PhD in music composition from Princeton University. He lectured in Sound Art and Physical Computing at the Australian National University after which he returned to Melbourne and has worked as a freelance artist/researcher collaborating on projects around Australia. 2 Education Princeton University (New Jersey, USA) Naumberg Fellowship 1993 PhD Thesis title: Composing the Interface 1991 Master of Fine Arts La Trobe University (Melbourne, Australia) 1989 Master of Arts Thesis title: A Perspective on the Acoustic Piano as a Performance Medium under Machine Control 1986 Post Graduate Diploma in Computer Science 1981 BA (Hons) Job History/Appointments/Projects (2000 onwards) Carillon Keyboard Project. National Capital Authority. Canberra. (October/November 2019) Collective Social Intelligence (@ foysarcade.com ) Research work (June 2017 – Nov 2019) Australian Catholic University.
    [Show full text]