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

How to use storytelling to fit inline assembly into Rust

ralfj.de · 13 Mar

Programming Languages · Rust · Software Architecture

This article explores integrating inline assembly into the Rust Abstract Machine using a 'storytelling' approach.

It proposes that every assembly block must correspond to a valid Rust 'story' (code) to ensure compatibility with compiler optimizations and aliasing models like Tree Borrows. The model addresses complex scenarios like page table manipulation and non-temporal stores.

kip: A programming language based on grammatical cases of Turkish

github.com · 28 Jan

NLP · Programming Languages · Computer Science

Kip is an experimental programming language that uniquely integrates Turkish natural language morphology and grammatical cases into its type system.

By leveraging suffixes and vowel harmony, the language allows for flexible argument ordering in function calls, as the relationships are explicitly defined by noun cases like nominative, dative, and accusative. Specifically, Kip utilizes the Foma finite-state morphology toolkit and the TRmorph transducer to analyze source code. This research-oriented project demonstrates how linguistics and type theory can intersect by resolving parsing ambiguities through type checking. It features support for algebraic data types, pattern matching with specific conditional suffixes, and a bytecode cache system stored in .iz files. While not intended for production usage, it serves as an educational tool for exploring non-Western paradigms in computer science and language design.

My C23 Conventions

abner.page · 15 Oct

C · Programming Languages

C23 has led the author to adopt three safer C conventions: use [[maybe_unused]] (often with auto _) when intentionally discarding [[nodiscard]] results; use empty initialization ({ }) to fully zero structs and unions, rather than relying on {0} or designated initializers; and specify enum underlying types explicitly, such as enum options : int, to prevent implementation-adjusted widths from hiding invalid bit flags.

These practices reduce compiler warnings, initialization bugs, and enum surprises in maintained projects.

Soft-deprecating re.match()

hugovk.dev · 10 Sept

Programming Languages · Python

Python 3.15 soft-deprecates re.match(): it remains documented and supported for existing code, but new code should use the explicit re.prefixmatch() for start-anchored matching.

Use re.search() to match anywhere and re.fullmatch() to match the entire string. The change clarifies semantics without implying removal; Ruff can lint projects to discourage re.match().

rat's minimal register allocator

hexrat.cc · 7 Oct

Algorithms · Low-Level Programming · Performance · Programming Languages

rat replaced its 1,392-line linear scan register allocator with a 584-line priority bin-packing allocator that assigns live ranges by priority, using coalescing, holes, spill weights, and physical-register hints.

It performs no eviction, splitting, or second allocation pass, yet produces better code: 3.6% fewer instructions and 22% fewer stores. On sqlite at -O0, allocator time fell 77% and total compile time 43%, showing that simpler heuristics retained most benefits.

finiteloop/truss

github.com · 2 Dec

Programming Languages

Truss is a prototype programming language for AI-agent-written software that prioritizes correctness, security, performance, and human verification over convenient authoring.

Its packages center on contracts specifying formally verified behavior, while providers implement those contracts and publish reusable conformance proofs. The compiler checks contracts, independently validates provider evidence, and verifies behavior through code generation and separate compilation, allowing verification effort to scale across dependencies. Examples cover algorithms, cryptography, networking, parsing, and memory safety.

How I program in AWK

maximullaris.com · 1 Jan

CLI · Programming Languages · Open Source

AWK is a versatile CLI utility and programming language primarily used for text processing across Unix-like operating systems.

Although often viewed as a tool for short one-liners, the author demonstrates its power by developing Makesure, a portable task runner alternative to make. To overcome the lack of modern development tools, the author created an AWK plugin for IntelliJ IDEA, enhancing productivity for larger projects. Additional tools like awk-test-forge and fhtagn further support the ecosystem, showcasing AWK's potential for building robust CLI utilities and experimental projects like cellular automata.

Intuitive concurrent programming in any language

lf-lang.org · 15 Oct

Programming Languages

Lingua Franca provides a straightforward way to build deterministic multi-threaded and distributed applications without manually managing threads, synchronization, or race conditions.

Its core includes built-in timing semantics, enabling precise handling of time-sensitive tasks while avoiding the complex timing logic usually required in concurrent programming.

Bastion of the Turbofish

github.com · 11 Sept

Programming Languages · Testing · Computer Science

This Rust test case, titled “Bastion of the Turbofish,” humorously demonstrates a syntactic ambiguity involving generic arguments written without Rust’s turbofish syntax.

The code must continue to compile successfully, memorializing Anna Harren and documenting the language-design debate through linked Rust pull requests and an RFC.

What is `std::pin::Pin` in Rust?

vrong.me · 29 Jun

Low-Level Programming · Programming Languages · Rust

Pin is a Rust pointer wrapper ensuring that self-referential types, such as async state machines, do not move in memory.

This prevents dangling pointers by restricting mutable access to !Unpin types. Developers typically manage pinning via Box::pin, the pin! macro, or Unpin implementations, ensuring Rust’s memory safety without a garbage collector.

Rust should have stable tail calls

trifectatech.org · 14 Apr

Programming Languages · Rust · Software Architecture

The Rust community is targeting the stabilization of explicit tail calls by 2027.

Tail calls enable recursion without stack overflows and allow for high-performance state machines, such as interpreters, by reusing stack frames. The project focuses on improving LLVM backend support and exploring complementary features like computed gotos to ensure efficient, portable systems-level code generation.

Security advisory for Cargo

blog.rust-lang.org · 21 Mar

Cybersecurity · Programming Languages · Rust

The Rust Security Response Team disclosed CVE-2026-33056, a vulnerability in the tar crate allowing arbitrary directory permission changes during Cargo package extraction.

No crates.io packages were found to exploit this. A patch will be included in Rust 1.94.1. Users of alternate registries should verify their status with their providers immediately.

The two kinds of error

evanhahn.com · 1 Mar

Programming Languages · Software Architecture · Testing

The article categorizes software errors into expected and unexpected types.

Expected errors, like invalid user data, are part of normal operation and should be handled gracefully via return values. Unexpected errors indicate developer bugs and should trigger crashes to ensure long-term reliability. Choosing the right error philosophy depends on the application's complexity and language.

Pratt parsing is a black box

vinipsmaker.github.io · 1 Nov

Algorithms · Programming Languages · Education

Pratt parsing is a code-organization mindset, not merely a precedence-climbing algorithm.

It assigns semantic actions to terminals: nuds handle tokens with nothing left, leds handle tokens with a left expression, and binding powers control precedence and associativity. This avoids backtracking and left recursion while enabling composable subparsers, macros, and context-sensitive parsing. Pratt still needs a separate, often modal lexer and cannot parse statements or incremental syntax alone. The recommended practice is to treat the algorithm as a black box.

Babashka 1.13.220 gets FFI

blog.michielborkent.nl · 31 Aug

C · Low-Level Programming · Programming Languages

Babashka 1.13.220 introduces experimental babashka.ffi for calling C libraries from Babashka and JVM Clojure.

It adds explicit memory management, safer arena-based allocation, SQLite integration, and new demos. The release changes Linux binaries to mostly-static builds, while task improvements support dependency composition, inherited CLI options, direct exec arguments, and lazily loaded command trees.

The Art of CHIP-8

beyondloom.com · 14 Aug

Low-Level Programming · Programming Languages · Computer Science

A practical guide to programming CHIP-8 explains its 34-instruction virtual ISA, tight memory and hardware constraints, Octo syntax, and portability hazards caused by divergent interpreters.

It recommends conservative register, memory, graphics, input, timing, and control-flow practices, while showcasing self-modifying code and optimization techniques. CHIP-8 remains an accessible gateway to emulator and bare-metal programming.

C Strings: A 50-Year Mistake

longtran2904.substack.com · 11 Jul

C · Programming Languages · Software Architecture

The author argues that null-terminated C strings are an outdated, error-prone design.

By using structure-based strings that explicitly include a pointer and length, developers can improve performance, avoid ambiguity, enable efficient slicing, and handle binary data safely. Adopting length-based strings significantly reduces memory-related bugs and simplifies string manipulation compared to traditional C approaches.

Sliced by Go’s Slices

ohadravid.github.io · 26 Feb

Go · Programming Languages · Python

The author explores a subtle Go behavior where variadic expansion of slices allows mutation of the original data, as the function parameter shares the same underlying array.

This contrasts with Python, where variadic arguments are immutable tuples or new dictionaries, sparking a discussion on language design and developer sanity.

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