type-safety

Tag

Cards List
#type-safety

Type Safe Servant Auth Roles

Lobsters Hottest · 2d ago Cached

This article describes the design and implementation of a type-safe role-based authorization system on top of the servant-auth library in Haskell, enabling distinct handlers for each role with compile-time checks.

0 favorites 0 likes
#type-safety

Memory Safety's Hardest Problem

matklad · 3d ago Cached

This article discusses a fundamental memory safety challenge involving tagged unions where a pointer to one variant is used after the union is overwritten with a different variant, leading to type confusion. The author also argues that buffer overflows are the most exploitable memory error and could have been mitigated with better array syntax.

0 favorites 0 likes
#type-safety

Prefer Strict Tables in SQLite

Hacker News Top · 2026-07-11 Cached

SQLite's strict tables enforce rigid typing to prevent common datatype mistakes. The article explains how to use them and their pros and cons.

0 favorites 0 likes
#type-safety

Almost Always Unsigned (2022)

Lobsters Hottest · 2026-07-08 Cached

The article argues for using unsigned integers more often in programming, refuting common arguments against them.

0 favorites 0 likes
#type-safety

Amber the programming language compiled to Bash/Ksh/Zsh

Hacker News Top · 2026-07-07 Cached

Amber is a modern, type-safe programming language that compiles to Bash, Ksh, or Zsh, enabling safer and more robust shell scripting.

0 favorites 0 likes
#type-safety

OTP and Gleam

Lobsters Hottest · 2026-06-11 Cached

Gleam language creator Louie deeply explains the core concepts of OTP, and how Gleam works with OTP in a type-safe manner, achieving fully compatible inter-process communication and supervisor building blocks with Erlang/Elixir.

0 favorites 0 likes
#type-safety

Token Budgets: An Empirical Catalog of 63 LLM-Agent Budget-Overrun Incidents, with an Affine-Typed Rust Mitigation as a Case Study

Hugging Face Daily Papers · 2026-06-02

This paper presents an empirical catalog of 63 confirmed LLM-agent budget overrun incidents from 21 orchestration frameworks, organized into a failure taxonomy, and introduces a Rust crate using affine type ownership to prevent token/cost budget violations at compile time rather than runtime.

0 favorites 0 likes
#type-safety

Reasons and Resources for Learning The Gleam Programming Language

Lobsters Hottest · 2026-06-01 Cached

Introduces five major reasons to learn the Gleam programming language (cross-platform, type safety, concise design, functional paradigm, active ecosystem) along with practical introductory resources, from an official website tour to Exercism.

0 favorites 0 likes
#type-safety

The Fil-C Optimized Calling Convention

Hacker News Top · 2026-05-16 Cached

The Fil-C optimized calling convention ensures memory safety for C programs even under adversarial misuse, while maintaining efficiency by omitting safety checks in the common case. It explains the generic and register-passing optimizations that handle type violations via panics or well-defined behavior.

0 favorites 0 likes
#type-safety

Tagged Union Subsets with Comptime in Zig

Mitchell Hashimoto · 2024-09-23 Cached

Mitchell Hashimoto demonstrates how to use Zig's comptime to create subset types of tagged unions, enabling compile-time safety without exhaustive case handling.

0 favorites 0 likes
← Back to home

Submit Feedback