132 research outputs found

    Worker/wrapper/makes it/faster

    Get PDF
    Much research in program optimization has focused on formal approaches to correctness: proving that the meaning of programs is preserved by the optimisation. Paradoxically, there has been comparatively little work on formal approaches to efficiency: proving that the performance of optimized programs is actually improved. This paper addresses this problem for a general-purpose optimization technique, the worker/wrapper transformation. In particular, we use the call-by-need variant of improvement theory to establish conditions under which the worker/wrapper transformation is formally guaranteed to preserve or improve the time performance of programs in lazy languages such as Haskell

    A personalised smartphone-delivered just-in-time adaptive intervention (JITABug) to increase physical activity in older adults: Feasibility pilot study (Preprint)

    Get PDF
    Background: Just-in-time adaptive interventions (JITAIs) provide real time in-the-moment behavior change support to people when they need it most. JITAIs could be a viable way to provide personalized physical activity (PA) support to older adults in the community. However, it is unclear how feasible it is to remotely deliver a PA intervention through a smartphone to older adults or how acceptable they would find a JITAI targeting PA in everyday life. Objective: The aims of this study are to describe the development of JitaBug, a personalized smartphone-delivered JITAI designed to support older adults to increase or maintain their PA level, assess the feasibility of conducting an effectiveness trial of the JitaBug intervention, and explore the acceptability of JitaBug among older adults in a free-living setting. Methods: The intervention was developed using the Behavior Change Wheel and consisted of a wearable activity tracker (Fitbit) and a companion smartphone app (JitaBug) that delivered goal-setting, planning, reminders, and JITAI messages to encourage achievement of personalized PA goals. Message delivery was tailored based on time of day, real time PA tracker data, and weather conditions. We tested the feasibility of remotely delivering the intervention with older adults in a 6-week trial. Data collection involved assessment of PA through accelerometery and activity tracker, self-reported mood and mental well-being through ecological momentary assessment, and contextual information on PA through voice memos. Feasibility outcomes included recruitment capability and adherence to the intervention, intervention delivery in the wild, appropriateness of data collection methodology, adverse events, and participant satisfaction. Results: Of the 46 recruited older adults (aged 56-72 years), 31 (67%) completed the intervention. The intervention was successfully delivered as intended; 87% (27/31) of the participants completed the intervention independently; 94% (2247/2390) of the PA messages were successfully delivered; 99% (2239/2261) of the Fitbit and 100% (2261/2261) of the weather data calls were successful. Valid and usable wrist-worn accelerometer data were obtained from 90% (28/31) of the participants at baseline and follow-up. On average, the participants recorded 50% (7.9/16, SD 7.3) of the voice memos, 38% (3.3/8, SD 4.2) of the mood assessments, and 50% (2.1/4, SD 1.6) of the well-being assessments through the app. Overall acceptability of the intervention was very good (23/30, 77% expressed satisfaction). Participant feedback suggested that more diverse and tailored PA messages, app use reminders, technical refinements, and an improved user interface could improve the intervention and make it more appealing. Conclusions: This study suggests that a smartphone-delivered JITAI is an acceptable way to support PA in older adults in the community. Overall, the intervention is feasible; however, based on user feedback, the JitaBug app requires further technical refinements that may enhance use, engagement, and user satisfaction before moving to effectiveness trials

    “You think you’re going to get better”:a creative-relational inquiry into Long Covid and physical activity

    Get PDF
    This creative-relational inquiry explores the lived experience of people suffering from Long Covid. Responding to calls for a publicly oriented qualitative inquiry, we collaborate across an extended project team to develop and share an accessible and engaging performance text which advocates for and supports those who live precariously as a result of contracting Long Covid. We offer our performance text as a resource to inform and guide personal, professional, public, and policy responses to Long Covid. We propose that creative-relational inquiries such as this beneficially extend understanding beyond what is possible through traditional evidence-based medicine alone

    Reasoning with the HERMIT: tool support for equational reasoning on GHC core programs

    Get PDF
    A benefit of pure functional programming is that it encourages equational reasoning. However, the Haskell language has lacked direct tool support for such reasoning. Consequently, reasoning about Haskell programs is either performed manually, or in another language that does provide tool support (e.g. Agda or Coq). HERMIT is a Haskell-specific toolkit designed to support equational reasoning and user-guided program transformation, and to do so as part of the GHC compilation pipeline. This paper describes HERMIT’s recently developed support for equational reasoning, and presents two case studies of HERMIT usage: checking that type-class laws hold for specific instance declarations, and mechanising textbook equational reasoning

    The HERMIT in the machine: a plugin for the interactive transformation of GHC core language programs

    Get PDF
    The importance of reasoning about and refactoring programs is a central tenet of functional programming. Yet our compilers and development toolchains only provide rudimentary support for these tasks. This paper introduces a programmatic and compiler-centric interface that facilitates refactoring and equational reasoning. To develop our ideas, we have implemented HERMIT, a toolkit enabling informal but systematic transformation of Haskell programs from inside the Glasgow Haskell Compiler’s optimization pipeline. With HERMIT, users can experiment with optimizations and equational reasoning, while the tedious heavy lifting of performing the actual transformations is done for them. HERMIT provides a transformation API that can be used to build higher-level rewrite tools. One use-case is prototyping new optimizations as clients of this API before being committed to the GHC toolchain. We describe a HERMIT application - a read-eval-print shell for performing transformations using HERMIT. We also demonstrate using this shell to prototype an optimization on a specific example, and report our initial experiences and remaining challenges

    The remote monad design pattern

    Get PDF
    Remote Procedure Calls are expensive. This paper demonstrates how to reduce the cost of calling remote procedures from Haskell by using the remote monad design pattern, which amortizes the cost of remote calls. This gives the Haskell community access to remote capabilities that are not directly supported, at a surprisingly inexpensive cost. We explore the remote monad design pattern through six models of remote execution patterns, using a simulated Internet of Things toaster as a running example. We consider the expressiveness and optimizations enabled by each remote execution model, and assess the feasibility of our approach. We then present a full-scale case study: a Haskell library that provides a Foreign Function Interface to the JavaScript Canvas API. Finally, we discuss existing instances of the remote monad design pattern found in Haskell libraries

    Salivary nitrite production is elevated in individuals with a higher abundance of oral nitrate-reducing bacteria

    Get PDF
    Nitric oxide (NO) can be generated endogenously via NO synthases or via the diet following the action of symbiotic nitrate-reducing bacteria in the oral cavity. Given the important role of NO in smooth muscle control there is an intriguing suggestion that cardiovascular homeostasis may be intertwined with the presence of these bacteria. Here, we measured the abundance of nitrate-reducing bacteria in the oral cavity of 25 healthy humans using 16S rRNA sequencing and observed, for 3.5?h, the physiological responses to dietary nitrate ingestion via measurement of blood pressure, and salivary and plasma NO metabolites. We identified 7 species of bacteria previously known to contribute to nitrate-reduction, the most prevalent of which were Prevotella melaninogenica and Veillonella dispar. Following dietary nitrate supplementation, blood pressure was reduced and salivary and plasma nitrate and nitrite increased substantially. We found that the abundance of nitrate-reducing bacteria was associated with the generation of salivary nitrite but not with any other measured variable. To examine the impact of bacterial abundance on pharmacokinetics we also categorised our participants into two groups; those with a higher abundance of nitrate reducing bacteria (> 50%), and those with a lower abundance (< 50%). Salivary nitrite production was lower in participants with lower abundance of bacteria and these individuals also exhibited slower salivary nitrite pharmacokinetics. We therefore show that the rate of nitrate to nitrite reduction in the oral cavity is associated with the abundance of nitrate-reducing bacteria. Nevertheless, higher abundance of these bacteria did not result in an exaggerated plasma nitrite response, the best known marker of NO bioavailability. These data from healthy young adults suggest that the abundance of oral nitrate-reducing bacteria does not influence the generation of NO through the diet, at least when the host has a functional minimum threshold of these microorganisms

    Monocot plastid phylogenomics, timeline, net rates of species diversification, the power of multiâ gene analyses, and a functional model for the origin of monocots

    Full text link
    Peer Reviewedhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/1/ajb21178-sup-0009-AppendixS9.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/2/ajb21178-sup-0020-AppendixS20.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/3/ajb21178.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/4/ajb21178-sup-0019-AppendixS19.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/5/ajb21178-sup-0010-AppendixS10.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/6/ajb21178-sup-0002-AppendixS2.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/7/ajb21178-sup-0006-AppendixS6.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/8/ajb21178-sup-0012-AppendixS12.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/9/ajb21178-sup-0017-AppendixS17.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/10/ajb21178-sup-0007-AppendixS7.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/11/ajb21178-sup-0001-AppendixS1.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/12/ajb21178-sup-0003-AppendixS3.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/13/ajb21178-sup-0016-AppendixS16.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/14/ajb21178_am.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/15/ajb21178-sup-0008-AppendixS8.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/16/ajb21178-sup-0004-AppendixS4.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/17/ajb21178-sup-0018-AppendixS18.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/18/ajb21178-sup-0014-AppendixS14.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/19/ajb21178-sup-0011-AppendixS11.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/20/ajb21178-sup-0005-AppendixS5.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/146610/21/ajb21178-sup-0015-AppendixS15.pd
    • …
    corecore