News for hackers. Stuff that matters.

beefburger

Re:A parasitic Fibonacci computation inside /usr/bin/top on Friday October 02, 2026 @12:17PM (#49935251)
ncurses terminfo can simulate a two-counter Minsky machine, making repeated parameter expansion computationally universal
Search is working as intended, but the demo only covers Switzerland. It's a bake of the Geofabrik Switzerland extract. Try "Zermatt" or "Basel". You can bake any region yourself from a .pbf: python3 bake.py --pbf glasgow.osm.pbf.

Fair point that the error message should say so. I'll make it read "not found — this demo covers Switzerland only."

Re:Unicode's Transliteration Rules Are Turing-Complete on Thursday July 09, 2026 @01:43AM (#48841422)
No, standard transliterators like Latin-Katakana are designed to always terminate. What the article demonstrates is that the underlying rule language is powerful enough that one could write custom rules that loop infinitely.

In practice, the ICU implementation does limit the number of rewrites, even though the specification doesn't.

Re:Unicode's Transliteration Rules Are Turing-Complete on Wednesday July 08, 2026 @05:44AM (#48829798)
I've been wondering for a while if anything in Unicode could accidentally compute. It turns out that UTS #35 transliteration rules are Turing-complete. I show how to compute Collatz with just 3 rewrite rules running on stock ICU.
Re:Jira Is Turing-Complete on Monday May 25, 2026 @03:50PM (#48270870)
Indeed. The Jira rules implement test-then-decrement correctly, but the notation was ambiguous. I’ve fixed the pseudocode so that the test explicitly precedes the decrement. Thanks for the careful read!

Show HN: RFC Esolang – RFCs as executable programs

https://seriot.ch/rfc/

RFC Esolang is a programming language in which the specification document is the source code.Requirement levels like MUST, SHOULD, and MAY act as control flow. Section numbers define labels. Packet-diagram labels serve as registers.Executing RFC 9379 outputs the powers of two. Pre-existing RFCs MAY parse as valid programs, forming a historically accidental standard library.

( Read More... | no comments | on HN )
Re:RFC Esolang – RFCs as executable programs on Tuesday March 31, 2026 @06:12PM (#47594160)
RFC Esolang is a programming language in which the specification document is the source code.

Requirement levels like MUST, SHOULD, and MAY act as control flow. Section numbers define labels. Packet-diagram labels serve as registers.

Executing RFC 9379 outputs the powers of two. Pre-existing RFCs MAY parse as valid programs, forming a historically accidental standard library.

Re:"Print to Play" article in Paged Out magazine [pdf] on Tuesday October 07, 2025 @09:36AM (#45502899)
How to install a Tic-Tac-Toe game on your printer by copy-pasting a few lines in PostScript.
Re:Edge Matching Puzzles on Tuesday October 07, 2025 @09:34AM (#45502876)
Solvers and visualizers in Python, C and PostScript
I've been experimenting with PostScript programming over the past two years, creating several small games (Tic-Tac-Toe, Chess, Sokoban and Tetris) all running in Ghostscript or directly on printers. Here are my annotated slides about this quirky and fun journey, filled with insights, code snippets, and lessons learned.
Re:Shrinking PostScript Tiny Ray Tracer on Tuesday March 04, 2025 @02:06PM (#43258727)
How I shrank Takashi Hayakawa's 33 years old tiny ray tracer by 33 bytes
Re:Tetris in PostScript on Wednesday February 19, 2025 @03:27AM (#43099895)
I've just implemented Tetris in PostScript, pushing the limits of a document-processing language to run a realtime game. It works in GhostView on macOS.

* 600 lines / 10 KB * 69 different PostScript operators, no external libs * Realtime input, direct drop, increasing speed levels * 7-tetrimino random bags * Nintendo-style scoring and high score tracking

This project builds on my earlier experiments with PSChess and PSSokoban.

It show that PostScript is a lightweight, expressive, and surprisingly interactive programming language. A perfect tool for hacking on unexpected platforms.

Older »