r/AIprogrammingLanguage • • 1d ago

Pull Request from new account

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?

4 Upvotes

2 comments sorted by

2

u/antonation 1d ago

I'm even afraid of issue reports (or comments on the issues themselves) as I have Claude triage them for me, they could also include prompt injection as well. For one, always run your agent in a sandboxed or restricted environment is protecting yourself and your data first.

As for people trusting your programming language, I think it has to be earned. Even formal verification doesn't mean much to a stranger if you didn't write part of it yourself, because if you vibed "Claude, formally verify my language's semantics via lean", it at minimum means it verified what it built or understood from the specs/docs, not necessarily 100% what you wanted or what someone else expects.

Ultimately, I think the best trust builder is someone and some project has to use it. Right now that someone should be a human or a project developed by a human. If it's not a human, why make it at all unless it's for fun/exploratory purposes? LLMs are trained on more prolific languages with both human and AI producers (e.g. Rust), there isn't much incentive to use a new language otherwise especially with AI-driven coding.

So if you're building a language intended for humans in any way at all, you should use it yourself (or find someone to). If you are building a language for AI agents, then I don't know. I would say unless you have a lot of backing and a really novel/provably better idea, it's an uphill battle against all of the training data from other languages.

2

u/ElephantElectrical31 1d ago

I actually started developing Nikaia because I disliked the way Rust made me write code, while still wanting to retain its performance and safety guarantees. But as I worked on the specification and dug deeper into language design, I realized there are much bigger reasons why we need new programming languages.

Every language design involves trade-offs. You have to make decisions about which use cases to prioritize, which target audiences you're building for, and how certain features and guarantees should be implemented. Those decisions inevitably make some things easier and others harder.

Existing languages are still far from being ideal for every use case. That leaves plenty of room for new languages that combine capabilities in different ways, address specific domains better, or explore entirely new niches.

AI is changing what's feasible in this space. It makes developing new languages, compilers, and toolchains much more accessible, including highly specialized solutions that simply wouldn't have justified the engineering effort before.

Established languages can certainly evolve, but they carry decades of design decisions, compatibility requirements, and ecosystem constraints. They can't easily revisit fundamental design assumptions or take radically different approaches without breaking compatibility or disrupting existing users.

I genuinely believe that among the programming languages being created with AI today, some have the potential to introduce ideas worth taking seriously.

I don't think much of this work would have been feasible for an individual without AI. It dramatically expands what one person can realistically build.

I know some people in this channel are doing serious and challenging work on their languages. I agree with your point that the real challenge for these languages is earning people's trust and getting them to actually use them. It's a classic chicken-and-egg problem: people want to see a proven track record before adopting a language, but languages need users to build that track record.

I believe we can overcome this by building useful applications and libraries in these languages ourselves. Rather than just talking about what a language could do, we need to demonstrate what we can actually build with it.

I realize these thoughts might seem a bit unusual to most people who simply use programming languages rather than build them. But for the relatively small group of people crazy enough to attempt building an entirely new language and ecosystem, this is a very real challenge.