中文
相关论文

相关论文: Haskell's overlooked object system

200 篇论文

The recently introduced dependent typed higher-order logic (DHOL) offers an interesting compromise between expressiveness and automation support. It sacrifices the decidability of its type system in order to significantly extend its…

计算机科学中的逻辑 · 计算机科学 2025-07-04 Colin Rothgang , Florian Rabe

Online Continual Learning (OCL) aims to learn from endless non\text{-}stationary data streams, yet most existing methods assume a flat label space and overlook the hierarchical organization of real\text{-}world concepts that evolves both…

机器学习 · 计算机科学 2026-05-13 Xinrui Wang , Shao-Yuan Li , Bartłomiej Twardowski , Alexandra Gomez-Villa , Songcan Chen

We present a library for generic programming in OCaml, adapting some techniques borrowed from other functional languages. The library makes use of three recent additions to OCaml: generalised abstract datatypes are essential to reflect…

编程语言 · 计算机科学 2019-01-01 Florent Balestrieri , Michel Mauny

Multi-stage programming is a proven technique that provides predictable performance characteristics by controlling code generation. We propose a core semantics for Typed Template Haskell, an extension of Haskell that supports multi staged…

编程语言 · 计算机科学 2021-12-08 Matthew Pickering , Andres Löh , Nicolas Wu

First class type equalities, in the form of generalized algebraic data types (GADTs), are commonly found in functional programs. However, first-class representations of other relations between types, such as subtyping, are not yet directly…

编程语言 · 计算机科学 2019-05-17 Jeremy Yallop , Stephen Dolan

The Go programming language is an increasingly popular language but some of its features lack a formal investigation. This article explains Go's resolution mechanism for overloaded methods and its support for structural subtyping by means…

编程语言 · 计算机科学 2021-09-22 Martin Sulzmann , Stefan Wehr

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

Higher-order logic HOL offers a very simple syntax and semantics for representing and reasoning about typed data structures. But its type system lacks advanced features where types may depend on terms. Dependent type theory offers such a…

计算机科学中的逻辑 · 计算机科学 2023-05-25 Colin Rothgang , Florian Rabe , Christoph Benzmüller

We present a generic programming framework for OCAML which makes it possible to implement extensible transformations for a large scale of type definitions. Our framework makes use of objectoriented features of OCAML, utilising late binding…

编程语言 · 计算机科学 2021-06-03 Dmitrii Kosarev , Dmitry Boulytchev

DHOL is an extensional, classical logic that equips the well-known higher-order logic (HOL) with dependent types. This allows for concise encodings of important domains like size-bounded data structures, category theory, or proof theory.…

计算机科学中的逻辑 · 计算机科学 2026-05-04 Rhea Ranalter , Florian Rabe , Cezary Kaliszyk

Haskell, as implemented in the Glasgow Haskell Compiler (GHC), has been adding new type-level programming features for some time. Many of these features---chiefly: generalized algebraic datatypes (GADTs), type families, kind polymorphism,…

编程语言 · 计算机科学 2017-08-15 Richard A. Eisenberg

SHACL and OWL are two prominent W3C standards for managing RDF data. These languages share many features, but they have one fundamental difference: OWL, designed for inferring facts from incomplete data, makes the open-world assumption,…

计算机科学中的逻辑 · 计算机科学 2026-01-21 Anouk Oudshoorn , Magdalena Ortiz , Mantas Simkus

Object-centric learning (OCL) seeks to learn representations that only encode an object, isolated from other objects or background cues in a scene. This approach underpins various aims, including out-of-distribution (OOD) generalization,…

计算机视觉与模式识别 · 计算机科学 2025-04-14 Alexander Rubinstein , Ameya Prabhu , Matthias Bethge , Seong Joon Oh

The evolution of programming languages from low-level assembly to high-level abstractions demonstrates a fundamental principle: by constraining how programmers express computation and enriching semantic information at the language level, we…

编程语言 · 计算机科学 2025-06-10 Jason Mars

Transactional memory (TM) has emerged as a promising abstraction for concurrent programming alternative to lock-based synchronizations. However, most TM models admit only isolated transactions, which are not adequate in multi-threaded…

编程语言 · 计算机科学 2016-02-18 Marino Miculan , Marco Peressotti

For many years, GHC has implemented an extension to Haskell that allows type variables to be bound in type signatures and patterns, and to scope over terms. This extension was never properly specified. We rectify that oversight here. With…

编程语言 · 计算机科学 2018-06-12 Richard A. Eisenberg , Joachim Breitner , Simon Peyton Jones

Context. TypeState-Oriented Programming (TSOP) is a paradigm intended to help developers in the implementation and use of mutable objects whose public interface depends on their private state. Under this paradigm, well-typed programs are…

编程语言 · 计算机科学 2018-03-29 Luca Padovani

Many Object Oriented Programming Languages provide reflective features which may be used to control the interpretive mechanism of the language. Often these features are defined with respect to a golden braid consisting of objects classes…

软件工程 · 计算机科学 2018-04-20 Tony Clark

The calculus of Dependent Object Types (DOT) has enabled a more principled and robust implementation of Scala, but its support for type-level computation has proven insufficient. As a remedy, we propose $F^\omega_{..}$, a rigorous…

编程语言 · 计算机科学 2021-07-06 Sandro Stucki , Paolo G. Giarrusso

Liquid Haskell's refinement-reflection feature augments the Haskell language with theorem proving capabilities, allowing programmers to retrofit their existing code with proofs. But many of these proofs require routine, boilerplate code…

编程语言 · 计算机科学 2017-08-09 Ryan Scott , Vikraman Choudhury , Ryan Newton , Niki Vazou , Ranjit Jhala