Open Access. Powered by Scholars. Published by Universities.®

Programming Languages and Compilers Commons™

Open Access. Powered by Scholars. Published by Universities.®

1,845 Full-Text Articles 3,363 Authors 771,689 Downloads 137 Institutions

All Articles in Programming Languages and Compilers

Faceted Search

1,845 full-text articles. Page 59 of 79.

Dependent Types In Haskell: Theory And Practice, Richard A. Eisenberg 2016 Bryn Mawr College

Dependent Types In Haskell: Theory And Practice, Richard A. Eisenberg

Computer Science Faculty Research and Scholarship

Haskell, as implemented in the Glasgow Haskell Compiler (GHC), has been adding new type-level programming features for some time. Many of these features—generalized algebraic datatypes (GADTs), type families, kind polymorphism, and promoted datatypes—have brought Haskell to the doorstep of dependent types. Many dependently typed programs can even currently be encoded, but often the constructions are painful.

In this dissertation, I describe Dependent Haskell, which supports full dependent types via a backward-compatible extension to today’s Haskell. An important contribution of this work is an implementation, in GHC, of a portion of Dependent Haskell, with the rest to follow. The features I …


Data Persistence In Eiffel, Jimmy J. Johnson 2016 University of Kentucky

Data Persistence In Eiffel, Jimmy J. Johnson

Theses and Dissertations--Computer Science

This dissertation describes an extension to the Eiffel programming language that provides automatic object persistence (the ability of programs to store objects and later recreate those objects in a subsequent execution of a program). The mechanism is orthogonal to other aspects of the Eiffel language. The mechanism serves four main purposes: 1) it gives Eiffel programmers a needed service, filling a gap between serialization, which provides limited persistence functions and database-mapping, which is cumbersome to use; 2) it greatly reduces the coding burden incurred by the programmer when objects must persist, allowing the programmer to focus instead on the business …


Spest – A Tool For Specification-Based Testing, Corrigan Redford Johnson 2016 California Polytechnic State University, San Luis Obispo

Spest – A Tool For Specification-Based Testing, Corrigan Redford Johnson

Master's Theses

This thesis presents a tool for SPEcification based teSTing (SPEST). SPEST is designed to use well known practices for automated black-box testing to reduce the burden of testing on developers. The tool uses a simple formal specification language to generate highly-readable unit tests that embody best practices for thorough software testing. Because the specification language used to generate the assertions about the code can be compiled, it can also be used to ensure that documentation describing the code is maintained during development and refactoring.

The utility and effectiveness of SPEST were validated through several exper- iments conducted with students in …


Srcmx: A Gui Application For Srcml, Brian Kovacs 2016 The University of Akron

Srcmx: A Gui Application For Srcml, Brian Kovacs

Williams Honors College, Honors Research Projects

srcMX is a GUI application that utilizes the srcML command-line tool to convert and display source code using the srcML format. The goal is for srcMX to promote the manipulation and exploration of source code using srcML. I also hope that the user-friendly nature inherent to GUI applications allows srcMX to introduce a larger audience to the many features offered by srcML. The application is written in C++ using the Qt and Qt Quick frameworks.


Automated Refactoring Of Legacy Java Software To Enumerated Types, Raffi Khatchadourian 2016 CUNY Hunter College

Automated Refactoring Of Legacy Java Software To Enumerated Types, Raffi Khatchadourian

Publications and Research

Modern Java languages introduce several new features that offer significant improvements over older Java technology. In this article we consider the new enum construct, which provides language support for enumerated types. Prior to recent Java languages, programmers needed to employ various patterns (e.g., the weak enum pattern) to compensate for the absence of enumerated types in Java. Unfortunately, these compensation patterns lack several highly-desirable properties of the enum construct, most notably, type safety. We present a novel fully-automated approach for transforming legacy Java code to use the new enumeration construct. This semantics-preserving approach increases type safety, produces code that is …


The R Journal (December 2015) 7(2): Complete Issue, The R Foundation 2015 University of Nebraska - Lincoln

The R Journal (December 2015) 7(2): Complete Issue, The R Foundation

The R Journal

Editorial, Bettina Grün

Contributed Research Articles

Fitting Conditional and Simultaneous Autoregressive Spatial Models in hglm, Moudud Alam, Lars Rönnegård, and Xia Shen

VSURF: An R Package for Variable Selection Using Random Forests, Robin Genuer, Jean-Michel Poggi, and Christine Tuleau-Malot

zoib: An R Package for Bayesian Inference for Beta Regression and Zero/One Inflated Beta Regression, Fang Liu, and Yunchuan Kong

apc: An R Package for Age-Period-Cohort Analysis, Bent Nielsen

QuantifQuantile: An R Package for Performing Quantile Regression Through Optimal Quantization, Isabelle Charlier, Davy Paindaveine, and Jérôme Saracco

Numerical Evaluation of the Gauss Hypergeometric Function with the hypergeo Package, Robin K. S. …


An R Package For The Panel Approach Method For Program Evaluation: Pampe, Ainhoa Vega-Bayo 2015 University of the Basque Country

An R Package For The Panel Approach Method For Program Evaluation: Pampe, Ainhoa Vega-Bayo

The R Journal

The pampe package for R implements the panel data approach method for program evaluation designed to estimate the causal effects of political interventions or treatments. This procedure exploits the dependence among cross-sectional units to construct a counterfactual of the treated unit(s), and it is an appropriate method for research events that occur at an aggregate level like countries or regions and that affect only one or a small number of units. The implementation of the pampe package is illustrated using data from Hong Kong and 24 other units, by examining the economic impact of the political and economic integration of …


Toward Unification Of Explicit And Implicit Invocation-Style Programming, Yoonsik Cheon 2015 The University of Texas at El Paso

Toward Unification Of Explicit And Implicit Invocation-Style Programming, Yoonsik Cheon

Departmental Technical Reports (CS)

Subprograms like procedures and methods can be invoked explicitly or implicitly; in implicit invocation, an event implicitly causes the invocation of subprograms that are registered an interest in the event. Mixing these two styles is common in programming and often unavoidable in developing such software as GUI applications and event-based control systems. However, it isn't also uncommon for the mixed use to complicate programming logic and thus produce unclean code, code that is hard to read and understand. We show, through a small but realistic example, that the problem is not much on mixing two different styles itself but more …


A Systematic Derivation Of Loop Specifications Using Patterns, Aditi Barua, Yoonsik Cheon 2015 The University of Texas at El Paso

A Systematic Derivation Of Loop Specifications Using Patterns, Aditi Barua, Yoonsik Cheon

Departmental Technical Reports (CS)

Any non-trivial program contains loop control structures such as while, for and do statements. A formal correctness proof of code containing loop control structures is typically performed using an induction-based technique, and oftentimes the most challenging step of an inductive proof is formulating a correct induction hypothesis. An incorrectly-formulated induction hypothesis will surely lead to a failure of the proof. In this paper we propose a systematic approach for formulating and driving specifications of loop control structures for formal analysis and verification of programs. We explain our approach using while loops and a functional program verification technique in which a …


Changes On Cran, Kurt Hornik, Achim Zeileis 2015 WU Wirtschaftsuniversität Wien

Changes On Cran, Kurt Hornik, Achim Zeileis

The R Journal

New packages in CRAN task views

New contributed packages

Other changes


Conference Report: User! 2015, Torben Tvedebrink 2015 Aalborg University

Conference Report: User! 2015, Torben Tvedebrink

The R Journal

The11thinternational R user conference, useR! 2015, took place in Aalborg, Denmark, 1–3 July 2015. The Department of Mathematical Sciences, Aalborg University, hosted the conference, which took place in Aalborg Congress and Culture Centre.


Open-Channel Computation With R, Michael C. Koohafkan, Bassam A. Younis 2015 University of California, Davis

Open-Channel Computation With R, Michael C. Koohafkan, Bassam A. Younis

The R Journal

The rivr package provides a computational toolset for simulating steady and unsteady one dimensional flows in open channels. It is designed primarily for use by instructors of undergraduate and graduate-level open-channel hydrodynamics courses in such diverse fields as river engineering, physical geography and geophysics. The governing equations used to describe open-channel flows are briefly presented, followed by example applications. These include the computation of gradually varied flows and two examples of unsteady flows in channels—namely, the tracking of the evolution of a flood wave in a channel and the prediction of extreme variation in the water-surface profile that results when …


Mmpp: A Package For Calculating Similarity And Distance Metrics For Simple And Marked Temporal Point Processes, Hideitsu Hino, Ken Takano, Noboru Murata 2015 University of Tsukuba

Mmpp: A Package For Calculating Similarity And Distance Metrics For Simple And Marked Temporal Point Processes, Hideitsu Hino, Ken Takano, Noboru Murata

The R Journal

A simple temporal point process (SPP) is an important class of time series, where the sample realization of the process is solely composed of the times at which events occur. Particular examples of point process data are neuronal spike patterns or spike trains, and a large number of distance and similarity metrics for those data have been proposed. A marked point process (MPP) is an extension of a simple temporal point process, in which a certain vector valued mark is associated with each of the temporal points in the SPP. Analyses of MPPs are of practical importance because instances of …


Mtk: A General-Purpose And Extensible R Environment For Uncertainty And Sensitivity Analyses Of Numerical Experiments, Juhui Wang, Robert Faivre, Hervé Richard, Hervé Monod 2015 MaIAGE

Mtk: A General-Purpose And Extensible R Environment For Uncertainty And Sensitivity Analyses Of Numerical Experiments, Juhui Wang, Robert Faivre, Hervé Richard, Hervé Monod

The R Journal

Along with increased complexity of the models used for scientific activities and engineering come diverse and greater uncertainties. Today, effectively quantifying the uncertainties contained in a model appears to be more important than ever. Scientific fellows know how serious it is to calibrate their model in a robust way, and decision-makers describe how critical it is to keep the best effort to reduce the uncertainties about the model. Effectively accessing the uncertainties about the model requires mastering all the tasks involved in the numerical experiments, from optimizing the experimental design to managing the very time consuming aspect of model simulation …


Abctools: An R Package For Tuning Approximate Bayesian Computation Analyses, Matthew A. Nunes, Dennis Prangle 2015 Lancaster University

Abctools: An R Package For Tuning Approximate Bayesian Computation Analyses, Matthew A. Nunes, Dennis Prangle

The R Journal

Approximate Bayesian computation (ABC) is a popular family of algorithms which perform approximate parameter inference when numerical evaluation of the likelihood function is not possible but data can be simulated from the model. They return a sample of parameter values which produce simulations close to the observed dataset. A standard approach is to reduce the simulated and observed datasets to vectors of summary statistics and accept when the difference between these is below a specified threshold. ABC can also be adapted to perform model choice.

In this article, we present a new software package for R, abctools which provides methods …


Altopt: An R Package For Optimal Experimental Design Of Accelerated Life Testing, Kangwon Seo, Rong Pan 2015 Arizona State University

Altopt: An R Package For Optimal Experimental Design Of Accelerated Life Testing, Kangwon Seo, Rong Pan

The R Journal

The R package ALTopt has been developed with the aim of creating and evaluating optimal experimental designs of censored accelerated life tests (ALTs). This package takes the generalized linear model approach to ALT planning, because this approach can easily handle censoring plans and derive information matrices for evaluating designs. Three types of optimality criteria are considered: D-optimality for model parameter estimation, U-optimality for reliability prediction at a single use condition, and I-optimality for reliability prediction over a region of use conditions. The Weibull distribution is assumed for failure time data and more than one stress factor can …


Practools: Computations For Design Of Finite Population Samples, Richard Valliant, Jill A. Dever, Frauke Kreuter 2015 Universities of Michigan and Maryland

Practools: Computations For Design Of Finite Population Samples, Richard Valliant, Jill A. Dever, Frauke Kreuter

The R Journal

PracTools is an R package with functions that compute sample sizes for various types of finite population sampling designs when totals or means are estimated. One-, two-, and three-stage designs are covered as well as allocations for stratified sampling and probability proportional to size sampling. Sample allocations can be computed that minimize the variance of an estimator subject to a budget constraint or that minimize cost subject to a precision constraint. The package also contains some specialized functions for estimating variance components and design effects. Several finite populations are included that are useful for classroom instruction.


Clustvarlv: An R Package For The Clustering Of Variables Around Latent Variables, Evelyne Vigneau, Mingkun Chen, El Mostafa Qannari 2015 National College of Veterinary Medicine

Clustvarlv: An R Package For The Clustering Of Variables Around Latent Variables, Evelyne Vigneau, Mingkun Chen, El Mostafa Qannari

The R Journal

The clustering of variables is a strategy for deciphering the underlying structure of a data set. Adopting an exploratory data analysis point of view, the Clustering of Variables around Latent Variables (CLV) approach has been proposed by Vigneau and Qannari (2003). Based on a family of optimization criteria, the CLV approach is adaptable to many situations. In particular, constraints may be introduced in order to take account of additional information about the observations and/or the variables. In this paper, the CLV method is depicted and the R package ClustVarLV including a set of functions developed so far within this framework …


Bsgs: Bayesian Sparse Group Selection, Kuo-Jung Lee, Ray-Bing Chen 2015 National Cheng-Kung University

Bsgs: Bayesian Sparse Group Selection, Kuo-Jung Lee, Ray-Bing Chen

The R Journal

An R package BSGS is provided for the integration of Bayesian variable and sparse group selection separately proposed by Chen et al. (2011) and Chen et al. (in press) for variable selection problems, even in the cases of large p and small n. This package is designed for variable selection problems including the identification of the important groups of variables and the active variables within the important groups. This article introduces the functions in the BSGS package that can be used to perform sparse group selection as well as variable selection through simulation studies and real data.


Srcs: Statistical Ranking Color Scheme For Visualizing Parameterized Multiple Pairwise Comparisons With R, Pablo J. Villacorta, José A. Sáez 2015 University of Granada

Srcs: Statistical Ranking Color Scheme For Visualizing Parameterized Multiple Pairwise Comparisons With R, Pablo J. Villacorta, José A. Sáez

The R Journal

The problem of comparing a new solution method against existing ones to find statistically significant differences arises very often in sciences and engineering. When the problem instance being solved is defined by several parameters, assessing a number of methods with respect to many problem configurations simultaneously becomes a hard task. Some visualization technique is required for presenting a large number of statistical significance results in an easily interpretable way. Here we review an existing color-based approach called Statistical Ranking Color Scheme (SRCS) for displaying the results of multiple pairwise statistical comparisons between several methods assessed separately on a number of …


Digital Commons powered by bepress