Note: When clicking on a Digital Object Identifier (DOI) number, you will be taken to an external site maintained by the publisher.
Some full text articles may not yet be available without a charge during the embargo (administrative interval).
What is a DOI Number?
Some links on this page may take you to non-federal websites. Their policies may differ from this site.
-
The representation of functions in higher-order languages includes both the function’s code and anenvironmentstructure that captures the bindings of the function’s free variables. This paper explores caller-provided environments, where instead ofpackagingthe entirety of a function’s environment in its closure, a function can beprovidedwith a portion of its environment by its caller. In higher-order languages, it is difficult to determine where functions are called, let alone what pieces of the function’s environment are available to be provided by the caller, thus we need a higher-order control-flow analysis to enable caller-provided environments. In this paper, we present a new abstract-interpretation-based analysis that discovers which pieces of a function’s environment are always shared between its definition and its callers. In such cases, the caller can provide the environment to the callee. Our analysis has been formalized in the Rocq proof assistant. We evaluate our analysis on a collection of programs demonstrating that it is both scalable and provides significantly better information over the common syntactic approach and better information thanlightweight closure conversion. In fact, it yields the theoretical upper-bound for many programs. For caller-provided environments, deciding how to transform the program based on these revealed facts is also non-trivial and has the potential to incur extra runtime cost over standard strategies. We discuss how to make these decisions in a way that avoids the extra costs and how to transform a program accordingly. We also propose other uses of the analysis results beyond enabling caller-provided environments. We evaluate our transformation using an instrumented interpreter, showing that our approach is effective in reducing dynamic allocations for environments.more » « less
-
Abstract Sea level rise is leading to the rapid migration of marshes into coastal forests and other terrestrial ecosystems. Although complex biophysical interactions likely govern these ecosystem transitions, projections of sea level driven land conversion commonly rely on a simplified “threshold elevation” that represents the elevation of the marsh‐upland boundary based on tidal datums alone. To determine the influence of biophysical drivers on threshold elevations, and their implication for land conversion, we examined almost 100,000 high‐resolution marsh‐forest boundary elevation points, determined independently from tidal datums, alongside hydrologic, ecologic, and geomorphic data in the Chesapeake Bay, the largest estuary in the U.S. located along the mid‐Atlantic coast. We find five‐fold variations in threshold elevation across the entire estuary, driven not only by tidal range, but also salinity and slope. However, more than half of the variability is unexplained by these variables, which we attribute largely to uncaptured local factors including groundwater discharge, microtopography, and anthropogenic impacts. In the Chesapeake Bay, observed threshold elevations deviate from predicted elevations used to determine sea level driven land conversion by as much as the amount of projected regional sea level rise by 2050. These results suggest that local drivers strongly mediate coastal ecosystem transitions, and that predictions based on elevation and tidal datums alone may misrepresent future land conversion.more » « less
An official website of the United States government
