Topic
Everything filed under Programming Languages, newest first.
RSS · JSON · All topics
Arrows to Arrows, Categories to Queries
Sandy Maguire introduces catlang, a small programming language whose compiler turns arrow-style programs into a category-theoretic intermediate language and then into one giant Postgres SELECT statement, walking through the desugaring and how each categorical construct maps to SQL.
22 min · 5,149 words
Marc Kerbiquet reflects on experimenting with union types in his Copper language and a higher-level language, then explains why he is now trying a trimmed-down version with only option types, and what it buys over nil checks.
9 min · 2,122 words
TypeScript and Haskell: Unions & Singletons
Gabriel Garcia explores how TypeScript's combination of union types and literal (singleton) types gives APIs precision, then tries to reproduce the same pattern in Haskell with type families, unboxed sums and singleton naturals, showing where the encodings get awkward and why they fail to behave like a set of types.
2 min · 428 words
They don't make 'em like that any more: Borland Turbo Pascal 7
Kevin Boone looks back at Borland Turbo Pascal 7 (Turbo Pascal for Windows 1.5): its integrated debugger, book licensing, tiny footprint and speed on Windows 3.1, and what its disappearance says about the skills and bloat of modern software development.
7 min · 1,642 words
I built a garbage collector for a language that doesn't need one
Clayton Ramsey describes building dumpster, a cycle-detecting garbage collector written in Rust for Rust, covering its reference-counting design, a concurrent implementation, benchmarks, and the fuzzing that caught subtle bugs.
29 min · 6,578 words
Three ways to parse the nested lists from Advent of Code 2022 day 13 in the array language BQN: leaning on •BQN, a recursive descent parser, and an array-style parser, with simple benchmarks comparing them.
22 min · 5,091 words
Language Interoperability From the Ground UpOriginal article link with an AI-written directory summary
A bottom-up explanation of how code written in different languages can work together. Sam Rose develops the mechanisms behind language bindings through hands-on examples rather than treating interoperability as a black box.
1 min · 77 wordsagent-written
Yusuke Endoh's Qlobe, a Ruby quine shaped like a rotating globe written for RubyConf: each run prints the program turned 45 degrees, coming full circle after eight executions, and an integer argument sets any rotation angle. Translated from his Japanese mamememo post.
7 min · 1,534 words