A flow-based approach for variant parametric types

被引:5
|
作者
Chin, Wei-Ngan [1 ]
Craciun, Florin [1 ]
Khoo, Siau-Cheng [1 ]
Popeea, Corneliu [1 ]
机构
[1] Natl Univ Singapore, Dept Comp Sci, Singapore 117548, Singapore
关键词
design; languages; theory; verification; genericity; flow analysis; variant parametric types; subtyping; constraints;
D O I
10.1145/1167515.1167498
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A promising approach for type-safe generic codes in the object-oriented paradigm is variant parametric type, which allows covariant and contravariant subtyping on fields where appropriate. Previous approaches formalise variant type as a special case of the existential type system. In this paper, we present a new framework based on flow analysis and modular type checking to provide a simple but accurate model for capturing generic types. Our scheme stands to benefit from past (and future) advances in flow analysis and subtyping constraints. Furthermore, it fully supports casting for variant types with a special reflection mechanism, called cast capture, to handle objects with unknown types. We have built a constraint-based type checker and have proven its soundness. We have also successfully annotated a suite of Java libraries and client code with our flow-based variant type system.
引用
收藏
页码:273 / 290
页数:18
相关论文
共 50 条
  • [21] Federated Flow-Based Approach for Privacy Preserving Connectivity Tracking
    Djatmiko, Mentari
    Schatzmann, Dominik
    Dimitropoulos, Xenofontas
    Friedman, Arik
    Boreli, Roksana
    PROCEEDINGS OF THE 2013 ACM INTERNATIONAL CONFERENCE ON EMERGING NETWORKING EXPERIMENTS AND TECHNOLOGIES (CONEXT '13), 2013, : 429 - 440
  • [22] A flow-based approach to vehicle detection and background mosaicking in airborne video
    Yalcin, H
    Hebert, M
    Collins, R
    Black, MJ
    2005 IEEE COMPUTER SOCIETY CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, VOL 2, PROCEEDINGS, 2005, : 1202 - 1202
  • [23] A flow-based approach to modeling ADSL traffic on an IP backbone link
    Ben Azzouna, N
    Clérot, F
    Fricker, C
    Guillemin, F
    ANNALS OF TELECOMMUNICATIONS, 2004, 59 (11-12) : 1260 - 1299
  • [24] Flow-Based Image Abstraction
    Kang, Henry
    Lee, Seungyong
    Chui, Charles K.
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2009, 15 (01) : 62 - 76
  • [25] Flow-based Analytical Techniques
    Suzuki, Yasutada
    ANALYTICAL SCIENCES, 2018, 34 (08) : 865 - 865
  • [26] An Optical Flow-Based Approach for Minimally Divergent Velocimetry Data Interpolation
    Kanberoglu, Berkay
    Das, Dhritiman
    Nair, Priya
    Turaga, Pavan
    Frakes, David
    INTERNATIONAL JOURNAL OF BIOMEDICAL IMAGING, 2019, 2019
  • [27] AN OPTICAL FLOW-BASED APPROACH FOR THE INTERPOLATION OF MINIMALLY DIVERGENT VELOCIMETRY DATA
    Kanberoglu, Berkay
    Nair, Priya
    Frakes, David
    2017 IEEE 14TH INTERNATIONAL SYMPOSIUM ON BIOMEDICAL IMAGING (ISBI 2017), 2017, : 538 - 542
  • [28] Flow-based Physical Security
    Al-Fedaghi, Sabah
    INTERNATIONAL JOURNAL OF SECURITY AND ITS APPLICATIONS, 2016, 10 (08): : 239 - 250
  • [29] Flow-Based Simulation Methodology
    Hoseinzadeh, Morteza
    IEEE COMPUTER ARCHITECTURE LETTERS, 2018, 17 (01) : 51 - 54
  • [30] A Dense Optical flow-Based Feature Matching Approach In Visual Odometry
    Chen, Wenzhe
    Fu, Hao
    Shi, Meiping
    Chen, Ying
    2017 NINTH INTERNATIONAL CONFERENCE ON INTELLIGENT HUMAN-MACHINE SYSTEMS AND CYBERNETICS (IHMSC 2017), VOL 2, 2017, : 343 - 348