Formal foundations for hybrid effect analysis

dc.contributor.advisor Hridesh Rajan
dc.contributor.author Long, Yuheng
dc.contributor.department Department of Computer Science
dc.date 2018-08-11T15:52:47.000
dc.date.accessioned 2020-06-30T03:00:42Z
dc.date.available 2020-06-30T03:00:42Z
dc.date.copyright Fri Jan 01 00:00:00 UTC 2016
dc.date.embargo 2001-01-01
dc.date.issued 2016-01-01
dc.description.abstract <p>Type-and-effect systems are a powerful tool for program construction and verification. Type-and-effect systems are useful because it can help reduce bugs in computer programs, enable compiler optimizations and also provide sort of program documentation. As software systems increasingly embrace dynamic features and complex modes of compilation, static effect systems have to reconcile over competing goals such as precision, soundness, modularity, and programmer productivity. In this thesis, we propose the idea of combining static and dynamic analysis for effect systems to improve precision and flexibility.</p> <p>We describe intensional effect polymorphism, a new foundation for effect systems that integrates static and dynamic effect checking. Our system allows the effect of polymorphic code to be intensionally inspected. It supports a highly precise notion of effect polymorphism through a lightweight notion of dynamic typing. When coupled with parametric polymorphism, the powerful system utilizes runtime information to enable precise effect reasoning, while at the same time retains strong type safety guarantees. The technical innovations of our design include a relational notion of effect checking, the use of bounded existential types to capture the subtle interactions between static typing and dynamic typing, and a differential alignment strategy to achieve efficiency in dynamic typing.</p> <p>We introduce the idea of first-class effects, where the computational effect of an expression can be programmatically reflected, passed around as values, and analyzed at run time. A broad range of designs “hard-coded" in existing effect-guided analyses can be supported through intuitive programming abstractions. The core technical development is a type system with a couple of features. Our type system provides static guarantees to application-specific effect management properties through refinement types, promoting “correct-by-design" effect-guided programming. Also, our type system computes not only the over-approximation of effects, but also their under-approximation. The duality unifies the common theme of permission vs. obligation in effect reasoning.</p> <p>Finally, we show the potential benefit of intensional effects by applying it to an event-driven system to obtain safe concurrency. The technical innovations of our system include a novel effect system to soundly approximate the dynamism introduced by runtime handlers registration, a static analysis to precompute the effects and a dynamic analysis that uses the precomputed effects to improve concurrency. Our design simplifies modular concurrency reasoning and avoids concurrency hazards.</p>
dc.format.mimetype application/pdf
dc.identifier archive/lib.dr.iastate.edu/etd/14998/
dc.identifier.articleid 6005
dc.identifier.contextkey 8880999
dc.identifier.doi https://doi.org/10.31274/etd-180810-4603
dc.identifier.s3bucket isulib-bepress-aws-west
dc.identifier.submissionpath etd/14998
dc.identifier.uri https://dr.lib.iastate.edu/handle/20.500.12876/29182
dc.language.iso en
dc.source.bitstream archive/lib.dr.iastate.edu/etd/14998/Long_iastate_0097E_15761.pdf|||Fri Jan 14 20:29:47 UTC 2022
dc.subject.disciplines Computer Sciences
dc.subject.keywords Computer Science
dc.subject.keywords Hybrid Effect Analysis
dc.subject.keywords hybrid typing
dc.subject.keywords type system
dc.title Formal foundations for hybrid effect analysis
dc.type dissertation en_US
dc.type.genre dissertation en_US
dspace.entity.type Publication
relation.isOrgUnitOfPublication f7be4eb9-d1d0-4081-859b-b15cee251456
thesis.degree.discipline Computer Science
thesis.degree.level dissertation
thesis.degree.name Doctor of Philosophy
File
Original bundle
Now showing 1 - 1 of 1
No Thumbnail Available
Name:
Long_iastate_0097E_15761.pdf
Size:
770.52 KB
Format:
Adobe Portable Document Format
Description: