Luma Blog

Luma Talks to Databases: The Full Stack Lands

Four blog posts ago, we asked a question: how should Luma talk to MySQL? We had no TCP sockets. No binary buffers. No crypto. No database interface. We had a vision and a plan — build the toolbox first, then build a driver with those tools. Today, every piece of that plan is done. Luma has a complete database stack — from raw TCP sockets all the way up to conn.query() with named parameters, transactions, and debug output. And the MySQL driver that ties it all together is written entirely in Luma. Not in Go, not in C, not hidden inside the compiler. In Luma. About 800 lines of it.

Read more →

February 11, 2026

TCP Lands: Luma Opens a Socket to the World

Three tools. Three posts. Today, the last one lands. We shipped binary buffers for building and parsing packets. We shipped crypto for hashing and authentication. Now Luma gets TCP networking — the transport layer that connects everything to everything else. With TCP, a Luma program can open a socket, send bytes, read responses, upgrade to TLS, and close the connection. That’s enough to speak any protocol: MySQL, PostgreSQL, Redis, SMTP, HTTP, or anything else that runs over TCP.

Read more →

February 11, 2026

Crypto Arrives: Hashing, HMAC, and the Primitives That Unlock Everything

Two tools down, one to go. Yesterday we shipped binary buffers. Today, Luma gets a crypto module — hashing, HMAC, secure random generation, encoding, and the byte utilities that tie them together. These aren’t exotic features. They’re the primitives that show up the moment a program touches authentication, data integrity, API signatures, or tokens. Without them, you can’t verify a webhook, hash a password, generate a session token, or authenticate to a database. With them, all of that becomes straightforward.

Read more →

February 11, 2026

Binary Buffers Arrive: Luma Learns to Speak in Bytes

In our last post, we talked about building the toolbox that would make database drivers possible in pure Luma. We said TCP, binary buffers, and crypto were the foundation. Today, one of those pieces is done. Luma now has a buffer type — a first-class tool for building and parsing binary data. Why buffers matter Every network protocol speaks in bytes. MySQL encodes packet lengths as three little-endian bytes. DNS uses big-endian 16-bit integers. TLS, HTTP/2, WebSocket frames, Redis commands — they all define exact byte layouts that programs must construct and parse correctly.

Read more →

February 11, 2026

Thinking About Databases: How Should Luma Talk to MySQL?

Some features arrive with a clear design from the start. You know what the API should look like, you know how the pieces fit together, and the work is mostly about execution. Database support is not one of those features. Databases are one of the most requested capabilities for any practical language. If you can read files, serve HTTP, and parse JSON, the next question is always: can I query a database? And it’s a fair question. Most real-world programs eventually need to store or retrieve structured data, and MySQL and MariaDB remain among the most widely deployed databases in the world.

Read more →

February 10, 2026

Your First Real App: A REST API in 80 Lines of Luma

Over the past weeks, Luma has gained a web server, JSON support, file handling, and a module system. Each of those features made sense on its own. But the real test of a language isn’t whether individual features work - it’s whether they work together, in the kind of code people actually write. So we built a complete REST API. Not a toy. Not a hello-world with extra steps. A multi-file, persistent, CRUD application that manages users - with GET, POST, PUT, and DELETE endpoints, JSON request and response bodies, auto-assigned IDs, and data stored on disk.

Read more →

February 9, 2026

Dates and Times That Speak Human

Every application eventually deals with dates and times. A birthday, a deadline, a log entry, a schedule. It’s one of the most universal concepts in programming - and one of the most consistently painful. Some languages give you a single timestamp type and leave you to extract meaning from it. Others provide rich libraries that require you to learn a small language of format strings, locale objects, and timezone rules before you can print today’s date. In many cases, the default representation of a date is something like 2024-12-25T14:30:00Z - a format designed for machines, not for the person reading the code.

Read more →

February 9, 2026

JSON Without the Boilerplate: Luma Learns to Speak Data

Every modern program eventually talks to the outside world. It reads a configuration file. It calls an API. It saves state between runs. And almost always, that conversation happens in JSON. Most languages make this work, but few make it feel natural. You find yourself writing serializers, defining intermediate types, or importing libraries just to turn {"name": "Alice"} into something your program can actually use. It’s the kind of task that should take one line but somehow takes ten.

Read more →

February 9, 2026

Luma Web Server: Building Web Applications Made Simple

Luma now includes a built-in web server that lets you build HTTP applications with minimal boilerplate. True to Luma’s philosophy — handlers are just functions, types are clear and explicit, and you can go from zero to a running server in a few lines of code. Hello World fn hello(req: Request) -> Response { return text("Hello World!") } routes: [Route] = [get("/", hello)] config: ServerConfig = ServerConfig { port: 3000, routes: routes, } server.start(config) Run it:

Read more →

February 9, 2026

Command-Line Programs, Without the Ceremony

Command-line tools are often the first programs people write - and the ones they keep rewriting. They start small, grow organically, and over time accumulate flags, positional arguments, prompts, and little bits of glue code that are rarely fun to maintain. In many languages, building a CLI means choosing between two extremes. On one side, you have minimal access to raw arguments and standard input, which forces you to reinvent parsing and validation yourself. On the other, you have large frameworks that introduce their own abstractions, configuration files, and mental overhead before you can even read a flag.

Read more →

January 29, 2026

When self Stopped Getting in the Way

Language design is often about noticing friction in places we’ve already accepted as “normal”. You write something the same way a hundred times, and only later realize that the language has been asking you to repeat information it already knows. That’s what happened with self in Luma. For a long time, instance methods required an explicit self parameter. It worked. It was clear. And yet, it always felt slightly off — especially in a language that tries hard to let intent speak louder than ceremony.

Read more →

January 26, 2026

The First Complete Shape of File Handling in Luma

When a piece of a language reaches its first complete shape, it’s rarely because everything imaginable has been added. More often, it’s because the unnecessary parts have been taken away. That’s where file handling in Luma is today. This first wave is not about finishing every possible feature. It’s about reaching a point where the model is coherent, predictable, and aligned with the way the language wants you to think. You can now work with files comfortably, without ceremony, and without constantly being reminded of lower-level mechanics that don’t belong in everyday code.

Read more →

January 23, 2026

When File Handling Finally Felt Right in Luma

Language design often moves quietly. There are no fireworks when something finally clicks - just a moment when you reread a piece of code and realize you no longer feel uneasy about it. That’s exactly what happened recently with file handling in Luma. At first glance, nothing dramatic changed. Files can be read, written, copied, moved. Logs can be appended. Metadata can be queried. All things you’d expect. But internally, one small conceptual shift changed everything.

Read more →

January 21, 2026

Letting Ideas Cook: Rethinking File Handling in Luma

When you’re building something new, progress rarely moves in straight lines. More often, it moves in circles: you sketch an idea, implement it, live with it for a while, and then realize that although it works, it doesn’t quite belong. That’s where we found ourselves with file handling in Luma. Our first design wasn’t wrong. It was logical, explicit, and familiar. It used clear verbs and namespaces, and it looked a lot like what many other languages do. At the time, that felt comforting. Familiar patterns reduce risk, and when you’re still shaping a language, safety matters.

Read more →

January 21, 2026

Imports, Modules, and a Lesson We Had to Learn the Hard Way

Working on a programming language is a strange experience. Some days everything feels obvious: you add a feature, tests pass, and the language grows a little stronger. Other days, you spend hours staring at code that technically works, yet somehow feels wrong - and you can’t immediately explain why. The recent work on modules and imports in Luma was very much the second kind. At the beginning, the goal looked innocent enough. We wanted Luma to support multiple files, to allow code to be split up, reused, and composed in a natural way. Nothing ambitious. Every language does this. Surely this would be a straightforward step forward.

Read more →

December 18, 2025

Luma Begins a New Chapter: Introducing Modules & Imports

Today marks one of the most important steps in Luma’s evolution - we’re officially beginning work on Modules & Imports, a feature that will open the door to larger applications, cleaner code organization, reusable libraries, and a more natural way to structure Luma projects. Until now, Luma has thrived as a simple, expressive language for small scripts, utilities, experiments, and learning. But every growing language eventually reaches a point where code needs to be split across multiple files. That moment has arrived - and we’re excited to share what’s coming next.

Read more →

December 9, 2025

Traits Arrive in Luma - A Big Step Forward

Over the last weeks, Luma has gone through one of its largest language updates so far: a complete traits system with dynamic dispatch, mutating methods, and seamless integration into lists, maps, and function calls. This post is a look behind the scenes - what we built, why we built it, what challenges we ran into, and how this update makes Luma feel more natural and expressive. What Are Traits, and Why Do They Matter? Traits let you describe capabilities independent of concrete types.

Read more →

December 9, 2025

Structs in Luma: What’s Possible Today and What’s Coming Next

Over the last weeks we’ve been expanding Luma with one of the most important building blocks of any modern language: structs. They now integrate cleanly with the compiler, runtime, lists, maps, optional types, and even with the first version of impl blocks (methods + associated functions). Today, we’re happy to share what’s already possible - and what exciting improvements are coming soon. What You Can Do With Structs Today Define rich data types struct Person { name: str age: int } Luma compiles this into a fully-typed Go struct behind the scenes.

Read more →

November 27, 2025

Structs Arrive in Luma - Phase 1 is Here Elegance

Luma continues to evolve, and today we’re excited to introduce one of the most requested language features: structs. This is the foundation for building richer data models, larger programs, and ultimately unlocking higher-level abstractions such as methods, impl blocks, and traits. Structs are now fully supported in Luma as plain data containers, and they already integrate cleanly with the rest of the language: lists, maps, functions, optionals, and composite data structures.

Read more →

November 23, 2025

Introducing Functions in Luma: Expression Power, Clarity, and Higher-Order Elegance

Over the past development cycle, Luma has received one of its most important and powerful upgrades so far: full function support. That includes: Named functions with parameters & return types Expression-bodied functions (=>) Proper return statements Recursive functions First-class function types ((int) -> int) Passing functions as arguments Returning functions from functions Lambdas that adapt to the expected function type Real Go func codegen under the hood With these additions, Luma now supports functional patterns, reusable building blocks, clean abstractions, and all the core mechanisms needed for expressive programming.

Read more →

November 21, 2025