Skip to main content

Showing 1–4 of 4 results for author: Brachthäuser, J

Searching in archive cs. Search in all archives.
.
  1. arXiv:2402.12637  [pdf, other

    cs.PL cs.HC

    Getting into the Flow: Towards Better Type Error Messages for Constraint-Based Type Inference

    Authors: Ishan Bhanuka, Lionel Parreaux, David Binder, Jonathan Immanuel Brachthäuser

    Abstract: Creating good type error messages for constraint-based type inference systems is difficult. Typical type error messages reflect implementation details of the underlying constraint-solving algorithms rather than the specific factors leading to type mismatches. We propose using subtyping constraints that capture data flow to classify and explain type errors. Our algorithm explains type errors as fau… ▽ More

    Submitted 19 February, 2024; originally announced February 2024.

    Comments: Technical report version

    Journal ref: Proc. ACM Program. Lang. 7, OOPSLA2, Article 237 (October 2023), 29 pages

  2. Qualifying System F-sub

    Authors: Edward Lee, Yaoyu Zhao, James You, Kavin Satheeskumar, Ondřej Lhoták, Jonathan Brachthäuser

    Abstract: Type qualifiers offer a lightweight mechanism for enriching existing type systems to enforce additional, desirable, program invariants. They do so by offering a restricted but effective form of subtyping. While the theory of type qualifiers is well understood and present in many programming languages today, polymorphism over type qualifiers is an area that is less examined. We explore how such a p… ▽ More

    Submitted 13 November, 2023; originally announced November 2023.

    Comments: 24 pages

    Journal ref: Proc. ACM Program. Lang. 8, OOPSLA1, Article 115 (April 2024), 30 pages

  3. arXiv:2207.03402  [pdf, ps, other

    cs.PL

    Scoped Capabilities for Polymorphic Effects

    Authors: Martin Odersky, Aleksander Boruch-Gruszecki, Edward Lee, Jonathan Brachthäuser, Ondřej Lhoták

    Abstract: Type systems usually characterize the shape of values but not their free variables. However, many desirable safety properties could be guaranteed if one knew the free variables captured by values. We describe CCsubBox, a calculus where such captured variables are succinctly represented in types, and show it can be used to safely implement effects and effect polymorphism via scoped capabilities. We… ▽ More

    Submitted 22 July, 2022; v1 submitted 7 July, 2022; originally announced July 2022.

    Comments: 39 pages

  4. arXiv:2105.11896  [pdf, ps, other

    cs.PL

    Tracking Captured Variables in Types

    Authors: Aleksander Boruch-Gruszecki, Jonathan Immanuel Brachthäuser, Edward Lee, Ondřej Lhoták, Martin Odersky

    Abstract: Type systems usually characterize the shape of values but not their free variables. However, there are many desirable safety properties one could guarantee if one could track how references can escape. For example, one may implement algebraic effect handlers using capabilities -- a value which permits one to perform the effect -- safely if one can guarantee that the capability itself does not esca… ▽ More

    Submitted 25 May, 2021; originally announced May 2021.

    Comments: 23 pages, 11 figures

    MSC Class: 68N15 ACM Class: D.3.1