type-system

Tag

Cards List
#type-system

A Type Stronger than the Sum of its Components

Lobsters Hottest ↗ · 19h ago Cached

The author shares a Rust programming technique to improve type safety by creating individual types for each variant of an enum, specifically for path components, based on std::path::Component.

0 favorites 0 likes
#type-system

We Have Named Arguments at Home

Lobsters Hottest ↗ · yesterday Cached

The article discusses how Rust can simulate named arguments using its type system with structs, offering an ergonomic alternative without new language features.

0 favorites 0 likes
#type-system

Do not let your type system reason about aliasing in your programming language

Lobsters Hottest ↗ · 2d ago Cached

The article examines the complexities of aliasing in type systems for programming languages, using Futhark's in-place updates as an example, and warns about the design challenges it can introduce.

0 favorites 0 likes
#type-system

@charliermarsh: In the next ty release, we have full support for recursive implicit type aliases (at arbitrary depths). For the type th…

X AI KOLs Following ↗ · 2026-09-18 Cached

In the next release of ty, full support for recursive implicit type aliases is implemented using mu types.

0 favorites 0 likes
#type-system

Stabilizing Rust's Never Type

Hacker News Top ↗ · 2026-09-09 Cached

Rust has stabilized its 'never' type after over two years of development, a feature that enables more efficient generic code and simplifies type inference in the language.

0 favorites 0 likes
#type-system

Rust: When Empty Isn't Bottom

Lobsters Hottest ↗ · 2026-09-08 Cached

The article discusses the recent addition of the empty type in Rust, explaining the difference between empty and bottom types and how it affects type coercion in the language.

0 favorites 0 likes
#type-system

CTTI is Exponential, RTTI is Linear

Lobsters Hottest ↗ · 2026-09-02 Cached

This article argues that Runtime Type Information (RTTI) has a linear cost, while Compile-Time Type Information (CTTI) can lead to exponential costs in compilation time and binary size, challenging the assumption that CTTI is zero-cost.

0 favorites 0 likes
#type-system

I stabilized never type

Lobsters Hottest ↗ · 2026-08-25 Cached

After over a decade of instability and failed attempts, the never type in Rust has been stabilized on nightly releases, marking a significant development for the programming language.

0 favorites 0 likes
#type-system

Enabling the next-generation trait solver on nightly | Rust Blog

Lobsters Hottest ↗ · 2026-08-21 Cached

The Rust blog announces the enablement of the next-generation trait solver on nightly, a major compiler update that replaces core type system components, fixes over 200 issues, and is planned for stabilization.

0 favorites 0 likes
#type-system

Everyone Says Assembly Is Untyped—Everyone Is Wrong - gingerBill

Lobsters Hottest ↗ · 2026-08-20 Cached

The article argues that assembly is actually typed and presents Odin's inline assembler as the best implementation due to its deep integration with the language's type system and semantic diagnostics.

0 favorites 0 likes
#type-system

Unexpected (to me) behaviour in Lisp sub-typing

Lobsters Hottest ↗ · 2026-08-14 Cached

The article explores unexpected behavior in Common Lisp's SBCL where array sub-typing works for integer types but fails for constrained types like (unsigned-byte 16), attributed to compiler optimizations and upgraded array element types.

0 favorites 0 likes
#type-system

Proof types in Dart: Using final classes as computational witnesses

Lobsters Hottest ↗ · 2026-07-28 Cached

This article explains how to use Dart's final class with private constructors to create proof types that enforce validation at compile time, ensuring that certain computations have been performed before values are used.

0 favorites 0 likes
#type-system

The Unreasonable Effectiveness of Constructive Data Modeling

Lobsters Hottest ↗ · 2026-07-27 Cached

By treating types as positive spaces for constructing new values rather than negative spaces for restricting values, and combining product types and sum types, we can precisely model data invariants and avoid fighting with the type checker. It recommends using simple type composition rather than complex type system features.

0 favorites 0 likes
#type-system

Temper Language

Lobsters Hottest ↗ · 2026-07-14 Cached

Temper is a programming language that cross-translates to multiple target languages including C#, Java, JavaScript/TypeScript, Lua, and Python, enabling shared libraries across ecosystems.

0 favorites 0 likes
#type-system

Adding a second middleware broke our typescript types

Lobsters Hottest ↗ · 2026-07-13 Cached

A blog post from Inngest detailing how adding a second middleware corrupts TypeScript types due to a loophole in type constraint checking, and explaining the root cause involving optional properties and conditional types.

0 favorites 0 likes
#type-system

Type Inference (Part 1)

Lobsters Hottest ↗ · 2026-06-26 Cached

A tutorial on type inference covering the Damas-Hindley-Milner type system, unification, and related concepts, with OCaml code examples.

0 favorites 0 likes
#type-system

A data race that doesn't compile

Hacker News Top ↗ · 2026-06-26 Cached

The article explains how the author taught Rust's type system to reject parallel reducer pipelines that could cause data races, using a type-level disjointness technique in the ruxe library.

0 favorites 0 likes
#type-system

@blackanger: Distilled many good practices from Epic Lora

X AI KOLs Timeline ↗ · 2026-06-21 Cached

An experiment on using Rust's type system as an AI coding specification, distilling practices from Epic Lora.

0 favorites 0 likes
#type-system

Lisp in the Rust Type System

Hacker News Top ↗ · 2026-06-20 Cached

A Lisp interpreter embedded in Rust's trait system, allowing recursive functions, closures, and continuation passing style at compile time.

0 favorites 0 likes
#type-system

Only Bounds

Lobsters Hottest ↗ · 2026-06-09 Cached

This blog post introduces 'only bounds', a proposed improvement to Rust's generics system that replaces the current Sized/?Sized hierarchy with a richer set of sizedness traits to accommodate dynamically sized types and ARM's Scalable Vector Extension.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback