7
$\begingroup$

Has anyone succeeded in implementing or designing a type-system that combines both type-state (linear types) and effect types (e.g. Koka)?

$\endgroup$
  • $\begingroup$ Kitten has some linear typing (still being figured out) as well as an effect system based on Koka’s. $\endgroup$ – Jon Purdy Jun 21 '16 at 1:07
6
$\begingroup$

Edwin Brady has done some work in that area using dependent types in IDRIS. Take a look at his work, in particular Programming and Reasoning with Algebraic Effects and Dependent Types and Resource-dependent Algebraic Effects.

$\endgroup$
  • 3
    $\begingroup$ Welcome and thanks for your answer! Could you give at least a very brief summary of what the linked preprints contain? That way, your answer would be more self-contained. A few sentences would be fine. $\endgroup$ – David Richerby Jun 16 '16 at 10:10
  • $\begingroup$ Dependent types are very heavy to use. I was hoping for a system more like Rust + Koka. $\endgroup$ – Olle Härstedt Jun 16 '16 at 14:14
5
$\begingroup$

A lot of work on types for $\pi$-calculus does this. See e.g. (1) for a unified system. Sequential languages can be embedded into $\pi$-calculus, so this work also applies to sequential languages.

(1) A Uniform Type Structure for Secure Information Flow, K Honda and N Yoshida.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.