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

Pull Request from new account

4 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?


r/AIprogrammingLanguage • • 1d 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 • • 6d ago

What is an AI-oriented programming language?

Thumbnail reddit.com
4 Upvotes

r/AIprogrammingLanguage • • 8d 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 • • 10d ago

Leksika

Thumbnail
github.com
4 Upvotes

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


r/AIprogrammingLanguage • • 23d ago

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.


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

Nyx’s post-v5 compiler architecture: Typed HIR → MIR → target legalization

Thumbnail reddit.com
4 Upvotes

r/AIprogrammingLanguage • • Sep 08 '26

Progress on the GUI version of the MadC IDE

Thumbnail
gallery
4 Upvotes

So the same IDE supports terminal/TUI mode and now GUI mode... for Linux, Windows and MacOS.

The attached images show, in order:

  • Linux -- GTK 4 + WebKitGTK 6

  • Linux -- TUI mode (inside Windows Terminal)

  • Windows -- Win32 + WebView2

  • macOS -- Cocoa + WKWebView

Only the Linux GUI version currently has the menu options, as this is a develop release (v0.99.1), but all three will have them in the upcoming master release.

The IDE is currently operating in local mode, but I have been designing it to be able to also operate in client -> server mode, supporting multiple client connections.

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)

I decided to start with a web interface for the IDE since it makes a lot of the cross-platform GUI work much easier, and is one of the purposes that HTML was originally designed for (a simple, standardized way to format text so that any computer system could read and display the same document identically).

https://github.com/derekbsnider/madc