Strawk
I implemented Rob Pike's forgotten Awk
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Rob Pike wrote a paper, Structural Regular Expressions (https://doc.cat-v.org/bell_labs/structural_regexps/se.pdf), that criticized the Unix toolset for being excessively line oriented. Tools like awk and grep assume a regular record structure usually denoted by newlines. Unix pipes just stream the file from one command to another, and imposing the newline structure limits the power of the Unix shell.In the paper, Mr. Pike proposed an awk of the future that used structural regular expressions to parse input instead of line by line processing. As far as I know, it was never implemented. So I implemented it. I attempted to imitate AWK and it's standard library as much as possible, but some things are different because I used Golang under the hood.Live Demo: https://ahalbert.github.io/strawk/demo/strawk.htmlGithub: https://github.com/ahalbert/strawk
HN · launched Nov 18, 2025 · 5 upvotes (top 90%) · 0 views
Niche: programming languages and interpreters · 161 launches, 2 in the last 7 days ▼ -71% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
More like this: all 161 launches in programming languages and interpreters →
Could you build this?
Partial Writing a custom language interpreter for structural regular expressions requires implementing non-trivial parsing and Rob Pike's non-standard regex execution model.
What it would actually take: The project requires writing an interpreter or compiler based on Pike's 'Structural Regular Expressions' paper, involving a custom recursive descent or PEG parser for Awk-like grammar and an engine implementing structural regex primitives (submatching, structural iteration, disjoint edits). While LLMs can generate boilerplate lexers and parsers, getting the non-line-oriented buffer navigation and state transitions formally correct requires deep compilers and automata knowledge.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one : 36 launches clear the similarity bar, closest 8 shown.
Attention rank: #35 of 37 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 17 days after the earliest competitor.
- Shuck · hn · 2026-04-30 · 8 upvotes · similarity 0.39
- Grsh · hn · 2026-01-14 · 50 upvotes · similarity 0.39
- Structural code grep across public GitHub repositories · hn · 2026-08-22 · 15 upvotes · similarity 0.37
- ShellTalk brings deterministic text-to-bash · hn · 2026-04-22 · 9 upvotes · similarity 0.35
- Seapie · hn · 2026-01-12 · 22 upvotes · similarity 0.34
- Shifu · hn · 2026-03-30 · 7 upvotes · similarity 0.34
- MCP file tools silently eat your context window.I built one that doesnt · hn · 2026-03-01 · 6 upvotes · similarity 0.34
- GNU grep as a PHP extension · hn · 2026-04-10 · 32 upvotes · similarity 0.33
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.