Reg "raganwald" Braithwaite's account for discussing functional programming and shamelessly plugging essays about programming.
Follows are NOT endorsements. This […]
🌉 bridged from ⁂ https://functional.cafe/@raganwald, follow @ap.brid.gy to interact

@raganwald.functional.cafe.ap.brid.gy
Reg "raganwald" Braithwaite's account for discussing functional programming and shamelessly plugging essays about programming.
Follows are NOT endorsements. This […]
🌉 bridged from ⁂ https://functional.cafe/@raganwald, follow @ap.brid.gy to interact
@jbrains Self-indulgent and emotional? I prefer to say that this is what “being authentic” actually means. And in this world of digital inauthenticity…
Well done.
This one is self-indulgent and emotional, but it's real. And I really, really hope that some of The Old XP Folks read it. If you know one, then please forward this on to them.
In the late 80s I read a book about Apple's Object Pascal, and when it explained implementing undo, redo, and an undo stack using what we now call the command pattern and polymorphism, my mind broke and I never saw code the same way again.
Now I see this on […]
Pulling on that thread lead me to Jolt, a Clojure built on Chez!
Two test cases showing the "resolveAll" function. In the first case, the entire standard library is given as the base, and thus the fixpoint combinator resolves to a construction with a lark' (l'), a mockingbird (m), and a bluebird (b).
In the second example […]
Hard to separate the programmer from the programming: I was writing about a book that got me started with algebraic types, and I called it "The Little MLKer."
Oops.
@jerasikehorn.bsky.social “I like people who explain things in a way I can understand.”
—Ralph Wiggum
This building is 125 years old. It still serves as a primary school, educating generations of Scots. It has outlived its architect by over 90 years and will certainly outlive him by a century. ——— Meanwhile... “Is it possible that software is not like anything else, that it is meant to be […]
When I worked at GitHub, I shipped a feature another term had built. We had the equivalent of a "dogfood" feature flag, and the feature had been in use for over a year internally. I was shipping it because everyone thought it was live and somebody finally noticed "No, it's not in GA." The […]
@svw I'm working on a Turing Tarpit language. If nobody's going to look at it, why shouldn't it be extremely weird? Yes, it's unreadable. But consider the tradeoff: It's also slow!
@freefran.bsky.social “That was unkind. Not *unfair*, but unkind.”—Charleton Heston
People may think that my favourite JavaScript feature is functions as first-class values, and they are not wrong. But if sarcasm is present, my favourite feature is probably that I can write code with circular dependencies.
But no, I do not get errors […]
WIP on this #concatenativelanguage idea. Here we define `cons`.
1. Quoted placeholders that match what must be to the left of `cons`;
2. A proper (closed over the placeholders only) definition of how to rewrite the matching quoted placeholders if `cons` is […]
Combinatorial logic has the concept of a "base," a small set of atomic combinators that are assumed to exist. Then, one builds all the other combinators from the given base. This shows that the base is universal, because anything written with all the other combinators can be written with just […]
A "proper" combinator is a kind of function that only rearranges its argument(s). It can duplicate arguments, delete arguments, and/or change the structure of quotations, but it cannot introduce any new combinators that were not already quoted arguments.
“Run!”—Dr. Alan Grant, Jurassic Park (1993)
I was today years old when I learned that the #concatenativelanguage wiki https://concatenative.org:
“Was built with the #Factor web framework, Furnace. The HTTP server is written entirely in Factor and supports HTTPS via the OpenSSL binding. Wiki pages are written using the Farkup markup […]
First non-trivial end-to-end interpretation.
1. We want 9 ÷ 3.
2. The setup starts with a zero.
3. This quotation/program performs division-by-repeated subtraction.
4.`fixpoint` is an implementation of the Y combinator in a call-by-value language. This is […]
Writing "the shittiest parser good enough to criticize." And all those interviews from the hand-coded era where we'd be asked to determine whether a string had balanced parentheses?
That hard work pays off NOW.
https://raganwald.com/2019/02/14/i-love-programming-and-programmers.html