Skip to content
Tech News
← Back to articles

TXR: An Original, New Programming Language for Convenient Data Munging

read original more articles
Why This Matters

TXR is a niche but mature open-source language and tool for pattern matching and text/data extraction, useful to developers who regularly wrangle messy text like logs, PDFs, or reports. Its long development history and dedicated user testimonials suggest it fills a real gap for scripting-heavy data munging tasks that regex alone struggles with, even if its complexity limits mainstream adoption.

Key Takeaways

TXR: an Original, New Programming Language for Convenient Data Munging

Kaz Kylheku <kaz @ kylheku.com>

Quick Links

What is it?

TXR is a pragmatic, convenient tool ready to take on your daily hacking challenges with its dual personality: its whole-document pattern matching and extraction language for scraping information from arbitrary text sources, and its powerful data-processing language to slice through problems like a hot knife through butter. Many tasks can be accomplished with TXR "one liners" directly from your system prompt. TXR is relatively new: the project started in 2009.

It is difficult to give a small introduction to TXR because it is no longer a small language. The PDF rendition of the reference manual, which takes the form of a large Unix man page, is 778 881 900 951 pages long, excluding any index or table of contents. There are many ways to solve a given data processing problem with TXR: many skills and techniques can be used.

Random Testimonials

"TXR Lisp: making coding fun & snappy! πŸ’₯ Concise, yet powerful, it’s like having a cheat sheet for the language of programming! 😎"

(A Twitter/X post by user AI TechTree)

"The best lisp for text processing is TXR Lisp. [...] But [it is] a rabbit hole that goes so deep, you'd better have nothing but free time if you want to grok it all"

... continue reading