Art Sci. Eng. Program.Pub Date : 2017-01-27DOI: 10.22152/programming-journal.org/2017/1/2
D. Lorenz, Boaz Rosenan
{"title":"Application Embedding: A Language Approach to Declarative Web Programming","authors":"D. Lorenz, Boaz Rosenan","doi":"10.22152/programming-journal.org/2017/1/2","DOIUrl":"https://doi.org/10.22152/programming-journal.org/2017/1/2","url":null,"abstract":"Since the early days of the Web, web application developers have aspired to develop much of their applications declaratively. However, one aspect of the application, namely its business-logic is constantly left imperative. In this work we present Application Embedding, a novel approach to application development which allows all aspects of an application, including its business-logic, to be programmed declaratively. \u0000We develop this approach in a two-step process. First, we draw a mapping between web applications and Domain-Specific Languages (DSLs). Second, we note that out of the two methods for implementing DSLs, namely as either internal or external, most traditional web applications correspond to external DSLs, while the the technique that corresponds to DSL embedding (implementing internal DSLs) is left mostly unexplored. \u0000By projecting the well-known technique of DSL embedding onto web applications, we derive a novel technique--Application Embedding. Application embedding offers a separation of code assets that encourages reuse of imperative code, while keeping all application-specific assets, including those specifying its business- logic, declarative. \u0000As validation, we implemented a simple, though nontrivial web application using the proposed separation of assets. This implementation includes an application-agnostic imperative host application named FishTank, intended to be applicable for a wide variety of web applications, and a declarative definition of the different aspects of the specific application, intended to be loaded on that host. \u0000Our method of separation of code assets facilitates a better separation of work, in comparison to traditional methods. By this separation, host application developers can focus mostly on the extra-functional aspects of a web application, namely on improving performance, scalability, and availability, while developers of an embedded application can focus on the functional aspects of their application, without worrying about extra- functional concerns. The reusability of the host application makes the effort put into a better implementation cost-effective, since it can benefit all applications built on top of it.","PeriodicalId":224558,"journal":{"name":"Art Sci. Eng. Program.","volume":"47 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-01-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116335480","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Art Sci. Eng. Program.Pub Date : 2017-01-27DOI: 10.22152/programming-journal.org/2017/1/4
R. Lämmel
{"title":"Relationship Maintenance in Software Language Repositories","authors":"R. Lämmel","doi":"10.22152/programming-journal.org/2017/1/4","DOIUrl":"https://doi.org/10.22152/programming-journal.org/2017/1/4","url":null,"abstract":"The context of this research is testing and building software systems and, specifically, software language repositories (SLRs), i.e., repositories with components for language processing (interpreters, translators, analyzers, transformers, pretty printers, etc.). SLRs are typically set up for developing and using metaprogramming systems, language workbenches, language definition frameworks, executable semantic frameworks, and modeling frameworks. This work is an inquiry into testing and building SLRs in a manner that the repository is seen as a collection of language-typed artifacts being related by the applications of language-typed functions or relations which serve language processing. The notion of language is used in a broad sense to include text-, tree-, graph-based languages as well as representations based on interchange formats and also proprietary formats for serialization. The overall approach underlying this research is one of language design driven by a complex case study, i.e., a specific SLR with a significant number of processed languages and language processors as well as a noteworthy heterogeneity in terms of representation types and implementation languages. The knowledge gained by our research is best understood as a declarative language design for regression testing and build management, we introduce a corresponding language Ueber with an executable semantics which maintains relationships between language-typed artifacts in an SLR. The grounding of the reported research is based on the comprehensive, formal, executable (logic programming-based) definition of the Ueber language and its systematic application to the management of the SLR YAS which consists of hundreds of language definition and processing components (such as interpreters and transformations) for more than thirty languages (not counting different representation types) with Prolog, Haskell, Java, and Python being used as implementation languages. The importance of this work follows from the significant costs implied by regression testing and build management and also from the complexity of SLRs which calls for means to help with understanding.","PeriodicalId":224558,"journal":{"name":"Art Sci. Eng. Program.","volume":"27 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-01-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"117304502","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Art Sci. Eng. Program.Pub Date : 2017-01-09DOI: 10.22152/programming-journal.org/2017/1/editorial
C. Lopes, S. Chiba, T. D'Hondt, W. Meuter, R. Gabriel, R. Hirschfeld, Tobias Pape, G. Salvaneschi, Mario Südholt
{"title":"Editorial: Introducing The Art, Science, and Engineering of Programming - An Open Access Journal for All-Things Programming","authors":"C. Lopes, S. Chiba, T. D'Hondt, W. Meuter, R. Gabriel, R. Hirschfeld, Tobias Pape, G. Salvaneschi, Mario Südholt","doi":"10.22152/programming-journal.org/2017/1/editorial","DOIUrl":"https://doi.org/10.22152/programming-journal.org/2017/1/editorial","url":null,"abstract":"The Art, Science, and Engineering of Programming is a new journal created with the goal of placing the wonderful art of programming in the map of scholarly works. Many academic journals and conferences exist that publish research related to programming, starting with programming languages, software engineering, and expanding to the whole Computer Science field. Yet, many of us feel that, as the field of Computer Science expanded, programming, in itself, has been neglected to a secondary role not worthy of scholarly attention. However, much of the progress in Computer Science lies on the basis of computer programs, the people who write them, and the concepts and tools available to them to express their ideas. The Art, Science, and Engineering of Programming focuses primarily on programming: the art itself (programming styles, pearls, models, languages), the emerging science of understanding what works and what doesn’t work in general and in specific contexts, as well as more established engineering and mathematical perspectives.","PeriodicalId":224558,"journal":{"name":"Art Sci. Eng. Program.","volume":"16 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-01-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121284288","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Art Sci. Eng. Program.Pub Date : 2016-09-21DOI: 10.22152/programming-journal.org/2017/1/18
Ellen Murphy, Tom Crick, J. Davenport
{"title":"An Analysis of Introductory Programming Courses at UK Universities","authors":"Ellen Murphy, Tom Crick, J. Davenport","doi":"10.22152/programming-journal.org/2017/1/18","DOIUrl":"https://doi.org/10.22152/programming-journal.org/2017/1/18","url":null,"abstract":"This article was published in The Art, Science, and Engineering of Programming on 01 April 2017 (online), available at http://dx.doi.org/10.22152/programming-journal.org/2017/1/18","PeriodicalId":224558,"journal":{"name":"Art Sci. Eng. Program.","volume":"466 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-09-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130052403","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Art Sci. Eng. Program.Pub Date : 2016-07-30DOI: 10.22152/programming-journal.org/2017/1/6
O. Serang, Florian Heyl
{"title":"TRIOT: Faster tensor manipulation in C++11","authors":"O. Serang, Florian Heyl","doi":"10.22152/programming-journal.org/2017/1/6","DOIUrl":"https://doi.org/10.22152/programming-journal.org/2017/1/6","url":null,"abstract":"[abridged] Context: Multidimensional arrays are used by many different algorithms. As such, indexing and broadcasting complex operations over multidimensional arrays are ubiquitous tasks and can be performance limiting. Inquiry: Simultaneously indexing two or more multidimensional arrays with different shapes (e.g., copying data from one tensor to another larger, zero padded tensor in anticipation of a convolution) is difficult to do efficiently: Hard-coded nested for loops in C, Fortran, and Go cannot be applied when the dimension of a tensor is unknown at compile time. Likewise, boost::multi_array cannot be used unless the dimensions of the array are known at compile time, and the style of implementation restricts the user from using the index tuple inside a vectorized operation (as would be required to compute an expected value of a multidimensional distribution). On the other hand, iteration methods that do not require the dimensionality or shape to be known at compile time (e.g., incrementing and applying carry operations to index tuples or remapping integer indices in the flat array), can be substantially slower than hard-coded nested for loops. ... Importance: Manipulation of multidimensional arrays is a common task in software, especially in high performance numerical methods. This paper proposes a novel way to leverage template recursion to iterate over and apply operations to multidimensional arrays, and then demonstrates the superior performance and flexibility of operations that can be achieved using this new approach.","PeriodicalId":224558,"journal":{"name":"Art Sci. Eng. Program.","volume":"21 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-07-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121692405","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}