- Updated: January 3, 2026
- 6 min read
Introducing DOESNT: A New Esoteric Programming Language
DOESNT is an esoteric programming language that defines a program by explicitly stating what it must not do, using a single‑string rewriting system with a built‑in rejection operator.
1. Overview of DOESNT esolang
DOESNT belongs to the family of esoteric programming languages (or esolangs) that explore unconventional computation models. Inspired by “LANGUAGE 18” from the classic collection FORTY‑FOUR ESOLANGS, DOESNT flips the usual paradigm: instead of describing the steps a program should perform, it enumerates the steps it must avoid. The language is implemented as a single‑string rewriting system that stores the program in a circular buffer and applies the longest‑matching rule that does not contain the rejection token !.
The design encourages a “subtractive” way of thinking, which can be especially appealing for generative poetry, constraint‑based art, or any domain where the space of valid outputs is more interesting than a single deterministic result.
2. Key Features and Implementation
DOESNT’s core mechanics are deliberately minimal yet powerful. Below is a MECE‑structured breakdown of its most notable features:
2.1. Ring‑Buffer String Storage
- The program text lives in a circular buffer, allowing seamless wrap‑around matching.
- Each rewrite rule scans the buffer from the current head, attempting to match the longest possible prefix.
2.2. Longest‑Prefix Matching with Rejection
- Rules are evaluated in order of decreasing prefix length, guaranteeing deterministic selection.
- The special token
!forces immediate rule rejection, preventing infinite loops that plague many rewriting systems.
2.3. Minimal Syntax
Only three symbols are required:
;– terminates a rule.,– separates pattern elements.!– the “does‑not‑take” operator.
2.4. Implementation in Lua
The reference interpreter is written in Lua, leveraging its lightweight string handling and table structures. The source can be found in the original forum post, but a community‑maintained fork now lives on GitHub for easier collaboration.
“DOESNT is a mirror opposite of Thue, turning the usual rewrite‑forward approach on its head.” – community member on the esolang mailing list.
3. Community Discussion and Updates
The programming community has embraced DOESNT as a fresh experiment in constraint‑driven computation. Below are the most frequent discussion threads and recent milestones:
- Initial Release (2023‑12): The author posted the first Lua implementation, sparking curiosity among esolang enthusiasts.
- Documentation Sprint (2024‑02): Volunteers created a dedicated webpage, added a poem generator example, and drafted a formal specification.
- Integration Talk (2024‑04): A proposal to embed DOESNT into the UBOS platform overview as a sandbox for experimental language design.
- Feature Request: Adding a visual debugger to step through rewrite rules, discussed on the UBOS partner program forum.
These conversations illustrate how DOESNT is not just a curiosity but a living project that benefits from cross‑platform collaboration. For developers interested in exploring the language further, the UBOS templates for quick start include a ready‑made sandbox environment.
4. Example Code Snippet
Below is a minimal DOESNT program that performs addition by stating what it must not do. The code demonstrates the ! rejection token and the ring‑buffer rewrite flow.
give a + unless b , a , + .!, + b b ;
give unless a , b , + b , . ;
have a a a a + b b b . ;
Explanation:
give a + unless b , a , + .!, + b b ;– If the buffer starts witha +and does not contain the patternb , a , + .!, the rule fires.- The second rule provides a fallback when the first rule is rejected.
- The final rule terminates the computation by consuming the remaining symbols.
Running this snippet in the UBOS‑hosted Web app editor on UBOS yields the expected sum while demonstrating the language’s “what‑not‑to‑do” philosophy.
5. Impact and Relevance
Although DOESNT is niche, its design principles echo broader trends in modern software engineering:
5.1. Constraint‑Based Generation
Generative AI models often work by pruning invalid outputs. DOESNT’s explicit “negative” rules provide a human‑readable analogue, useful for teaching concepts behind constraint solvers, SAT/SMT solving, and even prompt engineering for large language models.
5.2. Security and Sandboxing
By defining what a program must avoid, developers can create safer sandbox environments where dangerous operations are pre‑emptively excluded. This aligns with the goals of the Enterprise AI platform by UBOS, which emphasizes policy‑driven execution.
5.3. Creative Coding and Digital Art
Artists have already used DOESNT to generate procedural poetry, as shown in the community‑shared poem example. The language’s “subtractive” nature pairs well with tools like the AI Video Generator or the AI Image Generator, where constraints guide the creative output.
5.4. Educational Value
For programming language theory courses, DOESNT offers a concrete case study of how language semantics can be inverted. It encourages students to think about “negative specifications,” a skill increasingly valuable in API design and formal verification.
6. How to Get Started with DOESNT on UBOS
UBOS provides a seamless path for developers to experiment with esolangs like DOESNT:
- Visit the UBOS homepage and sign up for a free developer account.
- Navigate to the UBOS news section (hypothetical link) where the latest DOESNT updates are posted.
- Use the Workflow automation studio to create a custom pipeline that compiles and runs DOESNT scripts.
- Leverage the AI Chatbot template to build an interactive REPL that explains rule rejections in real time.
- Explore the UBOS portfolio examples for similar sandbox projects.
These steps let you prototype, test, and share DOESNT programs without setting up a local Lua environment.
7. Conclusion & Call to Action
DOESNT may be an esoteric language, but its “negative‑first” approach offers fresh perspectives on constraint programming, security, and creative generation. By integrating DOESNT into the Enterprise AI platform by UBOS, developers can experiment with rule‑based systems in a safe, cloud‑native environment.
If you’re a developer or language‑design enthusiast, we encourage you to:
- Read the full specification on the original forum page.
- Clone the Lua interpreter and try the sample programs.
- Join the UBOS community via the About UBOS page to share your experiments.
- Consider contributing a template to the UBOS templates for quick start library.
Stay tuned to UBOS tech news for future updates on DOESNT and other cutting‑edge esolangs.
Ready to rewrite the rules? Dive into DOESNT today and discover what you can achieve by defining what won’t happen.
Andrii Bidochko
CTO UBOS
Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.