r/AIprogrammingLanguage • • Oct 01 '26

"Regex For Humans" : because regex shouldnโ€™t look like alien language ๐Ÿ‘ฝ

5 Upvotes

Regex is powerfulโ€ฆ but sometimes this:

/^#[0-9A-Fa-f]{6}$/u

feels like youโ€™re trying to decode a message from another planet. ๐Ÿ›ธ

This is why I did Regex For Humans ๐Ÿง โœจ

Instead of writing regex directly, you write:

start "#"
6 hex digits
end

And it generates:

/^#[0-9A-Fa-f]{6}$/u

๐Ÿช„ The idea

Write small, readable English rules.

โžก๏ธ Understand what they mean
โžก๏ธ See the generated regex
โžก๏ธ Test examples instantly
โžก๏ธ Copy the final regex

No AI guessing. ๐Ÿค–โŒ
No mysterious interpretation.

It uses a small, deterministic language where every instruction has an exact meaning.

๐Ÿ”ฅ It currently includes

๐Ÿงฉ Interactive regex playground
๐Ÿง  Explanations for every generated fragment
โœ… Live match / no-match testing
๐Ÿ’ป CLI support
๐Ÿ“ฆ JavaScript API
๐Ÿ“ Helpful line + column errors
๐Ÿ”’ Runs locally
๐Ÿšซ No runtime dependencies

For example:

start "INV-"
between 2 and 6 digits
end

becomes:

/^INV-\d{2,6}$/u

Much easier to read six months later. ๐Ÿ˜…

๐ŸŽฎ Try it

๐Ÿ”— GitHub
https://github.com/OthmaneBlial/Regex-For-Humans

๐Ÿ› Live playground
https://othmaneblial.github.io/Regex-For-Humans/workshop/

The project is still evolving, so Iโ€™d genuinely love feedback. ๐Ÿ™Œ

What would you add?

More syntax?
More recipes?
Support for other regex engines?
Something completely different?

And the big question:

๐Ÿ‘‰ Would you actually use this instead of writing regex directly? ๐Ÿ˜„


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 • • Sep 21 '26

Why Nyx Became Rove โ€” and Why r/RoveLang Is for More Than Just Rove

5 Upvotes

Rove originally started under the name Nyx.

I liked the name, and a lot of the early compiler work, architecture notes, experiments, and plans were created under it.

The problem was that Nyx was already everywhere.

There were already other programming language projects using the name, tools using the same CLI naming, VS Code extensions, security projects, and plenty of unrelated software using โ€œNyxโ€ as a brand.

At some point it stopped feeling like my project had its own identity.

So I decided to rename it.

Why โ€œRoveโ€?

I wanted something short, simple, and easy to remember.

Not a huge fantasy name. Not something that sounds like a company trying too hard. Not a name that needs a paragraph to explain.

Rove felt right because the project itself has always been exploratory.

I move between compiler architecture, language design, runtimes, LLVM, different backends, tooling, systems programming, and whatever problem becomes interesting next.

The project has never really followed a straight line.

It explores.

It roves.

The source extension will still stay .nyx for now. I don't see a reason to break existing files just because the project name changed.


About this subreddit

Despite the name, r/RoveLang is not meant to be only about Rove.

Rove will obviously be one of the main things I post here:

  • compiler development

  • language design

  • experiments

  • benchmarks

  • architecture ideas

  • bugs

  • weird failures

  • releases

  • things that worked

  • things that definitely didn't work

But I also want this to be a place where other people can share their own experiments.

If you're building:

  • a programming language

  • a compiler

  • an interpreter or VM

  • a strange runtime

  • a small operating system experiment

  • embedded software

  • developer tooling

  • a weird hardware/software project

  • a parser

  • a transpiler

  • something low-level

  • or just some technical experiment you think is interesting

you can post it here.

It doesn't need to be polished.

It doesn't need to be a serious product.

It doesn't even need to succeed.

Sometimes the failed experiments are the interesting ones.


The only real rule

Please don't flood the subreddit.

Sharing your work is welcome.

Posting every tiny update as a separate thread, repeatedly promoting the same project, dumping unrelated links, or treating the subreddit like an advertising feed isn't.

Other than that:

show what you're building, explain what you're trying, ask questions, criticize ideas, share failures, and experiment.

Rove may have started this place, but it doesn't have to be the only thing built here.


r/AIprogrammingLanguage • • Sep 17 '26

Klyn 0.1.7

Post image
5 Upvotes

r/AIprogrammingLanguage • • Sep 09 '26

madc v0.99.2 released โ€” madcide w/ GUI mode on Linux, Windows and macOS

Thumbnail
gallery
5 Upvotes

I just released madc v0.99.2, with updated builds for Linux, Windows and macOS.

The biggest change since v0.98.0 is that madcide now has a full desktop interface:

  • Run madcide file.mad --gui to open the IDE in a window.

  • Editor tabs, menus, file dialogs, sidebar, status bar, and Problems / Output / Terminal panels are now available.

  • Programs can be built and run directly inside the IDE, with console applications running in an embedded terminal and GUI applications opening their own window.

  • The GUI and terminal versions use the same editor, commands, themes and keybinding profiles โ€” including the existing JOE/WordStar and vi-style setups.

  • The IDE itself is still written in madc and compiled by madc.

The language also gained a new import statement that can bring in both a header/interface and its native library without platform-specific library names:

import m;
import c as libc;

Also, the internal UI framework (madc::ui) is used for all user interfaces:

  • TTY/line-by-line UI --ย examples/adventureย (Colossal Cave Adventure madc port)

  • TUI/smart terminal --ย tools/madcideย (vt102/xterm TUI version of madcide)

  • Web/DOM --ย tools/madcide --guiย (web GUI version of madcide)

The same source works across Linux, Windows and macOS, in both JIT and native builds.

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


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 • • Sep 02 '26

I built a self-hosting systems programming language called Nyx via vibe coding

5 Upvotes

r/AIprogrammingLanguage • • Aug 17 '26

Velaris: a language where the compiler proves your functions keep their promises

5 Upvotes

The idea: I wanted a language where you can trust a function just by reading its first line. So the signature says what effects it uses (a function without "uses net" can't touch the network), whether it can fail (ignoring that doesn't compile), and any promises it makes about its result.

Those promises get checked by the Z3 theorem prover before the program runs. If your code breaks one, it tells you the exact input that breaks it: error[E700] promise cannot be kept: 'discount' ensures result >= 0 proven without running the program: price = 5 gives result = -5

The part I'm most pleased with is the float handling. It proves in real IEEE-754 rather than pretending floats are perfect decimals, so it refuses to certify x + 0.1 + 0.1 == x + 0.2 and hands you the exact number where it breaks. A lot of tools would just "prove" that and be wrong.

Playground, runs in your browser, nothing to install:

https://gowrishankar-infra.github.io/velaris-lang/playground.html

Repo: https://github.com/gowrishankar-infra/velaris-lang

Built with a lot of AI help over 40+ releases. It's got a REPL, editor support, a standard library written in itself, CI, and one-file downloads for Windows/Mac/Linux. Happy to answer anything. Thank you


r/AIprogrammingLanguage • • Aug 12 '26

I spent 5 days building a self-hosted, memory-safe native language with coding agents - looking for feedback

5 Upvotes

Started as an experiment: could coding agents help build an actual programming language from scratch, and could the language itself be designed to be easier for AI models to write code in.

Five days later, Krnl is about 53k lines of .krnl, fully self-hosted, and the original Zig bootstrap compiler is now retired.

The language compiles to native code through LLVM, has no GC, and uses explicit ownership/borrowing with deterministic cleanup. It also has effects/capabilities so a functionโ€™s authority is visible in its type.

Hello world:

fn main sys: Sys -> Result[int]
!{out.write} {
  println(ref sys.out, "Hello, Krnl!");
  Ok(0)
}

Here Sys provides capabilities, and !{out.write} declares that the function may write to output. Borrowing and ownership transfer are explicit with ref, ref mut, and move; there are no source-level lifetime annotations.

Also added a native MCP server written entirely in Krnl. - see below

no public repo yet just curious what language/compiler people think of the direction before I polish it for release.

The main design goal is roughly: native + memory safe + no GC, but with less source-level complexity than Rust, and with compiler semantics designed to be directly consumable by coding agents.

Things Iโ€™d especially love feedback on:

Does the ownership/effects model sound coherent?

Is the capability syntax readable?

What would you want to see before taking a new systems language seriously?

Are there existing languages/projects I should be comparing against?

KRNL MCP MONITOR
----------------------------------------------------------------
log: /home/alex/.krnl/mcp.jsonl

Requests: 17            Errors: 0
Total bytes: 43.9 KB    Avg latency: 1ms   P95: 3ms

Recent calls (UTC)
----------------------------------------------------------------
23:08:26   resolve_symbol        main                  636 B      2ms
23:08:34   symbol_info           main                  869 B      2ms
23:08:36   references_of         main                  393 B      2ms
23:08:37   callers_of            main                  842 B      3ms
23:08:38   callees_of            main                  866 B      1ms
23:08:39   context_for_change    main                 1.5 KB      2ms
23:12:08   read_source           compiler/src/080    19.3 KB      2ms
23:15:30   apply_source_edits    compiler/src/080      852 B      1ms
23:15:33   read_source           compiler/src/060     1.9 KB      1ms
23:15:48   apply_source_edits    compiler/src/060      860 B      2ms

Top tools
----------------------------------------------------------------
krnl_check            3 calls     2.0 KB
read_source           3 calls     22.0 KB
module_graph          2 calls     1.4 KB
apply_source_edits    2 calls     1.6 KB
program_symbols       1 calls     11.5 KB

r/AIprogrammingLanguage • • Aug 12 '26

Jaithon 3 (the perfect programing language)

5 Upvotes

Hi! I've recently been working on an old project of mine called Jaithon. Also, this is one of my first ever posts on reddit (its my first post in a tech oriented subreddit for sure) so bear with me if the style of the post comes off a little weird.

https://github.com/abhiramasonny/jaithon

This post is pretty long so tldr, I created a programming language and i think its pretty cool, and you can check it out there and you should star the repo :) ^

I started Jaithon nearly 4 years ago when I was in 8th grade, and back then all programing was human generated ๐Ÿ˜”. lmao JK, but seriously speaking, when I was first creating Jaithon (or Jaithon 1), I was primarily doing it as a project to teach myself how to code in C. As it was my first time coding in C, the project was horribly structured with all the code being located in one file and filled with a bunch of bugs. The syntax of Jaithon 1 was also really really bad, however I left it at the end of the summer to go work on other projects and highschool. Last winter however, I decided to pick back up on development as I was a little bit more experienced in programming with C, and also agentic coding was a thing.

Heres a disclaimer / transparency thing now, if you are someone who HATES any project that has even a line of code that is generated by an LLM, you are not the target audience for this post. To be fully transparent, currently, over 80% of the code is LLM generated. A more detailed explanation of how I used AI in this project is located in the readme, and if your view on AI generated code is a bit more lenient (such as mine) I would recommend reading the readme as I think that I handled it in a way that is not only ethical, but actually produced the best results and taught me the most. I dont consider myself a "vibe coder" nor do I consider Jaithon as "AI slop" and for further clarification there are 2 paragraphs of the README dedicated to explaining this.

Okay anyways, now that thats cleared up, back to the story. Last winter, I decided toย upgradeย jaithon with all my knowledge and the tools available to me at the time. This led me to creating Jaithon 2, which was certainly much better than the original completley interpreted language that was all in one file and impossible to propperly maintain, however there were still major architectural problems within Jaithon 2 that with all my knowledge at the time, I was not able to solve and which led me to just giving up on it again. Even so, Jaithon 2 was, in my opinion, one of the best projects I have ever made.

Now, heres the real reason I am making this post. I recently over the last week came back to Jaithon after watching a bunch of youtube videos about compilers and bytecode and JIT and all that, which at the time of developing Jaithon's 1 and 2 I had no clue existed, led me to having increased motivation to develop features to Jaithon yet again. Now here is whats new with Jaithon 3, and the reason it exists.

Jaithon 3 is very much bootstraped. The entirety of the frontend is written in Jaithon itself, along with the implementation of a large standard library, a JIT for arm64 that makes jaithon 3 incredibly fast, along with a whole slew of better architectural decisions that saved me in the long run on this project many hours of time. Jaithon 3 holds, in my opinion, the perfect syntax taken from all the languages that I use (Python, Java, Lua, C++, Ruby, Bash, Rust) and has a clean architecture behind it which places it in my benchmarks between Java and C++ in terms of speed.

Benchmark of Jaithon compaired to other languages

I loved developing this project, and here is some examples of its syntax. It would mean a lot to me if you were to star the github repo, I am trying to hit 15 stars soon and it motivates me to continue development on the project :) All and any criticism is appreciated, wether that be on the use of AI, the languages architecture, syntax, etc.

Thanks guys and heres some example code!

# traits are interfaces with default methods, and they are types.
trait Printable {
    fn to_str(self) -> str
    fn describe(self) -> str { return f"<{self.to_str()}>" }
}

let name = "Jaithon"
var count = 0
const MAX = 1 << 16

let lookup: dict[str, int] = {}
let maybe: int? = null           # T? is T | null

# loops and ranges
for i in 0..10 { count += i }
'outer: for row in grid {
    for cell in row {
        if cell == target { break 'outer }
    }
}

# pattern matching
let kind = match code {
    200           => "ok",
    301 | 302     => "redirect",
    400..=499     => "client error",
    n if n >= 500 => "server error",
    _             => "unknown",
}

enum Shape {
    Circle(radius: float),
    Rect(w: float, h: float),
}

fn area(s: Shape) -> float {
    return match s {
        Shape.Circle(r)  => math.PI * r ** 2,
        Shape.Rect(w, h) => w * h,
    }
}

r/AIprogrammingLanguage • • Aug 11 '26

MadC v0.75 Release

5 Upvotes

Version 0.75 ofย MadC was released yesterday, I'm still working on proper MacOS support, but its getting closer... should be ready this week. For now, I've got some more bugs fixed, more C++ speed improvements, and some madc specific language features and improvements:

  • var dynamic variables โ€” madc now has a built-in var type that can hold strings, numbers, booleans, arrays, and other values without needing to declare a fixed type up front

  • Simple file and network channels โ€” madc::channel provides one straightforward interface for reading and writing files, TCP connections, and other data sources

  • Run programs through exec:// โ€” scripts can launch another program, send data to it, and read its output almost like working with a file

Example:

channel sorter("exec://sort");
defer { sorter.close(); }

if ( !sorter.ok() )
{
    printf("open failed: %s\n", sorter.last_error());
    return 1;
}

sorter.write("pear\napple\nmango\n");
sorter.close_write();

var line;
while ( sorter.readline(line) )
    printf("sorted: %s\n", line);
sorter.close();

r/AIprogrammingLanguage • • Aug 02 '26

Introducing Mad-C (My Advanced Dialect of C++)

5 Upvotes

So just over seven years ago I got the idea that I wanted to try my hand as writing my own actual programming language, and by this I mean more than just a scripting language, as I had made a few of these over the years... the first one being a simple scripting language for a dial-up BBS terminal program I co-authored with a friend to script playing MajorBBS games, primarily one called Galactic Empire written by Mike Murdoc which my friend was majorly into, and hence called the terminal program GEnius. It was written in Turbo Pascal, and somewhat modeled after the DOS terminal program Telix. I specifically worked on a scrollback buffer that would display everything in full ANSI and also the (very rudimentary) script language.

Fast forward nearly 30 years and I'm experimenting with writing my own byte code interpreter and direct dispatch switch tables getting decent performance, and then I stumbled across a library called AsmJIT which made it relatively easy to generate x86 code and execute it, and I was off to the races working on my own c-like language which I originally called C3PO.

After working on it for a few weeks, I changed the name to Mad-C before creating a github repo (pretty much exactly 7 years ago today), and pushed forward getting all the basics working, if/else, expression parsing, switch, for loops, etc, before trying to figure out what was going to make it stick out beyond it being a JIT language, and I decided I wanted to bring in a bit of C++, and that it was also going to bring in features from other languages.

I tinkered around with it on and off for several months, but actually getting C++ features working properly (without crashing) turned out to be much more difficult than getting C working, and eventually I just didn't have the time to continue to chip away at it as I got busy with other aspects of work and life... it was something I would tinker with here and there as I could.

After a certain point, the AsmJIT author had changed the interface and deprecated some ways of doing things, and I ended up shelving the project completely. It was fun while it lasted, but I just didn't have the time to pursue it further.

Fast forward to this year, and my work started pushing AI really hard, such that all the lead developers (including myself) got pulled off of our primary projects for three months to completely focus on implementing an "AI Playbook" using Claude Code.

I was so impressed at how much better this was working for me than my previous experience with Cursor, that I ended up purchasing my own personal subscription to try it out on my personal projects, including Mad-C, and it was able to get it building again.

I switched back and forth between using Claude Code as well as Codex (which I had barely tried before this) and got Mad-C to the point where I was able to get it to JIT run the SMAUG MUD code base (which is over 185 Kb of C89-style C source).

This wasn't instant... it took weeks of grinding away switching between Codex and Claude Code, waiting for 5 hour usage resets, but it was actually working and I was steering it and guiding them all along the way. Part of getting this working involved grinding it against the C23 GCC torture test suite.

I also wanted it to be able to cache the code generation in object files, as well as generate executables. This involved a lot more complexity and all test cases needed to pass in both JIT mode and EXE mode, and required implementing my own IR (intermediate representation).

Next I started adding in those language features from other languages. I used C++ style namespaces to bring in about 100 different functions from languages like PHP, Perl, Python, Rust, Ruby, JS, etc, as well as things like defer, multiple return values, rust matching, etc, and then turned the focus onto C++ support.

This is where things started getting really tricky because I didn't just want to simulate C++ with hardcoded string, fstream, and stringstream classes, I wanted it to parse the real C++ headers, which meant templates, and multiple inheritance, among hundreds of other language features.

Also, around the same time, just to make things more exciting, I wanted to be able to support other architectures than only x86 Linux, and this is when I discovered the MIR project, which was also seven years old. It provided a CPU agnostic "medium intermediate representation" (MIR), and seemed like just what I was looking for... but it presented a fork in the road, because not only did it provide this CPU agnostic opcode format, the project also included a C11-to-MIR library.

So the question now was, did I switch all my code from generating x86 code of my own design and structure to generating MIR opcodes, or do I change Mad-C into a sort of C-transpiler?

The author of MIR (Vladimir Makarov) has been one of the GCC developers for over 20 years... so I figured his C-implementation was likely superior, and it was also tested on MIR itself (which is written in C), and I chose this direction instead, even though I already had a working C implementation.

I did keep my lexer/parser though. What I ended up doing, was taking the internal node structure (the node_t struct) and using it for the base of MadC's AST tree node, which I named CIR_node, and it contains all the semantics for C++ and MadC.

I modified libc2mir so that I could pass in the CIR_node AST tree directly, which c2mir thinks is its own node_t AST tree, and converts it to MIR, and JIT executes it.

So MadC parses C, C++ (and madc), but lowers C++ into a C-AST tree, similar to how CFront used to work (the original C++ implementation). This means that madc can also emit standard C code so that you can feed it to GCC or CLANG if you want to.

The other part of MadC that was important to me, was making it self-contained, so the build also packs in all the system headers, precompiled into an AST "forest", and appends this to the binary compressed. This currently weighs in at around 12 Mbs or so total. So with a 12 Mb binary you can have a C/C++ JIT language (plus compiler) that doesn't need any external system include files.

Not only that, but it also support auto-including, so you don't need to remember what function or object is in what header file. It also supports auto-namespace resolution as well as an auto-main "script mode" where you do not even have to define a main() function.

I didn't stop there, of course, and MadC depends on my own fork of MIR, where I've been working to add C23 support (MIR's c2mir only implements the C11 standard), and I've also added support to my fork of MIR to generate objects, ELF binaries, link objects, handle multi-file projects, and I'm currently working on this for different platforms, like Mach-O for MacOS, as well as ARM CPUs.

This ended up being much more complicated than expected because while Linux uses libstdc++ (which is the GCC implementation of C++), MacOS uses libc++ (the CLANG implementation of C++) and they are quite different. So this is still in progress, but getting close to completion.

So now that you have all the history, please take a look at the project, and let me know what you think! -- https://github.com/derekbsnider/madc


r/AIprogrammingLanguage • • 10d ago

Protos 0.4.192: Native FFM, persistent SQLite, and a leaner Truffle runtime

4 Upvotes

I've released Protos v0.4.192, an experimental, class-free, prototype-based programming language built on Truffle/GraalVM. Protos uses objects, delegation, messages, closures, Futures, and Actors rather than a class hierarchy.

Since the previous public release (v0.4.158), the main changes are:

Native FFM: The standalone Linux executable now includes the generic foreign-function provider. A host can explicitly authorize an OS-supplied C library (for example, --allow-library sqlite3=libsqlite3.so.0), which is loaded lazily. No JDK or separate provider JAR is needed for this Native build.

Persistent SQLite: std:sqlite now supports file-backed databases, read-only/read-write modes, explicit transactions, rollback, busy timeouts, and recovery/WAL examples.

External processes: An opt-in --allow-execution capability adds direct child-process launching, bounded byte streams, and explicit lifecycle management, without implicitly invoking a shell.

Bytecode DSL work: Further specialization of calls, closures, lexical bindings, Arrays, control flow, and Range iteration, while retaining ordinary message dispatch when specialization is not valid.

Language and tooling: New String.each, Vector.each, and Matrix.each traversal, more useful F12 definition navigation, an explicit Resolver permission, and a reorganized programming guide.

An important distinction: native libraries run as trusted in-process code, not sandboxed guest code. The Native FFM path currently admits a finite set of C signatures; Linux x86-64/glibc is the published Native target. Native child-process execution is not yet verified as a supported capability.

Protos remains an experimental prerelease, with Core specification revision 0.1.507.

Release and downloads:
https://github.com/guillermomolina/protos/releases/tag/v0.4.192

Source:
https://github.com/guillermomolina/protos


r/AIprogrammingLanguage • • 15d ago

What is an AI-oriented programming language?

Thumbnail reddit.com
4 Upvotes

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 • • 19d ago

Leksika

Thumbnail
github.com
4 Upvotes

Only russian coding language, no special symbols (only !?() ), Ai playground, and case based coding.


r/AIprogrammingLanguage • • Nov 01 '26

Update on the Oak framework for web apps and more

Thumbnail
reddit.com
4 Upvotes

r/AIprogrammingLanguage • • Oct 24 '26

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

4 Upvotes

I've released madc v0.106.1, with improvements to compilation speed, native executable dependencies, C and C++ compatibility, and modularity.

For those unfamiliar with it, madc is a self-contained C/C++ compiler with JIT execution, native executable output, and an interactive REPL, without requiring GCC, Clang, or an installed development toolchain.

What's new

  • C compilation is approximately 1.8ร— faster than v0.105.0 across 40 measured compilation workloads. C++ compilation has also improved modestly.

  • Leaner native executables โ€” madc now links only the libraries a program actually needs, eliminating unnecessary dependencies on libmadc, libstdc++, and other runtime libraries for plain C programs. A C hello-world executable is just 10 KB on Linux and depends only on libc.

  • SQLite now builds and runs its tests โ€” SQLite 3.54.0's test fixture passes 394,058 of 394,060 tests, matching the results from GCC and Clang.

  • Improved C++ exception handling โ€” exceptions now use native platform unwinding, correctly destroying objects as the stack unwinds.

  • Better C++ compatibility โ€” improvements to templates, type traits, virtual function dispatch, object lifetimes, and constructors.

  • Modular architecture โ€” Git, Markdown, and web UI functionality can now be loaded as independent modules using statements such as import git;.

  • Improved GCC command-line compatibility โ€” response files, multiple source files, additional compiler flags, and more helpful diagnostics.

  • Improved generated-code performance โ€” approximately 2% faster than v0.105.0 across the measured benchmark suite.

A notable compile speed comparison

The SQLite amalgamation compiles at -O2 in:

CompilerTime
madc3.2 s
GCC16.8 s
Clang15.7 s

These are results for this workload, not a claim that madc universally outperforms GCC or Clang.

Updated companion project releases:

  • madcide v0.9.1 โ€” the extensible terminal and desktop IDE.

  • Chthonia v0.3.1 โ€” the Thonny-inspired C/C++ learning environment built on madcide.

(Both include madc v0.106.1).

GitHub: https://github.com/derekbsnider/madc

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


r/AIprogrammingLanguage • • Oct 20 '26

October update

Thumbnail
reddit.com
4 Upvotes

r/AIprogrammingLanguage • • Oct 12 '26

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

4 Upvotes

I've released madc v0.104.0, a fairly substantial update that also completes the separation of madc and madcide into independent projects.

What's new in madc

  • Expanded interactive REPL โ€” madc -i now includes an ed/ex-style editing mode, multiple file buffers, undo/redo, search and replace, and syntax highlighting.

  • New REPL commands โ€” inspect source definitions, check code without running it, manage projects, rebuild interactive sessions, and work with command history.

  • Built-in Language Server (LSP) โ€” diagnostics, symbols, definitions, references, hover information and semantic highlighting, available to external editors.

  • Built-in MCP server โ€” exposes compiler-aware code analysis, editing operations and project memory to AI coding tools.

  • Better regular expressions โ€” unified PCRE2 support across Linux, Windows and macOS.

  • Automatic language selection โ€” .c files default to C17, .cpp files to C++17, and .mad files to the madc dialect. Explicit --std options still override these defaults.

The madcide split

madcide now has its own repository and independent releases.

Starting with this version, madc is distributed without madcide. The IDE is available separately as madcide v0.7.0, built using madc v0.104.0.

Chthonia v0.1.0, the beginner-friendly C/C++ environment inspired by Thonny, builds on madcide and madc.

The three projects now have distinct roles:

  • madc โ€” compiler, language, REPL and development services.

  • madcide โ€” extensible terminal (TUI) and desktop (GUI) IDE.

  • Chthonia โ€” beginner-friendly C/C++ learning environment built on madcide.

Low friction C and C++ without the ceremony.

Repositories:


r/AIprogrammingLanguage • • Oct 11 '26

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

4 Upvotes

I'm currently working on madc's upcoming release which should hopefully be ready sometime later today, but wanted to discuss it a bit here before the release announcement.

As you may know, I built an IDE in madc (called madcide), and I also built a plugin to make madcide look, feel, and behave much like Thonny (the learning IDE for Python), and made it its own standalone app with its own repo named Chthonia.

That made me realize that madcide should also really be in its own repo, since it grew to be far more than a sample application.

Thus, the next release of madc will be split into three releases:

  • madc v0.104.0

  • madcide v0.7.0

  • chthonia v0.1.0

That is not all that this release will do, however (the split), there has been some functionality shuffling, decisions on what should exist where, with some bug fixes along the way, of course.

So what I would like to discuss here was more along the lines of the language itself, and asking for feedback from other fellow language developers...

So, as you may also know, I've added a REPL to madc (as of v0.101.0), which was inspired by various existing REPL implementations (since there is not yet a firm standard for C/C++), so I took some inspiration from Julia, IPython, Cling and clang-repl, and supported multiple command sets as aliases to each other to make it easier for those already used to one form or another.

What I'm bringing in with version 0.104.0, is the full set of the vifamily of line editing tools ("colon mode"), which originates from the lineage of ex and ed. This will only really be familiar with people who use vi, vim, or neovim.

For a brief history lesson, ed was written in C by Ken Thompson (author of B language, predecessor to C language) in 1973, ex was an extended version of ed, written by Bill Joy between 1976-1977, who also wrote vi (the "visual" mode of ex). All of these technologies (including C) were part of UNIX, and why you are always pretty much guaranteed to have access to vi under any sort of UNIX-like operating system. Bram Moolenaar wrote vim as a successor to vi in 1992, and most flavours of UNIX (including Linux) actually ship with vim, and typing vi will launch vim.

Personally, I am not a vi/vim/neovim user, but millions of people are familiar with it, and it does have a very powerful command line mode, and this will now be part of the madc REPL mode.

I'm also bringing in the LSP and MCP server support and most of what was headless and line-mode of madcide into madc itself, so that madcide will primarily be only the visual (TUI / GUI) parts.

The reasoning for this is that these are all non-GUI things, and they are fairly small, and make madc itself more powerful it its core, and that these things could be more foundational for applications outside of madcide.

Madcide started out as an exercise for developing madc's UI module, which allows for having the same UI elements across multiple UI modes -- line mode, TUI mode, GUI mode, etc. It's written in madc, and it is designed to be very flexible, modular, and you can write plugins for it in madc -- Chthonia is a madcide plugin, but as madc is both a JIT and an AOT language, Chthonia is available as a full on compiled standalone application, compiling the chthonia plugin into a binary linked against libmadc and libmadcide.

I'm also putting more effort into segregating add-on functionality into modules -- especially if they add a third party library dependency. An example of this is git support.

I know this is a lot of reading, but hoping for some interesting discussion here as I think it encompasses programming language development in general, and is not specific to madc.

So, what do you think of this split? Does anyone here use REPL mode in other languages? Do you plan a REPL mode for your language?


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 • • 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 • • Oct 04 '26

Updated homepage and roadmap for Monad

4 Upvotes

I recently updated the homepage of Monad to give a better overview. There are still plenty of bugs and missing features. I will open for contributions once the core design is more stable. For now, testing and giving feedback is useful.
https://monad-lang.org/


r/AIprogrammingLanguage • • Oct 02 '26

Nikaia: a pre-alpha language where the compiler figures out the "how". How would you like to experiment with it?

4 Upvotes

Hi all,

I've been building Nikaia, a pre-alpha language that compiles to Rust.

The basic idea is simple: in a lot of systems code, you end up specifying how memory, waiting, sharing, etc. should work rather than just describing what you want the program to do. Nikaia tries to have the compiler figure out those details for you.

So thereโ€™s no async/await, GC, or manual memory management. Data races, missing values and unhandled errors are compile-time errors, with plain-language hints about what to do instead.

It's still very early, but it can already build real programs: a JSON parser, a log analyser, a small HTTP server, the One Billion Row Challenge, and more.

Nikaia itself is built almost entirely by AI agents, and they're currently rewriting the compiler in Nikaia (self-hosting). So the language is getting quite a bit of real-world use already.

I'd love to have people try it and tell me what makes sense, what doesn't, and where the language gets in the way. "This can't work because..." is just as useful as praise.

What would make that easy for you?

- Is the repo enough?

- A crate you can "cargo install"?

- A prebuilt executable?

- A Docker image with everything set up?

- An LSP / IDE integration?

Repo: https://github.com/Nikaia-Language/Nikaia

Docs: https://nikaia-lang.org/

Edit: There is async now in the languange to start functions asynchronlly but you do not need to mark every function as async.