r/AIprogrammingLanguage • • Jul 30 '26

👋 Welcome to r/AIprogrammingLanguage - Introduce Yourself and Read First!

9 Upvotes

Hey everyone! I'm u/kindredseer, a founding moderator of r/AIprogrammingLanguage.

This is our new home for all things related to designing and implementing programming languages with assistance from AI. We're excited to have you join us!

Projects with any level of LLM involvement are welcome here. That may mean occasional help with an algorithm, documentation, testing, or debugging; regular use of AI coding tools; or extensive collaboration with an LLM throughout the design and implementation process. Established projects that only recently began using AI are just as welcome as projects that were AI-assisted from the beginning.

You do not need to minimize, conceal, or apologize for your use of AI. We ask only that people be honest about how their projects were developed, engage sincerely with technical questions, and remain open to constructive discussion.

Whether you are an experienced compiler developer, a programming-language researcher, an independent creator, or someone experimenting with your first interpreter, this should be a safe and welcoming place to share your work.

What to Post
Post anything that you think the community would find interesting, helpful, or inspiring. Feel free to share your thoughts, questions, and links to your project repo or website.

Community Vibe
We're all about being friendly, constructive, and inclusive. Let's build a space where everyone feels comfortable sharing and connecting.

How to Get Started

  1. Introduce yourself in the comments below.

  2. Post something today! Even a simple question can spark a great conversation.

  3. If you know someone who would love this community, invite them to join.

  4. Interested in helping out? We're always looking for new moderators, so feel free to reach out to me to apply.

Thanks for being part of the very first wave. Together, let's make r/AIprogrammingLanguage amazing.


r/AIprogrammingLanguage • • Sep 25 '26

Klyn 0.1.8

Post image
3 Upvotes

r/AIprogrammingLanguage • • 13d ago

Ambient Knowledge -- actively exploiting the knowledge of a specific model...

6 Upvotes

I have done a load of experiments etc on AI 'assisted' programming -- when frontier models start to charge realistic fees, most people won't have access... but you can have loads of free local models downloaded today that can never be taken away.

I have played around with many ideas on using small local models to do professional programming - every new model generation means rethinking again all over.

But... I am currently working on an IDE, designed to empower good devs to be ultra productive using cheap local AI.

I have just been working on the idea of 'ambient knowledge'. When using a small AI, it is very important to know the best model for what you are doing... which small model is best at the language you are developing for? What does it know? You are getting its training for *free* - it is obviously best to lean on its established, learned, knowledge rather than trying to force an ignorant model to do something you want, but it doesn't understand.

To this end, my IDE lets the user connect to any model they like... but to be sensible it needs to know how well the model supports the language you are using. So I got AI to write an ambient knowledge assesment app - given a platform, model and dev language, it runs tests to assess how well the AI supports that language (how much ambient knowlege you can rely on it having).

Anyway - having done the app, I was really surprised at some results... I won't list every thing, but am happy to highlight why devs really need to consider this(!) - FWIW I had AI decide and write the tests - it was about knowledge of typical libraries etc that you'd expect an app to likely use.


r/AIprogrammingLanguage • • Sep 17 '26

U: a hyper-safe programming language for Humans and AI Agents to collaborate

Thumbnail
ulanguage.org
6 Upvotes

Get ready to level up your programming game.

It’s 2026. This language makes you leave all your footguns 🦶🏾🔫 at the door.

It gives LLM all the context they need to stop hallucinating and start writing safe code by default.

It actively prevents supply chain attacks, and more.

It prevents SQL injections and other string interpolation security nightmares

It features exact floating point arithmetic, so 0.1 + 0.2 == 0.3 and no need for crazy workarounds.

It lets you write vectorized GPU-accelerated and CPU-paralllized code without the need for CUDA

It doesn’t even need a garbage collector.

It is its own preprocessor.

Intrigued? Check it out. The compiler is hosted so there is nothing to install. You can try it yourself in the playground. Your binaries are compiled to WASM so they run in your browser. Yes, even with WebGPU acceleration. You can do inference with U.

Oh, one more thing…

U comes with js-based transpilers that you can run in your browser, to transpile your existing PHP, Python, Javascript, Typescript… to U. Then the U compiler finds lots of issues you can fix, and source maps let you see it in your own code.

Been working on this for years but thanks to Claude i was able to make it a realiry. I would love feedback and discussion from anyone who actually looks thoughtfully at the spec and maybe plays around with it in the playground.


r/AIprogrammingLanguage • • Sep 21 '26

Bil

Thumbnail bil-lang.org
6 Upvotes

Bil: an extension to Go for parallel processor systems.

Bil and Go both have concurrency models that are heavily inspired by Hoare’s CSP.

Go is a general-purpose language that borrows CSP’s channel-and-process ideas but relaxes them with buffering, dynamic concurrency, and conventional shared-memory mechanisms

Bil is a special-purpose language for parallel processor systems; influenced by CSP, by Go and by May’s occam. Built on the Go toolchain, it constrains and shapes the Go concurrency model to encourage a higher level of discipline as needed by parallel systems. Bil helps coders to reason about their process models and to selectively place processes on to physical processors.

package main

func main() {
	c := make(chan int)

	par {
		seq {
			c <- 42
			c <- 99
		}
		seq {
			var x, y int
			c -> x
			c -> y
			println(x)
			println(y)
		}
	}
}

r/AIprogrammingLanguage • • Sep 07 '26

The Monad language

6 Upvotes

I wanted to share my hobby project, Monad, which is an early stage dependently typed functional language that compiles to LLVM.

I developed the first Rust interpreter by hand and I gradually started to use more LLMs since it meant I could do more with higher quality and spend more time on design and experimentation. I consider the move to using AI agents for coding is similar to the introduction of compilers rather than writing assembly.

I wanted to have something that could be as performant and safe as Rust, but with the ergonomics, verifiability power and expressiveness of languages like Haskell, Lean, ATS or Idris. That is quite ambitious so I might not succeed.

A simple hello world example:

def main : IO Unit := println "Hello World!"

The latest milestone is that it can now compile itself and is therefore self hosted. The documentation is a bit outdated, but I will update it soon.

https://github.com/monad-lang/monad

https://monad-lang.org

There is still a lot to be done.

If you are interested in discussing more and following development come over to the Zulip https://monad-lang.zulipchat.com


r/AIprogrammingLanguage • • Sep 07 '26

Nyx has reached v5.0.0

5 Upvotes

I’ve released several major Nyx milestones recently:

- v4.0.0 — Nirvana

- v4.5.0 — Ivory

- v5.0.0-rc.1 — Daydream

- v5.0.0 — Daydream, stable

v4.0.0 established the stable Typed HIR, self-hosting path, backend contracts, and C++20/JavaScript/Python targets.

v4.5.0 expanded the platform with standard-library parity, package management, WebAssembly improvements, Rust progress, and experimental C17/LLVM work.

The v5.0.0 release promoted the LLVM pipeline from an isolated prototype into the compiler API and CLI while keeping the existing stable backends unchanged.

LLVM and C17 are still experimental. The project is now focused on improving the compiler, tooling, backend interoperability, and ecosystem rather than constantly redesigning the language.

Repository:

https://github.com/justsomeone-e/nyx

I’m sharing the milestone history because Nyx has changed substantially across these releases, and I’d appreciate technical feedback on where the project should go next.


r/AIprogrammingLanguage • • Aug 03 '26

Hello, thanks for the invitation - Building my programming language :)

6 Upvotes

Hello everybody

Well, I was one of the users who intended to introduce the programming language I’m developing on the r/ProgrammingLanguage subreddit.

I’ll tell you a bit about myself and the language I’m creating—without going into too much detail, since it’s set to launch later this year.

I have a degree in Law (yes, really) and a postgraduate degree in Artificial Intelligence Engineering. "WTF? What does law have to do with computing?"

I’ve been involved with technology and programming throughout my life, but due to life circumstances, I ended up getting a law degree. However, I’ve always loved electronic devices (like VCRs), video games (I owned a Mega Drive/Genesis and a Sega Saturn), and computing in general (I got my first computer in 2001). I know how to program a bit in Python (I consider myself average) as a hobby; even before law school, I took various IT courses—basic computing in 1997 (Windows 95), programming logic (2001), Delphi 5 (2001), CorelDRAW (2002), etc. But as I mentioned, life took a different turn: I entered the public sector, earned my law degree, and now work at a courthouse.

Given that background, how did I end up building a new programming language? At my job—specifically in the department where I used to work—I had a falling out with my former boss and looked for a new position within the courthouse. I introduced myself to the deputy chief of the new department, and he was impressed that I had a background in Artificial Intelligence Engineering (this was in 2023). I was hired and started working there, taking useful courses like Power BI and SQL. It was decided that I would work on creating a set of regex patterns to automate court processes. That was my first real encounter with LLMs in a computing context: ChatGPT 3.5 was a huge help, assisting me with Python scripts to generate the regex patterns I needed for my tasks.

I spent over a year—the entirety of 2024—creating, refining, and fixing regex patterns for sorting through lawsuits. In early 2025, I received some difficult news: my son had leukemia. He is doing well and undergoing treatment, with a high chance of recovery once he completes the two-year treatment plan. I mention this not for cheap dramatic effect, but because my son's condition made me eligible for remote work—a policy at my court for employees with family health issues. My request was approved, which is notable because, while such arrangements were granted en masse during the pandemic, most departments had almost completely eliminated them afterward. While I was at home caring for my son during his treatment, my boss reached out to ask if I could help create a departmental chatbot to train new colleagues. It was intended to use Microsoft Copilot and specific internal files. So, with Gemini's help, I took all the manuals from the various subordinate departments and converted them into a question-and-answer JSON format suitable for training LLMs. I tested the data locally using TinyLLM, but it was ultimately used to "feed" Copilot. It worked excellently, requiring only a few minor adjustments.

During one of my interactions with Gemini, I asked if it could guide me in creating a programming language; it replied, "Sure, what kind of language do you have in mind?" What started as mere curiosity evolved into a project I’ve been working on for over a year now, dedicating at least five hours every single day—weekends included.

I originally had an idea for a low-level programming language focused initially on general systems and games. However, as development progressed, I narrowed the language's scope to a specific niche: a programming language focused on artificial intelligence for embedded devices, IoT, and consumer CPUs.

What defines an AI-focused programming language? It features simple, low-level syntax with low complexity and low cognitive load—qualities that benefit humans as well. In other words, both humans and AIs could program in it seamlessly. It will also include features that enable AI solutions to fully leverage silicon performance, avoiding resource-heavy abstractions that burden AIs and consume excessive energy, time, and water for data center cooling. :)

What was my development process like? I spent practically 10 months working on my "B" compiler in Python, using a stack of Python, Lark, Clang, and LLVM Lite. After countless tests, ideas, and drafts—and constructs I created, overhauled, deleted, and resurrected—February arrived with the "B" compiler generally quite mature. That was the moment to start writing code in the very language I had created. During those 10 months, I relied almost exclusively on Gemini. However, Google began charging for Gemini usage in January 2026; after receiving a $500 bill—and getting pissed off at the cost, since I had insisted on using their API directly via AI Studio—I looked for alternatives. I subscribed to ChatGPT to access Codex and Claude; I liked Claude, and I’m still using it today.

After three and a half months, in June 2026, I managed to make my language self-hosting. Now, I’m refining it and handling the finishing touches. :)

I plan to launch it with two base compilers:

ABC Compiler: Focused on solutions of low-to-medium complexity and designed for building other compilers or programming languages. Anyone wanting to create their own programming language won't need to resort to C or Python (as I did with my use of various libraries); instead, they can use my language's base compiler.

Full Compiler: Focused on AI.

"But what does your language actually do that makes you claim it's focused on AI?" One example is the calculation of intrinsic tensors directly within the compiler, maximizing silicon performance without abstraction layers—and that’s just one feature. Anyway, I’m currently refining the "ABC" version, and once it’s ready, I’ll start building the "Full" version.

So, that’s my story: I’m taking advantage of working remotely to stay home with my son while I build my own programming language. :D


r/AIprogrammingLanguage • • Oct 03 '26

madc v0.101.0 -- REPL and "Chthonia"

Post image
7 Upvotes

MadC now has a REPL, and its editor becomes a teaching IDE modeled after Thonny.

Run madc with no program file and you are in an interactive C/C++ session that behaves the
way Julia and IPython do: what you define in one entry is there in the next, results are named so you can reuse them, and the session can tell you what you have built. On top of it, madcide gains a plugin system, and the first plugin built with that system is Chthonia, a teaching IDE modelled on Thonny.

So I've been working on the REPL, inspired by Julia, IPython and Cling, as well as a version of the IDE inspired by Thonny (the Python-teaching IDE), to make a C/C++ teaching IDE with REPL.

I've called the IDE "Chthonia" (the ch is silent). Chthonia is the Greek Goddess of the Earth and Underworld, like how C is the language of the OS. The "C" can be for C/C++, the "h" for helping, the "thon" for Thonny-like, and the "ia" from Julia.

REPL-mode is inherent to madc now, and provides an interactive REPL shell if run without arguments:

$ madc
madc 0.101.0. Ctrl-D exits.
madc> int sq(int x) { return x * x; }
madc> sq(7)
49
madc> ans + 1
50

r/AIprogrammingLanguage • • Oct 08 '26

If you're not building with your language, it probably doesn't work the way you think it works

4 Upvotes

Hey everyone,

I've been building Sharpy ( https://github.com/antonsynd/sharpy ) for over a year now (wow time flies, and so does technology). I admit, even with AI, I haven't gotten as far along as I had planned (still far from 1.0). The major thing I spend my time on is fixing bugs. Occasionally, I have to convince Fable/Opus to let me do the fun stuff (new syntax, etc.).

Anyway, with the recent uptick in AI-driven game development, recomps, decomps, you name it, I decided I'd try my hand at having Claude vibe code a game for me. After trying it out (2-shot, with three.js https://github.com/antonsynd/zero ), I decided to dogfood my own language in Unity.

Some history, I started Sharpy because I didn't want to code in C# to make a Unity game. Honestly, in the time it took me to build Sharpy, I could've learned C# and had actually made the game in that time (I think).

Anyway, I let Opus build out a slice of Pokemon Heart Gold Soul Silver here: https://github.com/antonsynd/pokemon-sharpy with the help of a Unity plugin tailored for Sharpy https://github.com/antonsynd/sharpy-unity .

I quickly learned that I had even more bugs to add to my backlog. Some are related to how Sharpy resolves symbol names (it mangles Pythonic snake_case to C# PascalCase for interop), some are related to drift in compiler options (single file vs. project), etc. As such, Claude had to find workarounds, and I made it create an ideal version of the source code as the goalpost that we'll eventually reach.

Anywho, while I think it's cool to 1-shot or X-shot a language, the real tests come from the typical actions: self-hosting being one of the big ones, and dogfooding.

Curious to see how other people find bugs in their languages. I also hear that a trendy thing these days is to formalize your implementation or language and use a theorem/proof solver to verify the implementation, like using Verus, LEAP, or TLA+.


r/AIprogrammingLanguage • • 16d ago

HQL 0.7.1 - Building a Strongly Typed Data Language with Rust Extensions

4 Upvotes

Over the past few months I've been developing HQL, an open-source, strongly typed functional query language written in Rust. I've just released version 0.7.1, and always keen for feedback.

The idea is something like SQL, but more of a Swiss Army knife for data. I want to use the same language for querying and transforming files, PostgreSQL, Kafka, Spark, Delta Lake, streams, and knowledge graphs.

HQL already supports quite a bit: typed pipelines, aggregations, data contracts, error handling, modules, custom extensions, and even OLTP-style transactions.

Here's an actual example from the Kafka -> PostgreSQL demos. Incoming events are validated against a data contract, valid records go to one table, and invalid ones are routed to quarantine:

tap("order_events_raw")
| validate(EventData)
| fork {
    clean =
        oks()
        | map(e => Event(id = e.id, kind = e.kind, customer = e.customer, amount = e.amount, at = e.at))
        | sink("order_clean"),
    quarantine =
        errs()
        | map(e => Rejected(
            id = match e.value.id { some(Int n) => n, _ => 0 },
            message = e.value,
            rules = e.violations | map(v => v.rule)))
        | sink("order_quarantine"),
}

One thing worth mentioning for this community: I use Claude Code extensively to develop HQL, particularly for the Rust implementation, tests, and integration work. I spend a lot of time on the actual language design, syntax, type system, and architecture, while AI assisted coding helps me implement and iterate much faster.

Version 0.7.1 focuses on modularity, including selective imports, aliases, receiver functions, and custom Rust extensions that can be installed as packages. So one can define a body-less function in HQL, and implement/deliver it in Rust.

There's also HyperMarkDown, a VS Code extension that turns Markdown into interactive notebooks with executable HQL cells.

Links:

There's quite a lot to play with now. I've written an HQL book, and there are executable Docker Compose demos covering Kafka, PostgreSQL, NATS, Spark, Delta Lake, MinIO, transactions, and cryptography.

Super happy about feedback.


r/AIprogrammingLanguage • • Sep 21 '26

Vx is a systems programming language for heterogeneous computing

8 Upvotes

Most languages treat the accelerator as infrastructure: you write math, and a large opaque runtime decides how to ship it. Vx treats it as semantics. A tensor pinned to NPU high-bandwidth memory has a different type from one in host DRAM, and crossing between them takes an explicit transfer() — even when the hardware boundary is free.

On Apple's unified memory that transfer compiles to almost nothing. It is still written down, because data locality should be provable by reading the source rather than by profiling the binary.

// Two matrices already resident in NPU memory.
fn custom_matmul(
    a: Pinned<Tensor<f32, [4, 4]>, Topology::NPU[0]>,
    b: Pinned<Tensor<f32, [4, 4]>, Topology::NPU[0]>)
    -> Verified<Tensor<f32, [4, 4], Memory::NPU_HBM>> {

    let mut result =
        Tensor<f32, [4, 4], Memory::NPU_HBM>::uninit();

    // Dispatch the computation to the accelerator.
    spawn on(Topology::NPU[0]) {
        for i in 0..4 {
            for j in 0..4 {
                result[i][j] = 0.0;
                for k in 0..4 {
                    result[i][j] += a[i][k] * b[k][j];
                }
            }
        }
    }

    return Verified(result);
}

More at: https://vxlang.org


r/AIprogrammingLanguage • • Aug 20 '26

madc v0.92.1 released — std::format, std::println, php::print_r, php::var_dump

6 Upvotes

I just released madc v0.92.1, the download release for the v0.92 line and the first published binaries for all three platforms since v0.82.0.

Packages are available for:

  • Linux — .deb and .rpm

  • Windows — zip

  • macOS — Apple Silicon and Intel tarballs

A few of the more interesting additions:

  • std::format, std::print, and std::println are built directly into madc — no includes or header parsing required. Literal format strings are checked at compile time, including invalid indexes, malformed strings, and incompatible presentation types.

  • std::format returns a real std::string, and formatting behaviour has been tested against libstdc++ with 1,430 generated oracle cases, including floating-point and hex-float formatting.

  • cout << var now works with zero includes: It also works with <iomanip> features such as setprecision, setw, and setfill.

  • UFCS support in the madc dialect — free functions can be called like methods, and methods can be called like free functions.

  • PHP-style debugging helpers for any madc type: php::print_r(x); php::var_dump(x); These work on structs, classes, containers, nested objects, arrays, and var, with cycle detection and human-readable type names.

  • Range-based for loops now work naturally with PHP-style arrays, including value/var elements and auto.

  • var/value continues to mature — constructors work naturally in expressions and loops, .size() / .count() semantics have been cleaned up, and php::array_push() now behaves as a single overloaded function returning the new element count.

  • Headerless libc calls now get proper function signatures, so things like:floorf(3.9f) pass a real float rather than falling through old C-style variadic promotion behaviour.

  • And, finally, madc --version tells you which build you're actually running.

The direction continues to be: keep C and C++ underneath, but remove a lot of the friction when you're just trying to write a small program or script.

So something like:

var x = 42;
println("x = {}", x);

doesn't need a collection of headers or setup before you can get to the actual program.

With v0.92.1, all of this is available in the downloadable builds for Linux, macOS, and Windows.


r/AIprogrammingLanguage • • Aug 15 '26

Raku++ — an interpreter and compiler of Raku in C++

4 Upvotes

Hi,

Andrey's here. I'd like to introduce my recently created implementation of the Raku programming language. I am an enthusiastic fan of this language since the very beginning, and the time came when you can create a compiler yourself with no external human help.

So, let me introduce Raku++ — this is a self-sufficient interpreter and compiler of Raku. It's written fully in C++ with Claude. Its current state is reached after about 1.5 months of daily work.

The main goal was to make a tool that can run Raku programs really fast. So, here're some of the most bright features of what I managed to deliver:

  • Startup time 2 ms

  • In many cases, it's faster than a reference implementation (see BENCHMARKS)

  • Interpreter by default + REPL

  • You can compile the same Raku program to a self-sufficient binary file that runs natively

  • Covers 90%+ of the official test suite + passes a corpus of my own Raku programs

  • Built-in linter, profiler, and syntax highlighter

  • Available on macOS (both Apple Silicon and Intel), Windows (including MinGW), Linux, OpenBSD; there are also GNU Guix and Nix configurations options

On a separate note, I'd like to mention that the WebAssembly version runs in a browser, and the most exciting things here are:

  • The playground allows you to code Live, so to say: you type and see the result immediately

  • As a showcase shop, I prepared a few Raku programs that parse other programming languages (using Raku grammars), not only Lisp or Forth, but also Python, Perl, and JavaScript/TypeScript.

The on-going work is to make Raku++ to understand more corner-case constructs, which are not explicitly written out neither in the official test suite nor in the official documentation. For that, I am creating a matrix grid of atomic tests. Here, dogfooding takes place in full speed: all the helper generators are run in Raku++.

A brief list of the most important milestones:

  • 1.0.0 — 90% of Roast passing

  • 1.1.0 — 100% of the Unicode support

  • 1.5.1 — even faster: the hottest tests are 10-15% faster

  • 1.5.2 — external modules pass their own tests

  • 1.7.0 — another 10% off for the hottest test cases

  • 2.0.0 — 50 of the most popular Raku modules fully pass

  • 3.0.0 — no GIL, pure concurrency

  • 3.1.0 — Raku++ can be linked to/from external programs

  • 3.14.0 — slimmer binaries

So, basically, that's that much fascinating and it's really difficult to cope with all the ideas that pop up while working on the project with the help of AI.


r/AIprogrammingLanguage • • Sep 05 '26

Rapid! — a new general-purpose language that compiles to native x86-64 code, built to be easy to learn

3 Upvotes

I've been working on Rapid! for the past few months — a modern, general-purpose language aimed at being fast and easy to learn, built on top of a real compiler pipeline.

Code compiles straight down to a native x86-64 Linux ELF binary — no VM, no interpreter, no garbage-collected runtime sitting underneath:

.rapid → Flex (lexer) → Bison (parser) → AST → Semantic Check → QBE IL → qbe → cc → ELF64

Why I built it: most hobby languages either stay stuck in an AST interpreter or get buried in LLVM's complexity. I wanted something in between — one that actually produces native code, but where the compiler itself stays understandable. QBE fills that gap perfectly.

A quick taste of the language:

use "mathlib.rapid";

efn square(x) => x * x

fn main() {
    var name: string = io::in();
    io::out("Hello, {}! square(5) = {}", name, square(5));

    list<int> xs = [1, 2, 3];
    push(xs, 4);
    for (x in xs) {
        io::out(x);
    }
}

What's there so far:

  • Classic control flow (if/else, while, for, switch), block scoping

  • efn for one-line functions with inferred return types

  • First-class function values (no closures, but they carry around like a function pointer)

  • Fixed-size arrays plus a growable list<int>

  • Fixed-width integer types, real float/double (IEEE-754)

  • A module system (use, aliased imports, private visibility)

  • Systems programming primitives (alloc/free/syscall)

  • An FFI layer I actually took seriously: extern fn to call C functions directly, link to pull in libraries, and a keyword shortcut that expands purely at the text level without touching the compiler's source at all — I can even flatten signatures that can't be expressed directly (like T**) through a C shim pattern, for libraries like sqlite3 or libcurl

Repo's here: https://github.com/musabX44/Rapid-Programming-Language

Would love to hear your thoughts/criticism on the design — especially the FFI approach or the general syntax.


r/AIprogrammingLanguage • • Sep 09 '26

Klyn 0.1.6

Post image
3 Upvotes

r/AIprogrammingLanguage • • Aug 04 '26

Tyre - a programming language infrastructure

2 Upvotes

Many years ago I came up with a vague idea of how I want a programming language:

  1. Multiple layers

  2. T - C-level language, only C level features, no generics, no name mangling

  3. Ty - Rust/C++-level language, mostly Rust-like features

  4. Tyr - High level, inspired by natural language (still not exactly sure what I want from this)

  5. Multiple generic syntaxes: The user can create

  6. S-expressions as intermediate representation for macros

Have a look!

This repo contains a full AI generated documentation. And the script to generate the documentation ensures that all the examples compile.

One of the first things after I got into using coding agents was implementing this language. I got the first two layers working within maybe two days. (my first two weeks of using coding agents were so crazy, this language was only a side project, and doing it myself, it would have taken me weeks to months to get at this state, if not longer; feel free to check the git history)

How the languages were created?

At first, I let it implement my basic features, a documentation that contains many important examples, and I looked at all examples to see if I actually like them.

After a while, I created example projects:

I didn't look at the generated code a lot. I think I looked at most of the tests a few times to see if something can be improved. And I also looked at the programs.

I had these agents:

  • 1 cooordinator

  • 1 agent per language (3 in total)

  • 1 agent per project

I had some multi agent task setup for the main repo. If one of the language specific agents needed some feature that affects both languages, it wrote a task for the coordinator.

If the agents for the projetcs needed some feature, they also added it to the list, and then the agents for the specific language decided which features to implement.

Sometimes they decided to implement it in the most generic way, that's what AI is good at after all. And most of the time, that's what I wanted anyway. But in some cases, I wanted my language to be unique.

So I don't know every little detail about the language. Most of the features were just what other AI agents needed. And this also was my first project where I realized that this is actually a good approach.

Nowadays, when I create a library, I only know what the library is about, and then I have a bunch of programs which use that library, that create feedback.

The fact that agents were able to create such complex software using my languages means that it's already at a good state.

I also asked agents how they liked workin with the language. One thing I realized was that error messages.

Also the compiler turned out to be very strict. Every lints is a hard error. "x = x + 1" is forbidden. You have to use "x += 1". I turned on strict lints in Rust, even before I used coding agents. And with coding agents, I quickly added more and stricter lints. So I thought that the language could just have inbuilt lints for everything, so the code is always elegant. I even enforced a maximum line count per file.

State

T is basically finished. Ty still needs some advanced features, especially the borrow checker is still missing. Tyr is just a weird prototype, not really created by AI.

2 syntaxes are supported, a C like syntax, and a Lisp like Syntax. I also considered supporting visual representation and markdown inspired syntax.

I'm not really actively working on this language anymore. Once in a while I just start an AI agent to work on the remaining features.

One of the last features I've been working on was a Macro Compiler to Rust, so that you could import Ty in Rust and get Rust code at compile time. I have no idea if this feature already works.

I also don't know what I will use this language for. Maybe I'll just migrate all of my software to this new langugae one day.

Feedback

Human feedback might be another way to know if something about the languge has to be changed.

It's a type focused language, and this can still be the most annoying part if coding by hand. You have to create a bunch of types yourself before you can do anything meaningful.

Feel free to provide some feedback.

And maybe you just want to use these languges for your projects because they already contain features that are better than other low level languages.


r/AIprogrammingLanguage • • Oct 12 '26

How should an Objective-C-inspired language decide which new constructs use an @ prefix?

3 Upvotes

Background

I'm designing a statically compiled programming language called Jeti. Its syntax is inspired by Objective-C, and its compiler translates Jeti source code into C99 before compiling it with Clang.

One of my design goals is to preserve Objective-C's recognizable syntax while introducing modern language features. I also want Jeti to remain a strict superset of C99, so existing C identifiers should ideally remain valid in Jeti code.

I'm currently unsure how to decide which new language features should use an @ prefix and which should use ordinary keywords.

Current syntax

Jeti retains several Objective-C constructs:

  • @ interface and @implementation for class declarations and implementations.

  • @ property for properties.

  • @ protocol for protocols.

  • @ selector for selectors.

  • @ try, @ catch, @ finally, and @ throw for exception handling.

  • @ autoreleasepool for autorelease pool management.

It also introduces new features with different syntax conventions:

  • async appears in return-type positions, as in - (async int)fetchUser:(int)uid;.

  • await is a prefix operator, as in await [self fetchUser:uid].

  • @ throws(NPString *) declares the exception types a method may throw.

  • @ defer { ... } introduces deferred execution.

  • @ namespace, @ using, and @ endnamespace provide namespace-related functionality.

  • @ noarc { ... } marks a region where ARC is disabled.

  • Pattern matching extends case with forms such as case NPString *s: and case > 100:.

  • Generic types use forms such as Box<NPString *>, with constraints such as T : Proto.

This leaves me with a mixture of ordinary keywords and @-prefixed constructs.

A possible design principle

One possible principle is to distinguish features by their grammatical role.

Features that occupy existing grammatical positions could use ordinary keywords. For example, async modifies a method's return type, while await acts as an expression operator.

Features that introduce new language constructs could use the @ prefix. For example, @ defer introduces a new statement-like construct, and @ namespace introduces a new declaration construct.

However, I'm not sure whether this is a meaningful and consistent distinction or merely an arbitrary convention.

Three possible designs

Design A: Keep the current mixture

Use async and await without @, but retain @ throws.

For example, a method declaration would use - (async int)fetchUser:(int)uid @ throws(NPString *);, and an asynchronous call would use await [self fetchUser:uid].

The advantage is that async fits naturally into the return-type position, and await reads naturally as an expression operator. However, @ throws looks inconsistent with the other two features, even though all three belong to the same general family of asynchronous and error-handling functionality.

Design B: Use ordinary keywords for all three

Use async, await, and throws without @.

For example, the method declaration would be - (async int)fetchUser:(int)uid throws(NPString *);, and the asynchronous call would be await [self fetchUser:uid].

This provides consistent spelling for the three features, but it raises questions about how they fit into Objective-C-inspired syntax and whether they conflict with existing C identifiers.

Design C: Use the @ prefix for all three

Use @ async, @ await, and @throws.

For example, the method declaration would be - (@async int)fetchUser:(int)uid @ throws(NPString *);, and the asynchronous call would be @ await [self fetchUser:uid].

This gives the three features a consistent visual convention and avoids treating their names as ordinary C keywords. However, @ async in a return-type position looks unusual, and @ await as a general expression operator may feel less natural than @await.

C99 compatibility

The C99 compatibility requirement complicates this decision.

If @async, @await, or @throws becomes a reserved keyword, existing C code that uses one of those words as an identifier may no longer be valid Jeti code. Using @async, @await, and @throws avoids that particular conflict because the @ prefix distinguishes these tokens from ordinary C identifiers.

On the other hand, requiring the @ prefix for every new feature may make the syntax less natural, especially when a feature occupies an established grammatical position.

It may also be possible to use context-sensitive parsing or another mechanism to preserve existing C identifiers, but I'm not sure whether that would be a good language-design choice.

Questions

  1. Is there a principled reason to distinguish new features by grammatical role, using ordinary keywords for features that fit existing grammatical positions and @ prefixes for features that introduce new constructs? Or is this distinction too arbitrary to be useful?

  2. Should related features use the same spelling convention? In particular, should async, await, and throws all use the @ prefix for consistency with one another and with Objective-C's existing exception-handling constructs, or is it reasonable to treat them differently based on their grammatical roles?

  3. Are there useful precedents in Objective-C or other languages for deciding when a language extension should introduce a new keyword versus a specially prefixed construct? I'm particularly interested in examples involving new statement or expression syntax, rather than declaration annotations or attributes.

  4. What is the best way to preserve strict C99 compatibility while adding features such as asynchronous functions and exception specifications? Would prefixed forms such as @async, @await, and @throws be preferable to ordinary keywords, or would context-sensitive parsing be a better solution?

I'm interested in both the consistency of the language's syntax and the practical consequences for parsing, compatibility, and readability.

I’d especially appreciate input from experienced Objective-C developers, particularly those who are also familiar with a modern high-level language that supports async/await. 🙏

Jeti’s source code and development are available on GitHub: https://github.com/3shine123/jeti-lang


r/AIprogrammingLanguage • • Sep 06 '26

madc v0.98.0 released — now with an IDE written in madc

3 Upvotes

It took longer than expected, but I just released madc v0.98.0, with updated builds for Linux, Windows, and macOS.

A few of the more interesting additions since v0.95.2:

  • madc now ships with madcide — a terminal IDE written in madc itself, with the distributed binary compiled by madc.

  • The IDE uses the running compiler directly: it can parse, build and run the code in the editor, including unsaved changes, without shelling out to another compiler.

  • JOE/WordStar-style keybindings are the default, with a full vi-style mode also included.

  • Cooperative multitasking is now built into the language with go, await, channels and structured scope blocks.

  • var has much better literal support, including keyed values and nested structures:

   var user = { "name": "Alice", "score": 42 }; 
  • The C++ front end received another substantial compatibility pass, particularly from running the complete test suite against libc++ on macOS.

  • Apple Silicon support has matured considerably, including SIMD/NEON and additional ABI work.

  • The entire madc test suite now passes on both Apple Silicon and Intel macOS, alongside the existing Linux and Windows validation.

  • Release packages are now built automatically by CI, including .deb, .rpm, Linux tarball, Windows zip, and both macOS architectures.

The direction remains C and C++ without the ceremony — but with v0.98, madc is also starting to demonstrate that it can be used to build its own development tools.

https://github.com/derekbsnider/madc/releases/tag/v0.98.0


r/AIprogrammingLanguage • • Oct 13 '26

Klyn 0.2.0

Post image
3 Upvotes

r/AIprogrammingLanguage • • Sep 30 '26

declint - make your own custom lint rules in YAML

4 Upvotes

declint (docs) is a tool for making your own lint rules in YAML — the house rules that stock linters will never ship.

For instance: your AI model added except Exception: pass, and you want to know whenever that happens:

rules:
  - id: except-pass
    pattern: 'except Exception:\\s\*pass'
    severity: warning
    message: 'swallowed exception'

Rules are just regex and a message. When a regex can't express the check, there's a Lua escape hatch — vetoes, whole-file analysis, absence rules ("every Dockerfile needs a HEALTHCHECK").

Rules run in your CI (inline PR annotations via --format github) and in your editor through LSP (declint.nvim for Neovim). Every rule can carry embedded fixtures, and declint test runs them — so AI-written rules come with their own spec.

Install: cargo install declint. Ships with presets (Python, INI, Markdown, shell, Dockerfile, TOML, JSON, JS) and community rulesets you can pull with one line. Feedback welcome, especially brutal takes on the YAML format.


r/AIprogrammingLanguage • • Oct 09 '26

madc v0.103.0 released — faster compilation, improved C++ compatibility, and a major TUI facelift

Post image
4 Upvotes

I've released madc v0.103.0, with improvements to both the compiler and its accompanying IDE, madcide.

What's new in madc

  • Faster compilation — improvements to string interning and header processing should make compilation roughly 20% faster, depending on the workload.

  • Improved C++ compatibility — continued progress on standards conformance, with C++11 compliance now reaching 77.3% in the GCC test suite.

  • Reliability improvements — fixes to var string handling, memory safety, and additional sanitizer testing.

  • REPL enhancements (since v0.101.0) — %run, %call, $build, %open, .load, .type, .help, .quit, and much more

What's new in madcide

  • Major terminal UI facelift — the TUI now resembles the desktop GUI, with menus, toolbar, editor tabs, line numbers, framed panes, floating dialogs, and VS Code Dark+ styling.

  • Full mouse support — navigate menus, select text, place the cursor, and interact with the editor using the mouse.

  • Improved integrated terminal — supports ANSI formatting, 256 colours, and true 24-bit colour.

  • Multiple files on startup — madcide a.c b.c c.c opens all three files in separate tabs.

  • Integrated documentation — help pages open directly in the editor, with a browsable Help Index in the sidebar.

  • GIT support — some basic read-only (for now) git functionality now exposed through the IDE menus and also the REPL mode inside the IDE through %git

Project updates

Since my previous announcement, Chthonia has moved into its own repository, with v0.0.3 released separately:

https://github.com/derekbsnider/chthonia

This will also be the last madc release with madcide included in the madc source repository. Starting with the next release, madcide will move into its own repository as well.

The plan is to keep the three projects independently maintained, but bundled together for convenience:

  • madc — the compiler and language.

  • madcide — the IDE, distributed with madc included.

  • chthonia — the C/C++ learning environment, distributed with both madcide and madc included.

Release: https://github.com/derekbsnider/madc/releases/tag/v0.103.0


r/AIprogrammingLanguage • • Sep 27 '26

Current Progress of MadC's Next Release

5 Upvotes

I wanted to give an update of what I'm working on to get some feedback and discussion...

I'm not sure how many people here are C and/or C++ programmers, but the current direction I'm taking with madc is to make it a little more like IPython and/or Julia with respect to its REPL experience (that is part of the current arc I am working on, REPL support does not currently exist).

I am neither a Python nor a Julia programmer, but their REPL experience are supposed to be top notch, and while both cling and clang-repl exist, they don't quite measure up, and in fact, installing cling takes up over a Gb of disk space, and the eventual plan is that clang-repl will one day replace cling, and the direction is also such that clang-repl is more like IPython...

Thus, my current plan is to make madc have a REPL mode that is more like IPython and Julia, so more like what clang-repl + cling will eventually become (in the future).

So that's the first arc... and I'm curious what people here think about this idea... like, if you are already a C/C++ programmer, does the REPL experience interest you? Or if you are a Python programmer, would the idea of a small, easy to install and play with C/C++ REPL interest you?

Next... I recently discovered Thonny -- an IDE designed to be very simple and easy for students to learn to use Python... and with the work I've done with madcide as a simple IDE for madc, rather than try to compete with VSCode and/or CLion, what might be much more interesting would be to make madc's IDE much more like Thonny, but for C/C++ (and madc), so that it makes C/C++ easy to use (including interfacing with madc's IPython-like REPL).

Does this concept sound interesting to anyone here?


r/AIprogrammingLanguage • • 15d ago

What is an AI-oriented programming language?

Thumbnail reddit.com
4 Upvotes

r/AIprogrammingLanguage • • 9d ago

Pull Request from new account

6 Upvotes

Hi all,

I recently received several pull requests for my project, and I was genuinely excited to see someone starting to contribute to the new programming language.

Being a bit paranoid, I asked Claude to scan the contributions for potential security issues. Two of the pull requests actually contained security vulnerabilities. I also noticed that the contributor's GitHub account had only been created a few days ago.

I'm grateful for every contribution, and maybe this was just an honest mistake. But it made me realize something: I find it difficult to trust code generated by someone else, even if it was written with AI. With my own code, it's a bit different. I know the context, the prompts, the iterations, and the decisions behind it. With someone else's code, I have no idea how it was produced or what might have been overlooked.

This got me thinking about how to handle external contributions securely. Even letting my own AI review a pull request isn't necessarily safe. What if the code contains hidden instructions designed to manipulate the AI reviewing it?

I used a multi-stage review process. The first AI inspected the code for hidden instructions and potential prompt injection, without having access to my repository. A separate AI then performed a security review in read-only mode before I re-enabled write access. But even that isn't enough. AI can miss things, especially when attacks are subtle.

I also want to strengthen the automated security mechanisms themselves: more tests, fuzzing, and potentially using tools like Kani to formally verify certain properties and invariants where possible.

But this experience also made me think about something else.

How can I expect people to trust my programming language when, from their perspective, I'm just another stranger generating code with AI?

I think I can now understand some of the skepticism I've encountered from others a little better. I hope the security measures I'm planning to introduce will help build that trust.

That said, I actually think PRs remain a great medium for communication, even when AIs are effectively talking to each other on both sides. A concrete PR allows contributors to express detailed ideas, edge cases, and design choices far more directly than a vague feature request ever could. In that sense, those tokens aren't wasted at all.

I definitely want to keep welcoming PRs. I'm just trying to figure out how to balance being open to the community with protecting the project.

How do you see this?