When ChatGPT Met Luma: An Experiment in AI-Friendly Programming
Five programming challenges. A new programming language. No syntax hints. One AI assistant. How well did it go?
As Luma 0.2.0 approaches its release, we decided to conduct a rather unusual experiment: give ChatGPT the Luma documentation and see whether it could independently write working programs in a language it had never been specifically trained to use.
There were no prepared solutions, no syntax hints, and no manual corrections before the first execution of each program.
Just documentation, programming challenges, and a real Luma runtime.
The results were encouraging — and, in some cases, surprising even to Luma’s creator.
A Language Designed for Both Humans and Machines
From the beginning, Luma has been built around a simple philosophy:
Friendly to machines, beautiful for people.
Programming is changing. Artificial intelligence is becoming an increasingly important part of software development, and programming languages should acknowledge this reality.
Luma aims to provide a predictable, readable syntax, a comprehensive standard library, and fewer unnecessary ways of expressing the same operation. The intention is to reduce complexity without sacrificing capability.
But a design philosophy is only meaningful if it survives contact with reality.
So we decided to put it to the test.
The Experiment
ChatGPT was given the Luma 0.2.0 documentation in Markdown format. It was then presented with five programming challenges of increasing complexity.
ChatGPT generated the code, while Luma’s creator executed it locally and returned the actual results.
The goal was not to measure ChatGPT’s general programming abilities, but to explore whether Luma’s language design and documentation were sufficient for an AI assistant to produce functional software independently.
Challenge 1: Arrays, Functions and Type Conversion
The first task was deliberately simple: write a function that sums an array of integers, adds the floating-point value 0.2, and returns the result.
ChatGPT produced the following program:
fn sum(values: [int]): float {
total: int = 0
values.walk(value) {
total = total + value
}
result: float = convert(total)
return result + 0.2
}
numbers: [int] = [1, 2, 3, 4, 5]
print(sum(numbers))The result:
15.2The program worked on the first attempt.
Despite its simplicity, the challenge covered several fundamental language concepts: typed arrays, functions, iteration, variable mutation, explicit type conversion, and return values.
Result: passed on the first attempt.
Challenge 2: Objects and Modules
The second challenge introduced a more realistic software structure.
ChatGPT was asked to create a module containing an object with several methods and then use that object from another source file.
It independently chose to implement a small banking module featuring an account owner, balance, deposits, withdrawals, and account information.
The program demonstrated:
- Public objects and module imports.
- Object constructors.
- Methods and internal state.
- Conditional logic.
- String interpolation.
The actual execution produced:
true
false
120.0
Martin: 120.0 EUREvery result matched the expected output. No corrections were required.
Result: passed on the first attempt.
Challenge 3: Working with the Real Web
The next challenge moved beyond isolated programming examples.
ChatGPT was asked to retrieve the Transfermarkt website and determine whether a particular word existed in its content.
Using Luma’s built-in HTTP client, the assistant produced a compact solution requiring no external dependencies.
The initial search returned false. However, the reason was not a programming error: the original challenge contained a spelling mistake, using Suderland instead of Sunderland.
A diagnostic version of the program produced:
HTTP status: 200
Response length: 289465
Suderland:
false
Sunderland:
trueThe program successfully retrieved approximately 289 KB of HTML over HTTPS and searched its contents.
It also demonstrated how easily HTTP headers and response diagnostics could be added.
Result: passed, with the original search term corrected.
Challenge 4: Concurrent HTTP Requests
For the fourth challenge, ChatGPT was given more freedom.
The task was to select several websites, retrieve them using coroutines, and measure execution time.
ChatGPT chose the official websites of Python, Go, and Rust. It implemented both sequential and concurrent execution to provide a direct comparison.
One particularly interesting aspect was how little code was required to switch between the two execution models:
sequential: [Result] = wait(urls, fetch, 1)
concurrent: [Result] = wait(urls, fetch, 3)Changing a single argument controlled the level of concurrency.
The actual benchmark results were:
| Website | Sequential | Concurrent |
|---|---|---|
| python.org | 67 ms | 18 ms |
| go.dev | 347 ms | 203 ms |
| rust-lang.org | 304 ms | 25 ms |
| Total execution time | 718 ms | 204 ms |
The concurrent execution completed approximately 3.52 times faster, reducing the total execution time by 71.6%.
Interestingly, the concurrent execution took only one millisecond longer than its slowest individual request.
These figures should not be interpreted as a controlled performance benchmark. Network conditions, DNS caching, and connection reuse may have influenced the results.
Nevertheless, the experiment demonstrated that Luma’s concurrency features could be used successfully in a real networking application — without the AI assistant requiring any corrections to its generated code.
Result: passed on the first attempt.
Challenge 5: An AI Building an AI
The final challenge was arguably the most interesting.
Could ChatGPT use Luma to build another AI assistant — one capable of independently calling external tools?
The requirements were straightforward:
- Use a freely available, relatively small language model.
- Answer ordinary user questions.
- Recognize questions requiring recent information.
- Invoke a custom search tool when necessary.
- Retrieve additional information from DuckDuckGo.
ChatGPT selected Qwen 2.5 3B, running locally through Ollama.
The generated application registered a custom tool with a structured input schema, allowing the language model to request a web search.
And this was where ChatGPT made its first genuine programming mistake.
The First Error
The generated code attempted to concatenate strings using the + operator.
Luma rejected it:
main.luma:53:45: operator + does not work on stringsChatGPT recognized the mistake and replaced the unsupported operation with string interpolation and the appropriate string joining method.
This was an interesting observation in itself. Even with documentation available, an AI assistant can carry assumptions from other programming languages into an unfamiliar one.
Luma’s explicit compiler diagnostic made the problem easy to identify and correct.
The AI Assistant Comes to Life
After the correction, the application successfully started and communicated with the local language model.
When asked:
What are the latest technology news today?The model independently invoked the registered Luma tool:
[TOOL] Searching DuckDuckGo: latest technology news
[DEBUG] HTTP status: 202
[DEBUG] Response size: 15092Unfortunately, DuckDuckGo did not return usable search results, so the complete news retrieval workflow could not be verified.
The small language model also occasionally attempted to use the search tool when it was unnecessary.
However, the central technical mechanism worked:
- Luma communicated with a locally running language model.
- The model recognized the need for an external tool.
- It generated the tool’s input arguments.
- Luma executed the registered function.
- The function performed a real HTTPS request.
- The result was returned to the language model.
- The model responded to the user based on the tool’s reported failure.
An AI assistant had successfully written a Luma application that itself operated as a tool-enabled AI assistant.
Result: core AI integration and tool calling passed after a syntax correction. Successful external search retrieval remained unverified.
The Final Results
| Challenge | Outcome |
|---|---|
| Arrays, functions and type conversion | Passed |
| Objects and modules | Passed |
| HTTP requests and content searching | Passed |
| Coroutines and execution timing | Passed |
| Local AI integration and tool calling | Passed after syntax correction; external retrieval unverified |
Across five increasingly complex challenges, ChatGPT encountered only one category of language syntax error.
More importantly, the experiment covered a broad range of Luma’s capabilities, from fundamental language constructs to networking, concurrency, and local AI integration.
Some of these capabilities had not previously been tested together by Luma’s creator in such realistic scenarios.
The experiment therefore became more than a demonstration of AI-assisted programming. It also became an unexpected integration test for Luma itself.
What Did ChatGPT Think?
Reflecting on the experiment, ChatGPT summarized its significance:
“This is a small sample, but it already provides practical support for your language design philosophy.”
That distinction matters.
Five programming challenges cannot establish that Luma is universally easy for AI systems to understand. Nor can they prove that it is superior to established programming languages.
What they can demonstrate is that an AI assistant, provided with Luma’s documentation, was able to produce functional programs covering several non-trivial software development tasks with remarkably little intervention.
For a young programming language approaching version 0.2.0, that is an encouraging result.
Why This Matters
AI-friendly programming should not mean making programming languages more complicated to accommodate artificial intelligence.
Perhaps the opposite is true.
Clear syntax, predictable behaviour, explicit rules, useful compiler diagnostics, comprehensive documentation, and built-in solutions to common programming tasks benefit both humans and machines.
Luma’s documentation is also embedded directly into the compiler, making it available offline and relevant to the installed version of the language.
The ambition is to make the language understandable without requiring developers — human or artificial — to navigate a fragmented ecosystem simply to accomplish everyday tasks.
Whether you are writing a small automation script, testing industrial equipment over TCP, building a concurrent networking application, or integrating a local language model into enterprise software, Luma aims to make the path from idea to working code as short and understandable as possible.
Looking Ahead
Luma 0.2.0 is approaching its release, and there is still much to learn, improve, and optimize.
This experiment was not a formal scientific study, an independent certification, or an endorsement by OpenAI. It was a practical collaboration between Luma’s creator and ChatGPT, using real code and actual execution results.
But it was also something more personal: an opportunity to see whether the ideas behind Luma could work outside the examples its creator had originally imagined.
And that made the results particularly rewarding.
The next step is to place Luma in the hands of more developers, students, educators, and AI assistants — and discover what they can build with it.
Luma — Friendly to machines, beautiful for people.
This article was written by ChatGPT in collaboration with Guido Gröön, the creator of Luma, based on their interactive programming experiment in December 2026. All reported program outputs were obtained from actual executions performed by Luma’s creator.