Nicholas Coltharp

Mr. Nicholas Coltharp

Trinity University
+1
orcid

Research Focus & Metrics

Academic Career Length

6Years (2021-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
15 August 2024 in Proceedings of the ACM on Programming Languages
Verified
Journal Article
Open access
LXLi-Yao Xia
Li-Yao Xia
LILaura Israel
Laura Israel
MKMaite Kramarz
Maite Kramarz
NCNicholas Coltharp
Nicholas Coltharp
KCKoen Claessen
Koen Claessen
YLYao Li
Yao Li
Lazy evaluation is a powerful tool that enables better compositionality and potentially better performance in functional programming, but it is challenging to analyze its computation cost. Existing works either require manually annotating sharing, or rely on separation logic to reason about heaps of mutable cells. In this paper, we propose a bidirectional demand semantics that allows for extrinsic reasoning about the computation cost of lazy programs without relying on special program logics. To show the effectiveness of our approach, we apply the demand semantics to a variety of case studies including insertion sort, selection sort, Okasaki’s banker’s queue, and the implicit queue. We formally prove that the banker’s queue and the implicit queue are both amortized and persistent using the Rocq Prover (formerly known as Coq). We also propose the reverse physicist’s method, a novel variant of the classical physicist’s method, which enables mechanized, modular and compositional reasoning about amortization and persistence with the demand semantics.

29 October 2021 in Fluids
Verified
Journal Article
Open access
PDF file
OSOrrin Shindell
Orrin Shindell
HNHoa Nguyen
Hoa Nguyen
NCNicholas Coltharp
Nicholas Coltharp
FHFrank Healy
Frank Healy
BRBruce Rodenborn
Bruce Rodenborn
The presence of a nearby boundary is likely to be important in the life cycle and evolution of motile flagellate bacteria. This has led many authors to employ numerical simulations to model near-surface bacterial motion and compute hydrodynamic boundary effects. A common choice has been the method of images for regularized Stokeslets (MIRS); however, the method requires discretization sizes and regularization parameters that are not specified by any theory. To determine appropriate regularization parameters for given discretization choices in MIRS, we conducted dynamically similar macroscopic experiments and fit the simulations to the data. In the experiments, we measured the torque on cylinders and helices of different wavelengths as they rotated in a viscous fluid at various distances to a boundary. We found that differences between experiments and optimized simulations were less than 5% when using surface discretizations for cylinders and centerline discretizations for helices. Having determined optimal regularization parameters, we used MIRS to simulate an idealized free-swimming bacterium constructed of a cylindrical cell body and a helical flagellum moving near a boundary. We assessed the swimming performance of many bacterial morphologies by computing swimming speed, motor rotation rate, Purcell’s propulsive efficiency, energy cost per swimming distance, and a new metabolic energy cost defined to be the energy cost per body mass per swimming distance. All five measures predicted that the optimal flagellar wavelength is eight times the helical radius independently of body size and surface proximity. Although the measures disagreed on the optimal body size, they all predicted that body size is an important factor in the energy cost of bacterial motility near and far from a surface.