中文
相关论文

相关论文: On the State of Coherence in the Land of Type Clas…

200 篇论文

Elaboration-based type class resolution, as found in languages like Haskell, Mercury and PureScript, is generally nondeterministic: there can be multiple ways to satisfy a wanted constraint in terms of global instances and locally given…

编程语言 · 计算机科学 2019-07-16 Gert-Jan Bottu , Ningning Xie , Koar Marntirosian , Tom Schrijvers

Type classes are one of Haskell's most popular features and extend its type system with ad-hoc polymorphism. Since their conception, there were useful features that could not be offered because of the desire to offer two correctness…

编程语言 · 计算机科学 2018-07-31 Thomas Winant , Dominique Devriese

Type classes are an elegant extension to traditional, Hindley-Milner based typing systems. They are used in modern, typed languages such as Haskell to support controlled overloading of symbols. Haskell 98 supports only single-parameter and…

编程语言 · 计算机科学 2007-05-23 Kevin Glynn , Martin Sulzmann , Peter J. Stuckey

Generic programming (GP) is an increasingly important trend in programming languages. Well-known GP mechanisms, such as type classes and the C++0x concepts proposal, usually combine two features: 1) a special type of interfaces; and 2)…

编程语言 · 计算机科学 2012-03-21 Bruno C. d. S. Oliveira , Tom Schrijvers , Wontae Choi , Wonchan Lee , Kwangkeun Yi

We present an approach to support partiality in type-level computation without compromising expressiveness or type safety. Existing frameworks for type-level computation either require totality or implicitly assume it. For example, type…

编程语言 · 计算机科学 2017-06-30 J. Garrett Morris , Richard Eisenberg

Refinement types -- types qualified with logical predicates -- have proven effective for lightweight verification in languages like Liquid Haskell, F*, and Dafny. However, in these systems refinements are either written in a separate…

编程语言 · 计算机科学 2026-05-12 Matt Bovel , Viktor Kunčak , Martin Odersky

Correct concurrent programs are difficult to write; when multiple threads mutate shared data, they may lose writes, corrupt data, or produce erratic program behavior. While many of the data-race issues with concurrency can be avoided by the…

分布式、并行与集群计算 · 计算机科学 2019-04-30 Aditya Saligrama , Andrew Shen , Jon Gjengset

The Scala programming language offers two distinctive language features implicit parameters and implicit conversions, often referred together as implicits. Announced without fanfare in 2004, implicits have quickly grown to become a widely…

编程语言 · 计算机科学 2019-09-16 Filip Křikava , Heather Miller , Jan Vitek

Linear type systems have a long and storied history, but not a clear path forward to integrate with existing languages such as OCaml or Haskell. In this paper, we study a linear type system designed with two crucial properties in mind:…

编程语言 · 计算机科学 2017-11-09 Jean-Philippe Bernardy , Mathieu Boespflug , Ryan R. Newton , Simon Peyton Jones , Arnaud Spiwack

Aliasing is a known source of challenges in the context of imperative object-oriented languages, which have led to important advances in type systems for aliasing control. However, their large-scale adoption has turned out to be a…

编程语言 · 计算机科学 2016-07-26 Philipp Haller , Alexandre Loiko

CLASS is a proof-of-concept general purpose linear programming language, flexibly supporting realistic concurrent programming idioms, and featuring an expressive linear type system ensuring that programs (1) never misuse or leak stateful…

编程语言 · 计算机科学 2025-05-28 Luís Caires

One of the aims of Implicit Computational Complexity is the design of programming languages with bounded computational complexity; indeed, guaranteeing and certifying a limited resources usage is of central importance for various aspects of…

计算机科学中的逻辑 · 计算机科学 2014-10-24 Erika De Benedetti , Simona Ronchi Della Rocca

The expression problem describes a fundamental tradeoff between two types of extensibility: extending a type with new operations, such as by pattern matching on an algebraic data type in functional programming, and extending a type with new…

编程语言 · 计算机科学 2025-11-21 Bohdan Liesnikov , David Binder , Tim Süberkrüb

Type classes in Haskell are used to implement ad-hoc polymorphism, i.e. a way to ensure both to the programmer and the compiler that a set of functions are defined for a specific data type. All instances of such type classes are expected to…

编程语言 · 计算机科学 2018-08-20 Andreas Arvidsson , Moa Johansson , Robin Touche

Haskell provides type-class-bounded and parametric polymorphism as opposed to subtype polymorphism of object-oriented languages such as Java and OCaml. It is a contentious question whether Haskell 98 without extensions, or with common…

编程语言 · 计算机科学 2007-05-23 Oleg Kiselyov , Ralf Laemmel

Type soundness is an important property of modern programming languages. In this paper we explore the idea that "well-typed languages are sound": the idea that the appropriate typing discipline over language specifications guarantees that…

编程语言 · 计算机科学 2016-11-17 Matteo Cimini , Dale Miller , Jeremy G. Siek

Linear constraints are the linear counterpart of Haskell's class constraints. Linearly typed parameters allow the programmer to control resources such as file handles and manually managed memory as linear arguments. Indeed, a linear type…

编程语言 · 计算机科学 2026-04-24 Arnaud Spiwack , Csongor Kiss , Jean-Philippe Bernardy , Nicolas Wu , Richard A. Eisenberg

Liquid typing provides a decidable refinement inference mechanism that is convenient but subject to two major issues: (1) inference is global and requires top-level annotations, making it unsuitable for inference of modular code components…

编程语言 · 计算机科学 2019-10-31 Niki Vazou , Éric Tanter , David Van Horn

As originally proposed, type classes provide overloading and ad-hoc definition, but can still be understood (and implemented) in terms of strictly parametric calculi. This is not true of subsequent extensions of type classes. Functional…

编程语言 · 计算机科学 2016-12-28 J. Garrett Morris

The introduction of first-class type classes in the Coq system calls for re-examination of the basic interfaces used for mathematical formalization in type theory. We present a new set of type classes for mathematics and take full advantage…

计算机科学中的逻辑 · 计算机科学 2011-02-08 Bas Spitters , Eelis van der Weegen
‹ 上一页 1 2 3 10 下一页 ›