Topic

Programming Languages

Explore programming language discussions covering language design, compilers, paradigms, and developer communities. Our digest synthesizes language evolution, new language features, and compiler trends from Hacker News and Lobsters.

What this topic tracks

  • Engineering practices and ecosystem debates
  • Tools, architecture, and implementation lessons
  • Relevant discussions from developer communities

Programming Languages · 865 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

Dependent if expressions without dependent types

haskellforall.com · 2 Sept

Programming Languages · Computer Science

The post demonstrates how generalized Church-encoded booleans and Hindley–Milner inference can simulate dependent if expressions in Haskell using only RebindableSyntax.

By removing restrictive type signatures, inferred types track branch-specific result flow, enabling expressions like `if bool then 5 else "hi!"`, while also supporting boolean composition and compile-time assertions.

zls 0.17.0

zigtools.org · 21 Oct

Programming Languages

ZLS 0.17.0 improves symbol renaming by no longer following aliases: renaming a function changes only the function and its alias, while renaming the declaration updates all references.

The release restores most build-system integration after Zig 0.17’s process separation through the build system protocol, but regressions remain for package imports, exported modules without a compile step, and Windows file watching. ZLS works around Windows watching via LSP save events. The protocol enables future build-aware testing, fuzzing, coverage, and debugging tooling.

Typed indexes in Zig

lvignoli.eu · 25 Nov

Design Patterns · Programming Languages

Zig’s typed-index pattern prevents mixing indexes for different arrays by representing each index as a distinct enum-backed type and exposing typed accessors.

In a spreadsheet struct, separate row and column index types make incorrect calls fail at compile time. A comptime-generic `Sheet.at` maps fields to index kinds and derives element types with reflection. Direct integer or backing-index access remains possible, so safety depends on documented conventions rather than complete enforcement.

Guards! Guards

hauleth.dev · 27 Jun

Programming Languages · Computer Science

In Elixir, guard clauses are not commutative due to short-circuiting and automatic failure propagation.

When a guard function fails, the entire expression discards. For example, testing a map key check before an integer check causes an error when passing an integer, proving that guard order is critical for safe conditional evaluation.

Type inference of all constructs and the next 15 months

elixir-lang.org · 9 Jan

Programming Languages · Open Source · Computer Science

Elixir is celebrating its 15th anniversary with the announcement of the Elixir v1.20 release candidate, marking a significant milestone in its journey toward a sound, gradual, set-theoretic type system.

This update introduces type inference for all language constructs, including guards, allowing the compiler to detect bugs without requiring changes to existing code. The development roadmap for the next 15 months includes enhancing inference across clauses and dependencies, leading up to the final release in May 2026. Future milestones will focus on typed structs and formal type signatures, while the team continues to monitor compiler performance and developer ergonomics to ensure the system remains practical for production use.

GNU Mes and the 0.28 release

ekaitz.elenq.tech · 3 Nov

Performance · Programming Languages

GNU Mes 0.28 was released as the first GNU maintainer release, introducing a faster VM and Scheme-based macro expander, and enabling compilation with M2-Planet, MesCC, and GCC.

On amd64, self-hosting mescc-mes fell from 103.39 to 60.93 seconds; on riscv64, from 926.30 to 529.50. The release adds standards-compliant values/call-with-values and primitive continuation marks, while noting RISC-V and M2-Planet issues. Future work includes delimited continuations, pointer tagging, compiler, and GC improvements.

Flow Typing, A New Lens on Linearity

jaredforsyth.com · 20 Oct

Programming Languages · Computer Science

Flow typing uses lenses to solve the threading problem in linear type systems without extending the core language.

Linear systems require every value to be used exactly once, enabling statically enforced resource disposal and controlled mutation, but traditionally force state to be passed through every operation. Flow typing provides mutable-reference-like syntax with simple, purely functional semantics that can be implemented in a standard linear lambda calculus. The author is testing its usability and implementation in the Laminar programming language.

Making GHC upgrades easy

blog.haskell.org · 12 Jun

Programming Languages · Open Source

The GHC team is improving the Haskell compiler upgrade experience by decoupling the base package from GHC releases.

By splitting base and ghc-internal, and stabilizing key APIs, they aim to enable easier dependency management. They are now inviting community contributions to maintain these packages and clean up internal APIs to ensure long-term stability and ecosystem health.

The glorious @xkcdRandom Zig builtin

ochagavia.nl · 23 Oct

Programming Languages

A Zig compiler fork adds the `@xkcdRandom` builtin, which always returns `4`, echoing the xkcd joke about a fake random-number function.

The author implemented it as a 22-line compiler change rather than a normal function to learn Zig’s internals. The builtin can initialize values such as `usize` and `f32`; the modified compiler built in about a minute and produced `4, 4` when running the example program.

Scheme is a Hoot

gracefulliberty.com · 5 Jul

Programming Languages · Computer Science

The author explores using Hoot to compile Scheme code to WASM for web deployment.

Despite challenges with Hoot's current instability and documentation, they successfully implemented a cross-environment setup supporting native Guile and browser execution. The project focuses on physics simulations, with future plans to experiment with combining Scheme and Zig for web applications.

Clang Hardening Cheat Sheet - Ten Years Later

blog.quarkslab.com · 8 Jan

Cybersecurity · Performance · Programming Languages

This article provides a comprehensive 2026 update to the Clang Hardening Cheat Sheet, detailing a decade of evolution in compiler-based security mitigations.

Key recommendations from the OpenSSF Best Practices Working Group include flags such as -D_FORTIFY_SOURCE=3 for enhanced buffer checks, -fstack-clash-protection for modern memory safety, and hardware-assisted features like Intel CET and ARM PAC/BTI to prevent code-reuse attacks (ROP/JOP). The post also explores advanced techniques like register zeroing with -fzero-call-used-regs and speculative execution defenses like Speculative Load Hardening (SLH). By integrating these modern Clang toolchain options, developers can significantly harden applications against sophisticated exploits while balancing the inevitable trade-offs in performance.

annote: Writing java using only annotations

github.com · 6 Jan

Java · Programming Languages · Software Architecture

Annote is an experimental and satirical project that transforms Java annotations into a fully functional, interpreted programming language.

While annotations were originally designed for metadata, this project utilizes reflection to execute logic defined entirely within annotation parameters, including variables, loops, conditionals, and arithmetic. The framework uses a shunting-yard algorithm for expression parsing and a stack-based approach for block management. Despite its 'cursed' nature, Annote supports advanced features like recursion, state management through class-level fields, and custom exception handling via specific annotations. It serves as a humorous yet technical exploration of the limits of the Java Reflection API and the annotation system, intentionally disregarding traditional best practices in favor of metadata-driven execution.

HTML parsers in Portland

felix.dognebula.com · 3 Dec

Artificial Intelligence · Programming Languages · Python

This article explores the phenomenon of 'vibe-translation' in AI-powered coding, focusing on the development of the JustHTML parser.

The author examines how AI agents, despite being tasked with porting the Rust-based html5ever to Python and subsequently to other languages like JavaScript and Swift, often deviate from literal translation. Instead of accurately porting the source logic, these agents frequently hallucinate or substitute code with patterns found in their training data. While the resulting parsers often pass standard test suites like html5lib, the author identifies weird implementation quirks, such as inconsistent handling of the Data state and persistent bugs like incorrect XML comment coercion. These anomalies raise significant questions about the reliability and security of AI-generated code, especially in edge cases not covered by automated tests. The author emphasizes that the success of these projects may rely on the fact that HTML parsing is a common problem in LLM training sets, masking the agents' inability to perform rigorous, deterministic logic translation.

Compile-Time Dependent Types

thenumb.at · 25 Oct

Programming Languages · Computer Science

Syl is a systems-programming language that encodes compile-time computation and dependent types in a modal type system.

Its staticity and erasure modes distinguish compile-time from runtime knowledge, enabling monomorphization and compile-time branch elimination. Static functions can make result types depend on input values, supporting polymorphism, typed interpreters, and length-indexed vectors, while runtime code remains simply typed. Syl permits recursive, potentially diverging type-level computations, making typechecking undecidable and requiring fuel limits. The incomplete design also targets higher-kinded types, modules, imports, reflection, and user-defined layouts.

GDScript: The Good, Bad, and Ugly Parts

azhdarchid.com · 13 Sept

Programming Languages · TypeScript

An extensive TypeScript-to-GDScript port finds GDScript well suited to Godot: game-focused types, signals, resource loading, debugger integration, and predictable memory behavior.

However, its incomplete static typing, weak generics and narrowing, absent unions, cumbersome functional patterns, and fussy syntax limit expressiveness. The author recommends using it while hoping future Godot releases improve the type system.

Gleam Gathering 2027

gleamgathering.com · 10 Sept

Programming Languages · Open Source

Gleam Gathering 2027 returns to London on 27 February 2027 at 44 Hallam St, featuring technical talks, networking, meals, and weekend community activities.

Organizers seek advanced Gleam proposals on production use and real-world innovation, with 30- or 45-minute formats. Submissions close 14 October 2026; selected sessions will be recorded.

What would make OCaml serverless ready?

chrisarmstrong.dev · 8 Jan

Cloud Computing · Programming Languages · Serverless

Chris Armstrong explores the potential of OCaml for serverless application development, highlighting how programming language choice significantly impacts efficiency, cold-start performance, and deployment simplicity.

While Python and TypeScript offer ease of use but higher overhead, and Rust provides performance with a steep learning curve, OCaml is presented as a pragmatic 'sweet spot'. It combines the safety and speed of compiled languages with the simplicity of garbage-collected ones. However, OCaml currently faces hurdles regarding native cross-compilation and the lack of mature cloud SDK or IaC integrations. To address this, projects like smaws and ocaml-cfgen are emerging to improve the ecosystem, aiming to make OCaml a more viable and competitive choice for high-performance, cost-effective serverless architectures in enterprise environments.

Beyond the &

lwn.net · 8 Oct

Programming Languages · Rust

Rust’s “Beyond the &” project proposes exposing compiler notions of places and handles so user-defined smart pointers can interact with the borrow checker like built-in references.

At RustConf 2026, Tyler Mandry showed how this could fix MutexGuard borrowing failures by defining traits such as ReadPlace, WritePlace, ProjectPlace, and BorrowPlace. The prototype could also enable pattern matching through smart pointers, but syntax, diagnostics, enum support, and safety details remain under development.

Rust debugging survey 2026 results

blog.rust-lang.org · 7 Sept

Low-Level Programming · Programming Languages

Rust’s first Debugging Survey, with over 2,300 responses, found that more than half of respondents do not currently use debuggers, favoring print debugging.

Major pain points include poor value representation, inability to print variables, and difficulties with async code, macros, collections, and enums. Recommended improvements include better visualizers, async support, stepping, and debugger documentation.

Hoot 0.10.0 released

spritely.institute · 28 Oct

Programming Languages

Hoot 0.10.0, Guile’s Scheme-to-WebAssembly compiler backend and general-purpose WebAssembly toolchain, has been released with compiler, runtime, Scheme, CLI, documentation, and compatibility updates.

It adds R6RS modules and versioning, partial SRFI-13 and SRFI-60 support, new primitives and macros, improved argument parsing, stricter CLI validation, and fixes for numeric conversion and module handling. It supports Safari 26+, Firefox 121+, and Chrome 119+, and includes a game-jam template for building HTML5 games.

Where it came fromLobstersCreate a Snapbyte.dev digest and choose Programming Languages as one of your topics.Build your digest