MASc Seminar Notice - An Immutability Type System for Classes and Objects: Improvements, Experiments, and ComparisonsExport this event to calendar

Tuesday, April 6, 2021 — 4:00 PM EDT

 

Candidate: Lian Sun

Title: An Immutability Type System for Classes and Objects:  Improvements, Experiments, and Comparisons

 

Date: April 6, 2021

Time: 4:00 PM

Place: Remote

Supervisor(s): Dietl, Werner

 

Abstract:

Mutability is frequently cited as the source of software problems. If the immutability status is enforced correctly, the program will benefit from various aspects, such as a guaranteed immutable state in a multi-thread environment, or a key in a hash map that is guaranteed to never alternate. This thesis explores the use of static analysis with  pluggable type systems for immutability analysis of classes and objects. A properly implemented pluggable type system can analysis the mutability property of an object before the program executes. This thesis presents (1) the analysis of the previous solutions, (2) improvements made on a immutability pluggable type system, PICO, to enhance the soundness of the formalization or improve user experience, and (3) experiments of the enhanced PICO with real projects, and comparisons with the previous solutions.

 

PICO is an immutability type system that enforces and analyses the mutability property of an object to prevent the accidental mutating of a immutable object. Although many modern programming language provide a way to provide immutability to classes, PICO provides a more easy, flexible and foolproof way to declare the mutability property of a class.

 

While PICO is a novel work exploring the possibility of utilizing the receiver and assignment context to improve the flexibility of itself, it oversights certain unsoundness in some part of the formalization of immutable rules. Such unsoundness would introduce the risk of allowing the mutation of a immutable object, known as false negatives. To solve the unsoundness, this thesis provides more sound formalization to fix the false negative.

 

In addition to the unsoundness, PICO also contains counterintuitive logic, such as an unsafe defaulting. To solve the counterintuitive logic, this thesis presents a new defaulting scheme to PICO, and various minor changes to improve the user-friendliness during the type checking process.

 

This thesis conducts experiments on small code snippets and large real-world projects. This thesis also compares the new PICO with previous works on the immutability to find more potential problems and illustrate the flexibility and usability of PICO compared with other projects, such as Glacier.

 

S M T W T F S
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
  1. 2021 (127)
    1. December (7)
    2. November (18)
    3. October (10)
    4. September (4)
    5. August (12)
    6. July (4)
    7. June (5)
    8. May (10)
    9. April (25)
    10. March (14)
    11. February (10)
    12. January (9)
  2. 2022 (1)
    1. January (1)
  3. 2020 (246)
    1. December (20)
    2. November (19)
    3. October (15)
    4. September (15)
    5. August (16)
    6. July (32)
    7. June (29)
    8. May (32)
    9. April (27)
    10. March (13)
    11. February (20)
    12. January (16)
  4. 2019 (282)
  5. 2018 (150)
  6. 2017 (212)
  7. 2016 (242)
  8. 2015 (242)
  9. 2014 (268)
  10. 2013 (190)
  11. 2012 (31)