r/VibeCodedLanguages • • May 23 '26

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

3 Upvotes

Hey everyone, I'm u/antonation, the founding mod for r/VibeCodedLanguages.

This is a home for all things related to developing programming languages and compilers using AI.

What to Post
Post anything that you think the community would find interesting, helpful, or inspiring. It could your progress, your workflow (MCPs, testing frameworks, etc.), or questions if you're looking to get started.

Community Vibe
This is a friendly, constructive, and inclusive space. I believe AI is here to stay and welcome AI-driven development (which is of course, why you're here).

How to Get Started

  1. Introduce yourself in the comments below.
  2. Post something today, anything you're working on, challenges you run into, etc.
  3. If you know someone who would love this community, invite them to join.
  4. Interested in helping out? I'll be looking for additional mods at some point, so feel free to reach out to me if you're interested.

Thanks for joining and I hope we can all learn from each other.


r/VibeCodedLanguages • • 3d ago

Quest, the language from Luca Cardelli's Typeful Programming (1989)

Thumbnail
github.com
3 Upvotes

I read Luca Cardelli's paper Typeful Programming when I was an undergrad and I was taken with Quest, the language it used to illustrate its ideas. It's a language in the ML family which Cardelli used to experiment with integrating subtyping and the object-oriented style with more classical functional programming. It introduces a three-level type system of values, types, and kinds (the types of types). No implementation was ever made public, as far as I know, and the discourse around programming languages went in other directions.

Late this summer, I was looking around for a spare-time, greenfield project to play with agentic coding on. Specifically, I wanted to see if I could build something that was readable and I would feel good about as a codebase, but where I wouldn't write a line of code myself. I knew I wanted to build a compiler, but I didn't want to do a new language, which would have involved much more language design than implementation, and, at the same time, I didn't want to do another implementation of a popular language. I landed on Quest. One of the questions for me was whether the models would be able to cleanly write a self-hosted implementation in a language they'd seen almost nothing of. (As far as I can tell, other than this project, the only Quest code you can find on the internet is a couple of hundred lines in papers Cardelli wrote.)

I did a lot of planning of how I wanted the project structured in advance, but learned a lot as I went along, reviewing the generated code, writing small programs in Quest, and discussing with the models how to build various aspects of the system. It was very helpful having models that have effectively read all of programming language, type theory, and compiler literature as debating partners. Over about three months, I had various Gemini and Claude models:

  • build a bootstrap interpreter and transpiler to C in Python
  • convert the interpreter and transpiler to self-hosted Quest
  • design and implement basic libraries to make the language usable for self-hosting
  • write a native arm64 backend in Quest
  • build a non-moving Immix-style garbage collector
  • convert the MLton performance suite into Quest for tuning (the arm64 compiler runs the benchmarks about 50% slower than MLton on average; optimizing and then compiling through C with Clang is only 15% slower)
  • make the arm64 compiler work as a JIT for the REPL and scripting
  • make a WASM version of the compiler and JIT (which you can try in a REPL)
  • write an LSP to use with VS Code (or your favorite tools)
  • integrate the REPL with Jupyter for interactive use

I'm pretty confident that this is the largest Quest codebase that's ever existed; it's about 135K lines of Quest, not counting tests or the C and Python code. It's probably not "idiomatic Quest," if that concept exists, because the models didn't naturally take advantage of language-specific features such as kinds.

Is Quest a language I'd rationally choose to use? Not really. It's got a lot of complexity in the type system to integrate functions and objects, but doesn't pay it off with a useful object system. Subtyping in Quest is quite clean, but modeling dynamically dispatched methods and inheritance in the language involves a lot of awkward machinery around shared closures – it works, but it feels like a simulation of an object-oriented language and not something that's native. (OCaml, which came later, is a better "objects in ML" language. And Cardelli and Martin Abadi's book A Theory of Objects goes in a different direction for its integration of objects and functions.) The module system looks powerful and goes quite far to let you have multiple implementations of interfaces, but, in practice, because you can't use a manifest type without naming the implementing module, it's hard to swap implementations. And the syntax has some quirky bits (no operator precedence, a syntax halfway between Modula-2 and early Haskell, "_" as a separator like ".") which make it rather un-ergonomic. At the same time, I've been writing a few toys with it inside Jupyter and it feels right – interactive iteration works well with the type system catching errors.

Were the models able to do a good job writing Quest? Very much so. When they made mistakes, it was often because they carried over habits from other languages, such as using "_" as a character in identifiers or assuming standard operator precedence rules; this was the same sort of I trap fell into. (I actually made more of these mistakes than the models did, such as forgetting that Quest doesn't use commas to separate function arguments.)

This has been a fun project for me to explore this programming language I've long been curious about, while seeing if I could build a well-designed large system using agentic tools. In the end, I'm happy with the result; I think it's as good as I could have done by hand, but took probably 1% of the effort.


r/VibeCodedLanguages • • 7d ago

Margeux: An indented lisp with a WASM runtime

Thumbnail margeux.com
3 Upvotes

This is something I have been working on for a few months. Margeux, an indented lisp.

So I had this idea that Lisp styled languages were the best for an LLM because they can abstract themselves further and have a REPL. So an LLM could create abstractions of large blocks of code, test itself constantly with the REPL, and give good results.

LLMs used to have problems with the heavy parenthesis of Lisps, so I thought, maybe an LLM would do better if there was an indented lisp. The indented Lisp resembles Python in a few ways, annd since LLMs have been trained on billions of lines of it. I thought it might help? Who knows. Anyway, I have had a lot of fun with this language and creating examples of it. In the studio, these are my favorites, Guit Hero, Ray3D, Snake, Gridmaster 5000, and Guitar Booklet.


r/VibeCodedLanguages • • 9d ago

Pull Request from new account

Thumbnail reddit.com
1 Upvotes

r/VibeCodedLanguages • • 12d ago

GMBasic is now open source – A modern compiled BASIC with native AI/LLM integration

Thumbnail
reddit.com
3 Upvotes

r/VibeCodedLanguages • • 20d ago

Tessera: a tensor-first compiled language. I designed it and wrote the first version by hand, then built most of the rest with Codex and Claude

3 Upvotes

Hi! Someone suggested I share this here. Tessera is an experimental, tensor-first language for numerical computing and data analysis. It compiles to native code through LLVM, and it was built by me together with AI coding agents.

GitHub: https://github.com/dyanos/csec-
(The repo name csec- and the compiler binary csec++ are historical names; the language is Tessera.)

Who did what

  • Me, by hand (late 2024 to early 2026): the language concept and design, the first lexer and parser, the AST, LLVM IR generation, constructors, C++ name mangling, external functions, and the early LaTeX-style math syntax.
  • OpenAI Codex: the native runtime, tensor and simulation features, native library interop, templates, and the first self-hosting bootstrap.
  • Claude (Claude Code): the ownership and move checker, async/await, Erlang-style microthreads, most of the standard library, support for LLVM 18 through 23, Parquet/CSV data frames, and import aliases. About 110 of the ~200 commits are co-authored with Claude.

What I learned about building a language with agents

  • Tests are the real spec. The agents are very productive but will confidently break things. I keep positive and negative fixture suites, ownership suites, and concurrency and stdlib tests, and the same suites run through two compilers: the C++ one and a self-hosted one.
  • Self-hosting is a great lie detector. A second compiler written in Tessera has to compile itself and reproduce the same output (a fixed point). A codegen bug the agent "fixed" often shows up only one stage later, and the fixed-point check catches it.
  • My job changed. I went from writing code to deciding semantics, reviewing diffs, and designing verification. Design decisions such as strict-by-default ownership and tensors as a core type stayed with me. The agents were best at the large, well-specified implementation work.
  • Agents make the same subtle mistakes repeatedly. Examples are an LLVM API that changed behavior silently between versions, and build tools that didn't notice changed header files. Writing these down as project notes for the agent helped a lot.

A taste of the language

// Tensors are a core type, with the shape in the type
def affine(x: Tensor<Double, 1, 3>,
           w: Tensor<Double, 3, 2>,
           b: Tensor<Double, 1, 2>): Tensor<Double, 1, 2> {
    return (x @ w) + b;
}

// Strict-by-default ownership: explicit move `<-` and borrow `&`
val acct: Account = new Account(100);
peek(&acct);        // borrow, acct still usable
close(<- acct);     // move
// using acct now -> compile error: "use of moved value 'acct'"

// Erlang-style microthreads
import std.microthread

def main(): Int {
    val parent = self();
    val worker = spawn([=]() -> {
        val n = receive();
        send(parent, n * 2);
        return 0;
    });
    send(worker, 21);
    return receive();   // 42
}

Other features: arbitrary-precision Nat, built-in Complex/Rational/Quaternion, a symbolic algebra module, async/await, OS threads with channels, pipes, shared memory, and [@DllImport] for calling native libraries. A parallel wc -l written in Tessera runs at about 92% of a hand-written C++ mmap+SIMD version.

Current state

It's experimental. Right now I'm working on performance, starting with std.dataframe. The tensor codegen is still the first, straightforward version: shapes are read at runtime instead of being used at compile time, there's no loop fusion, and some temporaries aren't freed yet. Fixing that is next.

Questions for you

  • How do you verify AI-written compiler code? Do you use self-hosting, differential testing, or something else?
  • Where do you keep design authority, and where do you let the agent decide?

Thanks for reading!


r/VibeCodedLanguages • • Oct 24 '26

madc v0.106.1 released — faster C compilation, leaner executables, SQLite support, and improved C++ exceptions

Thumbnail reddit.com
2 Upvotes

r/VibeCodedLanguages • • Oct 16 '26

madc v0.105.0 — Live C/C++ REPL function redefinition, and faster compilation

Thumbnail
reddit.com
2 Upvotes

r/VibeCodedLanguages • • Oct 13 '26

Klyn 0.2.0

Post image
2 Upvotes

r/VibeCodedLanguages • • Oct 12 '26

madc v0.104.0 released — interactive editing, LSP/MCP support, and madcide gets its own repo

Thumbnail reddit.com
2 Upvotes

r/VibeCodedLanguages • • Oct 12 '26

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

2 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.

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

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. 🙏


r/VibeCodedLanguages • • Oct 11 '26

Working on madc's next release (v0.104.0)

Thumbnail
reddit.com
1 Upvotes

r/VibeCodedLanguages • • Oct 09 '26

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

Post image
2 Upvotes

r/VibeCodedLanguages • • Oct 08 '26

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

1 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/VibeCodedLanguages • • Oct 03 '26

madc v0.101.0 -- REPL and "Chthonia"

Post image
2 Upvotes

r/VibeCodedLanguages • • Sep 30 '26

declint - make your own custom lint rules in YAML

2 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/VibeCodedLanguages • • Sep 29 '26

Building VBX: An iterative, compiled Basic-to-C99 language with memory pooling and multi-editor tooling

2 Upvotes

Hey everyone!

I wanted to share an ongoing language design project I’ve been building: VBX (Visual Basic X).

Instead of a one-shot prototype or another interpreted toy running inside Python, the goal was to build a real, production-capable procedural language that compiles to standalone native binaries with zero runtime dependencies.

Architectural Decisions & Implementation

  1. Compiler Host (Go) -> Target (C99):

    • The compiler itself is written in pure Go without external packages, leveraging the standard library for AST construction, multi-pass type inference, and process orchestration.
    • Emits clean, standard C99 code and invokes the system toolchain (GCC/Clang) with -O2 optimizations.
  2. Solving the Runtime Memory Problem (Ring-Buffer Pool):

    • Naive transpilation of string operations inside tight loops (s = s & "x") typically floods malloc without high-level deallocation.
    • We implemented a fixed static ring-buffer memory pool (vbx_alloc_str with 256 rotating slots of 4KB) directly in the emitted C runtime. Tested under 10,000 continuous iterations with zero heap leaks and flat memory usage.
  3. Language Syntax & Semantics:

    • Visual Basic-inspired syntax: Dim, Const, If/ElseIf/Else, For/Next, While/Wend, Do/Loop, Select Case (supporting both string and numeric comparisons natively via chained branches), Sub, Function, and 1D fixed arrays.
    • Built-in primitives: Native OS dialogs (MsgBox, InputBox), standard File I/O, and string manipulation routines.
  4. Testing & Tooling:

    • 42 integration and unit test suites running via go test ./....
    • Complete multi-editor support repository: official VS Code extension (available on Visual Studio Marketplace), plus packages for Sublime Text, JetBrains, Vim/Neovim, Notepad++, Emacs, and Micro.
    • Currently designing Phase 2: a dedicated desktop IDE with a visual form designer (vbx-studio).

Repository: https://github.com/M5Devs/vbx Editors: https://github.com/M5Devs/vbx-editors

Would love to discuss the language design trade-offs, transpiler architecture, and experiences building full-scale compilers using modern agentic workflows!


r/VibeCodedLanguages • • Sep 29 '26

Nyx isn’t dead — it’s Rove now. Here’s where the language actually stands.

Thumbnail reddit.com
2 Upvotes

r/VibeCodedLanguages • • Sep 27 '26

Current Progress of MadC's Next Release

Thumbnail reddit.com
2 Upvotes

r/VibeCodedLanguages • • Sep 25 '26

Klyn 0.1.8

Post image
1 Upvotes

r/VibeCodedLanguages • • Sep 21 '26

Why Nyx Became Rove — and Why r/RoveLang Is for More Than Just Rove

Thumbnail reddit.com
2 Upvotes

r/VibeCodedLanguages • • Sep 21 '26

MadC C/C++ Compiler v0.100.0 — the Nexus

Thumbnail
reddit.com
3 Upvotes

r/VibeCodedLanguages • • Sep 17 '26

Klyn 0.1.7

Post image
3 Upvotes

r/VibeCodedLanguages • • Sep 12 '26

I benchmarked my capability-declaring language against Deno and Python on 63 AI-written scripts — here's what it missed

2 Upvotes

I've been building a language where a function's signature declares which effects it may perform, and a runtime refuses anything outside a budget you grant. The obvious question is whether that catches anything real, so I built a benchmark.

63 programs — 56 dangerous, 7 harmless controls — each written three times in Velaris, Python and JavaScript, doing the same thing. Eleven categories: effects hidden in helpers, division by user input, off-by-one reads, integer overflow, ignored failures, infinite loops, runaway memory, dangerous modules, scoped-budget escapes.

Results across the 56 dangerous ones — caught before running / during / missed:

Velaris 42 / 12 / 2. Deno 5 / 27 / 24. Python 0 / 28 / 28. Zero false positives on the controls for all three.

The first column is the interesting one. Deno's permission model works, it just works at the moment of the call — nothing in deno check or deno lint reads a file write as a problem.

What mine missed: one computes the wrong answer and promises nothing, so there's no contract to check against. The other prints the string rm -rf / — it doesn't run anything, and flagging it would mean flagging any program that prints text resembling a command.

And four cases where the prover fell short and only the runtime check caught it, named by ID in the write-up: a division on n - 1 with n from a checked parse, the same on an unguarded path when another path guards it, a remainder inside a loop body, and a read at i + 1 in a loop bounded by length(xs).

Full write-up, methodology and the reproduce command: https://dev.to/gowrishankar-dev/i-tested-my-sandbox-against-deno-and-plain-python-on-63-ai-written-scripts-1llp


r/VibeCodedLanguages • • Sep 10 '26

RFC: What is Nyx actually supposed to mean?

2 Upvotes

People here already know Nyx, so I won't do the usual language introduction.

I've been thinking about the project lately, and I've reached a point that I honestly didn't expect:

I'm not sure Nyx actually means anything anymore.

Not technically.

Technically, I know exactly what it is. I know the architecture, the HIR, the backends, the native interop, the direction I've been taking it, and what I could build next.

The problem is that I can't answer the more fundamental question:

Why am I building this?

I've spent a lot of time making Nyx more capable. Every time there was an interesting compiler problem, I solved it. Then another one appeared. Then another.

At some point, I stopped asking whether a feature served the original idea and started asking whether I could implement it.

That's been bothering me.

I don't think the project is technically pointless. There's a lot of interesting engineering in it, and I've learned a ridiculous amount from building it.

But I'm starting to wonder whether I've confused technical depth with purpose.

Nyx has a direction, but I'm not sure it has a reason.

And I don't want to solve that feeling by adding another backend, another language feature, another abstraction layer, or another ambitious subsystem. That would probably just make the same problem larger.

So I'm putting this here as an actual RFC, not as a roadmap proposal.

I want to figure out whether Nyx has a meaningful core idea that I've lost somewhere along the way, whether that idea needs to be redefined, or whether the project was fundamentally an engineering experiment that I've been trying to turn into something more than it needs to be.

For those of you who've followed Nyx for a while:

What do you think Nyx actually is?

Not what it currently implements.

Not what it could implement.

What do you think the project is fundamentally trying to accomplish?